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 package ca.uhn.hl7v2.model.v27.segment;
35
36
37 import ca.uhn.hl7v2.model.v27.datatype.*;
38 import ca.uhn.hl7v2.HL7Exception;
39 import ca.uhn.hl7v2.parser.ModelClassFactory;
40 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
41 import ca.uhn.hl7v2.model.AbstractMessage;
42 import ca.uhn.hl7v2.model.Group;
43 import ca.uhn.hl7v2.model.Type;
44 import ca.uhn.hl7v2.model.AbstractSegment;
45 import ca.uhn.hl7v2.model.Varies;
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 @SuppressWarnings("unused")
63 public class TCD extends AbstractSegment {
64
65
66
67
68 public TCD(Group parent, ModelClassFactory factory) {
69 super(parent, factory);
70 init(factory);
71 }
72
73 private void init(ModelClassFactory factory) {
74 try {
75 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Universal Service Identifier");
76 this.add(SN.class, false, 1, 0, new Object[]{ getMessage() }, "Auto-Dilution Factor");
77 this.add(SN.class, false, 1, 0, new Object[]{ getMessage() }, "Rerun Dilution Factor");
78 this.add(SN.class, false, 1, 0, new Object[]{ getMessage() }, "Pre-Dilution Factor");
79 this.add(SN.class, false, 1, 0, new Object[]{ getMessage() }, "Endogenous Content of Pre-Dilution Diluent");
80 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Automatic Repeat Allowed");
81 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Reflex Allowed");
82 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Analyte Repeat Status");
83 } catch(HL7Exception e) {
84 log.error("Unexpected error creating TCD - this is probably a bug in the source code generator.", e);
85 }
86 }
87
88
89
90
91
92
93
94 public CWE getUniversalServiceIdentifier() {
95 CWE retVal = this.getTypedField(1, 0);
96 return retVal;
97 }
98
99
100
101
102
103 public CWE getTcd1_UniversalServiceIdentifier() {
104 CWE retVal = this.getTypedField(1, 0);
105 return retVal;
106 }
107
108
109
110
111
112
113
114 public SN getAutoDilutionFactor() {
115 SN retVal = this.getTypedField(2, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public SN getTcd2_AutoDilutionFactor() {
124 SN retVal = this.getTypedField(2, 0);
125 return retVal;
126 }
127
128
129
130
131
132
133
134 public SN getRerunDilutionFactor() {
135 SN retVal = this.getTypedField(3, 0);
136 return retVal;
137 }
138
139
140
141
142
143 public SN getTcd3_RerunDilutionFactor() {
144 SN retVal = this.getTypedField(3, 0);
145 return retVal;
146 }
147
148
149
150
151
152
153
154 public SN getPreDilutionFactor() {
155 SN retVal = this.getTypedField(4, 0);
156 return retVal;
157 }
158
159
160
161
162
163 public SN getTcd4_PreDilutionFactor() {
164 SN retVal = this.getTypedField(4, 0);
165 return retVal;
166 }
167
168
169
170
171
172
173
174 public SN getEndogenousContentOfPreDilutionDiluent() {
175 SN retVal = this.getTypedField(5, 0);
176 return retVal;
177 }
178
179
180
181
182
183 public SN getTcd5_EndogenousContentOfPreDilutionDiluent() {
184 SN retVal = this.getTypedField(5, 0);
185 return retVal;
186 }
187
188
189
190
191
192
193
194 public ID getAutomaticRepeatAllowed() {
195 ID retVal = this.getTypedField(6, 0);
196 return retVal;
197 }
198
199
200
201
202
203 public ID getTcd6_AutomaticRepeatAllowed() {
204 ID retVal = this.getTypedField(6, 0);
205 return retVal;
206 }
207
208
209
210
211
212
213
214 public ID getReflexAllowed() {
215 ID retVal = this.getTypedField(7, 0);
216 return retVal;
217 }
218
219
220
221
222
223 public ID getTcd7_ReflexAllowed() {
224 ID retVal = this.getTypedField(7, 0);
225 return retVal;
226 }
227
228
229
230
231
232
233
234 public CWE getAnalyteRepeatStatus() {
235 CWE retVal = this.getTypedField(8, 0);
236 return retVal;
237 }
238
239
240
241
242
243 public CWE getTcd8_AnalyteRepeatStatus() {
244 CWE retVal = this.getTypedField(8, 0);
245 return retVal;
246 }
247
248
249
250
251
252
253 protected Type createNewTypeWithoutReflection(int field) {
254 switch (field) {
255 case 0: return new CWE(getMessage());
256 case 1: return new SN(getMessage());
257 case 2: return new SN(getMessage());
258 case 3: return new SN(getMessage());
259 case 4: return new SN(getMessage());
260 case 5: return new ID(getMessage(), new Integer( 136 ));
261 case 6: return new ID(getMessage(), new Integer( 136 ));
262 case 7: return new CWE(getMessage());
263 default: return null;
264 }
265 }
266
267
268 }
269