-
Notifications
You must be signed in to change notification settings - Fork 355
Expand file tree
/
Copy pathmanifest.xsd
More file actions
executable file
·201 lines (183 loc) · 7.71 KB
/
manifest.xsd
File metadata and controls
executable file
·201 lines (183 loc) · 7.71 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.weasis.org/xsd/2.5" targetNamespace="http://www.weasis.org/xsd/2.5"
elementFormDefault="qualified">
<!-- DICOM VALUE REPRESENTATIONS -->
<!-- IS (Integer String) Restriction: leading and/or trailing spaces are
not allowed! -->
<xsd:simpleType name="dicomVrIS">
<xsd:restriction base="xsd:int"/>
</xsd:simpleType>
<!-- UI (Unique Identifier/UID) Restriction: NULL padding character is not
allowed! -->
<xsd:simpleType name="dicomVrUI">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
<xsd:pattern value="[0-9.]*"/>
</xsd:restriction>
</xsd:simpleType>
<!-- CS (Code String) -->
<xsd:simpleType name="dicomVrCS">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="16"/>
<xsd:pattern value="[A-Z0-9 _]*"/>
</xsd:restriction>
</xsd:simpleType>
<!-- LO (Long String) Note : backslash character and control characters
except for ESC character must be excluded! -->
<xsd:simpleType name="dicomVrLO">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
<!-- PN (Person Name) Note : backslash character and control characters
except for ESC character must be excluded! -->
<xsd:simpleType name="dicomVrPN">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
<!-- SH (Short String) Note : backslash character and control characters
except for ESC character must be excluded! -->
<xsd:simpleType name="dicomVrSH">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="16"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TM (Time) Format : hhmmss.frac Note : One or more of the components
mm, ss, or frac may be unspecified as long as every component to the right
of an unspecified component is also unspecified. Restrictions : - format
hh:mm:ss.frac (prior to V3.0) is not supported! - trailing spaces are not
allowed! -->
<xsd:simpleType name="dicomVrTM">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="13"/>
<xsd:pattern
value="(([0-1][0-9])|(2[0-3]))(([0-5][0-9])(([0-5][0-9])(.([0-9]{1,6}))?)?)?"/>
</xsd:restriction>
</xsd:simpleType>
<!-- DA (Date) Format : yyyymmdd Restrictions : - format yyyy.mm.dd (prior
to V3.0) is not supported! -->
<xsd:simpleType name="dicomVrDA">
<xsd:union memberTypes="xsd:gYear xsd:gMonth xsd:gDay"/>
</xsd:simpleType>
<!-- DICOM DATA ELEMENTS HAVING ENUMARETED VALUES -->
<!-- Patient Sex -->
<xsd:simpleType name="dicomPatientSex">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="M"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="O"/>
</xsd:restriction>
</xsd:simpleType>
<!-- Query Mode -->
<xsd:simpleType name="connectorType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="DB"/>
<xsd:enumeration value="DICOM"/>
<xsd:enumeration value="DICOM_WEB"/>
</xsd:restriction>
</xsd:simpleType>
<!-- WEASIS SPECIFIC DATA ELEMENTS -->
<xsd:simpleType name="dicomTagsList">
<xsd:restriction base="xsd:string">
<xsd:pattern
value="((0x[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]){1}(,0x[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F])*)?"/>
</xsd:restriction>
</xsd:simpleType>
<!-- Severity of error message -->
<xsd:simpleType name="errorSeverity">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="INFO"/>
<xsd:enumeration value="WARN"/>
<xsd:enumeration value="ERROR"/>
</xsd:restriction>
</xsd:simpleType>
<!-- DESCRIPTION OF MANIFEST XML DOCUMENT -->
<xsd:element name="manifest" type="manifest"/>
<xsd:complexType name="manifest">
<xsd:sequence>
<xsd:element name="arcQuery" type="ArcQuery" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="presentations" minOccurs="0" maxOccurs="1"/>
<xsd:element name="selections" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="uid" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="ArcQuery">
<xsd:sequence>
<xsd:element name="httpTag" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="key" type="xsd:string" use="required"/>
<xsd:attribute name="value" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Message" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:attribute name="title" type="xsd:string" use="required"/>
<xsd:attribute name="description" type="xsd:string"
use="required"/>
<xsd:attribute name="severity" type="errorSeverity"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Patient" type="Patient" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="arcId" type="xsd:string" use="required"/>
<xsd:attribute name="baseUrl" type="xsd:anyURI" use="required"/>
<xsd:attribute name="webLogin" type="xsd:string"/>
<xsd:attribute name="requireOnlySOPInstanceUID" type="xsd:boolean"/>
<xsd:attribute name="additionnalParameters" type="xsd:string"/>
<xsd:attribute name="overrideDicomTagsList" type="dicomTagsList"/>
<xsd:attribute name="queryMode" type="connectorType"/>
</xsd:complexType>
<xsd:complexType name="Patient">
<xsd:sequence>
<xsd:element name="Study" type="Study" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="PatientID" type="dicomVrLO" use="required"/>
<xsd:attribute name="PatientName" type="dicomVrPN" use="required"/>
<xsd:attribute name="IssuerOfPatientID" type="dicomVrLO"/>
<xsd:attribute name="PatientBirthDate" type="dicomVrDA"/>
<xsd:attribute name="PatientBirthTime" type="dicomVrTM"/>
<xsd:attribute name="PatientSex" type="dicomPatientSex"/>
</xsd:complexType>
<xsd:complexType name="Study">
<xsd:sequence>
<xsd:element name="Series" type="Series" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="StudyInstanceUID" type="dicomVrUI"
use="required"/>
<xsd:attribute name="StudyDescription" type="dicomVrLO"/>
<xsd:attribute name="StudyDate" type="dicomVrDA"/>
<xsd:attribute name="StudyTime" type="dicomVrTM"/>
<xsd:attribute name="AccessionNumber" type="dicomVrSH"/>
<xsd:attribute name="StudyID" type="dicomVrSH"/>
<xsd:attribute name="ReferringPhysicianName" type="dicomVrPN"/>
</xsd:complexType>
<xsd:complexType name="Series">
<xsd:sequence>
<xsd:element name="Instance" type="Instance" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="SeriesInstanceUID" type="dicomVrUI"
use="required"/>
<xsd:attribute name="SeriesDescription" type="dicomVrLO"/>
<xsd:attribute name="SeriesNumber" type="dicomVrIS"/>
<xsd:attribute name="Modality" type="dicomVrCS"/>
<xsd:attribute name="SeriesDate" type="dicomVrDA"/>
<xsd:attribute name="SeriesTime" type="dicomVrTM"/>
<xsd:attribute name="WadoTransferSyntaxUID" type="xsd:string"/>
<xsd:attribute name="WadoCompressionRate" type="xsd:integer"/>
<xsd:attribute name="DirectDownloadThumbnail" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="Instance">
<xsd:attribute name="SOPInstanceUID" type="dicomVrUI"
use="required"/>
<xsd:attribute name="SOPClassUID" type="dicomVrUI"/>
<xsd:attribute name="InstanceNumber" type="dicomVrIS"/>
<xsd:attribute name="DirectDownloadFile" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>