forked from IHE-SDC-WG/SDC-Schema-Packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDCResources.xsd
1576 lines (1554 loc) · 81.8 KB
/
SDCResources.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="urn:ihe:qrph:sdc:2016" xmlns="urn:ihe:qrph:sdc:2016">
<!-- 9/15/2016 Changes for IHE Profile Trial Implementation (for Jan 2017 Connectathon) -->
<xs:include schemaLocation="SDCDataTypes.xsd"/>
<xs:complexType name="BlobType">
<xs:annotation>
<xs:documentation>Standard structure for including Binary Large Objects (Blobs) in XML
templates. Blobs can handle any type of binary media, such as images, audio, video,
and data streams of any specified format (such as a MIME type).</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Description" type="RichTextType"/>
<xs:element name="Hash" minOccurs="0" type="HashType">
<xs:annotation>
<xs:documentation>Binary hash of the blob data</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:element name="BlobURI" type="anyURI_Stype">
<xs:annotation>
<xs:documentation>This URI should contain a URL or web service link
to the Blob. It is used instead of incorporating the Blob
directly into XML templates.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BinaryMediaBase64" type="base64Binary_Stype">
<xs:annotation>
<xs:documentation>Binary represeentation of the Blob data, encoded
using a Base 64 transformation from the original source binary
data. Base 64 encoding uses 64 character alphanumeric text
(characters A–Z, a–z, 0–9, =, /) to represent the binary data,
so that it may be transmitted as "text" inside an XML instance
document without the need for escape
characters.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="mimeType" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>TBD: Must be a valid MIME type - needs enumeration</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="fileExtension" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Use a common file extension (e.g., docx) if there is no @MIME_Type available</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CodingType">
<xs:annotation>
<xs:documentation>This type represents any type of coding, terminology, classification, keyword, or local value system that may be applied to any displayable item in a
FormDesign template.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="Code" nillable="true" type="string_Stype">
<xs:annotation>
<xs:documentation>A standard code, or a local value from a custom coding system, that can be used to consistently identify, or provide a
standard value for, the coded item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="CodeText" type="RichTextType">
<xs:annotation>
<xs:documentation>The human readable text that accompanies the assigned code and represents the code's precise meaning (semantics) or
usage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodeMatch" minOccurs="0" type="CodeMatchType">
<xs:annotation>
<xs:documentation>Degree of match between the mapped item and the assigned code - @codeMatchType holds an entry from an enumerated
list of match types.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodeSystem" type="CodeSystemType" minOccurs="0"> </xs:element>
<xs:element minOccurs="0" name="CodeURI" type="anyURI_Stype">
<xs:annotation>
<xs:documentation>NEW: Web resource that provides information about the code</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="DataType" type="DataTypes_SType">
<xs:annotation>
<xs:documentation>Data type enumeration derived from W3C XML Schema. If
the code is derived from a local value system (e.g., numbered answer
choices such as clock positions, tumor grades, or clinical scoring
systems), then the data type of the local value may be specified
here. This may be important if the code value will need to me
manipulated mathematically.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Units" type="UnitsType">
<xs:annotation>
<xs:documentation/>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CodeSystemType">
<xs:annotation>
<xs:documentation>This type represents information about the coding system used in CodingType. It may refer to any type of coding, terminology, classification, keyword, or local value system.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="CodeSystemName" type="string_Stype">
<xs:annotation>
<xs:documentation>The name of the coding system, as recommended by the
coding system curators, or as recommended by the agency that creates
standards for the code map in use.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="ReleaseDate" type="dateTime_Stype">
<xs:annotation>
<xs:documentation>The day that the selected version of the coding system was released for general use by the coding system curators.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Version" type="string_Stype">
<xs:annotation>
<xs:documentation>Version of the coding system, using the version format defined by the coding system</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="OID" type="string_Stype">
<xs:annotation>
<xs:documentation>The ISO object identifier (OID) for the coding system, as found at the HL7 OID Registry: https://www.hl7.org/oid/index.cfm
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CodeSystemURI" type="anyURI_Stype">
<xs:annotation>
<xs:documentation>Web resource that uniquely identifies the coding system</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ContactType">
<xs:annotation>
<xs:documentation>A model structure for a Person or Organization that generally performs a particular stated role.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="Person" type="PersonType"/>
<xs:element maxOccurs="1" minOccurs="0" name="Organization" type="OrganizationType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="PersonType">
<xs:annotation>
<xs:documentation>A model structure for a Person object.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="PersonName" type="NameType"> </xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="AliasName" type="NameType"> </xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Job" type="JobType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="StreetAddress" type="AddressType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Email" type="EmailType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Phone" type="PhoneType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="WebURL" type="anyURI_Stype"> </xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Role" type="string_Stype">
<xs:annotation>
<xs:documentation>Role of the person, e.g., creator, copyright holder, accreditor, certifier, curator, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded" minOccurs="0"/>
<xs:element maxOccurs="1" minOccurs="0" name="Usage" type="string_Stype">
<xs:annotation>
<xs:documentation>When this person should be contacted.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="JobType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="JobTitle" type="string_Stype"/>
<xs:element maxOccurs="1" minOccurs="0" name="Organization" type="OrganizationType"/>
<xs:element minOccurs="0" name="StartDate" type="date_Stype"/>
<xs:element minOccurs="0" name="StopDate" type="date_Stype"/>
<xs:element maxOccurs="1" minOccurs="0" name="Description" type="string_Stype">
<xs:annotation>
<xs:documentation>Job Description</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="OrganizationType">
<xs:annotation>
<xs:documentation>A model structure for an Organization object.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="OrgName" type="string_Stype" nillable="true"/>
<xs:element maxOccurs="1" minOccurs="0" name="Department" type="string_Stype"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="StreetAddress" type="AddressType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Email" type="EmailType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Phone" type="PhoneType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="WebURL" type="anyURI_Stype"> </xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Role" type="string_Stype">
<xs:annotation>
<xs:documentation>Role of the organization, e.g., creator, copyright
holder, accreditor, certifier, curator, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="ContactPerson" type="PersonType"/>
<xs:element name="Identifier" type="IdentifierType" maxOccurs="unbounded" minOccurs="0"/>
<xs:element maxOccurs="1" minOccurs="0" name="Usage" type="string_Stype">
<xs:annotation>
<xs:documentation>When this organization should be
contacted.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AddressType">
<xs:annotation>
<xs:documentation>A structure for recording street/mailing addresses.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="AddressType" type="string_Stype">
<xs:annotation>
<xs:documentation>Type of address, e.g., home, office, etc</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="10" minOccurs="0" name="InternalAddress" type="string_Stype">
<xs:annotation>
<xs:documentation>Address instructions for directing mail within an organizations buildings or corporate
infrastructure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="10" minOccurs="0" name="AddressLine" type="string_Stype">
<xs:annotation>
<xs:documentation>Address instructions for directing mail to a street address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="City" type="string_Stype"/>
<xs:element maxOccurs="1" minOccurs="0" name="Jurisdiction" type="string_Stype">
<xs:annotation>
<xs:documentation>Other optional locale identifier.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="State" type="string_Stype">
<xs:annotation>
<xs:documentation>State, Province, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="PostalCode" type="string_Stype">
<xs:annotation>
<xs:documentation>Local postal code, e.g., zip code.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Country" type="string_Stype">
<xs:annotation>
<xs:documentation>**Need list of official country codes or text?</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Usage" type="string_Stype">
<xs:annotation>
<xs:documentation>When this address should be used</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="PhoneType">
<xs:annotation>
<xs:documentation>A structure for recording telephone numbers.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="PhoneType" type="string_Stype">
<xs:annotation>
<xs:documentation>Usage type of phone number, e.g., home, office, etc</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="CountryCode" type="CountryCodeType"> </xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="AreaCode" type="AreaCodeType"> </xs:element>
<xs:element name="PhoneNumber" type="PhoneNumberType"> </xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="PhoneExtension" type="string_Stype"/>
<xs:element maxOccurs="1" minOccurs="0" name="Usage" type="string_Stype">
<xs:annotation>
<xs:documentation>When this phone number should be used</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="EmailType">
<xs:annotation>
<xs:documentation>A structure for recording email addresses.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="EmailAddress" type="EmailAddressType"> </xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="EmailClass" type="string_Stype">
<xs:annotation>
<xs:documentation>Type of email, e.g., home, office, etc</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="Usage" type="string_Stype">
<xs:annotation>
<xs:documentation>When this email should be used</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="FileType">
<xs:annotation>
<xs:documentation>Information about a file, usually thought of as a binary byte stream
stored on disk. A FileType can also represent a "virtual" file, such as an XML
module in a larger XML document. Such a virtual file could theoretically be stored
as a byte stream, as an independant file on disk or as a database record or set of
records, even if this byte stream is never actually persisted as an independant disk
file.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element minOccurs="0" name="FileID" type="string_Stype">
<xs:annotation>
<xs:documentation>Internal/local File ID, not necessarily in the format
of the FileURI used for all SDC FormDesign items.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="1" name="FileURI" type="anyURI_Stype"/>
<xs:element name="DisplayName" type="string_Stype">
<xs:annotation>
<xs:documentation>Text to be displayed that encapulates the file
contents. This may be the same as the internal Title of the
file.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Title" type="string_Stype" minOccurs="0">
<xs:annotation>
<xs:documentation>Official title of the file.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Version" type="VersionType">
<xs:annotation>
<xs:documentation>File version</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="FileName" type="string_Stype">
<xs:annotation>
<xs:documentation>The name of the file as saved on disk or other persistant storage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="FileExtension" type="string_Stype">
<xs:annotation>
<xs:documentation>The file type extension that describes the file's
internal format. This is usually the 3-4 character text that appears
after the last period in the file name, e.g., txt, docx,
etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="FileClass" type="string_Stype">
<xs:annotation>
<xs:documentation>A short description of the class of file, such as "FormDesign XML"</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="FileSizeKB" type="positiveInteger_Stype"> </xs:element>
<xs:element maxOccurs="unbounded" name="Description" nillable="false" minOccurs="0" type="string_Stype">
<xs:annotation>
<xs:documentation>Any additional information about the template or file. The type of information should be specified in the @type
attribute.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Copyright" type="string_Stype"/>
<xs:element minOccurs="0" name="TermsofUse" type="string_Stype"/>
<xs:element minOccurs="0" name="Usage" type="FileUsageType">
<xs:annotation>
<xs:documentation>Guidance for when this file should be used, and when it should not be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Dates" type="FileDatesType">
<xs:annotation>
<xs:documentation>Various dates associated with the file release, versioning and usage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Contacts" type="ContactsType">
<xs:annotation>
<xs:documentation>People and Organizations associated with the file.
Specify the type of Contact in the @type attribute. Examples of
@type include Curator, Author, and Authority.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Approval" maxOccurs="unbounded" type="ApprovalType">
<xs:annotation>
<xs:documentation>Documentation of review and acceptance of the file for production usage.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="FileHash" type="FileHashType"> </xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Language" type="LanguageType"/>
<xs:element minOccurs="0" name="AssociatedFiles" type="AssociatedFilesType">
<xs:annotation>
<xs:documentation>Link to any associated files, such as schemas, reference documents, manuals, etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Provenance" type="ProvenanceType"> </xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="DefaultSubmissionRule" type="SubmissionRuleType"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="DefaultComplianceRule" type="ComplianceRuleType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="LanguageType">
<!-- The original form of this type (from ISO 19763-10 and 11179-3) is far too complex for SDC needs. -->
<xs:annotation>
<xs:documentation>A generic structure for recording languages.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="Language" type="string_Stype">
<xs:annotation>
<xs:documentation>The language used for text in SDC templates. </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LanguageCode.ISO.639.3" type="LanguageCode.ISO.639.3_Type"> </xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:attributeGroup name="versionAttributes">
<xs:annotation>
<xs:documentation>A global attribute group for recording file version metadata.</xs:documentation>
</xs:annotation>
<xs:attribute name="fullVersion" type="xs:string" use="required"/>
<xs:attribute name="versionRegExPattern" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Regular Expression that determines the format of the Full Version</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="versionLevel.1" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Provides support for a one to five part "semantic" versioning system, such as 111.222.333.444.555, in which each section separated by periods indicates a specific type of change.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="versionLevel.2" type="xs:string" use="optional"/>
<xs:attribute name="versionLevel.3" type="xs:string" use="optional"/>
<xs:attribute name="versionLevel.4" type="xs:string" use="optional"/>
<xs:attribute name="versionLevel.5" type="xs:string" use="optional"/>
</xs:attributeGroup>
<xs:complexType name="VersionType">
<xs:annotation>
<xs:documentation>A generic structure for recording file version metadata.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="VersioningReference" type="FileType" minOccurs="0">
<xs:annotation>
<xs:documentation>Information about the document that describes the versioning methodology nomenclature.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VersionComments" type="RichTextType" minOccurs="0">
<xs:annotation>
<xs:documentation>Comments about the changes in this version</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Changes" minOccurs="0">
<xs:annotation>
<xs:documentation>Itemized list of changes in the new version</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="Change" type="ChangeLogType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="versionAttributes"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AcceptabilityType">
<xs:complexContent>
<xs:restriction base="string_Stype">
<xs:attribute name="val" type="Acceptability_StypeEnum" use="required"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="Acceptability_StypeEnum">
<xs:annotation>
<xs:documentation>Enumeration for specifying the level of aceptability for SDC form items.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="preferred"/>
<xs:enumeration value="admitted">
<xs:annotation>
<xs:documentation>ISO 10241-1:2011 defines "admitted term" as: synonymous term (3.4.1.1.2) for a preferred term (3.4.1.3.1), but not rated as a preferred term by a standardizing body </xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="deprecated"/>
<xs:enumeration value="obsolete"/>
<xs:enumeration value="superseded"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ChangeLogType">
<xs:annotation>
<xs:documentation>Inforamtion about changes to file or part of a
file.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="ChangedField" type="ChangedFieldType"> </xs:element>
<xs:element name="ChangedTo" type="DataTypes_SType"/>
<xs:element name="ChangedFrom" type="DataTypes_SType" minOccurs="1"/>
<xs:element maxOccurs="unbounded" name="ChangeType" type="string_Stype"/>
<xs:element name="Replaces" maxOccurs="1" minOccurs="0" type="ReplacedIDsType">
<xs:annotation>
<xs:documentation>The retired/deprecated item that is being replaced.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ChangeDate" type="dateTime_Stype"> </xs:element>
<xs:element name="ChangeDescription" type="string_Stype" minOccurs="0"/>
<xs:element name="Editors" minOccurs="0" type="ContactsType"> </xs:element>
<xs:element minOccurs="0" name="ChangeTracking" type="ChangeTrackingType"> </xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:group name="ItemTarget">
<xs:annotation>
<xs:documentation>A pointer to an element or attribute in an XML document.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="TargetItemID" type="TargetItemIDType">
<xs:annotation>
<xs:documentation>Unique ID of the target item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TargetItemName" type="TargetItemNameType">
<xs:annotation>
<xs:documentation>@name attribute of target item. (xs:NCName is the base type of xs:ID)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TargetItemXPath" type="TargetItemXPathType">
<xs:annotation>
<xs:documentation>XPath to target item</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:group>
<xs:complexType name="ChangeType">
<xs:annotation>
<xs:documentation>A structure to describe a single change in an XML document</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:group ref="ItemTarget"/>
<xs:element name="NewValue" type="DataTypes_SType">
<xs:annotation>
<xs:documentation>The new value that the targeted item's content is set to.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="FileDatesType">
<xs:annotation>
<xs:documentation>List of standard kinds of dates that may apply to a file or its usage.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element minOccurs="0" name="FileDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="PreviousRevisionDate" maxOccurs="unbounded" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="ReleaseDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="EffectiveDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="FirstReleaseDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="UsageStartDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="RetirementDate" type="dateTime_Stype"> </xs:element>
<xs:element minOccurs="0" name="OtherDate" maxOccurs="unbounded" type="dateTime_Stype"> </xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="RichTextType">
<xs:annotation>
<xs:documentation>Representation of plain text with an option for HTML-formatting. Contains optional boilerplate metadata to aid programmatic manipulation. HTML formatting is generally contained in CDATA tags to prevent XML parsing and schema errors.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element form="qualified" name="RichText" type="HTML_Stype"/>
</xs:sequence>
<xs:attribute name="val" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="LinkType">
<xs:annotation>
<xs:documentation>A hyperlink to an Internet endpoint such as a web page or web service.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element minOccurs="0" name="LinkText" type="RichTextType">
<xs:annotation>
<xs:documentation>A description of the URI link, usually for display purposes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="1" name="LinkURI" type="anyURI_Stype">
<xs:annotation>
<xs:documentation>Link to external information.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="UnitsType">
<xs:annotation>
<xs:documentation>UnitsType represents the measurement standard and its abbreviated notation for quantifiable objects, e.g., miles, km, mm, cm, etc. The default system for standard notations is UCUM.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="string_Stype">
<xs:attribute default="UCUM" name="unitSystem" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="SubmissionRuleType">
<xs:annotation>
<xs:documentation>information about where to submit a completed form</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="1" name="Destination" type="DestinationType"> </xs:element>
<xs:element minOccurs="0" name="RuleDescription" type="string_Stype"/>
</xs:sequence>
<xs:attribute name="formID" type="URI_Atype"/>
<xs:attribute name="ruleID" type="URI_Atype" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ComplianceRuleType">
<xs:annotation>
<xs:documentation>General information about how information in a particular form package must be handled. This may include, e.g., security, completeness, transmission, and validation criteria.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1" name="Description" type="string_Stype"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="ComplianceOrganization" type="OrganizationType"/>
</xs:sequence>
<xs:attribute name="ruleID" type="URI_Atype" use="required"/>
<xs:attribute name="formID" type="URI_Atype"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:attributeGroup name="templateAttributes">
<xs:annotation>
<xs:documentation>A standard set of attributes to identify the current template, as well as a target template that the current template is dependent upon.</xs:documentation>
</xs:annotation>
<xs:attribute name="templateID" use="required">
<xs:annotation>
<xs:documentation>Globally unique identifier for this template</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="URI_Atype">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="targetTemplateID" use="required">
<xs:annotation>
<xs:documentation>Globally unique identifier for the template targeted by this template</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="URI_Atype">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="EmailAddressType">
<xs:annotation>
<xs:documentation>***Changed from BaseType to ExtensionBaseType</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:attribute name="val" use="required" type="EmailAddress_Stype"> </xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="EmailAddress_Stype">
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z0-9_\-\.\+-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9_\-\.]+"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PhoneNumberType">
<xs:annotation>
<xs:documentation>***Changed from BaseType to ExtensionBaseType</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:attribute name="val" use="required" type="PhoneNumber_Stype"> </xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="PhoneNumber_Stype">
<xs:restriction base="xs:string">
<xs:pattern value="\+?\(?\d{2,4}\)?[\d\s-]{3,}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="AreaCodeType">
<xs:complexContent>
<xs:extension base="BaseType">
<xs:attribute name="val" use="optional" type="AreaCode_Stype"> </xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="AreaCode_Stype">
<xs:restriction base="xs:unsignedShort">
<xs:maxInclusive value="999"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CountryCodeType">
<xs:complexContent>
<xs:extension base="BaseType">
<xs:attribute name="val" use="required" type="CountryCode_Stype"> </xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="CountryCode_Stype">
<xs:restriction base="xs:unsignedByte">
<xs:maxInclusive value="99"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LanguageCode.ISO.639.3_Type">
<xs:complexContent>
<xs:restriction base="string_Stype">
<xs:attribute name="val" use="required" type="LanguageCode.ISO.639.3_StypeEnum"> </xs:attribute>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="LanguageCode.ISO.639.3_StypeEnum">
<xs:annotation>
<xs:documentation> Based on ISO-639-3 Language Codes. See:
https://en.wikipedia.org/wiki/ISO_639:e</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="eng"/>
<xs:enumeration value="esp"/>
<xs:enumeration value="fra"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="NameType">
<xs:annotation>
<xs:documentation>Structure to define a person's name, including prefixes, suffixes, and degrees.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="NamePrefix" type="string_Stype" minOccurs="0"/>
<xs:element name="FirstName" type="string_Stype" nillable="true"/>
<xs:element name="MiddleName" type="string_Stype" minOccurs="0"/>
<xs:element name="LastName" type="string_Stype" nillable="true"/>
<xs:element name="NameSuffix" type="string_Stype" minOccurs="0"/>
<xs:element name="DegreeCert" type="string_Stype" maxOccurs="unbounded" minOccurs="0">
<xs:annotation>
<xs:documentation>Acronyms for degrees and certifications, e.g., MD, PhD, FACP (repeat element for each acronym)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Title" type="string_Stype" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="IdentifierType">
<xs:annotation>
<xs:documentation>A code or id that identifies a person or organization or object according to a standard system such as CLIA or NPI. The system should be specified in the @system attribute.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:attribute name="system" type="xs:string"/>
<xs:attribute name="val" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType abstract="true" name="IdentifiedExtensionType">
<xs:annotation>
<xs:documentation>This is the base type for all subtypes that require a unique URI identifier.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:attributeGroup ref="IDAttributes"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:attributeGroup name="IDAttributes">
<xs:attribute name="ID" type="URI_Atype" use="required">
<xs:annotation>
<xs:documentation>A unique identifier for critical types in FormDesign.
TODO: Needs Schematron to calidate uniqueness in each form.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="baseURI" type="URI_Atype">
<xs:annotation>
<xs:documentation>If the ID does not use the default base URI (namespace), then the local baseURI goes here. Note that all IDs must be unique within a form, even if they do not have the same baseURI.
Ideally, the baseURI + ID should combine to form a *globally* unique identifier, that uniquely identifies an item in a particular form. The same baseURI and ID may be reused in derived or versioned forms, as long as the context stays the same, and any affected data elements remain unchanged in context and semantics. Following this approach is likely to simplify analytics based on form content.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="TargetItemIDType">
<xs:complexContent>
<xs:extension base="anyURI_Stype">
<xs:attribute name="targetItemText" type="xs:string">
<xs:annotation>
<xs:documentation>Displayed text on the targetted item.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="targetProperty" type="xs:string"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TargetItemNameType">
<xs:complexContent>
<xs:extension base="BaseType">
<xs:attribute name="val" type="xs:NCName"> </xs:attribute>
<xs:attribute name="targetItemText" type="xs:string">
<xs:annotation>
<xs:documentation>Displayed text on the targetted item.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="targetProperty" type="xs:string"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TargetItemXPathType">
<xs:complexContent>
<xs:extension base="string_Stype">
<xs:attribute name="targetItemText" type="xs:string">
<xs:annotation>
<xs:documentation>Displayed text on the targetted item.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="CodeMatchType">
<xs:complexContent>
<xs:extension base="BaseType">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="CodingMatchComment" type="string_Stype">
<xs:annotation>
<xs:documentation>Comment about the degree of match between the mapped item and the assigned
code.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="codeMatchEnum" default="Exact Code Match">
<xs:annotation>
<xs:documentation>The degree of match between the coded item and the assigned code.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Exact Code Match"/>
<xs:enumeration value="Close Code Match"/>
<xs:enumeration value="Code Broader Than Item"/>
<xs:enumeration value="Code Narrower Than Item"/>
<xs:enumeration value="Item Implements Data Element Exactly"/>
<xs:enumeration value="Item Derived From Data Element"/>
<xs:enumeration value="Item Related To Data Element"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="DestinationType">
<xs:annotation>
<xs:documentation>***Changed from BaseType to ExtensionBaseType</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence maxOccurs="1">
<xs:element maxOccurs="1" minOccurs="1" name="Endpoint" type="anyURI_Stype"/>
<xs:element maxOccurs="1" minOccurs="1" name="EndpointDescription" type="string_Stype"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="SubmissionTechnology" type="string_Stype"/>
<xs:element maxOccurs="1" minOccurs="0" name="Organization" type="OrganizationType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="FileUsageType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence minOccurs="0">
<xs:element maxOccurs="unbounded" minOccurs="0" name="Included" type="CodingType">
<xs:annotation>
<xs:documentation>Reasons to use the file</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Excluded" type="CodingType">
<xs:annotation>
<xs:documentation>Reasons to not use the file</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" name="Description" nillable="false" minOccurs="0" type="string_Stype">
<xs:annotation>
<xs:documentation>Non-coded text describing usage criteria.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ContactsType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Contact" type="ContactType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ApprovalType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence minOccurs="0">
<xs:element maxOccurs="unbounded" name="ApprovalContact" type="ContactType" minOccurs="0"/>
<xs:element maxOccurs="unbounded" name="Description" nillable="false" minOccurs="0" type="string_Stype">
<xs:annotation>
<xs:documentation>Non-structured text describing file approval.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="FileHashType">
<xs:complexContent>
<xs:extension base="string_Stype">
<xs:attribute name="hashType" type="xs:string"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AssociatedFilesType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="File" type="FileType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ProvenanceType">
<xs:complexContent>
<xs:extension base="ExtensionBaseType">
<xs:sequence>
<xs:element name="ReplacedFile" type="FileType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ReplacedIDsType">
<xs:complexContent>
<xs:extension base="BaseType">
<xs:sequence maxOccurs="unbounded">