<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Guntars Peters (SIA RIX Technologies) -->
<xs:schema xmlns="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="PersonStatus.xsd">
    <xs:include schemaLocation="CMISARI.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0/IVISResponse.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0/Person.xsd" />
    <xs:annotation>
        <xs:appinfo>
            <ivis:Metadata xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0">
                <ivis:Creator CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="VRAA" CodeListLanguageID="lv" CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Creator>
                <ivis:Date>
                    <ivis:Created>2012-08-14</ivis:Created>
                    <ivis:Declared>2012-08-14</ivis:Declared>
                    <ivis:Modified>2012-08-14</ivis:Modified>
                </ivis:Date>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-PersonStatus-v1-0</ivis:Identifier>
                <ivis:Language>LV</ivis:Language>
                <ivis:Publisher CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="VRAA" CodeListLanguageID="lv" CodeListCodeValue="100001" Href="https://ivis.eps.gov.lv/">VRAA</ivis:Publisher>
                <ivis:Relation />
                <ivis:Status>
                    <ivis:Default>PUBLISHED</ivis:Default>
                    <ivis:Version>v1.0</ivis:Version>
                </ivis:Status>
                <ivis:Subject>
                    <ivis:Category CodeListID="XMLSchemaType" CodeListAgencyID="100001" CodeListAgencyName="VRAA" CodeListLanguageID="lv" CodeListCodeValue="8">Lietojumu XML shēma</ivis:Category>
                    <ivis:Project>PopulationRegister</ivis:Project>
                </ivis:Subject>
                <ivis:Title>
                    <ivis:Default>PersonStatus</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <xs:element name="PersonStatus" type="PersonStatusStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas statuss IR</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonStatusStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas statusa IR struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="PersonStatus" type="PersonStatusType">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Personas statuss</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PersonStatusType">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas statuss IR tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="active" />
            <xs:enumeration value="passive" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="PersonAliveState" type="PersonStateType">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas statuss Iedzīvotāju reģistrā - "dzīvs / miris / bezvēsts prombūtnē"</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="PersonState" type="PersonStateStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas stāvoklis</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonStateStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas stāvokļa struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="PersonState" type="PersonStateType">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Personas stāvoklis</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PersonStateType">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas stāvokļa tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="alive" />
            <xs:enumeration value="dead" />
            <xs:enumeration value="missing" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="LegalCapability" type="LegalCapabiltyStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Rīcībspēja</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="LegalCapabiltyStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Rīcībspējas struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="LegalCapability" type="LegalCapabilityType">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Rīcībspēja</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="LegalCapabilityType">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Rīcībspējas tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="capable" />
            <xs:enumeration value="incapable" />
            <xs:enumeration value="partiallyCapable" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="MaritalStatus" type="MaritalStatusStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ģimenes stāvoklis</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="MaritalStatusStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Ģimenes stāvokļa struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:sequence>
                    <xs:element name="StatusCode" type="pers:MaritalStatusCodeType">
                        <xs:annotation>
                            <xs:documentation xml:lang="lv">Ģimenes stāvokļa kods</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <!---->
    <xs:element name="PersonSex" type="SexStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Dzimums</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="SexStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Dzimuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="SexCode" type="pers:PersonSexCodeType">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Dzimums</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <!---->
    <xs:element name="CitizenshipList" type="CitizenshipListStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas valstisko piederību saraksts</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="CitizenshipListStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas valstisko piederību saraksta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:sequence>
                    <xs:element name="Citizenships" type="pers:PersonCitizenship3ListStructure" />
                </xs:sequence>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
</xs:schema>