File: gdcmUIDs.cxx

package info (click to toggle)
gdcm 2.4.4-3%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 32,912 kB
  • ctags: 52,166
  • sloc: cpp: 188,527; ansic: 124,526; xml: 41,799; sh: 7,162; python: 3,667; cs: 2,128; java: 1,344; lex: 1,290; tcl: 677; php: 128; makefile: 116
file content (436 lines) | stat: -rw-r--r-- 25,374 bytes parent folder | download | duplicates (2)
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

// GENERATED FILE DO NOT EDIT
// $ xsltproc UIDToC++.xsl Part6.xml > gdcmUIDs.cxx

/*=========================================================================

  Program: GDCM (Grassroots DICOM). A DICOM library

  Copyright (c) 2006-2011 Mathieu Malaterre
  All rights reserved.
  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
#include "gdcmUIDs.h"
#include <string.h> // strcmp

namespace gdcm
{
        static const char * const TransferSyntaxStrings[][2] = {
{NULL,NULL}, // Starts a 1, not 0
{"1.2.840.10008.1.1","Verification SOP Class"},
{"1.2.840.10008.1.2","Implicit VR Little Endian: Default Transfer Syntax for DICOM"},
{"1.2.840.10008.1.2.1","Explicit VR Little Endian"},
{"1.2.840.10008.1.2.1.99","Deflated Explicit VR Little Endian"},
{"1.2.840.10008.1.2.2","Explicit VR Big Endian"},
{"1.2.840.10008.1.2.4.50","JPEG Baseline (Process 1): Default Transfer Syntax for Lossy JPEG 8 Bit Image Compression"},
{"1.2.840.10008.1.2.4.51","JPEG Extended (Process 2 & 4): Default Transfer Syntax for Lossy JPEG 12 Bit Image Compression (Process 4 only)"},
{"1.2.840.10008.1.2.4.52","JPEG Extended (Process 3 & 5)"},
{"1.2.840.10008.1.2.4.53","JPEG Spectral Selection, Non-Hierarchical (Process 6 & 8)"},
{"1.2.840.10008.1.2.4.54","JPEG Spectral Selection, Non-Hierarchical (Process 7 & 9)"},
{"1.2.840.10008.1.2.4.55","JPEG Full Progression, Non-Hierarchical (Process 10 & 12)"},
{"1.2.840.10008.1.2.4.56","JPEG Full Progression, Non-Hierarchical (Process 11 & 13)"},
{"1.2.840.10008.1.2.4.57","JPEG Lossless, Non-Hierarchical (Process 14)"},
{"1.2.840.10008.1.2.4.58","JPEG Lossless, Non-Hierarchical (Process 15)"},
{"1.2.840.10008.1.2.4.59","JPEG Extended, Hierarchical (Process 16 & 18)"},
{"1.2.840.10008.1.2.4.60","JPEG Extended, Hierarchical (Process 17 & 19)"},
{"1.2.840.10008.1.2.4.61","JPEG Spectral Selection, Hierarchical (Process 20 & 22)"},
{"1.2.840.10008.1.2.4.62","JPEG Spectral Selection, Hierarchical (Process 21 & 23)"},
{"1.2.840.10008.1.2.4.63","JPEG Full Progression, Hierarchical (Process 24 & 26)"},
{"1.2.840.10008.1.2.4.64","JPEG Full Progression, Hierarchical (Process 25 & 27)"},
{"1.2.840.10008.1.2.4.65","JPEG Lossless, Hierarchical (Process 28)"},
{"1.2.840.10008.1.2.4.66","JPEG Lossless, Hierarchical (Process 29)"},
{"1.2.840.10008.1.2.4.70","JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]): Default Transfer Syntax for Lossless JPEG Image Compression"},
{"1.2.840.10008.1.2.4.80","JPEG-LS Lossless Image Compression"},
{"1.2.840.10008.1.2.4.81","JPEG-LS Lossy (Near-Lossless) Image Compression"},
{"1.2.840.10008.1.2.4.90","JPEG 2000 Image Compression (Lossless Only)"},
{"1.2.840.10008.1.2.4.91","JPEG 2000 Image Compression"},
{"1.2.840.10008.1.2.4.92","JPEG 2000 Part 2 Multi-component Image Compression (Lossless Only)"},
{"1.2.840.10008.1.2.4.93","JPEG 2000 Part 2 Multi-component Image Compression"},
{"1.2.840.10008.1.2.4.94","JPIP Referenced"},
{"1.2.840.10008.1.2.4.95","JPIP Referenced Deflate"},
{"1.2.840.10008.1.2.4.100","MPEG2 Main Profile @ Main Level"},
{"1.2.840.10008.1.2.5","RLE Lossless"},
{"1.2.840.10008.1.2.6.1","RFC 2557 MIME encapsulation"},
{"1.2.840.10008.1.2.6.2","XML Encoding"},
{"1.2.840.10008.1.3.10","Media Storage Directory Storage"},
{"1.2.840.10008.1.4.1.1","Talairach Brain Atlas Frame of Reference"},
{"1.2.840.10008.1.4.1.2","SPM2 T1 Frame of Reference"},
{"1.2.840.10008.1.4.1.3","SPM2 T2 Frame of Reference"},
{"1.2.840.10008.1.4.1.4","SPM2 PD Frame of Reference"},
{"1.2.840.10008.1.4.1.5","SPM2 EPI Frame of Reference"},
{"1.2.840.10008.1.4.1.6","SPM2 FIL T1 Frame of Reference"},
{"1.2.840.10008.1.4.1.7","SPM2 PET Frame of Reference"},
{"1.2.840.10008.1.4.1.8","SPM2 TRANSM Frame of Reference"},
{"1.2.840.10008.1.4.1.9","SPM2 SPECT Frame of Reference"},
{"1.2.840.10008.1.4.1.10","SPM2 GRAY Frame of Reference"},
{"1.2.840.10008.1.4.1.11","SPM2 WHITE Frame of Reference"},
{"1.2.840.10008.1.4.1.12","SPM2 CSF Frame of Reference"},
{"1.2.840.10008.1.4.1.13","SPM2 BRAINMASK Frame of Reference"},
{"1.2.840.10008.1.4.1.14","SPM2 AVG305T1 Frame of Reference"},
{"1.2.840.10008.1.4.1.15","SPM2 AVG152T1 Frame of Reference"},
{"1.2.840.10008.1.4.1.16","SPM2 AVG152T2 Frame of Reference"},
{"1.2.840.10008.1.4.1.17","SPM2 AVG152PD Frame of Reference"},
{"1.2.840.10008.1.4.1.18","SPM2 SINGLESUBJT1 Frame of Reference"},
{"1.2.840.10008.1.4.2.1","ICBM 452 T1 Frame of Reference"},
{"1.2.840.10008.1.4.2.2","ICBM Single Subject MRI Frame of Reference"},
{"1.2.840.10008.1.9","Basic Study Content Notification SOP Class"},
{"1.2.840.10008.1.20.1","Storage Commitment Push Model SOP Class"},
{"1.2.840.10008.1.20.1.1","Storage Commitment Push Model SOP Instance"},
{"1.2.840.10008.1.20.2","Storage Commitment Pull Model SOP Class"},
{"1.2.840.10008.1.20.2.1","Storage Commitment Pull Model SOP Instance"},
{"1.2.840.10008.1.40","Procedural Event Logging SOP Class"},
{"1.2.840.10008.1.40.1","Procedural Event Logging SOP Instance"},
{"1.2.840.10008.1.42","Substance Administration Logging SOP Class"},
{"1.2.840.10008.1.42.1","Substance Administration Logging SOP Instance"},
{"1.2.840.10008.2.6.1","DICOM UID Registry"},
{"1.2.840.10008.2.16.4","DICOM Controlled Terminology"},
{"1.2.840.10008.3.1.1.1","DICOM Application Context Name"},
{"1.2.840.10008.3.1.2.1.1","Detached Patient Management SOP Class"},
{"1.2.840.10008.3.1.2.1.4","Detached Patient Management Meta SOP Class"},
{"1.2.840.10008.3.1.2.2.1","Detached Visit Management SOP Class"},
{"1.2.840.10008.3.1.2.3.1","Detached Study Management SOP Class"},
{"1.2.840.10008.3.1.2.3.2","Study Component Management SOP Class"},
{"1.2.840.10008.3.1.2.3.3","Modality Performed Procedure Step SOP Class"},
{"1.2.840.10008.3.1.2.3.4","Modality Performed Procedure Step Retrieve SOP Class"},
{"1.2.840.10008.3.1.2.3.5","Modality Performed Procedure Step Notification SOP Class"},
{"1.2.840.10008.3.1.2.5.1","Detached Results Management SOP Class"},
{"1.2.840.10008.3.1.2.5.4","Detached Results Management Meta SOP Class"},
{"1.2.840.10008.3.1.2.5.5","Detached Study Management Meta SOP Class"},
{"1.2.840.10008.3.1.2.6.1","Detached Interpretation Management SOP Class"},
{"1.2.840.10008.4.2","Storage Service Class"},
{"1.2.840.10008.5.1.1.1","Basic Film Session SOP Class"},
{"1.2.840.10008.5.1.1.2","Basic Film Box SOP Class"},
{"1.2.840.10008.5.1.1.4","Basic Grayscale Image Box SOP Class"},
{"1.2.840.10008.5.1.1.4.1","Basic Color Image Box SOP Class"},
{"1.2.840.10008.5.1.1.4.2","Referenced Image Box SOP Class"},
{"1.2.840.10008.5.1.1.9","Basic Grayscale Print Management Meta SOP Class"},
{"1.2.840.10008.5.1.1.9.1","Referenced Grayscale Print Management Meta SOP Class"},
{"1.2.840.10008.5.1.1.14","Print Job SOP Class"},
{"1.2.840.10008.5.1.1.15","Basic Annotation Box SOP Class"},
{"1.2.840.10008.5.1.1.16","Printer SOP Class"},
{"1.2.840.10008.5.1.1.16.376","Printer Configuration Retrieval SOP Class"},
{"1.2.840.10008.5.1.1.17","Printer SOP Instance"},
{"1.2.840.10008.5.1.1.17.376","Printer Configuration Retrieval SOP Instance"},
{"1.2.840.10008.5.1.1.18","Basic Color Print Management Meta SOP Class"},
{"1.2.840.10008.5.1.1.18.1","Referenced Color Print Management Meta SOP Class"},
{"1.2.840.10008.5.1.1.22","VOI LUT Box SOP Class"},
{"1.2.840.10008.5.1.1.23","Presentation LUT SOP Class"},
{"1.2.840.10008.5.1.1.24","Image Overlay Box SOP Class"},
{"1.2.840.10008.5.1.1.24.1","Basic Print Image Overlay Box SOP Class"},
{"1.2.840.10008.5.1.1.25","Print Queue SOP Instance"},
{"1.2.840.10008.5.1.1.26","Print Queue Management SOP Class"},
{"1.2.840.10008.5.1.1.27","Stored Print Storage SOP Class"},
{"1.2.840.10008.5.1.1.29","Hardcopy Grayscale Image Storage SOP Class"},
{"1.2.840.10008.5.1.1.30","Hardcopy Color Image Storage SOP Class"},
{"1.2.840.10008.5.1.1.31","Pull Print Request SOP Class"},
{"1.2.840.10008.5.1.1.32","Pull Stored Print Management Meta SOP Class"},
{"1.2.840.10008.5.1.1.33","Media Creation Management SOP Class UID"},
{"1.2.840.10008.5.1.4.1.1.1","Computed Radiography Image Storage"},
{"1.2.840.10008.5.1.4.1.1.1.1","Digital X-Ray Image Storage - For Presentation"},
{"1.2.840.10008.5.1.4.1.1.1.1.1","Digital X-Ray Image Storage - For Processing"},
{"1.2.840.10008.5.1.4.1.1.1.2","Digital Mammography X-Ray Image Storage - For Presentation"},
{"1.2.840.10008.5.1.4.1.1.1.2.1","Digital Mammography X-Ray Image Storage - For Processing"},
{"1.2.840.10008.5.1.4.1.1.1.3","Digital Intra-oral X-Ray Image Storage - For Presentation"},
{"1.2.840.10008.5.1.4.1.1.1.3.1","Digital Intra-oral X-Ray Image Storage - For Processing"},
{"1.2.840.10008.5.1.4.1.1.2","CT Image Storage"},
{"1.2.840.10008.5.1.4.1.1.2.1","Enhanced CT Image Storage"},
{"1.2.840.10008.5.1.4.1.1.3","Ultrasound Multi-frame Image Storage"},
{"1.2.840.10008.5.1.4.1.1.3.1","Ultrasound Multi-frame Image Storage"},
{"1.2.840.10008.5.1.4.1.1.4","MR Image Storage"},
{"1.2.840.10008.5.1.4.1.1.4.1","Enhanced MR Image Storage"},
{"1.2.840.10008.5.1.4.1.1.4.2","MR Spectroscopy Storage"},
{"1.2.840.10008.5.1.4.1.1.5","Nuclear Medicine Image Storage"},
{"1.2.840.10008.5.1.4.1.1.6","Ultrasound Image Storage"},
{"1.2.840.10008.5.1.4.1.1.6.1","Ultrasound Image Storage"},
{"1.2.840.10008.5.1.4.1.1.7","Secondary Capture Image Storage"},
{"1.2.840.10008.5.1.4.1.1.7.1","Multi-frame Single Bit Secondary Capture Image Storage"},
{"1.2.840.10008.5.1.4.1.1.7.2","Multi-frame Grayscale Byte Secondary Capture Image Storage"},
{"1.2.840.10008.5.1.4.1.1.7.3","Multi-frame Grayscale Word Secondary Capture Image Storage"},
{"1.2.840.10008.5.1.4.1.1.7.4","Multi-frame True Color Secondary Capture Image Storage"},
{"1.2.840.10008.5.1.4.1.1.8","Standalone Overlay Storage"},
{"1.2.840.10008.5.1.4.1.1.9","Standalone Curve Storage"},
{"1.2.840.10008.5.1.4.1.1.9.1","Waveform Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.9.1.1","12-lead ECG Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.9.1.2","General ECG Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.9.1.3","Ambulatory ECG Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.9.2.1","Hemodynamic Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.9.3.1","Cardiac Electrophysiology Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.9.4.1","Basic Voice Audio Waveform Storage"},
{"1.2.840.10008.5.1.4.1.1.10","Standalone Modality LUT Storage"},
{"1.2.840.10008.5.1.4.1.1.11","Standalone VOI LUT Storage"},
{"1.2.840.10008.5.1.4.1.1.11.1","Grayscale Softcopy Presentation State Storage SOP Class"},
{"1.2.840.10008.5.1.4.1.1.11.2","Color Softcopy Presentation State Storage SOP Class"},
{"1.2.840.10008.5.1.4.1.1.11.3","Pseudo-Color Softcopy Presentation State Storage SOP Class"},
{"1.2.840.10008.5.1.4.1.1.11.4","Blending Softcopy Presentation State Storage SOP Class"},
{"1.2.840.10008.5.1.4.1.1.12.1","X-Ray Angiographic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.12.1.1","Enhanced XA Image Storage"},
{"1.2.840.10008.5.1.4.1.1.12.2","X-Ray Radiofluoroscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.12.2.1","Enhanced XRF Image Storage"},
{"1.2.840.10008.5.1.4.1.1.13.1.1","X-Ray 3D Angiographic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.13.1.2","X-Ray 3D Craniofacial Image Storage"},
{"1.2.840.10008.5.1.4.1.1.12.3","X-Ray Angiographic Bi-Plane Image Storage"},
{"1.2.840.10008.5.1.4.1.1.20","Nuclear Medicine Image Storage"},
{"1.2.840.10008.5.1.4.1.1.66","Raw Data Storage"},
{"1.2.840.10008.5.1.4.1.1.66.1","Spatial Registration Storage"},
{"1.2.840.10008.5.1.4.1.1.66.2","Spatial Fiducials Storage"},
{"1.2.840.10008.5.1.4.1.1.66.3","Deformable Spatial Registration Storage"},
{"1.2.840.10008.5.1.4.1.1.66.4","Segmentation Storage"},
{"1.2.840.10008.5.1.4.1.1.67","Real World Value Mapping Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1","VL Image Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.77.2","VL Multi-frame Image Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.77.1.1","VL Endoscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.1.1","Video Endoscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.2","VL Microscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.2.1","Video Microscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.3","VL Slide-Coordinates Microscopic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.4","VL Photographic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.4.1","Video Photographic Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.5.1","Ophthalmic Photography 8 Bit Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.5.2","Ophthalmic Photography 16 Bit Image Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.5.3","Stereometric Relationship Storage"},
{"1.2.840.10008.5.1.4.1.1.77.1.5.4","Ophthalmic Tomography Image Storage"},
{"1.2.840.10008.5.1.4.1.1.88.1","Text SR Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.88.2","Audio SR Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.88.3","Detail SR Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.88.4","Comprehensive SR Storage - Trial"},
{"1.2.840.10008.5.1.4.1.1.88.11","Basic Text SR Storage"},
{"1.2.840.10008.5.1.4.1.1.88.22","Enhanced SR Storage"},
{"1.2.840.10008.5.1.4.1.1.88.33","Comprehensive SR Storage"},
{"1.2.840.10008.5.1.4.1.1.88.40","Procedure Log Storage"},
{"1.2.840.10008.5.1.4.1.1.88.50","Mammography CAD SR Storage"},
{"1.2.840.10008.5.1.4.1.1.88.59","Key Object Selection Document Storage"},
{"1.2.840.10008.5.1.4.1.1.88.65","Chest CAD SR Storage"},
{"1.2.840.10008.5.1.4.1.1.88.67","X-Ray Radiation Dose SR Storage"},
{"1.2.840.10008.5.1.4.1.1.104.1","Encapsulated PDF Storage"},
{"1.2.840.10008.5.1.4.1.1.104.2","Encapsulated CDA Storage"},
{"1.2.840.10008.5.1.4.1.1.128","Positron Emission Tomography Image Storage"},
{"1.2.840.10008.5.1.4.1.1.129","Standalone PET Curve Storage"},
{"1.2.840.10008.5.1.4.1.1.481.1","RT Image Storage"},
{"1.2.840.10008.5.1.4.1.1.481.2","RT Dose Storage"},
{"1.2.840.10008.5.1.4.1.1.481.3","RT Structure Set Storage"},
{"1.2.840.10008.5.1.4.1.1.481.4","RT Beams Treatment Record Storage"},
{"1.2.840.10008.5.1.4.1.1.481.5","RT Plan Storage"},
{"1.2.840.10008.5.1.4.1.1.481.6","RT Brachy Treatment Record Storage"},
{"1.2.840.10008.5.1.4.1.1.481.7","RT Treatment Summary Record Storage"},
{"1.2.840.10008.5.1.4.1.1.481.8","RT Ion Plan Storage"},
{"1.2.840.10008.5.1.4.1.1.481.9","RT Ion Beams Treatment Record Storage"},
{"1.2.840.10008.5.1.4.1.2.1.1","Patient Root Query/Retrieve Information Model - FIND"},
{"1.2.840.10008.5.1.4.1.2.1.2","Patient Root Query/Retrieve Information Model - MOVE"},
{"1.2.840.10008.5.1.4.1.2.1.3","Patient Root Query/Retrieve Information Model - GET"},
{"1.2.840.10008.5.1.4.1.2.2.1","Study Root Query/Retrieve Information Model - FIND"},
{"1.2.840.10008.5.1.4.1.2.2.2","Study Root Query/Retrieve Information Model - MOVE"},
{"1.2.840.10008.5.1.4.1.2.2.3","Study Root Query/Retrieve Information Model - GET"},
{"1.2.840.10008.5.1.4.1.2.3.1","Patient/Study Only Query/Retrieve Information Model - FIND"},
{"1.2.840.10008.5.1.4.1.2.3.2","Patient/Study Only Query/Retrieve Information Model - MOVE"},
{"1.2.840.10008.5.1.4.1.2.3.3","Patient/Study Only Query/Retrieve Information Model - GET"},
{"1.2.840.10008.5.1.4.31","Modality Worklist Information Model - FIND"},
{"1.2.840.10008.5.1.4.32.1","General Purpose Worklist Information Model - FIND"},
{"1.2.840.10008.5.1.4.32.2","General Purpose Scheduled Procedure Step SOP Class"},
{"1.2.840.10008.5.1.4.32.3","General Purpose Performed Procedure Step SOP Class"},
{"1.2.840.10008.5.1.4.32","General Purpose Worklist Management Meta SOP Class"},
{"1.2.840.10008.5.1.4.33","Instance Availability Notification SOP Class"},
{"1.2.840.10008.5.1.4.34.1","RT Beams Delivery Instruction Storage (Supplement 74 Frozen Draft)"},
{"1.2.840.10008.5.1.4.34.2","RT Conventional Machine Verification (Supplement 74 Frozen Draft)"},
{"1.2.840.10008.5.1.4.34.3","RT Ion Machine Verification (Supplement 74 Frozen Draft)"},
{"1.2.840.10008.5.1.4.34.4","Unified Worklist and Procedure Step Service Class"},
{"1.2.840.10008.5.1.4.34.4.1","Unified Procedure Step - Push SOP Class"},
{"1.2.840.10008.5.1.4.34.4.2","Unified Procedure Step - Watch SOP Class"},
{"1.2.840.10008.5.1.4.34.4.3","Unified Procedure Step - Pull SOP Class"},
{"1.2.840.10008.5.1.4.34.4.4","Unified Procedure Step - Event SOP Class"},
{"1.2.840.10008.5.1.4.34.5","Unified Worklist and Procedure Step SOP Instance"},
{"1.2.840.10008.5.1.4.37.1","General Relevant Patient Information Query"},
{"1.2.840.10008.5.1.4.37.2","Breast Imaging Relevant Patient Information Query"},
{"1.2.840.10008.5.1.4.37.3","Cardiac Relevant Patient Information Query"},
{"1.2.840.10008.5.1.4.38.1","Hanging Protocol Storage"},
{"1.2.840.10008.5.1.4.38.2","Hanging Protocol Information Model - FIND"},
{"1.2.840.10008.5.1.4.38.3","Hanging Protocol Information Model - MOVE"},
{"1.2.840.10008.5.1.4.41","Product Characteristics Query SOP Class"},
{"1.2.840.10008.5.1.4.42","Substance Approval Query SOP Class"},
{"1.2.840.10008.15.0.3.1","dicomDeviceName"},
{"1.2.840.10008.15.0.3.2","dicomDescription"},
{"1.2.840.10008.15.0.3.3","dicomManufacturer"},
{"1.2.840.10008.15.0.3.4","dicomManufacturerModelName"},
{"1.2.840.10008.15.0.3.5","dicomSoftwareVersion"},
{"1.2.840.10008.15.0.3.6","dicomVendorData"},
{"1.2.840.10008.15.0.3.7","dicomAETitle"},
{"1.2.840.10008.15.0.3.8","dicomNetworkConnectionReference"},
{"1.2.840.10008.15.0.3.9","dicomApplicationCluster"},
{"1.2.840.10008.15.0.3.10","dicomAssociationInitiator"},
{"1.2.840.10008.15.0.3.11","dicomAssociationAcceptor"},
{"1.2.840.10008.15.0.3.12","dicomHostname"},
{"1.2.840.10008.15.0.3.13","dicomPort"},
{"1.2.840.10008.15.0.3.14","dicomSOPClass"},
{"1.2.840.10008.15.0.3.15","dicomTransferRole"},
{"1.2.840.10008.15.0.3.16","dicomTransferSyntax"},
{"1.2.840.10008.15.0.3.17","dicomPrimaryDeviceType"},
{"1.2.840.10008.15.0.3.18","dicomRelatedDeviceReference"},
{"1.2.840.10008.15.0.3.19","dicomPreferredCalledAETitle"},
{"1.2.840.10008.15.0.3.20","dicomTLSCyphersuite"},
{"1.2.840.10008.15.0.3.21","dicomAuthorizedNodeCertificateReference"},
{"1.2.840.10008.15.0.3.22","dicomThisNodeCertificateReference"},
{"1.2.840.10008.15.0.3.23","dicomInstalled"},
{"1.2.840.10008.15.0.3.24","dicomStationName"},
{"1.2.840.10008.15.0.3.25","dicomDeviceSerialNumber"},
{"1.2.840.10008.15.0.3.26","dicomInstitutionName"},
{"1.2.840.10008.15.0.3.27","dicomInstitutionAddress"},
{"1.2.840.10008.15.0.3.28","dicomInstitutionDepartmentName"},
{"1.2.840.10008.15.0.3.29","dicomIssuerOfPatientID"},
{"1.2.840.10008.15.0.3.30","dicomPreferredCallingAETitle"},
{"1.2.840.10008.15.0.3.31","dicomSupportedCharacterSet"},
{"1.2.840.10008.15.0.4.1","dicomConfigurationRoot"},
{"1.2.840.10008.15.0.4.2","dicomDevicesRoot"},
{"1.2.840.10008.15.0.4.3","dicomUniqueAETitlesRegistryRoot"},
{"1.2.840.10008.15.0.4.4","dicomDevice"},
{"1.2.840.10008.15.0.4.5","dicomNetworkAE"},
{"1.2.840.10008.15.0.4.6","dicomNetworkConnection"},
{"1.2.840.10008.15.0.4.7","dicomUniqueAETitle"},
{"1.2.840.10008.15.0.4.8","dicomTransferCapability"},
{"1.2.840.10008.5.1.4.1.1.77.1.6","VL Whole Slide Microscopy Image Storage"},
{"1.2.840.10008.5.1.4.1.1.6.2", "Enhanced US Volume Storage" },
{"1.2.840.10008.5.1.4.1.1.66.5","Surface Segmentation Storage"}, // Sup 132
{"1.2.840.10008.5.1.4.1.1.13.1.3","Breast Tomosynthesis Image Storage"},
//{"1.2.840.10008.1.4.1.1","Talairach Brain Atlas Frame of Reference"},
//{"1.2.840.10008.1.4.1.2","SPM2 T1 Frame of Reference"},
//{"1.2.840.10008.1.4.1.3","SPM2 T2 Frame of Reference"},
//{"1.2.840.10008.1.4.1.4","SPM2 PD Frame of Reference"},
//{"1.2.840.10008.1.4.1.5","SPM2 EPI Frame of Reference"},
//{"1.2.840.10008.1.4.1.6","SPM2 FIL T1 Frame of Reference"},
//{"1.2.840.10008.1.4.1.7","SPM2 PET Frame of Reference"},
//{"1.2.840.10008.1.4.1.8","SPM2 TRANSM Frame of Reference"},
//{"1.2.840.10008.1.4.1.9","SPM2 SPECT Frame of Reference"},
//{"1.2.840.10008.1.4.1.10","SPM2 GRAY Frame of Reference"},
//{"1.2.840.10008.1.4.1.11","SPM2 WHITE Frame of Reference"},
//{"1.2.840.10008.1.4.1.12","SPM2 CSF Frame of Reference"},
//{"1.2.840.10008.1.4.1.13","SPM2 BRAINMASK Frame of Reference"},
//{"1.2.840.10008.1.4.1.14","SPM2 AVG305T1 Frame of Reference"},
//{"1.2.840.10008.1.4.1.15","SPM2 AVG152T1 Frame of Reference"},
//{"1.2.840.10008.1.4.1.16","SPM2 AVG152T2 Frame of Reference"},
//{"1.2.840.10008.1.4.1.17","SPM2 AVG152PD Frame of Reference"},
//{"1.2.840.10008.1.4.1.18","SPM2 SINGLESUBJT1 Frame of Reference"},
//{"1.2.840.10008.1.4.2.1","ICBM 452 T1 Frame of Reference"},
//{"1.2.840.10008.1.4.2.2","ICBM Single Subject MRI Frame of Reference"},
{"1.2.840.113619.4.2","General Electric Magnetic Resonance Image Storage"},
{"1.2.840.113619.4.3","General Electric Computed Tomography Image Storage"},
{"1.3.12.2.1107.5.9.1","CSA Non-Image Storage"},
// iis_fp_10282r2.pdf
{"1.2.840.113619.4.26"     , "GE Private 3D Model Storage" },
{"1.2.840.113619.4.30"     , "GE Advance (PET) Raw Data Storage" },
{"2.16.840.1.113709.1.5.1" , "GEPACS_PRIVATE_IMS_INFO Storage" },
{"2.16.840.1.113709.1.2.2" , "COMPRESS_EXPRESS TRANSFER SYNTAX" },
{"1.2.840.113543.6.6.1.3.10002", "Unregistred (?) Philips3D" },
{"1.2.392.200036.9116.7.8.1.1.1", "Toshiba Private Data Storage" },
// business.fujifilm.co.uk/medical/downloads/DICOM_xg1.pdf
{"1.2.392.200036.9125.1.1.2" , "Fuji Private CR Image Storage"},
/* CREF4.09-80_iSite4.1DICOMConformance.pdf
Correction: 1.2.840113619.4.27 -> 1.2.840.113619.4.27 ... sigh
DICOM_Conformance_Statement_MR_R2.6.pdf
*/
{"1.2.840.113619.4.27"       ,"GE Nuclear Medicine private SOP Class"},
{"1.3.46.670589.11.0.0.12.1"       ,"Philips Private MR Spectrum Storage"},
{"1.3.46.670589.11.0.0.12.2"       ,"Philips Private MR Series Data Storage"},
{"1.3.46.670589.11.0.0.12.4"       ,"Philips Private MR Examcard Storage"},
{"1.3.46.670589.2.3.1.1"       ,"Philips Private Specialized XA Image"},
{"1.3.46.670589.2.4.1.1"       ,"Philips Private CX Image Storage"},
{"1.3.46.670589.2.5.1.1"       ,"Philips iE33 private 3D Object Storage"},
{"1.3.46.670589.5.0.1"       ,"Philips Private Volume Storage"},
{"1.3.46.670589.5.0.1.1"       ,"Philips Private Volume Image Reference"},
{"1.3.46.670589.5.0.10"       ,"Philips Private MR Synthetic Image Storage"},
{"1.3.46.670589.5.0.11"       ,"Philips Private MR Cardio Analysis Storage"},
{"1.3.46.670589.5.0.11.1"       ,"Philips Private MR Cardio Analysis Data"},
{"1.3.46.670589.5.0.12"       ,"Philips Private CX Synthetic Image Storage"},
{"1.3.46.670589.5.0.13"       ,"Philips Private Perfusion Image Reference"},
{"1.3.46.670589.5.0.14"       ,"Philips Private Perfusion Analysis Data"},
{"1.3.46.670589.5.0.2"       ,"Philips Private 3D Object Storage"},
{"1.3.46.670589.5.0.2.1"       ,"Philips Private 3D Object 2 Storage"},
{"1.3.46.670589.5.0.3"       ,"Philips Private Surface Storage"},
{"1.3.46.670589.5.0.3.1"       ,"Philips Private Surface 2 Storage"},
{"1.3.46.670589.5.0.4"       ,"Philips Private Composite Object Storage"},
{"1.3.46.670589.5.0.7"       ,"Philips Private MR Cardio Profile"},
{"1.3.46.670589.5.0.8"       ,"Philips Private MR Cardio"},
{"1.3.46.670589.5.0.9"       ,"Philips Private CT Synthetic Image Storage"},
/* PACS_conformance_statement_10.2P2.pdf */
{"1.2.752.24.3.7.6","Sectra Compression (Private Syntax)"},
{"1.2.752.24.3.7.7","Sectra Compression LS (Private Syntax)"},
{"1.2.840.113619.5.2", "Implicit VR Big Endian DLX (G.E Private)"},
/*DICOM_Conformance_Statement_GEMINI_R3.5_R3.6.pdf */
{"1.3.46.670589.33.1.4.1","CT-private-ELE"},
{ 0, 0 }
};


