-
Notifications
You must be signed in to change notification settings - Fork 5
/
oddb2xml.xsd
1228 lines (1213 loc) · 45.2 KB
/
oddb2xml.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration"
xmlns:ns1="http://wiki.oddb.org/wiki.php?pagename=Swissmedic.Datendeklaration"
>
<xs:annotation>
<xs:documentation xml:lang="en">
oddb2xml is a ruby gem developed and maintained by yweese GmbH.
The source code is available under https://github.com/zdavatz/oddb2xml.
It might be installed (Ruby >= 1.9 required) via "gem install oddb2xml".
Under http://dev.ywesee.com/Main/Oddb2xml you find more information on how the data is generated.
In this XSD file we refer to the following sources:
# swissINDEX
## Pharma: https://index.ws.e-mediat.net/Swissindex/Pharma/ws_Pharma_V101.asmx?WSDL"
## NonPharma https://index.ws.e-mediat.net/Swissindex/NonPharma/ws_NonPharma_V101.asmx?WSDL"
# Preparations.xml
## Extracted from http://bag.e-mediat.net/SL2007.Web.External/File.axd?file=XMLPublications.zip
# Packungen.xls https://www.swissmedic.ch/arzneimittel/00156/00221/00222/00230/index.html?lang=de
# Prices (ZurRose) http://zurrose.com/fileadmin/main/lib/download.php?file=/fileadmin/user_upload/downloads/ProduktUpdate/IGM11_mit_MwSt/Vollstamm/transfer.dat
# https://raw.github.com/zdavatz/oddb2xml_files/master/BM_Update.txt
see Anhang 1, 4, 5 und 6 zur AMZV; SR 821.212.22. http://www.admin.ch/opc/de/classified-compilation/20011693/
# LPPV: https://raw.github.com/zdavatz/oddb2xml_files/master/LPPV.txt
# https://www.medregbm.admin.ch/Publikation/CreateExcelListBetriebs
# https://www.medregbm.admin.ch/Publikation/CreateExcelListMedizinalPersons
# (epha-)interactions https://download.epha.ch/cleaned/matrix.csv
For historical reasons the generated *.XML have not a common layout and some fields have different meanings in different files.
The two files oddb_article and oddb_product are not normalized. There if for one swissmedic IKSNR several
packages are available you will find an entry inside oddb_article and oddb_product for each of them.
The GTIN (Global Trade Item Number, aka EAN13) is emitted as field GTIN in oddb_product.xml. Inside
oddb_article you find it as element BC inside ARTBAR (Article barcode).
Some comments for invidual fields:
NINCD: possible values are 10 => BAG-XML (SL/LS), 13 -> MiGel, 20 => (LPPV) Limitation, empty => NonPharma)
GENCD: possible values are 'O' for original and 'G' for generic, 'K' for Komplementärmedizin.
Since decembre 2015 we found some products with a 'C' which probably stands for Co-Marketing
We don't have a list of possible generics for a given original.
It is however possible find generics via ch.oddb.org where a sophisticated algorithm searches for similar medicaments
taking into account all ATC-codes and galenic information.
PHAR Pharmacode: Taken from swissINDEX or ZurRose characters 3..9
PEXF Price Ex-Factory (exkl. VAT): Taken from the ZurRose.dat characters 60..65
PPUB Public Price (inkl. VAT): Taken from the ZurRose.dat characters 66..71
SLOPLUS Selbsbehalt/deductilbe, where 1 => 40%, 2 => 10%, '' => not known
REF_DATA 1 in oddb_article if coming from a refdata source (migel, bag, swissmedic), else 0
FIRST import all data from swissINDEX
* DSCRD German name
* DSCRF French name (Products/article only from ZurRose do not have a french name)
* GTIN
GTIN may be 8, 12, 13 or 14 chars long (https://en.wikipedia.org/wiki/Global_Trade_Item_Number)
The EAN-8 code is an eight-digit barcode used usually for very small articles, such as a battery for hearing aid, where fitting a larger code onto the item would be difficult
you may test GTIN via the GS1 information GEPIR, eg www.gepir.ch or globally http://gepir.gs1.org/
Drugs registered in Switzerland have GTINs starting with 7680 (which is reserved by Swissmedic)
* PHAR
* Status
* Since STDATE
* Bezeichnung (DE / FR)
* QTY Quantity, e.g. 3 Flaschen 5 ml. The EAN13 specified that this package contains 3 bottles. Think of it as
as description of volume/size of the content.
The QTY is present in the oddb_product.xml, but not in the oddb_article.xml
In oddb_calc.xml you find QTY/UNIT, where QTY is a float and unit something like ml, mg, etc.
* ATC
* company_name (only for migel)
* GLN company_ean, field COMPNO in oddb_article
then you add the following flags via Preparations.xml
* Ex-Factory Price
* Public Price
* SL Price valid from
* decuctible/SLOPLUS
* Original / Generic
* all Limitations (go into oddb_limitations.xml)
* narcotics (FlagNarcosis) emitted as element BG with value 'Y' or 'N'
then you add the following flags via Packungen.xls
* Abgabekategorie (column 'N') as field SMCAT with the possible value
see also Abgabekategorien: https://www.swissmedic.ch/swissmedic/de/home/services/zugelassene-praeparate/human--und-tierarzneimittel.html
A Einmalige Abgabe auf ärztliche oder tierärztliche Verschreibung
B Abgabe auf ärztliche oder tierärztliche Verschreibung
C Abgabe nach Fachberatung durch Medizinalpersonen
D Abgabe nach Fachberatung
E Abgabe ohne Fachberatung
* IT IT-Number aka Index Therapeuticus: column 'E' from packages.xlsx
* ATC (if missing from swissINDEX) -> Field SubstanceSwissmedic in oddb_article.xml
* Wirkstoff (column 'O') -> Field SubstanceSwissmedic in oddb_article.xml
* Composition (column 'P') -> Field CompositionSwissmedic in oddb_product.xml
* Packungsgrösse (column 'L') -> Field PackGrSwissmedic in oddb_article.xml
* Packungseinheit(column 'L') -> Field EinheitSwissmedic in oddb_article.xml
In oddb_product.xml PRODNO must be exactly 7 digits long. For all drugs appearing in the Packungen.xlsx the
PRODNO is defined as IKSNR (column A Zulassungsnummer) + SEQ (column b Dosisstärkenummer) and the DSCRD is
taken vom refdata.
</xs:documentation>
</xs:annotation>
<xs:element name="ARTICLE">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:ART"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="DSCRD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="3" />
<xs:maxLength value="120" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DSCRF">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="3" />
<xs:maxLength value="120" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ART">
<xs:complexType>
<xs:sequence>
<xs:element name="REF_DATA">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="1" />
<xs:enumeration value="0" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" ref="ns1:PHAR"/>
<xs:element minOccurs="0" ref="ns1:SMCAT"/>
<xs:element minOccurs="0" name="GEN_PRODUCTION" type="xs:string" />
<xs:element minOccurs="0" name="INSULIN_CATEGORY" type="xs:string" />
<xs:element minOccurs="0" name="DRUG_INDEX" type="xs:string" />
<xs:element minOccurs="0" ref="ns1:SMNO"/>
<xs:element minOccurs="0" ref="ns1:PRODNO"/>
<xs:element minOccurs="0" ref="ns1:VAT"/>
<xs:element ref="ns1:SALECD"/>
<xs:choice minOccurs="0">
<xs:element ref="ns1:COOL"/>
<xs:element ref="ns1:LIMPTS" />
</xs:choice>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:CDBG"/>
<xs:element ref="ns1:BG"/>
</xs:sequence>
<xs:element ref="ns1:DSCRD"/>
<xs:element ref="ns1:DSCRF"/>
<xs:element ref="ns1:SORTD"/>
<xs:element ref="ns1:SORTF"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:SYN1D"/>
<xs:element ref="ns1:SYN1F"/>
<xs:element ref="ns1:SLOPLUS"/>
</xs:sequence>
<xs:element ref="ns1:ARTCOMP"/>
<xs:element ref="ns1:ARTBAR"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="ns1:ARTPRI"/>
<xs:element minOccurs="0" ref="ns1:ARTINS"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="PHAR" type="xs:integer"/>
<xs:element name="SMCAT">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="B"/>
<xs:enumeration value="C" />
<xs:enumeration value="D" />
<xs:enumeration value="A" />
<xs:enumeration value="E" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SMNO" type="xs:integer"/>
<xs:element name="VAT">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="2" />
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SALECD">
<xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="de">
Bedeutung ist 'A' = Aktiv,'I' = inaktiv == Ausser Handel
</xs:documentation>
<xs:documentation xml:lang="en">
meaning is 'A' = active,'I' = inactive == out of trade
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="A" />
<xs:enumeration value="I" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LIMPTS">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="10" />
<xs:enumeration value="20" />
<xs:enumeration value="30" />
<xs:enumeration value="40" />
<xs:enumeration value="50" />
<xs:enumeration value="60" />
<xs:enumeration value="80" />
<xs:enumeration value="100" />
<xs:enumeration value="120" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="COOL" type="xs:integer"/>
<xs:element name="CDBG">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="N" />
<xs:enumeration value="Y" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BG">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="N" />
<xs:enumeration value="Y" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SORTD" type="xs:string"/>
<xs:element name="SORTF" type="xs:string"/>
<xs:element name="SYN1D" type="xs:string"/>
<xs:element name="SYN1F" type="xs:string"/>
<xs:element name="SLOPLUS">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="2" />
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ARTCOMP">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:COMPNO"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="COMPNO" type="xs:integer"/>
<xs:element name="ARTBAR">
<xs:complexType>
<xs:sequence>
<xs:element name="CDTYP" type="xs:string"/>
<xs:element minOccurs="0" ref="ns1:BC"/>
<xs:element ref="ns1:BCSTAT"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="BC" type="xs:integer"/>
<xs:element name="BCSTAT" type="xs:NCName"/>
<xs:element name="ARTPRI">
<xs:complexType>
<xs:sequence>
<xs:sequence minOccurs="0">
<xs:element minOccurs="0" ref="ns1:VDAT"/>
<xs:element ref="ns1:PTYP"/>
</xs:sequence>
<xs:element minOccurs="0" ref="ns1:PRICE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PTYP">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PEXF" />
<xs:enumeration value="PPUB" />
<xs:enumeration value="ZURROSE" />
<xs:enumeration value="ZURROSEPUB" />
<xs:enumeration value="RESELLERPUB" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRICE" type="xs:decimal"/>
<xs:element name="ARTINS">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:NINCD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NINCD">
<xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="en">
possible values are 10 => BAG-XML (SL/LS), 13 -> MiGel, 20 => (LPPV) Limitation, empty => NonPharma)
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:byte">
<xs:enumeration value="10" />
<xs:enumeration value="20" />
<xs:enumeration value="13" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ARTICLEMD">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:ARTMD"/>
<xs:element ref="ns1:RESULTMD"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="ARTMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:PHARMD"/>
<xs:element minOccurs="0" ref="ns1:SMCATMD"/>
<xs:element minOccurs="0" ref="ns1:SMNOMD"/>
<xs:element minOccurs="0" ref="ns1:PRODNOMD"/>
<xs:element ref="ns1:SALECDMD"/>
<xs:choice minOccurs="0">
<xs:element ref="ns1:COOLMD"/>
<xs:element ref="ns1:LIMPTSMD"/>
</xs:choice>
<xs:element ref="ns1:CDBGMD"/>
<xs:element ref="ns1:BGMD"/>
<xs:element ref="ns1:QTYMD"/>
<xs:element ref="ns1:DSCRDMD"/>
<xs:element ref="ns1:DSCRFMD"/>
<xs:element ref="ns1:SORTDMD"/>
<xs:element ref="ns1:SORTFMD"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:SYN1DMD"/>
<xs:element ref="ns1:SYN1FMD"/>
<xs:element ref="ns1:SLOPLUSMD"/>
</xs:sequence>
<xs:element ref="ns1:ARTCOMPMD"/>
<xs:element ref="ns1:ARTBARMD"/>
<xs:element minOccurs="0" ref="ns1:ARTINSMD"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="PHARMD" type="xs:integer"/>
<xs:element name="SMCATMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="B" />
<xs:enumeration value="C" />
<xs:enumeration value="D" />
<xs:enumeration value="A" />
<xs:enumeration value="E" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SMNOMD" type="xs:integer"/>
<xs:element name="SALECDMD" type="xs:NCName"/>
<xs:element name="COOLMD" type="xs:integer"/>
<xs:element name="LIMPTSMD">
<xs:simpleType>
<xs:restriction base="xs:integer"/>
</xs:simpleType>
</xs:element>
<xs:element name="CDBGMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="N" />
<xs:enumeration value="Y" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BGMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="N" />
<xs:enumeration value="Y" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SORTDMD" type="xs:string"/>
<xs:element name="SORTFMD" type="xs:string"/>
<xs:element name="SYN1DMD" type="xs:string"/>
<xs:element name="SYN1FMD" type="xs:string"/>
<xs:element name="SLOPLUSMD">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="2" />
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ARTCOMPMD">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:COMPNOMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="COMPNOMD" type="xs:integer"/>
<xs:element name="ARTBARMD">
<xs:complexType>
<xs:sequence>
<xs:element name="CDTYPMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="E13" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element ref="ns1:BCMD"/>
<xs:element ref="ns1:BCSTATMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="BCMD" type="xs:integer"/>
<xs:element name="BCSTATMD" type="xs:NCName"/>
<xs:element name="ARTPRIMD">
<xs:complexType>
<xs:sequence>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:PTYPMD"/>
</xs:sequence>
<xs:element minOccurs="0" ref="ns1:PRICEMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PTYPMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PEXF" />
<xs:enumeration value="PPUB" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRICEMD" type="xs:decimal"/>
<xs:element name="ARTINSMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:NINCDMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="NINCDMD">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="10" />
<xs:enumeration value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Betriebe">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:Betrieb"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Betrieb">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:GLN_Betrieb"/>
<xs:element ref="ns1:Betriebsname_1"/>
<xs:element minOccurs="0" ref="ns1:Betriebsname_2"/>
<xs:element minOccurs="0" ref="ns1:Strasse"/>
<xs:element minOccurs="0" ref="ns1:Nummer"/>
<xs:element ref="ns1:PLZ"/>
<xs:element ref="ns1:Ort"/>
<xs:element ref="ns1:Bewilligungskanton"/>
<xs:element ref="ns1:Land"/>
<xs:element ref="ns1:Betriebstyp"/>
<xs:element ref="ns1:BTM_Berechtigung"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="GLN_Betrieb" type="xs:integer"/>
<xs:element name="Betriebsname_1" type="xs:string"/>
<xs:element name="Betriebsname_2" type="xs:string"/>
<xs:element name="Strasse" type="xs:string"/>
<xs:element name="Nummer" type="xs:string"/>
<xs:element name="Betriebstyp">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Spitalapotheke, Andere" />
<xs:enumeration value="öffentliche Apotheke" />
<xs:enumeration value="wissenschaftliches Institut" />
<xs:enumeration value="kantonale Behörde" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BTM_Berechtigung">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="6011 Verzeichnis a/b/c BetmVV-EDI" />
<xs:enumeration value="6026 Verzeichnis a/b/c/f BetmVV-EDI" />
<xs:enumeration value="6001 Verzeichnis a BetmVV-EDI" />
<xs:enumeration value="6008 Verzeichnis b/c BetmVV-EDI" />
<xs:enumeration value="6020 Verzeichnis f BetmVV-EDI" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CODE">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:CD"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="CD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:CDTYP"/>
<xs:element ref="ns1:CDVAL"/>
<xs:element ref="ns1:DSCRSD"/>
<xs:element ref="ns1:DEL"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="CODEMD">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:CDMD"/>
<xs:element ref="ns1:RESULTMD"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="CDMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:CDTYPMD"/>
<xs:element ref="ns1:CDVALMD"/>
<xs:element ref="ns1:DSCRSDMD"/>
<xs:element ref="ns1:DELMD"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="DSCRSDMD" type="xs:string"/>
<xs:element name="INTERACTION">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:IX"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="IX">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:IXNO"/>
<xs:element ref="ns1:TITD"/>
<xs:element ref="ns1:GRP1D"/>
<xs:element ref="ns1:GRP2D"/>
<xs:element ref="ns1:EFFD"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:RLV"/>
<xs:element ref="ns1:RLVD"/>
</xs:sequence>
<xs:element ref="ns1:MECHD"/>
<xs:element ref="ns1:MEASD"/>
<xs:element ref="ns1:DEL"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="IXNO" type="xs:integer"/>
<xs:element name="TITD" type="xs:string"/>
<xs:element name="GRP1D" type="xs:NCName"/>
<xs:element name="GRP2D" type="xs:string"/>
<xs:element name="EFFD" type="xs:string"/>
<xs:element name="RLV">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="16" />
<xs:enumeration value="13" />
<xs:enumeration value="11" />
<xs:enumeration value="14" />
<xs:enumeration value="15" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RLVD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="keine Massnahmen" />
<xs:enumeration value="Kombination meiden" />
<xs:enumeration value="Kontraindiziert" />
<xs:enumeration value="Monitorisieren" />
<xs:enumeration value="Vorsichtsmassnahmen" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MECHD" type="xs:string"/>
<xs:element name="MEASD" type="xs:string"/>
<xs:element name="INTERACTIONMD">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:IXMD"/>
<xs:element ref="ns1:RESULTMD"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="IXMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:IXNOMD"/>
<xs:element ref="ns1:TITDMD"/>
<xs:element ref="ns1:GRP1DMD"/>
<xs:element ref="ns1:GRP2DMD"/>
<xs:element ref="ns1:EFFDMD"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:RLVMD"/>
<xs:element ref="ns1:RLVDMD"/>
</xs:sequence>
<xs:element ref="ns1:MECHDMD"/>
<xs:element ref="ns1:MEASDMD"/>
<xs:element ref="ns1:DELMD"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="IXNOMD" type="xs:integer"/>
<xs:element name="TITDMD" type="xs:string"/>
<xs:element name="GRP1DMD" type="xs:NCName"/>
<xs:element name="GRP2DMD" type="xs:string"/>
<xs:element name="EFFDMD" type="xs:string"/>
<xs:element name="RLVMD">
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:enumeration value="16" />
<xs:enumeration value="13" />
<xs:enumeration value="11" />
<xs:enumeration value="14" />
<xs:enumeration value="15" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RLVDMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="keine Massnahmen" />
<xs:enumeration value="Kombination meiden" />
<xs:enumeration value="Kontraindiziert" />
<xs:enumeration value="Monitorisieren" />
<xs:enumeration value="Vorsichtsmassnahmen" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MECHDMD" type="xs:string"/>
<xs:element name="MEASDMD" type="xs:string"/>
<xs:element name="LIMITATION">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:LIM"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="LIM">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="ns1:Pharmacode"/>
<xs:element ref="ns1:SwissmedicNo5"/>
<xs:element ref="ns1:SwissmedicNo8"/>
</xs:choice>
<xs:element ref="ns1:IT"/>
<xs:element ref="ns1:LIMTYP"/>
<xs:element ref="ns1:LIMVAL"/>
<xs:element ref="ns1:LIMNAMEBAG"/>
<xs:element ref="ns1:LIMNIV"/>
<xs:element name="DSCRD" type="xs:string"/>
<xs:element name="DSCRF" type="xs:string"/>
<xs:element ref="ns1:VDAT"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Pharmacode" type="xs:integer"/>
<xs:element name="SwissmedicNo5" type="xs:integer"/>
<xs:element name="SwissmedicNo8" type="xs:integer"/>
<xs:element name="LIMTYP">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="DIA" />
<xs:enumeration value="KOM" />
<xs:enumeration value="PKT" />
<xs:enumeration value="AUD" />
<xs:enumeration value="ZEI" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LIMVAL" type="xs:string"/>
<xs:element name="LIMNAMEBAG" type="xs:string"/>
<xs:element name="LIMNIV">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="IP" />
<xs:enumeration value="I" />
<xs:enumeration value="P" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LIMITATIONMD">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:LIMMD"/>
<xs:element ref="ns1:RESULTMD"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="LIMMD">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="ns1:PharmacodeMD"/>
<xs:element ref="ns1:SwissmedicNo5MD"/>
<xs:element ref="ns1:SwissmedicNo8MD"/>
</xs:choice>
<xs:element ref="ns1:ITMD"/>
<xs:element ref="ns1:LIMTYPMD"/>
<xs:element ref="ns1:LIMVALMD"/>
<xs:element ref="ns1:LIMNAMEBAGMD"/>
<xs:element ref="ns1:LIMNIVMD"/>
<xs:element name="DSCRDMD" type="xs:string"/>
<xs:element name="DSCRFMD" type="xs:string"/>
<xs:element ref="ns1:VDATMD"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="PharmacodeMD" type="xs:integer"/>
<xs:element name="SwissmedicNo5MD" type="xs:integer"/>
<xs:element name="SwissmedicNo8MD" type="xs:integer"/>
<xs:element name="LIMTYPMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="DIA" />
<xs:enumeration value="KOM" />
<xs:enumeration value="PKT" />
<xs:enumeration value="AUD" />
<xs:enumeration value="ZEI" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LIMVALMD">
<xs:simpleType>
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:element>
<xs:element type="xs:string" name="LIMNAMEBAGMD"/>
<xs:element name="LIMNIVMD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="IP" />
<xs:enumeration value="I" />
<xs:enumeration value="P" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRODUCT">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:PRD"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="PRD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:GTIN"/>
<xs:element minOccurs="0" ref="ns1:PRODNO"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:DSCRD"/>
<xs:element ref="ns1:DSCRF"/>
</xs:sequence>
<xs:element minOccurs="0" ref="ns1:ADINFD"/>
<xs:element minOccurs="0" ref="ns1:ADINFF"/>
<xs:element minOccurs="0" ref="ns1:GENCD"/>
<xs:element minOccurs="0" ref="ns1:ATC"/>
<xs:element minOccurs="0" ref="ns1:IT"/>
<xs:element minOccurs="0" ref="ns1:ORPH"/>
<xs:element ref="ns1:CPT"/>
<xs:element minOccurs="0" ref="ns1:PackGrSwissmedic"/>
<xs:element minOccurs="0" ref="ns1:EinheitSwissmedic"/>
<xs:element minOccurs="0" ref="ns1:SubstanceSwissmedic"/>
<xs:element minOccurs="0" ref="ns1:CompositionSwissmedic"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="GTIN" type="xs:integer"/>
<xs:element name="ADINFD" type="xs:string"/>
<xs:element name="ADINFF" type="xs:string"/>
<xs:element name="GENCD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="C" />
<xs:enumeration value="O" />
<xs:enumeration value="K" />
<xs:enumeration value="G" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ATC" type="xs:NCName"/>
<xs:element name="ORPH" type="xs:boolean"/>
<xs:element name="CPT">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="ns1:CPTCMP"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CPTCMP">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:LINE"/>
<xs:element ref="ns1:SUBNO"/>
<xs:element minOccurs="0" ref="ns1:QTY"/>
<xs:element minOccurs="0" ref="ns1:QTYU"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LINE" type="xs:integer"/>
<xs:element name="QTYU" type="xs:string"/>
<xs:element name="PackGrSwissmedic" type="xs:string"/>
<xs:element name="EinheitSwissmedic" type="xs:string"/>
<xs:element name="SubstanceSwissmedic" type="xs:string"/>
<xs:element name="CompositionSwissmedic" type="xs:string"/>
<xs:element name="PRODUCTMD">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:PRDMD"/>
<xs:element ref="ns1:RESULTMD"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="PROD_DATE" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="PRDMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:GTINMD"/>
<xs:element minOccurs="0" ref="ns1:PRODNOMD"/>
<xs:sequence minOccurs="0">
<xs:element ref="ns1:DSCRDMD"/>
<xs:element ref="ns1:DSCRFMD"/>
</xs:sequence>
<xs:element minOccurs="0" ref="ns1:ADINFDMD"/>
<xs:element minOccurs="0" ref="ns1:ADINFFMD"/>
<xs:element minOccurs="0" ref="ns1:GENCDMD"/>
<xs:element minOccurs="0" ref="ns1:ATCMD"/>
<xs:element minOccurs="0" ref="ns1:ITMD"/>
<xs:element minOccurs="0" ref="ns1:ORPHMD"/>
<xs:element ref="ns1:CPTMD"/>
<xs:element minOccurs="0" ref="ns1:PackGrSwissmedicMD"/>
<xs:element minOccurs="0" ref="ns1:EinheitSwissmedicMD"/>
<xs:element minOccurs="0" ref="ns1:SubstanceSwissmedicMD"/>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="GTINMD" type="xs:integer"/>
<xs:element name="ADINFDMD" type="xs:string"/>
<xs:element name="ADINFFMD" type="xs:string"/>
<xs:element name="GENCDMD" type="xs:NCName"/>
<xs:element name="ATCMD" type="xs:NCName"/>
<xs:element name="ORPHMD" type="xs:boolean"/>
<xs:element name="CPTMD">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="ns1:CPTCMPMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CPTCMPMD">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:LINEMD"/>
<xs:element ref="ns1:SUBNOMD"/>
<xs:element minOccurs="0" ref="ns1:QTYMD"/>
<xs:element minOccurs="0" ref="ns1:QTYUMD"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LINEMD" type="xs:integer"/>
<xs:element name="QTYUMD" type="xs:string"/>
<xs:element name="PackGrSwissmedicMD" type="xs:string"/>
<xs:element name="EinheitSwissmedicMD" type="xs:string"/>
<xs:element name="SubstanceSwissmedicMD" type="xs:string"/>
<xs:element name="Personen">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ns1:Person"/>
<xs:element ref="ns1:RESULT"/>
</xs:sequence>
<xs:attribute name="CREATION_DATETIME" use="required"/>
<xs:attribute name="VALID_DATE" use="required"/>
<xs:attribute name="GENERATED_BY" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="Person">
<xs:complexType>
<xs:sequence>
<xs:element ref="ns1:GLN_Person"/>
<xs:element ref="ns1:Name"/>
<xs:element ref="ns1:Vorname"/>
<xs:element minOccurs="0" ref="ns1:PLZ"/>
<xs:element ref="ns1:Ort"/>
<xs:element ref="ns1:Bewilligungskanton"/>
<xs:element ref="ns1:Land"/>
<xs:element ref="ns1:Bewilligung_Selbstdispensation"/>
<xs:element ref="ns1:Diplom"/>
<xs:element name="BTM_Berechtigung">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Ja" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="DT" use="required"/>
<xs:attribute type="xs:string" name="SHA256" use="required"/>
</xs:complexType>