<?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:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:epcs="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/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="InquiredPersonCode.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-06-29</ivis:Created>
                    <ivis:Modified>2007-06-29</ivis:Modified>
                </ivis:Date>
                <ivis:Description>
                    <ivis:Default>Shēma satur elementu CMIS pieprasījumu veikšanai par personas kodu un Personas koda pārbaudes rezultātu.</ivis:Default>
                </ivis:Description>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100010:XSD-PopulationRegister-InquiredPersonCode-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>Pārbaudāmais personas kods</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <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" />
    <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/IVIS/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0/IVISResponse.xsd" />
    <xs:element name="InquiredPersonCode" type="InquiredPersonCodeStructure">
        <xs:annotation>
            <xs:documentation>Pieprasījuma personas kods</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="InquiredPersonCodeStructure">
        <xs:annotation>
            <xs:documentation>Pieprasījuma personas koda struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Pieprasījuma sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PersonCode" type="pers:PersonCodeType">
                <xs:annotation>
                    <xs:documentation>Pieprasījuma personas kods</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EServiceInstance" type="epcs:EServiceInstanceStructure">
                <xs:annotation>
                    <xs:documentation>ePakalpojums</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!---->
    <xs:element name="VerifiedPersonCode" type="VerifiedPersonCodeStructure">
        <xs:annotation>
            <xs:documentation>Personas kods korektuma pārbaudes rezultāts</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="VerifiedPersonCodeStructure">
        <xs:annotation>
            <xs:documentation>Personas koda korektuma pārbaudes rezultāta struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:sequence>
                    <xs:element name="Status" type="PersonCodeStatus">
                        <xs:annotation>
                            <xs:documentation>Pārbaudes rezultāts</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                    <xs:element name="PersonCode" type="pers:PersonCodeType" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Aktuālais personas kods</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
                <xs:element name="Error" type="ivis:ErrorStructure">
                    <xs:annotation>
                        <xs:documentation>Kļūda</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PersonCodeStatus">
        <xs:annotation>
            <xs:documentation>Personas koda statuss</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="correct" />
            <xs:enumeration value="incorrect" />
        </xs:restriction>
    </xs:simpleType>
</xs:schema>