ds_dasta-4.03.30.xsd
  1 <?xml version="1.0" encoding="utf-8" ?>
  2 <xs:schema targetNamespace="urn:cz-mzcr:ns:dasta:ds4:ds_dasta" elementFormDefault="qualified" xmlns:ds="urn:cz-mzcr:ns:dasta:ds4:ds_dasta" xmlns:dsComm="urn:cz-mzcr:ns:dasta:ds4:ds_type" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3     <!--  Import common element types.   -->
  4     <xs:import namespace="urn:cz-mzcr:ns:dasta:ds4:ds_type" schemaLocation="ds_type-4.02.21.xsd"/>
  5     <!-- BEGIN of GLOBALNI elementy (pouzivane napric dasta)  -->
  6     <xs:element name="a" type="ds:aType"/>
  7     <xs:element name="as" type="ds:asType"/>
  8     <!--  END of GLOBALNI elementy -->
  9     <xs:element name="dasta">
 10         <xs:complexType>
 11             <xs:sequence>
 12                 <xs:element name="zdroj_is" type="ds:zdroj_isType"/>
 13                 <xs:element name="pm" type="ds:pmType"/>
 14                 <xs:element name="garant_dat" type="dsComm:garant_datType" minOccurs="0"/>
 15                 <xs:choice>
 16                     <xs:element name="is" type="ds:isType" maxOccurs="unbounded"/>
 17                     <xs:element name="pd" type="ds:pdType"/>
 18                 </xs:choice>
 19                 <xs:element name="dastaAny" type="dsComm:AnyType" minOccurs="0"/>
 20             </xs:sequence>
 21             <xs:attribute name="id_soubor" type="dsComm:str40" use="required"/>
 22             <xs:attribute name="verze_ds" type="dsComm:verzeDsType" use="required"/>
 23             <xs:attribute name="verze_nclp" type="dsComm:verzeDsType" use="required"/>
 24             <xs:attribute name="bin_priloha" use="required">
 25                 <xs:simpleType>
 26                     <xs:restriction base="xs:string">
 27                         <xs:enumeration value="T"/>
 28                         <xs:enumeration value="B"/>
 29                     </xs:restriction>
 30                 </xs:simpleType>
 31             </xs:attribute>
 32             <xs:attribute name="ur" use="required">
 33                 <xs:simpleType>
 34                     <xs:restriction base="xs:string">
 35                         <xs:enumeration value="R"/>
 36                         <xs:enumeration value="S"/>
 37                         <xs:enumeration value="U"/>
 38                         <xs:enumeration value="V"/>
 39                         <xs:enumeration value="O"/>
 40                         <xs:enumeration value="B"/>
 41                         <xs:enumeration value="C"/>
 42                         <xs:enumeration value="H"/>
 43                         <xs:enumeration value="T"/>
 44                         <xs:enumeration value="N"/>
 45                     </xs:restriction>
 46                 </xs:simpleType>
 47             </xs:attribute>
 48             <xs:attribute name="typ_odesm" type="xs:NMTOKEN" use="required"/>
 49             <xs:attribute name="ozn_soub" type="dsComm:str50"/>
 50             <xs:attribute name="potvrzeni">
 51                 <xs:simpleType>
 52                     <xs:restriction base="xs:string">
 53                         <xs:enumeration value="N"/>
 54                         <xs:enumeration value="P"/>
 55                     </xs:restriction>
 56                 </xs:simpleType>
 57             </xs:attribute>
 58             <xs:attribute name="dat_vb" type="dsComm:dat_dtsType" use="required"/>
 59         </xs:complexType>
 60     </xs:element>
 61     <xs:complexType name="isType">
 62         <xs:sequence>
 63             <xs:element ref="ds:as"/>
 64             <xs:element name="os" type="ds:osType" minOccurs="0" maxOccurs="unbounded"/>
 65             <xs:element ref="ds:a" minOccurs="0"/>
 66             <xs:any namespace="##other" maxOccurs="unbounded"/>
 67             <xs:element name="isAny" type="dsComm:AnyType" minOccurs="0"/>
 68         </xs:sequence>
 69         <xs:attribute name="ico" type="dsComm:icisType"/>
 70         <xs:attribute name="icz" type="dsComm:icisType"/>
 71         <xs:attribute name="icp" type="dsComm:icisType"/>
 72         <xs:attribute name="icl" type="dsComm:icisType"/>
 73         <xs:attribute name="pcz" type="dsComm:number3de"/>
 74         <xs:attribute name="oddel" type="dsComm:str5e"/>
 75         <xs:attribute name="oavl" type="dsComm:str11"/>
 76         <xs:attribute name="sr_typ" type="dsComm:sr_typType"/>
 77         <xs:attribute name="sr_pois" type="dsComm:str4"/>
 78         <xs:attribute name="sr_kod" type="dsComm:str12e"/>
 79         <xs:attribute name="sr_lekar" type="dsComm:str9e"/>
 80 
 81     </xs:complexType>
 82     <!-- aType -->
 83     <xs:complexType name="aType">
 84         <xs:sequence>
 85             <xs:element name="dat_od" type="dsComm:dat_xxType" minOccurs="0"/>
 86             <xs:element name="dat_do" type="dsComm:dat_xxType" minOccurs="0"/>
 87             <xs:element name="o_jmeno" type="dsComm:str40" minOccurs="0"/>
 88             <xs:element name="o_prijmeni" type="dsComm:str40" minOccurs="0"/>
 89             <xs:element name="o_titul_pred" type="dsComm:str35" minOccurs="0"/>
 90             <xs:element name="o_titul_za" type="dsComm:str35" minOccurs="0"/>
 91             <xs:element name="f_jmeno" type="dsComm:str80" minOccurs="0"/>
 92             <xs:element name="f_ico" type="dsComm:icisType" minOccurs="0"/>
 93             <xs:element name="jmeno" type="dsComm:str255"/>
 94             <xs:element name="adr" type="dsComm:str80" minOccurs="0"/>
 95             <xs:element name="dop1" type="dsComm:str40" minOccurs="0"/>
 96             <xs:element name="dop2" type="dsComm:str40" minOccurs="0"/>
 97             <xs:element name="psc" type="dsComm:number9d" minOccurs="0"/>
 98             <xs:element name="mesto" type="dsComm:str48" minOccurs="0"/>
 99             <xs:element name="stat" type="dsComm:str3e" minOccurs="0"/>
