<!-- 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-1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1" 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" xmlns:prv1-0="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1" id="PRStatement.xsd">
  <xs:annotation>
    <xs:appinfo>
      <Metadata xmlns="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0">
        <Contributor CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</Contributor>
        <Creator CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</Creator>
        <Date>
          <Created>2008-01-03Z</Created>
          <Modified>2020-05-15Z</Modified>
        </Date>
        <Description>
          <Default>Iedzīvotāju reģistra izziņas datu struktūra</Default>
        </Description>
        <Format>
          <Default>text/xml</Default>
        </Format>
        <Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-PRStatement-v1-1</Identifier>
        <Language>LV</Language>
        <Publisher CodeListCodeValue="100001">Valsts informācijas sistēmu savietotājs (VISS)</Publisher>
        <Relation>
          <ConformsTo Href="URN:IVIS:100001:DOC-FR-XML">XML shēmu izstrādes vadlīnijas</ConformsTo>
        </Relation>
        <Status>
          <Default>PUBLISHED</Default>
          <Version>1.1</Version>
        </Status>
        <Subject>
          <Keyword>Iedzīvotāju reģistrs</Keyword>
        </Subject>
        <Title>
          <Default>PRStatement</Default>
        </Title>
      </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:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/PersonStatus.xsd" />
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-1/AddressResponse.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="AddressDetailsStructure" 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="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>