<?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: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="PersonStatus.xsd">
    <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: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-26</ivis:Created>
                    <ivis:Modified>2007-06-26</ivis:Modified>
                </ivis:Date>
                <ivis:Description>
                    <ivis:Default>Shēma satur elementus, kas raksturo personas statusu Iedzīvotāju reģistrā - dzīvību, aktivitāti, rīcībspēju.</ivis:Default>
                </ivis:Description>
                <ivis:Format>
                    <ivis:Default>text/xml</ivis:Default>
                </ivis:Format>
                <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-PersonStatus-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>Personas statuss Iedzīvotāju reģistrā</ivis:Default>
                </ivis:Title>
            </ivis:Metadata>
        </xs:appinfo>
    </xs:annotation>
    <xs:element name="PersonStatus" type="PersonStatusStructure">
        <xs:annotation>
            <xs:documentation>Personas statuss IR</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonStatusStructure">
        <xs:annotation>
            <xs:documentation>Personas statusa IR struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PersonStatus" type="PersonStatusType">
                <xs:annotation>
                    <xs:documentation>Personas statuss</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Error" type="ivis:ErrorStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Kļūda</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PersonStatusType">
        <xs:annotation>
            <xs:documentation>Personas statuss IR tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="active" />
            <xs:enumeration value="passive" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="PersonState" type="PersonStateStructure">
        <xs:annotation>
            <xs:documentation>Personas stāvoklis</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="PersonStateStructure">
        <xs:annotation>
            <xs:documentation>Personas stāvokļa struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PersonState" type="PersonStateType">
                <xs:annotation>
                    <xs:documentation>Personas stāvoklis</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Error" type="ivis:ErrorStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Kļūda</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="PersonStateType">
        <xs:annotation>
            <xs:documentation>Personas stāvokļa tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="alive" />
            <xs:enumeration value="dead" />
            <xs:enumeration value="missing" />
        </xs:restriction>
    </xs:simpleType>
    <!---->
    <xs:element name="LegalCapability" type="LegalCapabiltyStructure">
        <xs:annotation>
            <xs:documentation>Rīcībspēja</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:complexType name="LegalCapabiltyStructure">
        <xs:annotation>
            <xs:documentation>Rīcībspējas struktūra</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="LegalCapability" type="LegalCapabilityType">
                <xs:annotation>
                    <xs:documentation>Rīcībspēja</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Izmantotās sesijas identifikators</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Error" type="ivis:ErrorStructure" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Kļūda</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="LegalCapabilityType">
        <xs:annotation>
            <xs:documentation>Rīcībspējas tips</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="capable" />
            <xs:enumeration value="incapable" />
            <xs:enumeration value="partiallyCapable" />
        </xs:restriction>
    </xs:simpleType>
</xs:schema>