<!-- 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:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="PersonLastNames.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>2007-09-13Z</ivis:Created>
          <ivis:Modified>2020-05-15Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>Personas patreizējais un iepriekšējie vārdi un uzvārdi.</ivis:Default>
        </ivis:Description>
        <ivis:Format>
          <ivis:Default>text/xml</ivis:Default>
        </ivis:Format>
        <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-PersonLastNames-v1-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>PUBLISHED</ivis:Default>
          <ivis:Version>1.0</ivis:Version>
        </ivis:Status>
        <ivis:Subject>
          <ivis:Keyword>Personas uzvārds</ivis:Keyword>
        </ivis:Subject>
        <ivis:Title>
          <ivis:Default>PersonLastNames</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </xs:annotation>
  <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/100001/Person/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0/Person.xsd" />
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/CMISARI.xsd" />
  <!--Shēma Personas visu vārdu izgūšanas rezultātam no Iedzīvotāju reģistra-->
  <xs:complexType name="PersonLastNamesResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas visu vārdu izgūšanas rezultāta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SessionID" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">CMISARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="Error" type="ivis:ErrorStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Nesekmīgas servisa izpildes gadījumā atgrieztā kļūda</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PersonLastNames" type="PersonLastNamesStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Personas aktuālais vārds un visi bijušie vārdi</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PersonLastNamesResponse" type="PersonLastNamesResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas visu vārdu izgūšanas rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="PersonNameRecordStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas vārda ieraksta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonFullName" type="pers:PersonFullNameStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas pilns vārds</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UpdateReason" type="UpdateReasonStructure" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Datu izmaiņu notikuma kods</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UpdateDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Datu izmaiņu veikšanas datums</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="UpdateReasonStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas vārda aktualizēšanas iemesla struktūra</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attributeGroup ref="ivis:CodeListDescriptionGroup" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="PersonLastNamesStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas patreizējā un visu bijušo vārdu datu 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="PersonActualName" type="PersonNameRecordStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas aktuālais vārds</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonFormerNameList" type="PersonFormerNameListStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas bijušo vārdu saraksts</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonFormerNameListStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">Personas bijušo vārdu saraksta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:element name="PersonFormerName" type="PersonNameRecordStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Personas bijušais vārds</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>