<schema attributeFormDefault="unqualified" elementFormDefault="qualified"
        targetNamespace="http://xmlns.gemsystem.cz/B2B/RegistracePojistencePZSB2B/1"
        xmlns:tns="http://xmlns.gemsystem.cz/B2B/RegistracePojistencePZSB2B/1"
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:cmn="http://xmlns.gemsystem.cz/CommonB2B"
        version="1.0">
  <annotation>
    <documentation>Historie verzi rozhrani:
      <ul>
        <li>1.0 - 14.12.2020 - prvotni verze</li>
      </ul>
    </documentation>
  </annotation>
  <import schemaLocation="CommonB2B.xsd" namespace="http://xmlns.gemsystem.cz/CommonB2B"/>
  <!-- pozadavek/odpoved elementy -->
  <element name="registracePojistencePZSB2B"
             type="tns:registracePojistenceTyp"/>
  <element name="registracePojistencePZSB2BOdpoved"
             type="tns:registracePojistenceResponse"/>
  <complexType name="registracePojistenceTyp">
    <sequence>
      <element name="idZpravy" type="cmn:IdZpravyNISTyp" minOccurs="0"/>
      <element name="subjektKonzumenta" type="cmn:SubjektKonzumentaTyp" minOccurs="0"/>
      <element name="duvodVolani" type="cmn:DuvodVolaniTyp" minOccurs="0"/>
      <element name="cisloPojistence" type="tns:cisloPojistenceTyp">
        <annotation>
          <documentation>
                         Cislo pojistence, ktereho se registrace tyka
	</documentation>
        </annotation>
      </element>
      <element name="kDatu" type="date" minOccurs="0"/>
      <element name="seznamOdbornosti" minOccurs="0">
        <annotation>
          <documentation>
                         Seznam odbornosti pro registraci. Pokud nebude element seznamOdbornosti existovat, pak dojde k vraceni dat ke vsem dohledanym odbornostem.
	</documentation>
        </annotation>
        <complexType>
          <sequence>
            <element name="kodOdbornosti" minOccurs="1" maxOccurs="unbounded">
              <annotation>
                <documentation>
                          Kod odbornosti pro registraci, povolen je nize uvedeny vycet
	</documentation>
              </annotation>
              <simpleType>
                <restriction base="string">
                  <enumeration value="001"/>
                  <enumeration value="002"/>
                  <enumeration value="014"/>
                  <enumeration value="603"/>
                </restriction>
              </simpleType>
            </element>
          </sequence>
        </complexType>
      </element>
    </sequence>
  </complexType>
  <!-- odpovedTyp -->
  <complexType name="registracePojistenceResponse">
    <sequence>
      <element name="idZpravy" type="cmn:IdZpravyNISTyp" minOccurs="0"/>
      <element name="cisloPojistence" type="tns:cisloPojistenceTyp" minOccurs="0">
        <annotation>
          <documentation>
                         Cislo pojistence, ktereho se registrace tyka
	</documentation>
        </annotation>
      </element>
      <element name="seznamOdbornosti"  minOccurs="0">
        <complexType>
          <sequence>
            <element name="odbornost" type="tns:polozkaOdbornostiTyp" maxOccurs="unbounded"/>
          </sequence>
        </complexType>
      </element>
      <element name="stavVyrizeniPozadavku"
                     type="cmn:StavVyrizeniPozadavkuTyp"/>
    </sequence>
  </complexType>
  <!-- navratove kody -->
  <simpleType name="cisloPojistenceTyp">
    <restriction base="string">
      <minLength value="9"/>
      <maxLength value="10"/>
    </restriction>
  </simpleType>
  <!-- datove typy -->
  <complexType name="kodNazevTyp">
    <sequence>
      <element name="kod">
        <simpleType>
          <restriction base="string">
            <length value="3"/>
          </restriction>
        </simpleType>
      </element>
      <element name="nazev">
        <simpleType>
          <restriction base="string">
            <maxLength value="100"/>
          </restriction>
        </simpleType>
      </element>
    </sequence>
  </complexType>
  <complexType name="kodZkratkaTyp">
    <sequence>
      <element name="kod">
        <simpleType>
          <restriction base="string">
            <length value="3"/>
          </restriction>
        </simpleType>
      </element>
      <element name="zkratka">
        <simpleType>
          <restriction base="string">
            <maxLength value="10"/>
          </restriction>
        </simpleType>
      </element>
    </sequence>
  </complexType>
  <complexType name="polozkaOdbornostiTyp">
    <sequence>
      <element name="ICZ" minOccurs="0">
        <annotation>
          <documentation>
                         Identifikacni cislo poskytovatele zdravotnich sluzeb
	</documentation>
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="8"/>
          </restriction>
        </simpleType>
      </element>
      <element name="ICP" minOccurs="0">
        <annotation>
          <documentation>
                         Identifikacni cislo pracoviste zdravotnich sluzeb
	</documentation>
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="8"/>
          </restriction>
        </simpleType>
      </element>
      <element name="nazevICP" minOccurs="0">
        <annotation>
          <documentation>
                         Nazev poskytovatele zdravotnich sluzeb
	</documentation>
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="40"/>
          </restriction>
        </simpleType>
      </element>
      <element name="nazevSZZ" minOccurs="0">
        <annotation>
          <documentation>
                         Nazev smluvniho zdravotnickeho zarizeni
	</documentation>
        </annotation>
        <simpleType>
          <restriction base="string">
            <maxLength value="40"/>
          </restriction>
        </simpleType>
      </element>
      <element name="zdravotniPojistovna" type="tns:kodZkratkaTyp">
        <annotation>
          <documentation>
                         Kod a zkratka zdravotni pojistovny
	</documentation>
        </annotation>
      </element>
      <element name="odbornost" type="tns:kodNazevTyp">
        <annotation>
          <documentation>
                         Kod a nazev odbornosti
	</documentation>
        </annotation>
      </element>
      <element name="datumRegistrace" type="date">
        <annotation>
          <documentation>
                         Datum registrace
	</documentation>
        </annotation>
      </element>
      <element name="datumZahajeni" type="date">
        <annotation>
          <documentation>
                         Datum zahajeni registrace
	</documentation>
        </annotation>
      </element>
      <element name="datumUkonceni" type="date">
        <annotation>
          <documentation>
                         Datum ukonceni registrace
	</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
</schema>
