-
Notifications
You must be signed in to change notification settings - Fork 0
/
datatypes-base_SDTC.xsd
1856 lines (1850 loc) · 77 KB
/
datatypes-base_SDTC.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:sch="http://www.ascc.net/xml/schematron" xmlns:sdtc="urn:hl7-org:sdtc" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:import namespace="urn:hl7-org:sdtc" schemaLocation="SDTC.xsd" />
<xs:annotation>
<xs:documentation>XML schema for message type POCD_MT000040.</xs:documentation>
<xs:documentation>
Copyright (c) 2015 Health Level Seven.
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
3. All advertising materials mentioning features or use of this
software must display the following acknowledgement:
This product includes software developed by Health Level Seven.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
</xs:documentation>
<xs:documentation>
2012-07-06 Created datatypes-base_SDTC.xsd (this file) this file is an edited version of datatypes-base.xsd that contains the SDTC extensions.
</xs:documentation>
<xs:documentation>
2012-07-06 Added extensions approved by SDWG prior to 2012-07-06:
valueSet,
valuesetVersion
</xs:documentation>
<xs:documentation>
2015-12-26 Commented out Schematron validation rule on II datatype
</xs:documentation>
<xs:documentation>
2017-10-10 Fixed ED datatype bug approved by SD on 2017-09-13 to allow other content in ED
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="voc.xsd" />
<xs:complexType name="ANY" abstract="true">
<xs:annotation>
<xs:documentation>
Defines the basic properties of every data value. This
is an abstract type, meaning that no value can be just
a data value without belonging to any concrete type.
Every concrete type is a specialization of this
general abstract DataValue type.
</xs:documentation>
</xs:annotation>
<xs:attribute name="nullFlavor" type="NullFlavor" use="optional">
<xs:annotation>
<xs:documentation>
An exceptional value expressing missing information
and possibly the reason why the information is missing.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="bl">
<xs:annotation>
<xs:documentation>
The Boolean type stands for the values of two-valued logic.
A Boolean value can be either true or
false, or, as any other value may be NULL.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:boolean">
<xs:pattern value="true|false" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="BL">
<xs:annotation>
<xs:documentation>
The Boolean type stands for the values of two-valued logic.
A Boolean value can be either true or
false, or, as any other value may be NULL.
</xs:documentation>
<xs:appinfo>
<sch:pattern name="validate BL">
<sch:rule abstract="true" id="rule-BL">
<sch:report test="(@nullFlavor or @value) and not(@nullFlavor and @value)" />
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:attribute name="value" use="optional" type="bl" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="bn">
<xs:annotation>
<xs:documentation>
The BooleanNonNull type is used where a Boolean cannot
have a null value. A Boolean value can be either
true or false.
</xs:documentation>
</xs:annotation>
<xs:restriction base="bl" />
</xs:simpleType>
<xs:complexType name="ANYNonNull">
<xs:annotation>
<xs:documentation>
The BooleanNonNull type is used where a Boolean cannot
have a null value. A Boolean value can be either
true or false.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="ANY">
<xs:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="BN">
<xs:annotation>
<xs:documentation>
The BooleanNonNull type is used where a Boolean cannot
have a null value. A Boolean value can be either
true or false.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANYNonNull">
<xs:attribute name="value" use="optional" type="bn" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="BIN" abstract="true" mixed="true">
<xs:annotation>
<xs:documentation>
Binary data is a raw block of bits. Binary data is a
protected type that MUST not be used outside the data
type specification.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:attribute name="representation" use="optional" type="BinaryDataEncoding" default="TXT">
<xs:annotation>
<xs:documentation>
Specifies the representation of the binary data that
is the content of the binary data value.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="bin">
<xs:annotation>
<xs:documentation>
Binary data is a raw block of bits. Binary data is a
protected type that MUST not be used outside the data
type specification.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:base64Binary" />
</xs:simpleType>
<xs:simpleType name="BinaryDataEncoding">
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="B64" />
<xs:enumeration value="TXT" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ED" mixed="true">
<xs:annotation>
<xs:documentation>
Data that is primarily intended for human interpretation
or for further machine processing is outside the scope of
HL7. This includes unformatted or formatted written language,
multimedia data, or structured information as defined by a
different standard (e.g., XML-signatures.) Instead of the
data itself, an ED may contain
only a reference (see TEL.) Note
that the ST data type is a
specialization of
when the is text/plain.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="BIN">
<xs:sequence>
<xs:element name="reference" type="TEL" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
A telecommunication address (TEL), such as a URL
for HTTP or FTP, which will resolve to precisely
the same binary data that could as well have been
provided as inline data.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="thumbnail" minOccurs="0" maxOccurs="1" type="thumbnail" />
<!-- Begin Schema Fix: Added to fix Schema to allow XML/XHTML content in ED data type -->
<xs:any minOccurs="0" namespace="##other" processContents="skip" />
<!-- End Schema Fix: Added to fix Schema to allow XML/XHTML content in ED data type -->
</xs:sequence>
<xs:attribute name="mediaType" type="cs" use="optional" default="text/plain">
<xs:annotation>
<xs:documentation>
Identifies the type of the encapsulated data and
identifies a method to interpret or render the data.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="language" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
For character based information the language property
specifies the human language of the text.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="compression" type="CompressionAlgorithm" use="optional">
<xs:annotation>
<xs:documentation>
Indicates whether the raw byte data is compressed,
and what compression algorithm was used.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="integrityCheck" type="bin" use="optional">
<xs:annotation>
<xs:documentation>
The integrity check is a short binary value representing
a cryptographically strong checksum that is calculated
over the binary data. The purpose of this property, when
communicated with a reference is for anyone to validate
later whether the reference still resolved to the same
data that the reference resolved to when the encapsulated
data value with reference was created.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="integrityCheckAlgorithm" type="IntegrityCheckAlgorithm" use="optional" default="SHA-1">
<xs:annotation>
<xs:documentation>
Specifies the algorithm used to compute the
integrityCheck value.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="thumbnail" mixed="true">
<xs:annotation>
<xs:documentation>
A thumbnail is an abbreviated rendition of the full
data. A thumbnail requires significantly fewer
resources than the full data, while still maintaining
some distinctive similarity with the full data. A
thumbnail is typically used with by-reference
encapsulated data. It allows a user to select data
more efficiently before actually downloading through
the reference.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="ED">
<xs:sequence>
<xs:element name="reference" type="TEL" minOccurs="0" maxOccurs="1" />
<xs:element name="thumbnail" type="thumbnail" minOccurs="0" maxOccurs="0" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="st">
<xs:annotation>
<xs:documentation>
The character string data type stands for text data,
primarily intended for machine processing (e.g.,
sorting, querying, indexing, etc.) Used for names,
symbols, and formal expressions.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ST" mixed="true">
<xs:annotation>
<xs:documentation>
The character string data type stands for text data,
primarily intended for machine processing (e.g.,
sorting, querying, indexing, etc.) Used for names,
symbols, and formal expressions.
</xs:documentation>
<xs:appinfo>
<sch:pattern name="validate ST">
<sch:rule abstract="true" id="rule-ST">
<sch:report test="(@nullFlavor or text()) and not(@nullFlavor and text())">
<p xmlns:gsd="http://aurora.regenstrief.org/GenericXMLSchema" xmlns:xlink="http://www.w3.org/TR/WD-xlink">Text content is only allowed in non-NULL values.</p>
</sch:report>
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="ED">
<xs:sequence>
<xs:element name="reference" type="TEL" minOccurs="0" maxOccurs="0" />
<xs:element name="thumbnail" type="ED" minOccurs="0" maxOccurs="0" />
</xs:sequence>
<xs:attribute name="representation" type="BinaryDataEncoding" fixed="TXT" />
<xs:attribute name="mediaType" type="cs" fixed="text/plain" />
<xs:attribute name="language" type="cs" use="optional" />
<xs:attribute name="compression" type="CompressionAlgorithm" use="prohibited" />
<xs:attribute name="integrityCheck" type="bin" use="prohibited" />
<xs:attribute name="integrityCheckAlgorithm" type="IntegrityCheckAlgorithm" use="prohibited" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="cs">
<xs:annotation>
<xs:documentation>
Coded data in its simplest form, consists of a code.
The code system and code system version is fixed by
the context in which the value occurs. is used
for coded attributes that have a single HL7-defined
value set.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:pattern value="[^\s]+" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CD">
<xs:annotation>
<xs:documentation>
A concept descriptor represents any kind of concept usually
by giving a code defined in a code system. A concept
descriptor can contain the original text or phrase that
served as the basis of the coding and one or more
translations into different coding systems. A concept
descriptor can also contain qualifiers to describe, e.g.,
the concept of a "left foot" as a postcoordinated term built
from the primary code "FOOT" and the qualifier "LEFT".
In exceptional cases, the concept descriptor need not
contain a code but only the original text describing
that concept.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:sequence>
<xs:element name="originalText" type="ED" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The text or phrase used as the basis for the coding.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qualifier" type="CR" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
Specifies additional codes that increase the
specificity of the primary code.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="translation" type="CD" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
A set of other concept descriptors that translate
this concept descriptor into other code systems.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
Specifies the code system that defines the code.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A common name of the coding system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemVersion" type="st" use="optional">
<xs:annotation>
<xs:documentation>
If applicable, a version descriptor defined
specifically for the given code system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A name or title for the code, under which the sending
system shows the code value to its users.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<!-- Begin Extensions: SDTC -->
<xs:attribute ref="sdtc:valueSet" use="optional" />
<xs:attribute ref="sdtc:valueSetVersion" use="optional" />
<!-- End Extensions: SDTC -->
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CE">
<xs:annotation>
<xs:documentation>
Coded data, consists of a coded value (CV)
and, optionally, coded value(s) from other coding systems
that identify the same concept. Used when alternative
codes may exist.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="CD">
<xs:sequence>
<xs:element name="originalText" type="ED" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The text or phrase used as the basis for the coding.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qualifier" type="CR" minOccurs="0" maxOccurs="0" />
<xs:element name="translation" type="CD" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
A set of other concept descriptors that translate
this concept descriptor into other code systems.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
Specifies the code system that defines the code.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A common name of the coding system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemVersion" type="st" use="optional">
<xs:annotation>
<xs:documentation>
If applicable, a version descriptor defined
specifically for the given code system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A name or title for the code, under which the sending
system shows the code value to its users.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CV">
<xs:annotation>
<xs:documentation>
Coded data, consists of a code, display name, code system,
and original text. Used when a single code value must be sent.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="CE">
<xs:sequence>
<xs:element name="originalText" type="ED" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The text or phrase used as the basis for the coding.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="translation" type="CD" minOccurs="0" maxOccurs="0" />
</xs:sequence>
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
Specifies the code system that defines the code.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A common name of the coding system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemVersion" type="st" use="optional">
<xs:annotation>
<xs:documentation>
If applicable, a version descriptor defined
specifically for the given code system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A name or title for the code, under which the sending
system shows the code value to its users.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CS">
<xs:annotation>
<xs:documentation>
Coded data, consists of a code, display name, code system,
and original text. Used when a single code value must be sent.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="CV">
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="prohibited" />
<xs:attribute name="codeSystemName" type="st" use="prohibited" />
<xs:attribute name="codeSystemVersion" type="st" use="prohibited" />
<xs:attribute name="displayName" type="st" use="prohibited" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CO">
<xs:annotation>
<xs:documentation>
Coded data, where the domain from which the codeset comes
is ordered. The Coded Ordinal data type adds semantics
related to ordering so that models that make use of such
domains may introduce model elements that involve statements
about the order of the terms in a domain.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="CV" />
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CR">
<xs:annotation>
<xs:documentation>
A concept qualifier code with optionally named role.
Both qualifier role and value codes must be defined by
the coding system. For example, if SNOMED RT defines a
concept "leg", a role relation "has-laterality", and
another concept "left", the concept role relation allows
to add the qualifier "has-laterality: left" to a primary
code "leg" to construct the meaning "left leg".
</xs:documentation>
<xs:appinfo>
<sch:pattern name="validate CR">
<sch:rule abstract="true" id="rule-CR">
<sch:report test="(value or @nullFlavor) and not(@nullFlavor and node())">
<p xmlns:gsd="http://aurora.regenstrief.org/GenericXMLSchema" xmlns:xlink="http://www.w3.org/TR/WD-xlink">
A value component is required or else the
code role is NULL.
</p>
</sch:report>
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:sequence>
<xs:element name="name" type="CV" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
Specifies the manner in which the concept role value
contributes to the meaning of a code phrase. For
example, if SNOMED RT defines a concept "leg", a role
relation "has-laterality", and another concept "left",
the concept role relation allows to add the qualifier
"has-laterality: left" to a primary code "leg" to
construct the meaning "left leg". In this example
"has-laterality" is .
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="value" type="CD" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The concept that modifies the primary code of a code
phrase through the role relation. For example, if
SNOMED RT defines a concept "leg", a role relation
"has-laterality", and another concept "left", the
concept role relation allows adding the qualifier
"has-laterality: left" to a primary code "leg" to
construct the meaning "left leg". In this example
"left" is .
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="inverted" type="bn" use="optional" default="false">
<xs:annotation>
<xs:documentation>
Indicates if the sense of the role name is inverted.
This can be used in cases where the underlying code
system defines inversion but does not provide reciprocal
pairs of role names. By default, inverted is false.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="SC" mixed="true">
<xs:annotation>
<xs:documentation>
An ST that optionally may have a code attached.
The text must always be present if a code is present. The
code is often a local code.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ST">
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
Specifies the code system that defines the code.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A common name of the coding system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemVersion" type="st" use="optional">
<xs:annotation>
<xs:documentation>
If applicable, a version descriptor defined
specifically for the given code system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A name or title for the code, under which the sending
system shows the code value to its users.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="uid">
<xs:annotation>
<xs:documentation>
A unique identifier string is a character string which
identifies an object in a globally unique and timeless
manner. The allowable formats and values and procedures
of this data type are strictly controlled by HL7. At this
time, user-assigned identifiers may be certain character
representations of ISO Object Identifiers ()
and DCE
Universally Unique Identifiers ().
HL7 also reserves
the right to assign other forms of UIDs (,
such as mnemonic
identifiers for code systems.
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="oid uuid ruid" />
</xs:simpleType>
<xs:simpleType name="oid">
<xs:annotation>
<xs:documentation />
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-2](\.(0|[1-9][0-9]*))*" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="uuid">
<xs:annotation>
<xs:documentation />
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ruid">
<xs:annotation>
<xs:documentation />
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z][A-Za-z0-9\-]*" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="II">
<xs:annotation>
<xs:documentation>
An identifier that uniquely identifies a thing or object.
Examples are object identifier for HL7 RIM objects,
medical record number, order id, service catalog item id,
Vehicle Identification Number (VIN), etc. Instance
identifiers are defined based on ISO object identifiers.
</xs:documentation>
<!-- SDTC: Removed as per http://www.hl7.org/dstucomments/showdetail_comment.cfm?commentid=346 -->
<!--<xs:appinfo>
<sch:pattern name="validate II">
<sch:rule abstract="true" id="rule-II">
<sch:report test="(@root or @nullFlavor) and not(@root and @nullFlavor)">
A root component is required or else the II value is NULL.
</sch:report>
</sch:rule>
</sch:pattern>
</xs:appinfo>-->
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:attribute name="root" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
A unique identifier that guarantees the global uniqueness
of the instance identifier. The root alone may be the
entire instance identifier.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="extension" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A character string as a unique identifier within the
scope of the identifier root.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="assigningAuthorityName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A human readable name or mnemonic for the assigning
authority. This name may be provided solely for the
convenience of unaided humans interpreting an value
and can have no computational meaning. Note: no
automated processing must depend on the assigning
authority name to be present in any form.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayable" type="bl" use="optional">
<xs:annotation>
<xs:documentation>
Specifies if the identifier is intended for human
display and data entry (displayable = true) as
opposed to pure machine interoperation (displayable
= false).
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="url">
<xs:annotation>
<xs:documentation>
A telecommunications address specified according to
Internet standard RFC 1738
[http://www.ietf.org/rfc/rfc1738.txt]. The
URL specifies the protocol and the contact point defined
by that protocol for the resource. Notable uses of the
telecommunication address data type are for telephone and
telefax numbers, e-mail addresses, Hypertext references,
FTP references, etc.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:anyURI" />
</xs:simpleType>
<xs:complexType name="URL" abstract="true">
<xs:annotation>
<xs:documentation>
A telecommunications address specified according to
Internet standard RFC 1738
[http://www.ietf.org/rfc/rfc1738.txt]. The
URL specifies the protocol and the contact point defined
by that protocol for the resource. Notable uses of the
telecommunication address data type are for telephone and
telefax numbers, e-mail addresses, Hypertext references,
FTP references, etc.
</xs:documentation>
<xs:appinfo>
<sch:pattern name="validate URL">
<sch:rule abstract="true" id="rule-URL">
<sch:report test="(@nullFlavor or @value) and not(@nullFlavor and @value)" />
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ANY">
<xs:attribute name="value" type="url" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="ts">
<xs:annotation>
<xs:documentation>
A quantity specifying a point on the axis of natural time.
A point in time is most often represented as a calendar
expression.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,8}|([0-9]{9,14}|[0-9]{14,14}\.[0-9]+)([+\-][0-9]{1,4})?" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="TS">
<xs:annotation>
<xs:documentation>
A quantity specifying a point on the axis of natural time.
A point in time is most often represented as a calendar
expression.
</xs:documentation>
<xs:appinfo>
<diff>PQ</diff>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="QTY">
<xs:attribute name="value" use="optional" type="ts" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TEL">
<xs:annotation>
<xs:documentation>
A telephone number (voice or fax), e-mail address, or
other locator for a resource (information or service)
mediated by telecommunication equipment. The address
is specified as a URL
qualified by time specification and use codes that help
in deciding which address to use for a given time and
purpose.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="URL">
<xs:sequence>
<xs:element name="useablePeriod" minOccurs="0" maxOccurs="unbounded" type="SXCM_TS">
<xs:annotation>
<xs:documentation>
Specifies the periods of time during which the
telecommunication address can be used. For a
telephone number, this can indicate the time of day
in which the party can be reached on that telephone.
For a web address, it may specify a time range in
which the web content is promised to be available
under the given address.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="use" use="optional" type="set_TelecommunicationAddressUse">
<xs:annotation>
<xs:documentation>
One or more codes advising a system or user which
telecommunication address in a set of like addresses
to select for a given telecommunication need.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ADXP" mixed="true">
<xs:annotation>
<xs:documentation>
A character string that may have a type-tag signifying its
role in the address. Typical parts that exist in about
every address are street, house number, or post box,
postal code, city, country but other roles may be defined
regionally, nationally, or on an enterprise level (e.g. in
military addresses). Addresses are usually broken up into
lines, which are indicated by special line-breaking
delimiter elements (e.g., DEL).
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ST">
<xs:attribute name="partType" type="AddressPartType">
<xs:annotation>
<xs:documentation>
Specifies whether an address part names the street,
city, country, postal code, post box, etc. If the type
is NULL the address part is unclassified and would
simply appear on an address label as is.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType mixed="true" name="adxp.delimiter">
<xs:complexContent>
<xs:restriction base="ADXP">
<xs:attribute name="partType" type="AddressPartType" fixed="DEL" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType mixed="true" name="adxp.country">
<xs:complexContent>
<xs:restriction base="ADXP">
<xs:attribute name="partType" type="AddressPartType" fixed="CNT" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType mixed="true" name="adxp.state">
<xs:complexContent>
<xs:restriction base="ADXP">
<xs:attribute name="partType" type="AddressPartType" fixed="STA" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType mixed="true" name="adxp.county">
<xs:complexContent>
<xs:restriction base="ADXP">
<xs:attribute name="partType" type="AddressPartType" fixed="CPA" />
</xs:restriction>