<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerOffentlig/2018-06-01/LikningsopplysningerOffentlig.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerOffentlig/2018-06-01/LikningsopplysningerOffentlig.xsd"
    xmlns:feil="http://ws.infotorg.no/xml/Feil/Feil.xsd"
    xmlns:lkno="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerOffentlig/2018-06-01/include/Likningsdata.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
            Datatyper for LikningsopplysningerOffentlig
            © 2019 ErgoGroup AS
            Forfatter: Thomas Flatmo &lt;thomas.flatmo@evry.com&gt;
        </documentation>
    </annotation>
    
    <import
        namespace="http://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerOffentlig/2018-06-01/include/Likningsdata.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Skattedirektoratet/LikningsopplysningerOffentlig/2018-06-01/include/Likningsdata.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/Feil/Feil.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Feil/Feil.xsd"/>

    <element name="hentBosattInstitusjon" type="tns:PersonligLikning"/>
    <element name="hentBostoette" type="tns:PersonligLikning"/>
    <element name="hentHjemmehjelp" type="tns:PersonligLikning"/>
    <element name="hentRefusjonAvUtgifter" type="tns:PersonligLikning"/>
    <element name="hentSosialstoenad" type="tns:PersonligLikning"/>

    <element name="hentLikningPersonligCosDoc" type="tns:CosdocGerica"/>
    <element name="hentLikningPersonligGerica" type="tns:CosdocGerica"/>
    <element name="hentLikningPersonligProfil" type="tns:Profil"/>
    <element name="hentLikningsAargangerDato"/>

    <complexType name="PersonligLikning">
        <sequence>
            <element name="foedselsnrListe">
                <complexType>
                    <sequence>
                        <element name="foedselsnr" minOccurs="1" maxOccurs="unbounded">
                            <simpleType>
                                <restriction base="string">
                                    <length value="11"/>
                                </restriction>
                            </simpleType>
                        </element>
                    </sequence>
                </complexType>
            </element>
            <element name="fil" type="boolean"/>
            <element name="inntektsaar" minOccurs="1">
              <simpleType>
                <restriction base="string">
                  <length value="4"/>
                </restriction>
              </simpleType>
            </element>
        </sequence>
    </complexType>

    <complexType name="CosdocGerica">
        <sequence>
            <element name="foedselsnrListe">
                <complexType>
                    <sequence>
                        <element name="foedselsnr" minOccurs="1" maxOccurs="unbounded"/>
                    </sequence>
                </complexType>
            </element>
            <element name="inntektsaar" type="string"/>
        </sequence>
    </complexType>

    <complexType name="Profil">
        <sequence>
            <element name="foedselsnrListe">
                <complexType>
                    <sequence>
                        <element name="foedselsnr" minOccurs="1" maxOccurs="unbounded"/>
                    </sequence>
                </complexType>
            </element>
            <element name="inntektsaar" type="string"/>
        </sequence>
    </complexType>


    <element name="BosattInstitusjon" type="lkno:BosattInstitusjon"/>

    <element name="Bostoette" type="lkno:Bostoette"/>

    <element name="Hjemmehjelp" type="lkno:Hjemmehjelp"/>

    <element name="RefusjonAvUtgifter" type="lkno:RefusjonAvUtgifter"/>

    <element name="Sosialstoenad" type="lkno:Sosialstoenad"/>

    <element name="LikningPersonligCosDoc" type="lkno:CosDocGerica"/>

    <element name="LikningPersonligGerica" type="lkno:CosDocGerica"/>

    <element name="LikningPersonligProfil" type="lkno:LikningPersonligProfil"/>

    <element name="LikningsAargangerDato" type="lkno:LikningsAargangerDato"/>

</schema>
