1 /*[-  HEADER FILE  -------------------------------------------------------------------------*/
2 /*
3    Name:        ds_head_image_text_type.h
4 
5    Description: The header file defines the data set image text for internal
6                 use (internal image text area).
7 
8                 The image text parameter names are not NEMA item names. Parameters with
9                 equal names can but must not contain equal information.
10 
11                 The sign "->" means, this parameter is derivated from listed NEMA items.
12 
13                 For more information please see document "Data Set Format" chapter "Group
14                 0051'H Image Text".
15 
16 
17    Author:      THUMSER, Andreas (TH); Siemens AG UBMed CMS/SCE64; phone: 09131 844797
18 */
19 /*]-----------------------------------------------------------------------------------------*/
20 
21 #ifndef DS_HEAD_IMAGE_TEXT_TYPE
22 #define DS_HEAD_IMAGE_TEXT_TYPE
23 
24 /* PRECOMPILER: define length constants */
25 #define DS_PATIENT_NUMBER_SIZE                                                             12
26 
27 #define DS_PATIENT_DATE_SIZE                                                               11
28 
29 #define DS_PATIENT_POSITION_SIZE                                                           11
30 
31 #define DS_IMAGE_NUMBER_SIZE                                                               11
32 #define DS_IMAGE_NUMBER_TEXT                                                          "IMAGE"
33 
34 #define DS_LABEL_SIZE                                                                       5
35 
36 #define DS_DATE_OF_MEASUREMENT_SIZE                                                        11
37 
38 #define DS_TIME_OF_MEASUREMENT_SIZE                                                         5
39 
40 #define DS_TIME_OF_ACQUISITION_SIZE                                                        11
41 #define DS_TIME_OF_ACQUISITION_TEXT_CT                                                   "TI"
42 #define DS_TIME_OF_ACQUISITION_TEXT_MR                                                  "TA "
43 
44 #define DS_NUMBER_OF_ACQUISITIONS_SIZE                                                     11
45 #define DS_NUMBER_OF_ACQUISITIONS_TEXT                                                   "AC"
46 
47 #define DS_COMMENT_NO1_SIZE                                                                26
48 
49 #define DS_COMMENT_NO2_SIZE                                                                26
50 
51 #define DS_INSTALLATION_NAME_SIZE                                                          26
52 
53 #define DS_SOFTWARE_VERSION_SIZE                                                           11
54 
55 #define DS_MATRIX_SIZE                                                                     11
56 
57 #define DS_TYPE_OF_MEASUREMENT_SIZE                                                        11
58 
59 #define DS_SCAN_NUMBER_SIZE                                                                11
60 #define DS_SCAN_NUMBER_TEXT                                                            "SCAN"
61 
62 #define DS_REPETITION_TIME_SIZE                                                            11
63 #define DS_REPETITION_TIME_TEXT                                                          "TR"
64 
65 #define DS_ECHO_TIME_SIZE                                                                  11
66 #define DS_ECHO_TIME_TEXT                                                                "TE"
67 
68 #define DS_GATING_AND_TRIGGER_SIZE                                                         11
69 #define DS_GATING_AND_TRIGGER_TEXT                                                       "TD"
70 
71 #define DS_TUBE_CURRENT_SIZE                                                               11
72 #define DS_TUBE_CURRENT_TEXT                                                             "mA"
73 
74 #define DS_TUBE_VOLTAGE_SIZE                                                               11
75 #define DS_TUBE_VOLTAGE_TEXT                                                             "kV"
76 
77 #define DS_SLICE_THICKNESS_SIZE                                                            11
78 #define DS_SLICE_THICKNESS_TEXT                                                          "SL"
79 
80 #define DS_SLICE_POSITION_SIZE                                                             11
81 #define DS_SLICE_POSITION_TEXT                                                           "SP"
82 
83 #define DS_SLICE_ORIENTATION_NO1_SIZE                                                      11
84 #define DS_SLICE_ORIENTATION_NO2_SIZE                           DS_SLICE_ORIENTATION_NO1_SIZE
85 #define DS_COR_TEXT                                                                     "Cor"
86 #define DS_SAG_TEXT                                                                     "Sag"
87 #define DS_TRA_TEXT                                                                     "Tra"
88 
89 #define DS_FIELD_OF_VIEW_SIZE                                                              11
90 #define DS_FIELD_OF_VIEW_TEXT                                                           "FoV"
91 
92 #define DS_ZOOM_CENTER_SIZE                                                                11
93 #define DS_ZOOM_CENTER_TEXT                                                              "CE"
94 #define DS_ZOOM_CENTER_TEXT_MR                                                           "MF"
95 
96 #define DS_GANTRY_TILT_SIZE                                                                11
97 #define DS_GANTRY_TILT_TEXT                                                              "GT"
98 
99 #define DS_TABLE_POSITION_SIZE                                                             11
100 #define DS_TABLE_POSITION_TEXT                                                           "TP"
101 
102 #define DS_MIP_HEADLINE_SIZE                                                                3
103 #define DS_MIP_HEADLINE_TEXT                                                            "VOI"
104 
105 #define DS_MIP_LINE_SIZE                                                                   15
106 #define DS_MIP_LINE_TEXT                                                                "Lin"
107 
108 #define DS_MIP_COLUMN_SIZE                                                                 15
109 #define DS_MIP_COLUMN_TEXT                                                              "Col"
110 
111 #define DS_MIP_SLICE_SIZE                                                                  15
112 #define DS_MIP_SLICE_TEXT                                                               "Sli"
113 
114 #define DS_STUDY_NUMBER_SIZE                                                               11
115 #define DS_STUDY_NUMBER_TEXT                                                          "STUDY"
116 
117 #define DS_CONTRAST_SIZE                                                                    5
118 #define DS_CONTRAST_TEXT_CT                                                           "+C IV"
119 #define DS_CONTRAST_TEXT_MR                                                           "+C   "
120 #define DS_CONTRAST_TEXT_NONE                                                         "     "
121 
122 #define DS_PATIENT_BIRTHDATE_SIZE                                                          11
123 
124 #define DS_SEQUENCE_INFO_SIZE                                                              11
125 
126 #define DS_SATURATION_REGIONS_SIZE                                                         11
127 #define DS_SATURATION_REGIONS_TEXT                                                      "SAT"
128 
129 #define DS_DATA_SET_ID_SIZE                                                                26
130 #define DS_DATA_SET_ID_TEXT_STUDY                                                       "STU"
131 #define DS_DATA_SET_ID_TEXT_IMAGE                                                       "IMA"
132 #define DS_DATA_SET_ID_TEXT_DELIMITER                                                     "/"
133 
134 #define DS_MAGNIFICATION_FACTOR_SIZE                                                       11
135 #define DS_MAGNIFICATION_FACTOR_TEXT                                                     "MF"
136 
137 #define DS_MANUFACTURER_MODEL_SIZE                                                         26
138 
139 #define DS_PATIENT_NAME_SIZE                                                               26
140 
141 #define DS_TIME_OF_SCANNING_SIZE                                                            8
142 
143 
144 
145 /* DECLARATION: image text type */
146 
147 typedef struct image_text_tag
148 {
149   char PatientNumber[DS_PATIENT_NUMBER_SIZE + 1];	   /* -> Patient Id */
150   char PatientSexAndAge[DS_PATIENT_DATE_SIZE + 1];	   /* -> Patient Sex, Patient Age */
151   char PatientPosition[DS_PATIENT_POSITION_SIZE + 1];	   /* -> Patient Rest Direction, ... */
152   char ImageNumber[DS_IMAGE_NUMBER_SIZE + 1];		   /* -> Image */
153   char Label[DS_LABEL_SIZE + 1];			   /* -> Archiving Mark Mask, ... */
154   char DateOfMeasurement[DS_DATE_OF_MEASUREMENT_SIZE + 1]; /* -> Acquisition Date */
155   char TimeOfMeasurement[DS_TIME_OF_MEASUREMENT_SIZE + 1]; /* -> Acquisition Time */
156   char TimeOfAcquisition[DS_TIME_OF_ACQUISITION_SIZE + 1]; /* -> CT: Exposure Time -> MR:
157 							      Total Measurement Time */
158   char NumberOfAcquisitions[DS_NUMBER_OF_ACQUISITIONS_SIZE + 1];	/* -> Number of Averages */
159   char CommentNo1[DS_COMMENT_NO1_SIZE + 1];		   /* -> Procedure Description */
160   char CommentNo2[DS_COMMENT_NO2_SIZE + 1];
161   char InstallationName[DS_INSTALLATION_NAME_SIZE + 1];	   /* -> Institution ID */
162   char SoftwareVersion[DS_SOFTWARE_VERSION_SIZE + 1];	   /* -> Software Version */
163   char Matrix[DS_MATRIX_SIZE + 1];			   /* -> Rows, Columns */
164   char TypeOfMeasurement[DS_TYPE_OF_MEASUREMENT_SIZE + 1]; /* -> Calculation Mode */
165   char ScanNumber[DS_SCAN_NUMBER_SIZE + 1];		   /* -> Acquisition */
166   char RepetitionTime[DS_REPETITION_TIME_SIZE + 1];	   /* -> Repetition Time */
167   char EchoTime[DS_ECHO_TIME_SIZE + 1];			   /* -> Echo Time */
168   char GatingAndTrigger[DS_GATING_AND_TRIGGER_SIZE + 1];   /* -> Signal Mask */
169   char TubeCurrent[DS_TUBE_CURRENT_SIZE + 1];		   /* -> Exposure */
170   char TubeVoltage[DS_TUBE_VOLTAGE_SIZE + 1];		   /* -> Generator Power */
171   char SliceThickness[DS_SLICE_THICKNESS_SIZE + 1];	   /* -> Slice Thickness */
172   char SlicePosition[DS_SLICE_POSITION_SIZE + 1];	   /* -> Image Distance */
173   char SliceOrientationNo1[DS_SLICE_ORIENTATION_NO1_SIZE + 1];	/* -> Image Position, ... */
174   char SliceOrientationNo2[DS_SLICE_ORIENTATION_NO2_SIZE + 1];
175   char FieldOfView[DS_FIELD_OF_VIEW_SIZE + 1];		   /* -> Field of View */
176   char ZoomCenter[DS_ZOOM_CENTER_SIZE + 1];		   /* -> Target */
177   char GantryTilt[DS_GANTRY_TILT_SIZE + 1];		   /* -> Gantry Tilt */
178   char TablePosition[DS_TABLE_POSITION_SIZE + 1];	   /* -> Location */
179   char MipHeadLine[DS_MIP_HEADLINE_SIZE + 1];		   /* -> <string> */
180   char MipLine[DS_MIP_LINE_SIZE + 1];			   /* -> MIP x Row */
181   char MipColumn[DS_MIP_COLUMN_SIZE + 1];		   /* -> MIP x Column */
182   char MipSlice[DS_MIP_SLICE_SIZE + 1];			   /* -> MIP x Slice */
183   char StudyNumber[DS_STUDY_NUMBER_SIZE + 1];		   /* -> Study */
184   char Contrast[DS_CONTRAST_SIZE + 1];			   /* -> Contrast Agent */
185   char PatientBirthdate[DS_PATIENT_BIRTHDATE_SIZE + 1];    /* -> Patient Birthday */
186   char SequenceInformation[DS_SEQUENCE_INFO_SIZE + 1];     /* -> Sequence File Owner, ... */
187   char SaturationRegions[DS_SATURATION_REGIONS_SIZE + 1];  /* -> Saturation Regions, ... */
188   char DataSetId[DS_DATA_SET_ID_SIZE + 1];                 /* -> Image, Study */
189   char MagnificationFactor[DS_MAGNIFICATION_FACTOR_SIZE + 1]; /* -> Image Maginification Factor */
190   char ManufacturerModel[DS_MANUFACTURER_MODEL_SIZE + 1];  /* -> Manufacturer Model */
191   char PatientName[DS_PATIENT_NAME_SIZE + 1];              /* -> Patient Name */
192   char TimeOfScanning[DS_TIME_OF_SCANNING_SIZE + 1];	   /* -> Acquisition Time */
193 } image_text_t;
194 
195 #endif
196