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  
74  
75  
76  
77  
78  
79  @SuppressWarnings("unused")
80  public class FT1 extends AbstractSegment {
81  
82      
83  
84  
85      public FT1(Group parent, ModelClassFactory factory) {
86         super(parent, factory);
87         init(factory);
88      }
89  
90      private void init(ModelClassFactory factory) {
91         try {
92                                    this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - Financial Transaction");
93                                    this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction ID");
94                                    this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Transaction Batch ID");
95                                    this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Transaction Date");
96                                    this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Transaction Posting Date");
97                                                this.add(ID.class, true, 1, 8, new Object[]{ getMessage(), new Integer(17) }, "Transaction Type");
98                                    this.add(CE.class, true, 1, 80, new Object[]{ getMessage() }, "Transaction Code");
99                                    this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Transaction Description");
100                                   this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Transaction Description - alternate");
101                                   this.add(NM.class, false, 1, 6, new Object[]{ getMessage() }, "Transaction Quantity");
102                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction Amount - Extended");
103                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction Amount - Unit");
104                                   this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Department Code");
105                                   this.add(CE.class, false, 1, 8, new Object[]{ getMessage() }, "Insurance Plan ID");
106                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Insurance Amount");
107                                   this.add(PL.class, false, 1, 12, new Object[]{ getMessage() }, "Assigned Patient Location");
108                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(24) }, "Fee Schedule");
109                                               this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "Patient Type");
110                                   this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Diagnosis Code");
111                                   this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Performed By Code");
112                                   this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Ordered By Code");
113                                   this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Unit Cost");
114                                   this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
115                                   this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Entered By Code");
116                                   this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Procedure Code");
117        } catch(HL7Exception e) {
118           log.error("Unexpected error creating FT1 - this is probably a bug in the source code generator.", e);
119        }
120     }
121 
122 
123 
124     
125 
126 
127 
128     public SI getSetIDFinancialTransaction() { 
129 		SI retVal = this.getTypedField(1, 0);
130 		return retVal;
131     }
132     
133     
134 
135 
136 
137     public SI getFt11_SetIDFinancialTransaction() { 
138 		SI retVal = this.getTypedField(1, 0);
139 		return retVal;
140     }
141 
142 
143 
144     
145 
146 
147 
148     public ST getTransactionID() { 
149 		ST retVal = this.getTypedField(2, 0);
150 		return retVal;
151     }
152     
153     
154 
155 
156 
157     public ST getFt12_TransactionID() { 
158 		ST retVal = this.getTypedField(2, 0);
159 		return retVal;
160     }
161 
162 
163 
164     
165 
166 
167 
168     public ST getTransactionBatchID() { 
169 		ST retVal = this.getTypedField(3, 0);
170 		return retVal;
171     }
172     
173     
174 
175 
176 
177     public ST getFt13_TransactionBatchID() { 
178 		ST retVal = this.getTypedField(3, 0);
179 		return retVal;
180     }
181 
182 
183 
184     
185 
186 
187 
188     public TS getTransactionDate() { 
189 		TS retVal = this.getTypedField(4, 0);
190 		return retVal;
191     }
192     
193     
194 
195 
196 
197     public TS getFt14_TransactionDate() { 
198 		TS retVal = this.getTypedField(4, 0);
199 		return retVal;
200     }
201 
202 
203 
204     
205 
206 
207 
208     public TS getTransactionPostingDate() { 
209 		TS retVal = this.getTypedField(5, 0);
210 		return retVal;
211     }
212     
213     
214 
215 
216 
217     public TS getFt15_TransactionPostingDate() { 
218 		TS retVal = this.getTypedField(5, 0);
219 		return retVal;
220     }
221 
222 
223 
224     
225 
226 
227 
228     public ID getTransactionType() { 
229 		ID retVal = this.getTypedField(6, 0);
230 		return retVal;
231     }
232     
233     
234 
235 
236 
237     public ID getFt16_TransactionType() { 
238 		ID retVal = this.getTypedField(6, 0);
239 		return retVal;
240     }
241 
242 
243 
244     
245 
246 
247 
248     public CE getTransactionCode() { 
249 		CE retVal = this.getTypedField(7, 0);
250 		return retVal;
251     }
252     
253     
254 
255 
256 
257     public CE getFt17_TransactionCode() { 
258 		CE retVal = this.getTypedField(7, 0);
259 		return retVal;
260     }
261 
262 
263 
264     
265 
266 
267 
268     public ST getTransactionDescription() { 
269 		ST retVal = this.getTypedField(8, 0);
270 		return retVal;
271     }
272     
273     
274 
275 
276 
277     public ST getFt18_TransactionDescription() { 
278 		ST retVal = this.getTypedField(8, 0);
279 		return retVal;
280     }
281 
282 
283 
284     
285 
286 
287 
288     public ST getTransactionDescriptionAlternate() { 
289 		ST retVal = this.getTypedField(9, 0);
290 		return retVal;
291     }
292     
293     
294 
295 
296 
297     public ST getFt19_TransactionDescriptionAlternate() { 
298 		ST retVal = this.getTypedField(9, 0);
299 		return retVal;
300     }
301 
302 
303 
304     
305 
306 
307 
308     public NM getTransactionQuantity() { 
309 		NM retVal = this.getTypedField(10, 0);
310 		return retVal;
311     }
312     
313     
314 
315 
316 
317     public NM getFt110_TransactionQuantity() { 
318 		NM retVal = this.getTypedField(10, 0);
319 		return retVal;
320     }
321 
322 
323 
324     
325 
326 
327 
328     public CP getTransactionAmountExtended() { 
329 		CP retVal = this.getTypedField(11, 0);
330 		return retVal;
331     }
332     
333     
334 
335 
336 
337     public CP getFt111_TransactionAmountExtended() { 
338 		CP retVal = this.getTypedField(11, 0);
339 		return retVal;
340     }
341 
342 
343 
344     
345 
346 
347 
348     public CP getTransactionAmountUnit() { 
349 		CP retVal = this.getTypedField(12, 0);
350 		return retVal;
351     }
352     
353     
354 
355 
356 
357     public CP getFt112_TransactionAmountUnit() { 
358 		CP retVal = this.getTypedField(12, 0);
359 		return retVal;
360     }
361 
362 
363 
364     
365 
366 
367 
368     public CE getDepartmentCode() { 
369 		CE retVal = this.getTypedField(13, 0);
370 		return retVal;
371     }
372     
373     
374 
375 
376 
377     public CE getFt113_DepartmentCode() { 
378 		CE retVal = this.getTypedField(13, 0);
379 		return retVal;
380     }
381 
382 
383 
384     
385 
386 
387 
388     public CE getInsurancePlanID() { 
389 		CE retVal = this.getTypedField(14, 0);
390 		return retVal;
391     }
392     
393     
394 
395 
396 
397     public CE getFt114_InsurancePlanID() { 
398 		CE retVal = this.getTypedField(14, 0);
399 		return retVal;
400     }
401 
402 
403 
404     
405 
406 
407 
408     public CP getInsuranceAmount() { 
409 		CP retVal = this.getTypedField(15, 0);
410 		return retVal;
411     }
412     
413     
414 
415 
416 
417     public CP getFt115_InsuranceAmount() { 
418 		CP retVal = this.getTypedField(15, 0);
419 		return retVal;
420     }
421 
422 
423 
424     
425 
426 
427 
428     public PL getAssignedPatientLocation() { 
429 		PL retVal = this.getTypedField(16, 0);
430 		return retVal;
431     }
432     
433     
434 
435 
436 
437     public PL getFt116_AssignedPatientLocation() { 
438 		PL retVal = this.getTypedField(16, 0);
439 		return retVal;
440     }
441 
442 
443 
444     
445 
446 
447 
448     public ID getFeeSchedule() { 
449 		ID retVal = this.getTypedField(17, 0);
450 		return retVal;
451     }
452     
453     
454 
455 
456 
457     public ID getFt117_FeeSchedule() { 
458 		ID retVal = this.getTypedField(17, 0);
459 		return retVal;
460     }
461 
462 
463 
464     
465 
466 
467 
468     public ID getPatientType() { 
469 		ID retVal = this.getTypedField(18, 0);
470 		return retVal;
471     }
472     
473     
474 
475 
476 
477     public ID getFt118_PatientType() { 
478 		ID retVal = this.getTypedField(18, 0);
479 		return retVal;
480     }
481 
482 
483     
484 
485 
486     public CE[] getDiagnosisCode() {
487     	CE[] retVal = this.getTypedField(19, new CE[0]);
488     	return retVal;
489     }
490 
491 
492     
493 
494 
495     public CE[] getFt119_DiagnosisCode() {
496     	CE[] retVal = this.getTypedField(19, new CE[0]);
497     	return retVal;
498     }
499 
500 
501     
502 
503 
504 
505 
506     public int getDiagnosisCodeReps() {
507     	return this.getReps(19);
508     }
509 
510 
511     
512 
513 
514 
515 
516 
517     public CE getDiagnosisCode(int rep) { 
518 		CE retVal = this.getTypedField(19, rep);
519 		return retVal;
520     }
521 
522     
523 
524 
525 
526 
527 
528     public CE getFt119_DiagnosisCode(int rep) { 
529 		CE retVal = this.getTypedField(19, rep);
530 		return retVal;
531     }
532 
533     
534 
535 
536 
537 
538     public int getFt119_DiagnosisCodeReps() {
539     	return this.getReps(19);
540     }
541 
542 
543     
544 
545 
546 
547 
548 
549 
550     public CE insertDiagnosisCode(int rep) throws HL7Exception { 
551         return (CE) super.insertRepetition(19, rep);
552     }
553 
554 
555     
556 
557 
558 
559 
560 
561 
562     public CE insertFt119_DiagnosisCode(int rep) throws HL7Exception { 
563         return (CE) super.insertRepetition(19, rep);
564     }
565 
566 
567     
568 
569 
570 
571 
572 
573 
574     public CE removeDiagnosisCode(int rep) throws HL7Exception { 
575         return (CE) super.removeRepetition(19, rep);
576     }
577 
578 
579     
580 
581 
582 
583 
584 
585 
586     public CE removeFt119_DiagnosisCode(int rep) throws HL7Exception { 
587         return (CE) super.removeRepetition(19, rep);
588     }
589 
590 
591 
592 
593     
594 
595 
596 
597     public XCN getPerformedByCode() { 
598 		XCN retVal = this.getTypedField(20, 0);
599 		return retVal;
600     }
601     
602     
603 
604 
605 
606     public XCN getFt120_PerformedByCode() { 
607 		XCN retVal = this.getTypedField(20, 0);
608 		return retVal;
609     }
610 
611 
612 
613     
614 
615 
616 
617     public XCN getOrderedByCode() { 
618 		XCN retVal = this.getTypedField(21, 0);
619 		return retVal;
620     }
621     
622     
623 
624 
625 
626     public XCN getFt121_OrderedByCode() { 
627 		XCN retVal = this.getTypedField(21, 0);
628 		return retVal;
629     }
630 
631 
632 
633     
634 
635 
636 
637     public NM getUnitCost() { 
638 		NM retVal = this.getTypedField(22, 0);
639 		return retVal;
640     }
641     
642     
643 
644 
645 
646     public NM getFt122_UnitCost() { 
647 		NM retVal = this.getTypedField(22, 0);
648 		return retVal;
649     }
650 
651 
652 
653     
654 
655 
656 
657     public EI getFillerOrderNumber() { 
658 		EI retVal = this.getTypedField(23, 0);
659 		return retVal;
660     }
661     
662     
663 
664 
665 
666     public EI getFt123_FillerOrderNumber() { 
667 		EI retVal = this.getTypedField(23, 0);
668 		return retVal;
669     }
670 
671 
672 
673     
674 
675 
676 
677     public XCN getEnteredByCode() { 
678 		XCN retVal = this.getTypedField(24, 0);
679 		return retVal;
680     }
681     
682     
683 
684 
685 
686     public XCN getFt124_EnteredByCode() { 
687 		XCN retVal = this.getTypedField(24, 0);
688 		return retVal;
689     }
690 
691 
692 
693     
694 
695 
696 
697     public CE getProcedureCode() { 
698 		CE retVal = this.getTypedField(25, 0);
699 		return retVal;
700     }
701     
702     
703 
704 
705 
706     public CE getFt125_ProcedureCode() { 
707 		CE retVal = this.getTypedField(25, 0);
708 		return retVal;
709     }
710 
711 
712 
713 
714 
715        
716     protected Type createNewTypeWithoutReflection(int field) {
717        switch (field) {
718           case 0: return new SI(getMessage());
719           case 1: return new ST(getMessage());
720           case 2: return new ST(getMessage());
721           case 3: return new TS(getMessage());
722           case 4: return new TS(getMessage());
723           case 5: return new ID(getMessage(), new Integer( 17 ));
724           case 6: return new CE(getMessage());
725           case 7: return new ST(getMessage());
726           case 8: return new ST(getMessage());
727           case 9: return new NM(getMessage());
728           case 10: return new CP(getMessage());
729           case 11: return new CP(getMessage());
730           case 12: return new CE(getMessage());
731           case 13: return new CE(getMessage());
732           case 14: return new CP(getMessage());
733           case 15: return new PL(getMessage());
734           case 16: return new ID(getMessage(), new Integer( 24 ));
735           case 17: return new ID(getMessage(), new Integer( 18 ));
736           case 18: return new CE(getMessage());
737           case 19: return new XCN(getMessage());
738           case 20: return new XCN(getMessage());
739           case 21: return new NM(getMessage());
740           case 22: return new EI(getMessage());
741           case 23: return new XCN(getMessage());
742           case 24: return new CE(getMessage());
743           default: return null;
744        }
745    }
746 
747 
748 }
749