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.v24.segment;
35
36
37 import ca.uhn.hl7v2.model.v24.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
80 @SuppressWarnings("unused")
81 public class FT1 extends AbstractSegment {
82
83
84
85
86 public FT1(Group parent, ModelClassFactory factory) {
87 super(parent, factory);
88 init(factory);
89 }
90
91 private void init(ModelClassFactory factory) {
92 try {
93 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - FT1");
94 this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction ID");
95 this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "Transaction Batch ID");
96 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Transaction Date");
97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Transaction Posting Date");
98 this.add(IS.class, true, 1, 8, new Object[]{ getMessage(), new Integer(17) }, "Transaction Type");
99 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Transaction Code");
100 this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Transaction Description");
101 this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Transaction Description - Alt");
102 this.add(NM.class, false, 1, 6, new Object[]{ getMessage() }, "Transaction Quantity");
103 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction Amount - Extended");
104 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction Amount - Unit");
105 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Department Code");
106 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Insurance Plan ID");
107 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Insurance Amount");
108 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Assigned Patient Location");
109 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(24) }, "Fee Schedule");
110 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "Patient Type");
111 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Diagnosis Code - FT1");
112 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Performed By Code");
113 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Ordered By Code");
114 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Unit Cost");
115 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
116 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Entered By Code");
117 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Procedure Code");
118 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code Modifier");
119 } catch(HL7Exception e) {
120 log.error("Unexpected error creating FT1 - this is probably a bug in the source code generator.", e);
121 }
122 }
123
124
125
126
127
128
129
130 public SI getSetIDFT1() {
131 SI retVal = this.getTypedField(1, 0);
132 return retVal;
133 }
134
135
136
137
138
139 public SI getFt11_SetIDFT1() {
140 SI retVal = this.getTypedField(1, 0);
141 return retVal;
142 }
143
144
145
146
147
148
149
150 public ST getTransactionID() {
151 ST retVal = this.getTypedField(2, 0);
152 return retVal;
153 }
154
155
156
157
158
159 public ST getFt12_TransactionID() {
160 ST retVal = this.getTypedField(2, 0);
161 return retVal;
162 }
163
164
165
166
167
168
169
170 public ST getTransactionBatchID() {
171 ST retVal = this.getTypedField(3, 0);
172 return retVal;
173 }
174
175
176
177
178
179 public ST getFt13_TransactionBatchID() {
180 ST retVal = this.getTypedField(3, 0);
181 return retVal;
182 }
183
184
185
186
187
188
189
190 public TS getTransactionDate() {
191 TS retVal = this.getTypedField(4, 0);
192 return retVal;
193 }
194
195
196
197
198
199 public TS getFt14_TransactionDate() {
200 TS retVal = this.getTypedField(4, 0);
201 return retVal;
202 }
203
204
205
206
207
208
209
210 public TS getTransactionPostingDate() {
211 TS retVal = this.getTypedField(5, 0);
212 return retVal;
213 }
214
215
216
217
218
219 public TS getFt15_TransactionPostingDate() {
220 TS retVal = this.getTypedField(5, 0);
221 return retVal;
222 }
223
224
225
226
227
228
229
230 public IS getTransactionType() {
231 IS retVal = this.getTypedField(6, 0);
232 return retVal;
233 }
234
235
236
237
238
239 public IS getFt16_TransactionType() {
240 IS retVal = this.getTypedField(6, 0);
241 return retVal;
242 }
243
244
245
246
247
248
249
250 public CE getTransactionCode() {
251 CE retVal = this.getTypedField(7, 0);
252 return retVal;
253 }
254
255
256
257
258
259 public CE getFt17_TransactionCode() {
260 CE retVal = this.getTypedField(7, 0);
261 return retVal;
262 }
263
264
265
266
267
268
269
270 public ST getTransactionDescription() {
271 ST retVal = this.getTypedField(8, 0);
272 return retVal;
273 }
274
275
276
277
278
279 public ST getFt18_TransactionDescription() {
280 ST retVal = this.getTypedField(8, 0);
281 return retVal;
282 }
283
284
285
286
287
288
289
290 public ST getTransactionDescriptionAlt() {
291 ST retVal = this.getTypedField(9, 0);
292 return retVal;
293 }
294
295
296
297
298
299 public ST getFt19_TransactionDescriptionAlt() {
300 ST retVal = this.getTypedField(9, 0);
301 return retVal;
302 }
303
304
305
306
307
308
309
310 public NM getTransactionQuantity() {
311 NM retVal = this.getTypedField(10, 0);
312 return retVal;
313 }
314
315
316
317
318
319 public NM getFt110_TransactionQuantity() {
320 NM retVal = this.getTypedField(10, 0);
321 return retVal;
322 }
323
324
325
326
327
328
329
330 public CP getTransactionAmountExtended() {
331 CP retVal = this.getTypedField(11, 0);
332 return retVal;
333 }
334
335
336
337
338
339 public CP getFt111_TransactionAmountExtended() {
340 CP retVal = this.getTypedField(11, 0);
341 return retVal;
342 }
343
344
345
346
347
348
349
350 public CP getTransactionAmountUnit() {
351 CP retVal = this.getTypedField(12, 0);
352 return retVal;
353 }
354
355
356
357
358
359 public CP getFt112_TransactionAmountUnit() {
360 CP retVal = this.getTypedField(12, 0);
361 return retVal;
362 }
363
364
365
366
367
368
369
370 public CE getDepartmentCode() {
371 CE retVal = this.getTypedField(13, 0);
372 return retVal;
373 }
374
375
376
377
378
379 public CE getFt113_DepartmentCode() {
380 CE retVal = this.getTypedField(13, 0);
381 return retVal;
382 }
383
384
385
386
387
388
389
390 public CE getInsurancePlanID() {
391 CE retVal = this.getTypedField(14, 0);
392 return retVal;
393 }
394
395
396
397
398
399 public CE getFt114_InsurancePlanID() {
400 CE retVal = this.getTypedField(14, 0);
401 return retVal;
402 }
403
404
405
406
407
408
409
410 public CP getInsuranceAmount() {
411 CP retVal = this.getTypedField(15, 0);
412 return retVal;
413 }
414
415
416
417
418
419 public CP getFt115_InsuranceAmount() {
420 CP retVal = this.getTypedField(15, 0);
421 return retVal;
422 }
423
424
425
426
427
428
429
430 public PL getAssignedPatientLocation() {
431 PL retVal = this.getTypedField(16, 0);
432 return retVal;
433 }
434
435
436
437
438
439 public PL getFt116_AssignedPatientLocation() {
440 PL retVal = this.getTypedField(16, 0);
441 return retVal;
442 }
443
444
445
446
447
448
449
450 public IS getFeeSchedule() {
451 IS retVal = this.getTypedField(17, 0);
452 return retVal;
453 }
454
455
456
457
458
459 public IS getFt117_FeeSchedule() {
460 IS retVal = this.getTypedField(17, 0);
461 return retVal;
462 }
463
464
465
466
467
468
469
470 public IS getPatientType() {
471 IS retVal = this.getTypedField(18, 0);
472 return retVal;
473 }
474
475
476
477
478
479 public IS getFt118_PatientType() {
480 IS retVal = this.getTypedField(18, 0);
481 return retVal;
482 }
483
484
485
486
487
488 public CE[] getDiagnosisCodeFT1() {
489 CE[] retVal = this.getTypedField(19, new CE[0]);
490 return retVal;
491 }
492
493
494
495
496
497 public CE[] getFt119_DiagnosisCodeFT1() {
498 CE[] retVal = this.getTypedField(19, new CE[0]);
499 return retVal;
500 }
501
502
503
504
505
506
507
508 public int getDiagnosisCodeFT1Reps() {
509 return this.getReps(19);
510 }
511
512
513
514
515
516
517
518
519 public CE getDiagnosisCodeFT1(int rep) {
520 CE retVal = this.getTypedField(19, rep);
521 return retVal;
522 }
523
524
525
526
527
528
529
530 public CE getFt119_DiagnosisCodeFT1(int rep) {
531 CE retVal = this.getTypedField(19, rep);
532 return retVal;
533 }
534
535
536
537
538
539
540 public int getFt119_DiagnosisCodeFT1Reps() {
541 return this.getReps(19);
542 }
543
544
545
546
547
548
549
550
551
552 public CE insertDiagnosisCodeFT1(int rep) throws HL7Exception {
553 return (CE) super.insertRepetition(19, rep);
554 }
555
556
557
558
559
560
561
562
563
564 public CE insertFt119_DiagnosisCodeFT1(int rep) throws HL7Exception {
565 return (CE) super.insertRepetition(19, rep);
566 }
567
568
569
570
571
572
573
574
575
576 public CE removeDiagnosisCodeFT1(int rep) throws HL7Exception {
577 return (CE) super.removeRepetition(19, rep);
578 }
579
580
581
582
583
584
585
586
587
588 public CE removeFt119_DiagnosisCodeFT1(int rep) throws HL7Exception {
589 return (CE) super.removeRepetition(19, rep);
590 }
591
592
593
594
595
596
597 public XCN[] getPerformedByCode() {
598 XCN[] retVal = this.getTypedField(20, new XCN[0]);
599 return retVal;
600 }
601
602
603
604
605
606 public XCN[] getFt120_PerformedByCode() {
607 XCN[] retVal = this.getTypedField(20, new XCN[0]);
608 return retVal;
609 }
610
611
612
613
614
615
616
617 public int getPerformedByCodeReps() {
618 return this.getReps(20);
619 }
620
621
622
623
624
625
626
627
628 public XCN getPerformedByCode(int rep) {
629 XCN retVal = this.getTypedField(20, rep);
630 return retVal;
631 }
632
633
634
635
636
637
638
639 public XCN getFt120_PerformedByCode(int rep) {
640 XCN retVal = this.getTypedField(20, rep);
641 return retVal;
642 }
643
644
645
646
647
648
649 public int getFt120_PerformedByCodeReps() {
650 return this.getReps(20);
651 }
652
653
654
655
656
657
658
659
660
661 public XCN insertPerformedByCode(int rep) throws HL7Exception {
662 return (XCN) super.insertRepetition(20, rep);
663 }
664
665
666
667
668
669
670
671
672
673 public XCN insertFt120_PerformedByCode(int rep) throws HL7Exception {
674 return (XCN) super.insertRepetition(20, rep);
675 }
676
677
678
679
680
681
682
683
684
685 public XCN removePerformedByCode(int rep) throws HL7Exception {
686 return (XCN) super.removeRepetition(20, rep);
687 }
688
689
690
691
692
693
694
695
696
697 public XCN removeFt120_PerformedByCode(int rep) throws HL7Exception {
698 return (XCN) super.removeRepetition(20, rep);
699 }
700
701
702
703
704
705
706 public XCN[] getOrderedByCode() {
707 XCN[] retVal = this.getTypedField(21, new XCN[0]);
708 return retVal;
709 }
710
711
712
713
714
715 public XCN[] getFt121_OrderedByCode() {
716 XCN[] retVal = this.getTypedField(21, new XCN[0]);
717 return retVal;
718 }
719
720
721
722
723
724
725
726 public int getOrderedByCodeReps() {
727 return this.getReps(21);
728 }
729
730
731
732
733
734
735
736
737 public XCN getOrderedByCode(int rep) {
738 XCN retVal = this.getTypedField(21, rep);
739 return retVal;
740 }
741
742
743
744
745
746
747
748 public XCN getFt121_OrderedByCode(int rep) {
749 XCN retVal = this.getTypedField(21, rep);
750 return retVal;
751 }
752
753
754
755
756
757
758 public int getFt121_OrderedByCodeReps() {
759 return this.getReps(21);
760 }
761
762
763
764
765
766
767
768
769
770 public XCN insertOrderedByCode(int rep) throws HL7Exception {
771 return (XCN) super.insertRepetition(21, rep);
772 }
773
774
775
776
777
778
779
780
781
782 public XCN insertFt121_OrderedByCode(int rep) throws HL7Exception {
783 return (XCN) super.insertRepetition(21, rep);
784 }
785
786
787
788
789
790
791
792
793
794 public XCN removeOrderedByCode(int rep) throws HL7Exception {
795 return (XCN) super.removeRepetition(21, rep);
796 }
797
798
799
800
801
802
803
804
805
806 public XCN removeFt121_OrderedByCode(int rep) throws HL7Exception {
807 return (XCN) super.removeRepetition(21, rep);
808 }
809
810
811
812
813
814
815
816
817 public CP getUnitCost() {
818 CP retVal = this.getTypedField(22, 0);
819 return retVal;
820 }
821
822
823
824
825
826 public CP getFt122_UnitCost() {
827 CP retVal = this.getTypedField(22, 0);
828 return retVal;
829 }
830
831
832
833
834
835
836
837 public EI getFillerOrderNumber() {
838 EI retVal = this.getTypedField(23, 0);
839 return retVal;
840 }
841
842
843
844
845
846 public EI getFt123_FillerOrderNumber() {
847 EI retVal = this.getTypedField(23, 0);
848 return retVal;
849 }
850
851
852
853
854
855 public XCN[] getEnteredByCode() {
856 XCN[] retVal = this.getTypedField(24, new XCN[0]);
857 return retVal;
858 }
859
860
861
862
863
864 public XCN[] getFt124_EnteredByCode() {
865 XCN[] retVal = this.getTypedField(24, new XCN[0]);
866 return retVal;
867 }
868
869
870
871
872
873
874
875 public int getEnteredByCodeReps() {
876 return this.getReps(24);
877 }
878
879
880
881
882
883
884
885
886 public XCN getEnteredByCode(int rep) {
887 XCN retVal = this.getTypedField(24, rep);
888 return retVal;
889 }
890
891
892
893
894
895
896
897 public XCN getFt124_EnteredByCode(int rep) {
898 XCN retVal = this.getTypedField(24, rep);
899 return retVal;
900 }
901
902
903
904
905
906
907 public int getFt124_EnteredByCodeReps() {
908 return this.getReps(24);
909 }
910
911
912
913
914
915
916
917
918
919 public XCN insertEnteredByCode(int rep) throws HL7Exception {
920 return (XCN) super.insertRepetition(24, rep);
921 }
922
923
924
925
926
927
928
929
930
931 public XCN insertFt124_EnteredByCode(int rep) throws HL7Exception {
932 return (XCN) super.insertRepetition(24, rep);
933 }
934
935
936
937
938
939
940
941
942
943 public XCN removeEnteredByCode(int rep) throws HL7Exception {
944 return (XCN) super.removeRepetition(24, rep);
945 }
946
947
948
949
950
951
952
953
954
955 public XCN removeFt124_EnteredByCode(int rep) throws HL7Exception {
956 return (XCN) super.removeRepetition(24, rep);
957 }
958
959
960
961
962
963
964
965
966 public CE getProcedureCode() {
967 CE retVal = this.getTypedField(25, 0);
968 return retVal;
969 }
970
971
972
973
974
975 public CE getFt125_ProcedureCode() {
976 CE retVal = this.getTypedField(25, 0);
977 return retVal;
978 }
979
980
981
982
983
984 public CE[] getProcedureCodeModifier() {
985 CE[] retVal = this.getTypedField(26, new CE[0]);
986 return retVal;
987 }
988
989
990
991
992
993 public CE[] getFt126_ProcedureCodeModifier() {
994 CE[] retVal = this.getTypedField(26, new CE[0]);
995 return retVal;
996 }
997
998
999
1000
1001
1002
1003
1004 public int getProcedureCodeModifierReps() {
1005 return this.getReps(26);
1006 }
1007
1008
1009
1010
1011
1012
1013
1014
1015 public CE getProcedureCodeModifier(int rep) {
1016 CE retVal = this.getTypedField(26, rep);
1017 return retVal;
1018 }
1019
1020
1021
1022
1023
1024
1025
1026 public CE getFt126_ProcedureCodeModifier(int rep) {
1027 CE retVal = this.getTypedField(26, rep);
1028 return retVal;
1029 }
1030
1031
1032
1033
1034
1035
1036 public int getFt126_ProcedureCodeModifierReps() {
1037 return this.getReps(26);
1038 }
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048 public CE insertProcedureCodeModifier(int rep) throws HL7Exception {
1049 return (CE) super.insertRepetition(26, rep);
1050 }
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060 public CE insertFt126_ProcedureCodeModifier(int rep) throws HL7Exception {
1061 return (CE) super.insertRepetition(26, rep);
1062 }
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072 public CE removeProcedureCodeModifier(int rep) throws HL7Exception {
1073 return (CE) super.removeRepetition(26, rep);
1074 }
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084 public CE removeFt126_ProcedureCodeModifier(int rep) throws HL7Exception {
1085 return (CE) super.removeRepetition(26, rep);
1086 }
1087
1088
1089
1090
1091
1092
1093
1094 protected Type createNewTypeWithoutReflection(int field) {
1095 switch (field) {
1096 case 0: return new SI(getMessage());
1097 case 1: return new ST(getMessage());
1098 case 2: return new ST(getMessage());
1099 case 3: return new TS(getMessage());
1100 case 4: return new TS(getMessage());
1101 case 5: return new IS(getMessage(), new Integer( 17 ));
1102 case 6: return new CE(getMessage());
1103 case 7: return new ST(getMessage());
1104 case 8: return new ST(getMessage());
1105 case 9: return new NM(getMessage());
1106 case 10: return new CP(getMessage());
1107 case 11: return new CP(getMessage());
1108 case 12: return new CE(getMessage());
1109 case 13: return new CE(getMessage());
1110 case 14: return new CP(getMessage());
1111 case 15: return new PL(getMessage());
1112 case 16: return new IS(getMessage(), new Integer( 24 ));
1113 case 17: return new IS(getMessage(), new Integer( 18 ));
1114 case 18: return new CE(getMessage());
1115 case 19: return new XCN(getMessage());
1116 case 20: return new XCN(getMessage());
1117 case 21: return new CP(getMessage());
1118 case 22: return new EI(getMessage());
1119 case 23: return new XCN(getMessage());
1120 case 24: return new CE(getMessage());
1121 case 25: return new CE(getMessage());
1122 default: return null;
1123 }
1124 }
1125
1126
1127 }
1128