100             <xs:element name="stat_text" type="dsComm:str40" minOccurs="0"/>
101             <xs:element name="gps" type="dsComm:gpsType" minOccurs="0"/>
102             <xs:element name="vztah" type="dsComm:str40" minOccurs="0"/>
103             <xs:element name="k_osoba_klic" type="dsComm:str10" minOccurs="0"/>
104             <xs:element name="k_osoba_text" type="dsComm:str50" minOccurs="0"/>
105             <xs:element name="k_osoba_pozn" type="dsComm:str40" minOccurs="0"/>
106             <xs:element name="k_osoba_typ" minOccurs="0">
107                 <xs:simpleType>
108                     <xs:restriction base="dsComm:str1">
109                         <xs:pattern value="[EPJ]"/>
110                     </xs:restriction>
111                 </xs:simpleType>
112             </xs:element>
113             <xs:element name="k_osoba_pravo" minOccurs="0">
114                 <xs:simpleType>
115                     <xs:restriction base="dsComm:str1">
116                         <xs:pattern value="[NADVS]"/>
117                     </xs:restriction>
118                 </xs:simpleType>
119             </xs:element>
120             <xs:element name="icl" type="dsComm:number8d" minOccurs="0"/>
121             <xs:element name="id_zp" type="dsComm:str10" minOccurs="0"/>
122             <xs:element name="pozn" type="dsComm:str80" minOccurs="0"/>
123             <xs:element name="autor" type="dsComm:autorType" minOccurs="0"/>
124             <xs:element name="as" type="ds:asType" minOccurs="0" maxOccurs="unbounded"/>
125             <xs:element name="aAny" type="dsComm:AnyType" minOccurs="0"/>
126         </xs:sequence>
127         <xs:attribute name="typ" type="dsComm:typAdresyType" use="required"/>
128         <xs:attribute name="ind_kont" type="dsComm:ind_kontType"/>
129         <xs:attribute name="sr_typ">
130             <xs:simpleType>
131                 <xs:restriction base="xs:string">
132                     <xs:enumeration value="L"/>
133                     <xs:enumeration value="O"/>
134                 </xs:restriction>
135             </xs:simpleType>
136         </xs:attribute>
137         <xs:attribute name="sr_pois" type="dsComm:str4"/>
138         <xs:attribute name="sr_kod" type="dsComm:str12e"/>
139         <xs:attribute name="sr_lekar" type="dsComm:str9e"/>
140     </xs:complexType>
141     <!--  as Type  -->
142     <xs:complexType name="asType">
143         <xs:sequence>
144             <xs:element name="obsah" type="dsComm:str255" minOccurs="0"/>
145             <xs:element name="vnitrni" type="dsComm:str255" minOccurs="0"/>
146             <xs:element name="sdeleni" type="dsComm:str255" minOccurs="0"/>
147             <xs:element name="heslo" type="dsComm:str40" minOccurs="0"/>
148             <xs:element name="asAny" type="dsComm:AnyType" minOccurs="0"/>
149         </xs:sequence>
150         <xs:attribute name="poradi" use="optional">
151             <xs:simpleType>
152                 <xs:restriction base="xs:string">
153                     <xs:enumeration value="0"/>
154                     <xs:enumeration value="1"/>
155                 </xs:restriction>
156             </xs:simpleType>
157         </xs:attribute>
158         <xs:attribute name="typ" use="required">
159             <xs:simpleType>
160                 <xs:restriction base="xs:string">
161                     <xs:enumeration value="D"/>
162                     <xs:enumeration value="T"/>
163                     <xs:enumeration value="B"/>
164                     <xs:enumeration value="F"/>
165                     <xs:enumeration value="S"/>
166                     <xs:enumeration value="X"/>
167                     <xs:enumeration value="M"/>
168                     <xs:enumeration value="E"/>
169                     <xs:enumeration value="I"/>
170                     <xs:enumeration value="G"/>
171                 </xs:restriction>
172             </xs:simpleType>
173         </xs:attribute>
174     </xs:complexType>
175     <!--  os Type  -->
176     <xs:complexType name="osType">
177         <xs:sequence>
178             <xs:element name="obsah2" type="xs:string"/>
179         </xs:sequence>
180         <xs:attribute name="typ" use="required">
181             <xs:simpleType>
182                 <xs:restriction base="xs:string">
183                     <xs:enumeration value="C"/>
184                 </xs:restriction>
185             </xs:simpleType>
186         </xs:attribute>
187     </xs:complexType>
188     <xs:complexType name="zdroj_isType">
189         <xs:sequence>
190             <xs:element name="zdrojisAny" type="dsComm:AnyType" minOccurs="0"/>
191         </xs:sequence>
192         <xs:attribute name="kod_firmy" type="dsComm:str8" use="required"/>
193         <xs:attribute name="kod_prog" type="dsComm:str8" use="required"/>
194         <xs:attribute name="verze_prog" type="dsComm:str8" use="optional"/>
195         <xs:attribute name="liccis_prog" type="dsComm:str8" use="optional"/>
196     </xs:complexType>
197     <xs:complexType name="pmType">
198         <xs:sequence>
199             <xs:element name="as" type="ds:asType"/>
200             <xs:element name="a" type="ds:aType" minOccurs="0"/>
201             <xs:element name="pmAny" type="dsComm:AnyType" minOccurs="0"/>
202         </xs:sequence>
203         <xs:attributeGroup ref="dsComm:icisAttrGroup"/>
204         <xs:attribute name="sr_typ">
205             <xs:simpleType>
206                 <xs:restriction base="xs:string">
207                     <xs:enumeration value="L"/>
208                     <xs:enumeration value="O"/>
209                 </xs:restriction>
210             </xs:simpleType>
211         </xs:attribute>
212         <xs:attribute name="sr_pois" type="dsComm:str4"/>
213         <xs:attribute name="sr_kod" type="dsComm:str12e"/>
214         <xs:attribute name="sr_lekar" type="dsComm:str9e"/>
215     </xs:complexType>
216     <xs:complexType name="pdType">
217         <xs:sequence>
218             <xs:element name="chyba_pd" type="ds:chyba_pdType" minOccurs="0" maxOccurs="unbounded"/>
219             <xs:element name="as" type="ds:asType"/>
220             <xs:element name="dat_os" type="dsComm:dat_xxType" minOccurs="0"/>
221             <xs:element name="dat_ps" type="dsComm:dat_xxType"/>
222         </xs:sequence>
223         <xs:attribute name="id_soubor" type="dsComm:str40" use="required"/>
224         <xs:attribute name="stav" use="required" >
225             <xs:simpleType>
226                 <xs:restriction base="xs:string">
227                     <xs:enumeration value="A"/>
228                     <xs:enumeration value="N"/>
229                     <xs:enumeration value="O"/>
230                 </xs:restriction>
231             </xs:simpleType>
232         </xs:attribute>
233     </xs:complexType>
234     <xs:complexType name="chyba_pdType">
235         <xs:simpleContent>
236             <xs:extension base="xs:string">
237                 <xs:attribute name="kod" use="required" >
238                     <xs:simpleType>
239                         <xs:restriction base="xs:string">
240                             <xs:enumeration value="000"/>
241                             <xs:enumeration value="X01"/>
242                             <xs:enumeration value="X02"/>
243                             <xs:enumeration value="X03"/>
244                             <xs:enumeration value="X04"/>
245                             <xs:enumeration value="X05"/>
246                             <xs:enumeration value="X99"/>
247                             <xs:enumeration value="D01"/>
248                             <xs:enumeration value="D02"/>
249                             <xs:enumeration value="D03"/>
250                             <xs:enumeration value="D04"/>
251                             <xs:enumeration value="D99"/>
252                             <xs:enumeration value="A01"/>
253                             <xs:enumeration value="A99"/>
254                         </xs:restriction>
255                     </xs:simpleType>
256                 </xs:attribute>
257                 <xs:attribute name="lokalizace" type="dsComm:str64" use="optional"/>
258                 <xs:attribute name="osetreni" use="optional" >
259                     <xs:simpleType>
260                         <xs:restriction base="xs:string">
261                             <xs:enumeration value="I"/>
262                             <xs:enumeration value="O"/>
263                         </xs:restriction>
264                     </xs:simpleType>
265                 </xs:attribute>
266                 <xs:attribute name="popis" type="dsComm:str255" use="optional"/>
267             </xs:extension>
268         </xs:simpleContent>
269     </xs:complexType>
270 </xs:schema>