<xs:schema xmlns="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" 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:epcs="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="GetPersonLivingPlaceCountry.xsd">
  <xs:annotation>
    <xs:appinfo>
      <ivis:Metadata>
        <ivis:Contributor CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Contributor>
        <ivis:Creator CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Creator>
        <ivis:Date>
          <ivis:Created>2020-06-01Z</ivis:Created>
          <ivis:Modified>2020-06-01Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Personas pamatadreses valsts iegūšana uz aktuālo datumu</ivis:Default>
        </ivis:Description>
        <ivis:Format>
          <ivis:Default>text/xml</ivis:Default>
        </ivis:Format>
        <ivis:Identifier Scheme="URN">URN:IVIS:100001:xsd-100010-GetPersonLivingPlaceCountry-1.0</ivis:Identifier>
        <ivis:Language>LV</ivis:Language>
        <ivis:Publisher CodeListCodeValue="100001">Valsts informācijas sistēmu savietotājs (VISS)</ivis:Publisher>
        <ivis:Relation>
          <ivis:ConformsTo Href="URN:IVIS:100001:DOC-FR-XML">XML shēmu izstrādes vadlīnijas</ivis:ConformsTo>
        </ivis:Relation>
        <ivis:Status>
          <ivis:Default>CANDIDATE</ivis:Default>
          <ivis:Version>1.0</ivis:Version>
        </ivis:Status>
        <ivis:Subject>
          <ivis:Category>Sabiedriskās apspriešanas, vēlēšanas, apbalvojumi</ivis:Category>
          <ivis:Keyword>PLMP</ivis:Keyword>
        </ivis:Subject>
        <ivis:Title>
          <ivis:Default>GetPersonLivingPlaceCountry</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </xs:annotation>
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/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/IVISService.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0/EServiceInstance.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/PersonCode.xsd" />
  <xs:complexType name="GetPersonLivingPlaceCountryStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">VMIS ARI 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:sequence>
  </xs:complexType>
  <xs:complexType name="GetPersonLivingPlaceCountryRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Integrācijas servisa pieprasījuma struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Request" type="GetPersonLivingPlaceCountryStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Pieprasījums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">VMIS ARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonLivingPlaceCountryStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas pamatadreses valsts struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CountryIcaoCode" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Valsts kods (ICAO)</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GetPersonLivingPlaceCountryResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Integrācijas servisa atbildes struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">VMIS ARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="Error" type="ivis:ErrorStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Response" type="PersonLivingPlaceCountryStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Atbilde</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GetPersonLivingPlaceCountryRequest" type="GetPersonLivingPlaceCountryRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Pieprasījums</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="GetPersonLivingPlaceCountryResponse" type="GetPersonLivingPlaceCountryResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Atbilde</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>