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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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
63
64
65
66
67
68 @SuppressWarnings("unused")
69 public class DG1 extends AbstractSegment {
70
71
72
73
74 public DG1(Group parent, ModelClassFactory factory) {
75 super(parent, factory);
76 init(factory);
77 }
78
79 private void init(ModelClassFactory factory) {
80 try {
81 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "SET ID - DIAGNOSIS");
82 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(53) }, "DIAGNOSIS CODING METHOD");
83 this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(51) }, "DIAGNOSIS CODE");
84 this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "DIAGNOSIS DESCRIPTION");
85 this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DIAGNOSIS DATE/TIME");
86 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(52) }, "DIAGNOSIS/DRG TYPE");
87 this.add(ST.class, false, 1, 4, new Object[]{ getMessage() }, "MAJOR DIAGNOSTIC CATEGORY");
88 this.add(ID.class, false, 1, 4, new Object[]{ getMessage(), new Integer(55) }, "DIAGNOSTIC RELATED GROUP");
89 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "DRG APPROVAL INDICATOR");
90 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(56) }, "DRG GROUPER REVIEW CODE");
91 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(83) }, "OUTLIER TYPE");
92 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "OUTLIER DAYS");
93 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "OUTLIER COST");
94 this.add(ST.class, false, 1, 4, new Object[]{ getMessage() }, "GROUPER VERSION AND TYPE");
95 } catch(HL7Exception e) {
96 log.error("Unexpected error creating DG1 - this is probably a bug in the source code generator.", e);
97 }
98 }
99
100
101
102
103
104
105
106 public SI getSETIDDIAGNOSIS() {
107 SI retVal = this.getTypedField(1, 0);
108 return retVal;
109 }
110
111
112
113
114
115 public SI getDg11_SETIDDIAGNOSIS() {
116 SI retVal = this.getTypedField(1, 0);
117 return retVal;
118 }
119
120
121
122
123
124
125
126 public ID getDIAGNOSISCODINGMETHOD() {
127 ID retVal = this.getTypedField(2, 0);
128 return retVal;
129 }
130
131
132
133
134
135 public ID getDg12_DIAGNOSISCODINGMETHOD() {
136 ID retVal = this.getTypedField(2, 0);
137 return retVal;
138 }
139
140
141
142
143
144
145
146 public ID getDIAGNOSISCODE() {
147 ID retVal = this.getTypedField(3, 0);
148 return retVal;
149 }
150
151
152
153
154
155 public ID getDg13_DIAGNOSISCODE() {
156 ID retVal = this.getTypedField(3, 0);
157 return retVal;
158 }
159
160
161
162
163
164
165
166 public ST getDIAGNOSISDESCRIPTION() {
167 ST retVal = this.getTypedField(4, 0);
168 return retVal;
169 }
170
171
172
173
174
175 public ST getDg14_DIAGNOSISDESCRIPTION() {
176 ST retVal = this.getTypedField(4, 0);
177 return retVal;
178 }
179
180
181
182
183
184
185
186 public TS getDIAGNOSISDATETIME() {
187 TS retVal = this.getTypedField(5, 0);
188 return retVal;
189 }
190
191
192
193
194
195 public TS getDg15_DIAGNOSISDATETIME() {
196 TS retVal = this.getTypedField(5, 0);
197 return retVal;
198 }
199
200
201
202
203
204
205
206 public ID getDIAGNOSISDRGTYPE() {
207 ID retVal = this.getTypedField(6, 0);
208 return retVal;
209 }
210
211
212
213
214
215 public ID getDg16_DIAGNOSISDRGTYPE() {
216 ID retVal = this.getTypedField(6, 0);
217 return retVal;
218 }
219
220
221
222
223
224
225
226 public ST getMAJORDIAGNOSTICCATEGORY() {
227 ST retVal = this.getTypedField(7, 0);
228 return retVal;
229 }
230
231
232
233
234
235 public ST getDg17_MAJORDIAGNOSTICCATEGORY() {
236 ST retVal = this.getTypedField(7, 0);
237 return retVal;
238 }
239
240
241
242
243
244
245
246 public ID getDIAGNOSTICRELATEDGROUP() {
247 ID retVal = this.getTypedField(8, 0);
248 return retVal;
249 }
250
251
252
253
254
255 public ID getDg18_DIAGNOSTICRELATEDGROUP() {
256 ID retVal = this.getTypedField(8, 0);
257 return retVal;
258 }
259
260
261
262
263
264
265
266 public ID getDRGAPPROVALINDICATOR() {
267 ID retVal = this.getTypedField(9, 0);
268 return retVal;
269 }
270
271
272
273
274
275 public ID getDg19_DRGAPPROVALINDICATOR() {
276 ID retVal = this.getTypedField(9, 0);
277 return retVal;
278 }
279
280
281
282
283
284
285
286 public ID getDRGGROUPERREVIEWCODE() {
287 ID retVal = this.getTypedField(10, 0);
288 return retVal;
289 }
290
291
292
293
294
295 public ID getDg110_DRGGROUPERREVIEWCODE() {
296 ID retVal = this.getTypedField(10, 0);
297 return retVal;
298 }
299
300
301
302
303
304
305
306 public ID getOUTLIERTYPE() {
307 ID retVal = this.getTypedField(11, 0);
308 return retVal;
309 }
310
311
312
313
314
315 public ID getDg111_OUTLIERTYPE() {
316 ID retVal = this.getTypedField(11, 0);
317 return retVal;
318 }
319
320
321
322
323
324
325
326 public NM getOUTLIERDAYS() {
327 NM retVal = this.getTypedField(12, 0);
328 return retVal;
329 }
330
331
332
333
334
335 public NM getDg112_OUTLIERDAYS() {
336 NM retVal = this.getTypedField(12, 0);
337 return retVal;
338 }
339
340
341
342
343
344
345
346 public NM getOUTLIERCOST() {
347 NM retVal = this.getTypedField(13, 0);
348 return retVal;
349 }
350
351
352
353
354
355 public NM getDg113_OUTLIERCOST() {
356 NM retVal = this.getTypedField(13, 0);
357 return retVal;
358 }
359
360
361
362
363
364
365
366 public ST getGROUPERVERSIONANDTYPE() {
367 ST retVal = this.getTypedField(14, 0);
368 return retVal;
369 }
370
371
372
373
374
375 public ST getDg114_GROUPERVERSIONANDTYPE() {
376 ST retVal = this.getTypedField(14, 0);
377 return retVal;
378 }
379
380
381
382
383
384
385 protected Type createNewTypeWithoutReflection(int field) {
386 switch (field) {
387 case 0: return new SI(getMessage());
388 case 1: return new ID(getMessage(), new Integer( 53 ));
389 case 2: return new ID(getMessage(), new Integer( 51 ));
390 case 3: return new ST(getMessage());
391 case 4: return new TS(getMessage());
392 case 5: return new ID(getMessage(), new Integer( 52 ));
393 case 6: return new ST(getMessage());
394 case 7: return new ID(getMessage(), new Integer( 55 ));
395 case 8: return new ID(getMessage(), new Integer( 0 ));
396 case 9: return new ID(getMessage(), new Integer( 56 ));
397 case 10: return new ID(getMessage(), new Integer( 83 ));
398 case 11: return new NM(getMessage());
399 case 12: return new NM(getMessage());
400 case 13: return new ST(getMessage());
401 default: return null;
402 }
403 }
404
405
406 }
407