<?xml version="1.0" encoding="utf-8"?>
<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" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="PersonIdentificationDocument.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 Href="http://www.pmlp.gov.lv" CodeListID="Authority" CodeListAgencyID="100001" CodeListAgencyName="ĪUMEPLS" CodeListLanguageID="lv" CodeListCodeValue="100010">Pilsonības un Migrācijas Lietas Pārvalde</ivis:Creator>
                <ivis:Date>
                    <ivis:Created>2007-07-24</ivis:Created>
                    <ivis:Modified>2007-07-24</ivis:Modified>
                </ivis:Date>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100010:XSD-PopulationRegister-PersonIdentificationDocument-v1-0</ivis:Identifier>
                <ivis:Language>LV</ivis:Language>
                <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>Personu apliecinoša dokumenta izgūšana</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <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:element name="PersonIdentificationDocument" type="PersonIdentificationDocumentStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas identifikācijas dokuments</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonIdentificationDocumentStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personas identifikācijas dokumenta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:sequence>
                    <xs:element name="IdentificationDocument" type="IdentificationDocumentStructure">
                        <xs:annotation>
                            <xs:documentation xml:lang="lv">Aktuālais personas 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:complexType name="CountryStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Valsts struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Code">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Valsts ICAO kods</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:normalizedString">
                        <xs:pattern value="[A-Z]{3}" />
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Name" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Nosaukums</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="IdentificationDocumentStructure">
        <xs:annotation>
            <xs:documentation xml:lang="lv">Personu apliecinoša dokumenta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DocumentKind" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Dokumenta veids</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SerieAndNumber" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Sērija un numurs</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="IssueDate" type="xs:date">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izsniegšānas datums</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ExpireDate" type="xs:date">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Derīgums līdz</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Country" type="CountryStructure">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izdevējvalsts</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="IssueInstitution" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izsniedzēja iestāde</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DocumentIssuePlace" type="xs:normalizedString">
                <xs:annotation>
                    <xs:documentation xml:lang="lv">Izsniegšanas vieta</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!---->
</xs:schema>