unsigned int UIDs::GetNumberOfTransferSyntaxStrings()
{
  // Do not count NULL sentinels at end
  static const unsigned int size = sizeof(TransferSyntaxStrings)/sizeof(*TransferSyntaxStrings) - 2;
  return size;
}

const char * const * UIDs::GetTransferSyntaxString(unsigned int ts)
{
  if( ts > 0 && ts <= UIDs::GetNumberOfTransferSyntaxStrings() ) return TransferSyntaxStrings[ts];
  // else return the {0x0, 0x0} sentinel (begin or end)
  assert( *TransferSyntaxStrings[ UIDs::GetNumberOfTransferSyntaxStrings() + 1 ] == 0 );
  assert( *TransferSyntaxStrings[ 0 ] == 0 );
  return TransferSyntaxStrings[ UIDs::GetNumberOfTransferSyntaxStrings() + 1 ];
}

const char* UIDs::GetUIDString(/*TSType*/ unsigned int ts)
{
  return UIDs::GetTransferSyntaxString(ts)[0];
}

const char* UIDs::GetUIDName(/*TSType*/ unsigned int ts)
{
  return UIDs::GetTransferSyntaxString(ts)[1];
}

UIDs::TransferSyntaxStringsType UIDs::GetTransferSyntaxStrings()
{
  return TransferSyntaxStrings;
}

bool UIDs::SetFromUID(const char *str)
{
  TSField = (TSType)0;
  if(!str) return false;
  //static const unsigned int size = sizeof(TransferSyntaxStrings) / sizeof(*TransferSyntaxStrings) - 1;
  TransferSyntaxStringsType uids = GetTransferSyntaxStrings();

  int i = 1; // Start at 1, not 0
  const char *p = uids[i][0];
  while( p != 0 )
    {
    if( strcmp( p, str ) == 0 )
      {
      break;
      }
    ++i;
    p = uids[i][0];
    }
  //const char * found = uids[i][1];
  if( p )
    {
    TSField = TSType(i);
    assert( TSField != (TSType)0 );
    return true;
    }

  assert( TSField == (TSType)0 );
  return false;
}

const char *UIDs::GetString() const
{
  return GetUIDString(TSField);
}
const char *UIDs::GetName() const
{
  return GetUIDName(TSField);
}

} // end namespace gdcm