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