1 metaElem 0002 0000 "123" // Meta Group Length : to be computed later
2 metaElem 0002 0001 "\002\000\000\000" // File Meta Information Version
3 metaElem 0002 0002 "1.2.840.10008.1.3.10" // Media Stored SOP Class UID i.e. : 'Media Storage Directory Storage'
4 metaElem 0002 0003 "" // Media Stored SOP Instance UID : may be forged later
5 metaElem 0002 0010 "1.2.840.10008.1.2.1" // Transfer Syntax UID i.e. : Explicit VR - Little Endian
6 metaElem 0002 0012 "" // Implementation Class UID : may be forged later
7 metaElem 0002 0013 "gdcmLib " // Implementation Version Name don't remove trailing space !
8 metaElem 0002 0016 " " // Source Application Entity Title (our ?)
9 metaElem 0004 1130 "" // File-set ID
10 metaElem 0004 1200 "0" // Offset of the first dir of root dir entity : to be computed later
11 metaElem 0004 1202 "0" // Offset of the last dir of root dir entity : to be computed later
12 metaElem 0004 1212 "0" // File-set consistency flag
14 patientElem fffe e000 "255" // 'no length' item : length to be set to 0xffffffff later
15 patientElem 0004 1400 "0" // Offset of next directory record : = 0x0 : fffe e00d at end !
16 patientElem 0004 1410 "65535" // Record in use flag : 65535 = 0xFFFF (see 03_10PU.PDF p 31)
17 patientElem 0004 1420 "0" // Offset of referenced lower-level dir entity : to be computed later
18 patientElem 0004 1430 "PATIENT " // Directory Record Type don't remove trailing space !
19 patientElem 0008 0005 "ISO_IR 100" // Specific Character Set
20 patientElem 0010 0010 "" // Patient's Name
21 patientElem 0010 0020 "" // Patient ID
22 patientElem 0010 0030 "" // Patient's Birthdate
23 patientElem 0010 0040 "" // Patient's Sex
24 patientElem fffe e00d "" // Item delimitation : length to be set to ZERO later
26 studyElem fffe e000 "-1" // 'no length' item : length to be set to 0xffffffff later
27 studyElem 0004 1400 "0" // Offset of next directory record : = 0x0 : fffe e00d at end !
28 studyElem 0004 1410 "65535" // Record in use flag : 65535 = 0xFFFF (see 03_10PU.PDF p 31)
29 studyElem 0004 1420 "0" // Offset of referenced lower-level dir entity : to be computed later
30 studyElem 0004 1430 "STUDY " // Directory Record Type don't remove trailing space !
31 studyElem 0008 0005 "ISO_IR 100" // Specific Character Set
32 studyElem 0008 0020 "" // Study Date
33 studyElem 0008 0030 "" // Study Time
34 studyElem 0008 0050 "" // Accession Number
35 studyElem 0008 1030 "" // Study Description
36 studyElem 0020 000d "" // Study Instance UID : may be forged later
37 studyElem 0020 0010 "" // Study ID : may be forged later
38 studyElem fffe e00d "" // Item delimitation : length to be set to ZERO later
40 serieElem fffe e000 "-1" // 'no length' item : length to be set to 0xffffffff later
41 serieElem 0004 1400 "0" // Offset of next directory record : = 0x0 : fffe e00d at end !
42 serieElem 0004 1410 "65535" // Record in use flag : 65535 = 0xFFFF (see 03_10PU.PDF p 31)
43 serieElem 0004 1420 "0" // Offset of referenced lower-level dir entity : to be computed later
44 serieElem 0004 1430 "SERIES" // Directory Record Type don't add trailing space !
45 serieElem 0008 0005 "ISO_IR 100" // Specific Character Set
46 serieElem 0008 0021 "" // Series Date
47 serieElem 0008 0031 "" // Series Time
48 serieElem 0008 0060 "" // Modality
49 serieElem 0008 0080 "" // Institution Name : may be forged later
50 serieElem 0008 0081 "" // Institution Address : may be forged later
51 serieElem 0008 103e "" // Series Description : may be forged later
52 serieElem 0020 000e "" // Series Instance UID : may be forged later
53 serieElem 0020 0011 "0" // Series Number : may be forged later
54 serieElem fffe e00d "" // Item delimitation : length to be set to ZERO later
56 imageElem fffe e000 "-1" // 'no length' item : length to be set to 0xffffffff later
57 imageElem 0004 1400 "0" // Offset of next directory record : = 0x0 : fffe e00d at end !
58 imageElem 0004 1410 "65535" // Record in use flag : 65535 = 0xFFFF (see 03_10PU.PDF p 31)
59 imageElem 0004 1420 "0" // Offset of referenced lower-level dir entity : to be computed later
60 imageElem 0004 1430 "IMAGE " // Directory Record Type don't remove trailing space !
61 imageElem 0004 1500 "" // Referenced File ID : will be set later = relative File Name
62 imageElem 0004 1510 "" // Referenced SOP Class UID in File : may be forged later
63 imageElem 0004 1511 "" // Referenced SOP Instance UID in File : may be forged later
64 imageElem 0004 1512 "" // Referenced Transfer Syntax in File
65 imageElem 0008 0005 "ISO_IR 100" // Specific Character Set
66 imageElem 0008 0008 "" // Image Type
67 imageElem 0008 0016 "" // SOP Class UID : to be set/forged later
68 imageElem 0008 0018 "" // SOP Instance UID : to be set/forged later
69 imageElem 0008 0023 "" // Content Date
70 imageElem 0008 0033 "" // Content Time
71 imageElem 0020 0013 "0" // Image Number
72 imageElem 0020 0032 "1.0\1.0\1.0 " // Image Position Patient
73 imageElem 0020 0037 "1\0\0\0\1\0 " // Image Orientation Patient
74 imageElem 0020 0052 "0" // Frame of Reference UID
75 imageElem 0020 1041 "0.0" // Slice Location
76 imageElem 0028 0002 "1" // Samples per Pixel
77 imageElem 0028 0006 "0" // Planar Configuration
78 imageElem 0028 0008 "1" // Number of Frames
79 imageElem 0028 0010 "0" // Rows
80 imageElem 0028 0011 "0" // Columns
81 imageElem 0028 0030 "1.0\1.0 " // Pixel Spacing
82 imageElem 0028 1052 "0 " // Rescale Intercept
83 imageElem 0028 1053 "1 " // Rescale Slope
84 imageElem 0050 0004 "0" // Calibration Image
85 imageElem fffe e00d "" // Item delimitation : length to be set to ZERO later