<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">


<xs:element name="COVID19_SKIEPAI_EU">
  <xs:annotation><xs:documentation>COVID19 skiepai EU</xs:documentation></xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SKIEPAS_EU" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>


<xs:element name="SKIEPAS_EU">
  <xs:annotation><xs:documentation/></xs:annotation>
    <xs:complexType>
      <xs:sequence>

      <xs:element minOccurs="0" maxOccurs="1" name="PACIENTO_AK">
        <xs:annotation><xs:documentation>Paciento asmens kodas (LTU)</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="1024"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="PACIENTO_VARDAS">
        <xs:annotation><xs:documentation>Paciento vardas</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="1024"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="PACIENTO_PAVARDE">
        <xs:annotation><xs:documentation>Paciento pavarde</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="1024"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="1" maxOccurs="1" name="PACIENTO_GIM_DATA" type="t_data">
        <xs:annotation><xs:documentation>Paciento gimimo data</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="PACIENTO_ESINR">
        <xs:annotation><xs:documentation>Paciento ESI numeris</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="1024"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="VAKCINOS_PAV">
        <xs:annotation><xs:documentation>Vakcinos pavadinimas</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="100"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="DOZES_EILNR">
        <xs:annotation><xs:documentation>Dozės eilės numeris</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int"/>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="DOZIU_VISO">
        <xs:annotation><xs:documentation>Viso reikalinga dozių iki pilno paskiepijimo kurso</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:int"/>
        </xs:simpleType>
      </xs:element>

      <xs:element minOccurs="1" maxOccurs="1" name="SKIEPIJIMO_DATA" type="t_data">
        <xs:annotation><xs:documentation>Skiepijimo data</xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="SKIEPIJIMO_VALSTYBE">
        <xs:annotation><xs:documentation>Valstybė, kurioje buvo paskiepyta</xs:documentation></xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string"><xs:maxLength value="300"/></xs:restriction>
        </xs:simpleType>
      </xs:element>

    </xs:sequence>
  </xs:complexType>
</xs:element>


<xs:simpleType name="t_data">
  <xs:annotation><xs:documentation>Data</xs:documentation></xs:annotation>
  <xs:restriction base="xs:string">
    <xs:pattern value="\d{4}-\d{2}-\d{2}"/>
  </xs:restriction>
</xs:simpleType>


</xs:schema>
