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.v23.segment;
35  
36  
37  import ca.uhn.hl7v2.model.v23.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  
69  
70  
71  
72  
73  @SuppressWarnings("unused")
74  public class DG1 extends AbstractSegment {
75  
76      
77  
78  
79      public DG1(Group parent, ModelClassFactory factory) {
80         super(parent, factory);
81         init(factory);
82      }
83  
84      private void init(ModelClassFactory factory) {
85         try {
86                                    this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Diagnosis");
87                                                this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(53) }, "Diagnosis Coding Method");
88                                    this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Diagnosis Code");
89                                    this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Diagnosis Description");
90                                    this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Diagnosis Date/Time");
91                                                this.add(IS.class, true, 1, 2, new Object[]{ getMessage(), new Integer(52) }, "Diagnosis Type");
92                                    this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Major Diagnostic Category");
93                                    this.add(CE.class, false, 1, 4, new Object[]{ getMessage() }, "Diagnostic Related Group");
94                                                this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(136) }, "DRG Approval Indicator");
95                                                this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(56) }, "DRG Grouper Review Code");
96                                    this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Outlier Type");
97                                    this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Outlier Days");
98                                    this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Outlier Cost");
99                                    this.add(ST.class, false, 1, 4, new Object[]{ getMessage() }, "Grouper Version and Type");
100                                   this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Diagnosis Priority");
101                                   this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Diagnosing Clinician");
102                                               this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(228) }, "Diagnosis Classification");
103                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Confidential Indicator");
104                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Attestation Date/Time");
105        } catch(HL7Exception e) {
106           log.error("Unexpected error creating DG1 - this is probably a bug in the source code generator.", e);
107        }
108     }
109 
110 
111 
112     
113 
114 
115 
116     public SI getSetIDDiagnosis() { 
117 		SI retVal = this.getTypedField(1, 0);
118 		return retVal;
119     }
120     
121     
122 
123 
124 
125     public SI getDg11_SetIDDiagnosis() { 
126 		SI retVal = this.getTypedField(1, 0);
127 		return retVal;
128     }
129 
130 
131 
132     
133 
134 
135 
136     public ID getDiagnosisCodingMethod() { 
137 		ID retVal = this.getTypedField(2, 0);
138 		return retVal;
139     }
140     
141     
142 
143 
144 
145     public ID getDg12_DiagnosisCodingMethod() { 
146 		ID retVal = this.getTypedField(2, 0);
147 		return retVal;
148     }
149 
150 
151 
152     
153 
154 
155 
156     public CE getDiagnosisCode() { 
157 		CE retVal = this.getTypedField(3, 0);
158 		return retVal;
159     }
160     
161     
162 
163 
164 
165     public CE getDg13_DiagnosisCode() { 
166 		CE retVal = this.getTypedField(3, 0);
167 		return retVal;
168     }
169 
170 
171 
172     
173 
174 
175 
176     public ST getDiagnosisDescription() { 
177 		ST retVal = this.getTypedField(4, 0);
178 		return retVal;
179     }
180     
181     
182 
183 
184 
185     public ST getDg14_DiagnosisDescription() { 
186 		ST retVal = this.getTypedField(4, 0);
187 		return retVal;
188     }
189 
190 
191 
192     
193 
194 
195 
196     public TS getDiagnosisDateTime() { 
197 		TS retVal = this.getTypedField(5, 0);
198 		return retVal;
199     }
200     
201     
202 
203 
204 
205     public TS getDg15_DiagnosisDateTime() { 
206 		TS retVal = this.getTypedField(5, 0);
207 		return retVal;
208     }
209 
210 
211 
212     
213 
214 
215 
216     public IS getDiagnosisType() { 
217 		IS retVal = this.getTypedField(6, 0);
218 		return retVal;
219     }
220     
221     
222 
223 
224 
225     public IS getDg16_DiagnosisType() { 
226 		IS retVal = this.getTypedField(6, 0);
227 		return retVal;
228     }
229 
230 
231 
232     
233 
234 
235 
236     public CE getMajorDiagnosticCategory() { 
237 		CE retVal = this.getTypedField(7, 0);
238 		return retVal;
239     }
240     
241     
242 
243 
244 
245     public CE getDg17_MajorDiagnosticCategory() { 
246 		CE retVal = this.getTypedField(7, 0);
247 		return retVal;
248     }
249 
250 
251 
252     
253 
254 
255 
256     public CE getDiagnosticRelatedGroup() { 
257 		CE retVal = this.getTypedField(8, 0);
258 		return retVal;
259     }
260     
261     
262 
263 
264 
265     public CE getDg18_DiagnosticRelatedGroup() { 
266 		CE retVal = this.getTypedField(8, 0);
267 		return retVal;
268     }
269 
270 
271 
272     
273 
274 
275 
276     public ID getDRGApprovalIndicator() { 
277 		ID retVal = this.getTypedField(9, 0);
278 		return retVal;
279     }
280     
281     
282 
283 
284 
285     public ID getDg19_DRGApprovalIndicator() { 
286 		ID retVal = this.getTypedField(9, 0);
287 		return retVal;
288     }
289 
290 
291 
292     
293 
294 
295 
296     public IS getDRGGrouperReviewCode() { 
297 		IS retVal = this.getTypedField(10, 0);
298 		return retVal;
299     }
300     
301     
302 
303 
304 
305     public IS getDg110_DRGGrouperReviewCode() { 
306 		IS retVal = this.getTypedField(10, 0);
307 		return retVal;
308     }
309 
310 
311 
312     
313 
314 
315 
316     public CE getOutlierType() { 
317 		CE retVal = this.getTypedField(11, 0);
318 		return retVal;
319     }
320     
321     
322 
323 
324 
325     public CE getDg111_OutlierType() { 
326 		CE retVal = this.getTypedField(11, 0);
327 		return retVal;
328     }
329 
330 
331 
332     
333 
334 
335 
336     public NM getOutlierDays() { 
337 		NM retVal = this.getTypedField(12, 0);
338 		return retVal;
339     }
340     
341     
342 
343 
344 
345     public NM getDg112_OutlierDays() { 
346 		NM retVal = this.getTypedField(12, 0);
347 		return retVal;
348     }
349 
350 
351 
352     
353 
354 
355 
356     public CP getOutlierCost() { 
357 		CP retVal = this.getTypedField(13, 0);
358 		return retVal;
359     }
360     
361     
362 
363 
364 
365     public CP getDg113_OutlierCost() { 
366 		CP retVal = this.getTypedField(13, 0);
367 		return retVal;
368     }
369 
370 
371 
372     
373 
374 
375 
376     public ST getGrouperVersionAndType() { 
377 		ST retVal = this.getTypedField(14, 0);
378 		return retVal;
379     }
380     
381     
382 
383 
384 
385     public ST getDg114_GrouperVersionAndType() { 
386 		ST retVal = this.getTypedField(14, 0);
387 		return retVal;
388     }
389 
390 
391 
392     
393 
394 
395 
396     public NM getDiagnosisPriority() { 
397 		NM retVal = this.getTypedField(15, 0);
398 		return retVal;
399     }
400     
401     
402 
403 
404 
405     public NM getDg115_DiagnosisPriority() { 
406 		NM retVal = this.getTypedField(15, 0);
407 		return retVal;
408     }
409 
410 
411     
412 
413 
414     public XCN[] getDiagnosingClinician() {
415     	XCN[] retVal = this.getTypedField(16, new XCN[0]);
416     	return retVal;
417     }
418 
419 
420     
421 
422 
423     public XCN[] getDg116_DiagnosingClinician() {
424     	XCN[] retVal = this.getTypedField(16, new XCN[0]);
425     	return retVal;
426     }
427 
428 
429     
430 
431 
432 
433 
434     public int getDiagnosingClinicianReps() {
435     	return this.getReps(16);
436     }
437 
438 
439     
440 
441 
442 
443 
444 
445     public XCN getDiagnosingClinician(int rep) { 
446 		XCN retVal = this.getTypedField(16, rep);
447 		return retVal;
448     }
449 
450     
451 
452 
453 
454 
455 
456     public XCN getDg116_DiagnosingClinician(int rep) { 
457 		XCN retVal = this.getTypedField(16, rep);
458 		return retVal;
459     }
460 
461     
462 
463 
464 
465 
466     public int getDg116_DiagnosingClinicianReps() {
467     	return this.getReps(16);
468     }
469 
470 
471     
472 
473 
474 
475 
476 
477 
478     public XCN insertDiagnosingClinician(int rep) throws HL7Exception { 
479         return (XCN) super.insertRepetition(16, rep);
480     }
481 
482 
483     
484 
485 
486 
487 
488 
489 
490     public XCN insertDg116_DiagnosingClinician(int rep) throws HL7Exception { 
491         return (XCN) super.insertRepetition(16, rep);
492     }
493 
494 
495     
496 
497 
498 
499 
500 
501 
502     public XCN removeDiagnosingClinician(int rep) throws HL7Exception { 
503         return (XCN) super.removeRepetition(16, rep);
504     }
505 
506 
507     
508 
509 
510 
511 
512 
513 
514     public XCN removeDg116_DiagnosingClinician(int rep) throws HL7Exception { 
515         return (XCN) super.removeRepetition(16, rep);
516     }
517 
518 
519 
520 
521     
522 
523 
524 
525     public IS getDiagnosisClassification() { 
526 		IS retVal = this.getTypedField(17, 0);
527 		return retVal;
528     }
529     
530     
531 
532 
533 
534     public IS getDg117_DiagnosisClassification() { 
535 		IS retVal = this.getTypedField(17, 0);
536 		return retVal;
537     }
538 
539 
540 
541     
542 
543 
544 
545     public ID getConfidentialIndicator() { 
546 		ID retVal = this.getTypedField(18, 0);
547 		return retVal;
548     }
549     
550     
551 
552 
553 
554     public ID getDg118_ConfidentialIndicator() { 
555 		ID retVal = this.getTypedField(18, 0);
556 		return retVal;
557     }
558 
559 
560 
561     
562 
563 
564 
565     public TS getAttestationDateTime() { 
566 		TS retVal = this.getTypedField(19, 0);
567 		return retVal;
568     }
569     
570     
571 
572 
573 
574     public TS getDg119_AttestationDateTime() { 
575 		TS retVal = this.getTypedField(19, 0);
576 		return retVal;
577     }
578 
579 
580 
581 
582 
583        
584     protected Type createNewTypeWithoutReflection(int field) {
585        switch (field) {
586           case 0: return new SI(getMessage());
587           case 1: return new ID(getMessage(), new Integer( 53 ));
588           case 2: return new CE(getMessage());
589           case 3: return new ST(getMessage());
590           case 4: return new TS(getMessage());
591           case 5: return new IS(getMessage(), new Integer( 52 ));
592           case 6: return new CE(getMessage());
593           case 7: return new CE(getMessage());
594           case 8: return new ID(getMessage(), new Integer( 136 ));
595           case 9: return new IS(getMessage(), new Integer( 56 ));
596           case 10: return new CE(getMessage());
597           case 11: return new NM(getMessage());
598           case 12: return new CP(getMessage());
599           case 13: return new ST(getMessage());
600           case 14: return new NM(getMessage());
601           case 15: return new XCN(getMessage());
602           case 16: return new IS(getMessage(), new Integer( 228 ));
603           case 17: return new ID(getMessage(), new Integer( 136 ));
604           case 18: return new TS(getMessage());
605           default: return null;
606        }
607    }
608 
609 
610 }
611