<?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:document="http://ivis.eps.gov.lv/XMLSchemas/100001/Document/v1-0" xmlns:addr="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/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="PRStatement.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:Contributor Href="http://www.rixtechnologies.lv" CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="100002">A/S "RIX Technologies"</ivis:Contributor>
                <ivis:Creator CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Creator>
                <ivis:Date>
                    <ivis:Created>2007-12-19</ivis:Created>
                    <ivis:Modified>2007-12-19</ivis:Modified>
                </ivis:Date>
                <ivis:Description>
                    <ivis:Default>Satur personas datus, ko iedzīvotāju reģistrs sniedz iedzīvotājiem pēc pieprasījuma. Iespējamās datu grupas ir:
1) Dzīvesvieta;
2) Personu apliecinoša dokumenta (Pases) dati;
3) Ģimenes stāvoklis;
4) Valstiskās piederības.</ivis:Default>
                </ivis:Description>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100010:XSD-PopulationRegister-PRStatement-v1-0</ivis:Identifier>
                <ivis:Language>LV</ivis:Language>
                <ivis:Relation>
                    <ivis:ConformsTo Href="URN:IVIS:100001:DOC-FR-XML-V1.00">XML shēmu izstrādes vadlīnijas</ivis:ConformsTo>
                </ivis:Relation>
                <ivis:Status>
                    <ivis:Default>EDITED</ivis:Default>
                    <ivis:Version>v1.0</ivis:Version>
                </ivis:Status>
                <ivis:Subject>
                    <ivis:Category CodeListID="XMLSchemaType" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="8">Lietojumu XML shēma</ivis:Category>
                    <ivis:Project>PopulationRegister</ivis:Project>
                </ivis:Subject>
                <ivis:Title>
                    <ivis:Default>IR izziņa</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Document/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Document/v1-0/PersonPassport.xsd" />
    <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Address/v1-0/LivingPlaceLVA.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/Citizenship.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/MaritalStatus.xsd" />
    <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/PersonStatus.xsd" />
    <!---->
    <xs:element name="PRStatementQuery" type="PRStatementQueryStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Iedzīvotāju reģistra pieprasījums</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PRStatementQueryStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Iedzīvotāju reģistra pieprasījuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PersonCode" type="pers:PersonCodeType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Personas kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataGroupList" type="DataGroupListStructure" />
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DataGroupListStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Datu grupas struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence maxOccurs="unbounded">
            <xs:element name="DataGroup" type="DataGroupType">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Datu grupa</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="DataGroupType">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Datu grupas tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="D" />
            <xs:enumeration value="A" />
            <xs:enumeration value="G" />
            <xs:enumeration value="V" />
            <xs:enumeration value="C" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="PRStatementData" type="PRStatementDataStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Iedzīvotāju reģistra dati</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PRStatementDataStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Iedzīvotāju reģistra datu struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="LivingPlace" type="LivingPlaceWithStartDateStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Deklarētā dzīvesvieta</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PassportData" type="document:PassportStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Pases dati</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="MaritalStatus" type="MaritalStatStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Ģimenes stāvoklis</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Citizenships" type="pers:PersonCitizenship3ListStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Valstiskās piederības</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="LivingPlaceWithStartDateStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Dzīvesvietas un tās deklarēšanas sākuma datuma struktūra</xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="addr:PersonLivingPlaceLVAStructure">
                <xs:sequence>
                    <xs:element name="LivingSince" type="xs:date">
                        <xs:annotation>
                            <xs:documentation xml:lang="lv">Dzīvesvieta kopš</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <!---->
    <xs:complexType name="MaritalStatStructure">
        <xs:annotation>
            <xs:documentation>Ģimenes stāvoklis atbilstošā dzimtē</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Marital" type="pers:MaritalStructure" />
            <xs:element name="Sex" type="pers:PersonSexStructure" />
        </xs:sequence>
    </xs:complexType>
</xs:schema>