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.v231.segment;
35
36
37 import ca.uhn.hl7v2.model.v231.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106 @SuppressWarnings("unused")
107 public class PV1 extends AbstractSegment {
108
109
110
111
112 public PV1(Group parent, ModelClassFactory factory) {
113 super(parent, factory);
114 init(factory);
115 }
116
117 private void init(ModelClassFactory factory) {
118 try {
119 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - PV1");
120 this.add(IS.class, true, 1, 1, new Object[]{ getMessage(), new Integer(4) }, "Patient Class");
121 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Assigned Patient Location");
122 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(7) }, "Admission Type");
123 this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Preadmit Number");
124 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Prior Patient Location");
125 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Attending Doctor");
126 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Referring Doctor");
127 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Consulting Doctor");
128 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(69) }, "Hospital Service");
129 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Temporary Location");
130 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(87) }, "Preadmit Test Indicator");
131 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(92) }, "Re-admission Indicator");
132 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(23) }, "Admit Source");
133 this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status");
134 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(99) }, "VIP Indicator");
135 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Admitting Doctor");
136 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "Patient Type");
137 this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Visit Number");
138 this.add(FC.class, false, 0, 50, new Object[]{ getMessage() }, "Financial Class");
139 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(32) }, "Charge Price Indicator");
140 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(45) }, "Courtesy Code");
141 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(46) }, "Credit Rating");
142 this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(44) }, "Contract Code");
143 this.add(DT.class, false, 0, 8, new Object[]{ getMessage() }, "Contract Effective Date");
144 this.add(NM.class, false, 0, 12, new Object[]{ getMessage() }, "Contract Amount");
145 this.add(NM.class, false, 0, 3, new Object[]{ getMessage() }, "Contract Period");
146 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(73) }, "Interest Code");
147 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(110) }, "Transfer to Bad Debt Code");
148 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Transfer to Bad Debt Date");
149 this.add(IS.class, false, 1, 10, new Object[]{ getMessage(), new Integer(21) }, "Bad Debt Agency Code");
150 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Bad Debt Transfer Amount");
151 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Bad Debt Recovery Amount");
152 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(111) }, "Delete Account Indicator");
153 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Delete Account Date");
154 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(112) }, "Discharge Disposition");
155 this.add(DLD.class, false, 1, 25, new Object[]{ getMessage() }, "Discharged to Location");
156 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Diet Type");
157 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(115) }, "Servicing Facility");
158 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(116) }, "Bed Status");
159 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(117) }, "Account Status");
160 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Pending Location");
161 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Prior Temporary Location");
162 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Admit Date/Time");
163 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Discharge Date/Time");
164 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Current Patient Balance");
165 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Charges");
166 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Adjustments");
167 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Payments");
168 this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Alternate Visit ID");
169 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(326) }, "Visit Indicator");
170 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Other Healthcare Provider");
171 } catch(HL7Exception e) {
172 log.error("Unexpected error creating PV1 - this is probably a bug in the source code generator.", e);
173 }
174 }
175
176
177
178
179
180
181
182 public SI getSetIDPV1() {
183 SI retVal = this.getTypedField(1, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public SI getPv11_SetIDPV1() {
192 SI retVal = this.getTypedField(1, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public IS getPatientClass() {
203 IS retVal = this.getTypedField(2, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public IS getPv12_PatientClass() {
212 IS retVal = this.getTypedField(2, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public PL getAssignedPatientLocation() {
223 PL retVal = this.getTypedField(3, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public PL getPv13_AssignedPatientLocation() {
232 PL retVal = this.getTypedField(3, 0);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public IS getAdmissionType() {
243 IS retVal = this.getTypedField(4, 0);
244 return retVal;
245 }
246
247
248
249
250
251 public IS getPv14_AdmissionType() {
252 IS retVal = this.getTypedField(4, 0);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public CX getPreadmitNumber() {
263 CX retVal = this.getTypedField(5, 0);
264 return retVal;
265 }
266
267
268
269
270
271 public CX getPv15_PreadmitNumber() {
272 CX retVal = this.getTypedField(5, 0);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public PL getPriorPatientLocation() {
283 PL retVal = this.getTypedField(6, 0);
284 return retVal;
285 }
286
287
288
289
290
291 public PL getPv16_PriorPatientLocation() {
292 PL retVal = this.getTypedField(6, 0);
293 return retVal;
294 }
295
296
297
298
299
300 public XCN[] getAttendingDoctor() {
301 XCN[] retVal = this.getTypedField(7, new XCN[0]);
302 return retVal;
303 }
304
305
306
307
308
309 public XCN[] getPv17_AttendingDoctor() {
310 XCN[] retVal = this.getTypedField(7, new XCN[0]);
311 return retVal;
312 }
313
314
315
316
317
318
319
320 public int getAttendingDoctorReps() {
321 return this.getReps(7);
322 }
323
324
325
326
327
328
329
330
331 public XCN getAttendingDoctor(int rep) {
332 XCN retVal = this.getTypedField(7, rep);
333 return retVal;
334 }
335
336
337
338
339
340
341
342 public XCN getPv17_AttendingDoctor(int rep) {
343 XCN retVal = this.getTypedField(7, rep);
344 return retVal;
345 }
346
347
348
349
350
351
352 public int getPv17_AttendingDoctorReps() {
353 return this.getReps(7);
354 }
355
356
357
358
359
360
361
362
363
364 public XCN insertAttendingDoctor(int rep) throws HL7Exception {
365 return (XCN) super.insertRepetition(7, rep);
366 }
367
368
369
370
371
372
373
374
375
376 public XCN insertPv17_AttendingDoctor(int rep) throws HL7Exception {
377 return (XCN) super.insertRepetition(7, rep);
378 }
379
380
381
382
383
384
385
386
387
388 public XCN removeAttendingDoctor(int rep) throws HL7Exception {
389 return (XCN) super.removeRepetition(7, rep);
390 }
391
392
393
394
395
396
397
398
399
400 public XCN removePv17_AttendingDoctor(int rep) throws HL7Exception {
401 return (XCN) super.removeRepetition(7, rep);
402 }
403
404
405
406
407
408
409 public XCN[] getReferringDoctor() {
410 XCN[] retVal = this.getTypedField(8, new XCN[0]);
411 return retVal;
412 }
413
414
415
416
417
418 public XCN[] getPv18_ReferringDoctor() {
419 XCN[] retVal = this.getTypedField(8, new XCN[0]);
420 return retVal;
421 }
422
423
424
425
426
427
428
429 public int getReferringDoctorReps() {
430 return this.getReps(8);
431 }
432
433
434
435
436
437
438
439
440 public XCN getReferringDoctor(int rep) {
441 XCN retVal = this.getTypedField(8, rep);
442 return retVal;
443 }
444
445
446
447
448
449
450
451 public XCN getPv18_ReferringDoctor(int rep) {
452 XCN retVal = this.getTypedField(8, rep);
453 return retVal;
454 }
455
456
457
458
459
460
461 public int getPv18_ReferringDoctorReps() {
462 return this.getReps(8);
463 }
464
465
466
467
468
469
470
471
472
473 public XCN insertReferringDoctor(int rep) throws HL7Exception {
474 return (XCN) super.insertRepetition(8, rep);
475 }
476
477
478
479
480
481
482
483
484
485 public XCN insertPv18_ReferringDoctor(int rep) throws HL7Exception {
486 return (XCN) super.insertRepetition(8, rep);
487 }
488
489
490
491
492
493
494
495
496
497 public XCN removeReferringDoctor(int rep) throws HL7Exception {
498 return (XCN) super.removeRepetition(8, rep);
499 }
500
501
502
503
504
505
506
507
508
509 public XCN removePv18_ReferringDoctor(int rep) throws HL7Exception {
510 return (XCN) super.removeRepetition(8, rep);
511 }
512
513
514
515
516
517
518 public XCN[] getConsultingDoctor() {
519 XCN[] retVal = this.getTypedField(9, new XCN[0]);
520 return retVal;
521 }
522
523
524
525
526
527 public XCN[] getPv19_ConsultingDoctor() {
528 XCN[] retVal = this.getTypedField(9, new XCN[0]);
529 return retVal;
530 }
531
532
533
534
535
536
537
538 public int getConsultingDoctorReps() {
539 return this.getReps(9);
540 }
541
542
543
544
545
546
547
548
549 public XCN getConsultingDoctor(int rep) {
550 XCN retVal = this.getTypedField(9, rep);
551 return retVal;
552 }
553
554
555
556
557
558
559
560 public XCN getPv19_ConsultingDoctor(int rep) {
561 XCN retVal = this.getTypedField(9, rep);
562 return retVal;
563 }
564
565
566
567
568
569
570 public int getPv19_ConsultingDoctorReps() {
571 return this.getReps(9);
572 }
573
574
575
576
577
578
579
580
581
582 public XCN insertConsultingDoctor(int rep) throws HL7Exception {
583 return (XCN) super.insertRepetition(9, rep);
584 }
585
586
587
588
589
590
591
592
593
594 public XCN insertPv19_ConsultingDoctor(int rep) throws HL7Exception {
595 return (XCN) super.insertRepetition(9, rep);
596 }
597
598
599
600
601
602
603
604
605
606 public XCN removeConsultingDoctor(int rep) throws HL7Exception {
607 return (XCN) super.removeRepetition(9, rep);
608 }
609
610
611
612
613
614
615
616
617
618 public XCN removePv19_ConsultingDoctor(int rep) throws HL7Exception {
619 return (XCN) super.removeRepetition(9, rep);
620 }
621
622
623
624
625
626
627
628
629 public IS getHospitalService() {
630 IS retVal = this.getTypedField(10, 0);
631 return retVal;
632 }
633
634
635
636
637
638 public IS getPv110_HospitalService() {
639 IS retVal = this.getTypedField(10, 0);
640 return retVal;
641 }
642
643
644
645
646
647
648
649 public PL getTemporaryLocation() {
650 PL retVal = this.getTypedField(11, 0);
651 return retVal;
652 }
653
654
655
656
657
658 public PL getPv111_TemporaryLocation() {
659 PL retVal = this.getTypedField(11, 0);
660 return retVal;
661 }
662
663
664
665
666
667
668
669 public IS getPreadmitTestIndicator() {
670 IS retVal = this.getTypedField(12, 0);
671 return retVal;
672 }
673
674
675
676
677
678 public IS getPv112_PreadmitTestIndicator() {
679 IS retVal = this.getTypedField(12, 0);
680 return retVal;
681 }
682
683
684
685
686
687
688
689 public IS getReAdmissionIndicator() {
690 IS retVal = this.getTypedField(13, 0);
691 return retVal;
692 }
693
694
695
696
697
698 public IS getPv113_ReAdmissionIndicator() {
699 IS retVal = this.getTypedField(13, 0);
700 return retVal;
701 }
702
703
704
705
706
707
708
709 public IS getAdmitSource() {
710 IS retVal = this.getTypedField(14, 0);
711 return retVal;
712 }
713
714
715
716
717
718 public IS getPv114_AdmitSource() {
719 IS retVal = this.getTypedField(14, 0);
720 return retVal;
721 }
722
723
724
725
726
727 public IS[] getAmbulatoryStatus() {
728 IS[] retVal = this.getTypedField(15, new IS[0]);
729 return retVal;
730 }
731
732
733
734
735
736 public IS[] getPv115_AmbulatoryStatus() {
737 IS[] retVal = this.getTypedField(15, new IS[0]);
738 return retVal;
739 }
740
741
742
743
744
745
746
747 public int getAmbulatoryStatusReps() {
748 return this.getReps(15);
749 }
750
751
752
753
754
755
756
757
758 public IS getAmbulatoryStatus(int rep) {
759 IS retVal = this.getTypedField(15, rep);
760 return retVal;
761 }
762
763
764
765
766
767
768
769 public IS getPv115_AmbulatoryStatus(int rep) {
770 IS retVal = this.getTypedField(15, rep);
771 return retVal;
772 }
773
774
775
776
777
778
779 public int getPv115_AmbulatoryStatusReps() {
780 return this.getReps(15);
781 }
782
783
784
785
786
787
788
789
790
791 public IS insertAmbulatoryStatus(int rep) throws HL7Exception {
792 return (IS) super.insertRepetition(15, rep);
793 }
794
795
796
797
798
799
800
801
802
803 public IS insertPv115_AmbulatoryStatus(int rep) throws HL7Exception {
804 return (IS) super.insertRepetition(15, rep);
805 }
806
807
808
809
810
811
812
813
814
815 public IS removeAmbulatoryStatus(int rep) throws HL7Exception {
816 return (IS) super.removeRepetition(15, rep);
817 }
818
819
820
821
822
823
824
825
826
827 public IS removePv115_AmbulatoryStatus(int rep) throws HL7Exception {
828 return (IS) super.removeRepetition(15, rep);
829 }
830
831
832
833
834
835
836
837
838 public IS getVIPIndicator() {
839 IS retVal = this.getTypedField(16, 0);
840 return retVal;
841 }
842
843
844
845
846
847 public IS getPv116_VIPIndicator() {
848 IS retVal = this.getTypedField(16, 0);
849 return retVal;
850 }
851
852
853
854
855
856 public XCN[] getAdmittingDoctor() {
857 XCN[] retVal = this.getTypedField(17, new XCN[0]);
858 return retVal;
859 }
860
861
862
863
864
865 public XCN[] getPv117_AdmittingDoctor() {
866 XCN[] retVal = this.getTypedField(17, new XCN[0]);
867 return retVal;
868 }
869
870
871
872
873
874
875
876 public int getAdmittingDoctorReps() {
877 return this.getReps(17);
878 }
879
880
881
882
883
884
885
886
887 public XCN getAdmittingDoctor(int rep) {
888 XCN retVal = this.getTypedField(17, rep);
889 return retVal;
890 }
891
892
893
894
895
896
897
898 public XCN getPv117_AdmittingDoctor(int rep) {
899 XCN retVal = this.getTypedField(17, rep);
900 return retVal;
901 }
902
903
904
905
906
907
908 public int getPv117_AdmittingDoctorReps() {
909 return this.getReps(17);
910 }
911
912
913
914
915
916
917
918
919
920 public XCN insertAdmittingDoctor(int rep) throws HL7Exception {
921 return (XCN) super.insertRepetition(17, rep);
922 }
923
924
925
926
927
928
929
930
931
932 public XCN insertPv117_AdmittingDoctor(int rep) throws HL7Exception {
933 return (XCN) super.insertRepetition(17, rep);
934 }
935
936
937
938
939
940
941
942
943
944 public XCN removeAdmittingDoctor(int rep) throws HL7Exception {
945 return (XCN) super.removeRepetition(17, rep);
946 }
947
948
949
950
951
952
953
954
955
956 public XCN removePv117_AdmittingDoctor(int rep) throws HL7Exception {
957 return (XCN) super.removeRepetition(17, rep);
958 }
959
960
961
962
963
964
965
966
967 public IS getPatientType() {
968 IS retVal = this.getTypedField(18, 0);
969 return retVal;
970 }
971
972
973
974
975
976 public IS getPv118_PatientType() {
977 IS retVal = this.getTypedField(18, 0);
978 return retVal;
979 }
980
981
982
983
984
985
986
987 public CX getVisitNumber() {
988 CX retVal = this.getTypedField(19, 0);
989 return retVal;
990 }
991
992
993
994
995
996 public CX getPv119_VisitNumber() {
997 CX retVal = this.getTypedField(19, 0);
998 return retVal;
999 }
1000
1001
1002
1003
1004
1005 public FC[] getFinancialClass() {
1006 FC[] retVal = this.getTypedField(20, new FC[0]);
1007 return retVal;
1008 }
1009
1010
1011
1012
1013
1014 public FC[] getPv120_FinancialClass() {
1015 FC[] retVal = this.getTypedField(20, new FC[0]);
1016 return retVal;
1017 }
1018
1019
1020
1021
1022
1023
1024
1025 public int getFinancialClassReps() {
1026 return this.getReps(20);
1027 }
1028
1029
1030
1031
1032
1033
1034
1035
1036 public FC getFinancialClass(int rep) {
1037 FC retVal = this.getTypedField(20, rep);
1038 return retVal;
1039 }
1040
1041
1042
1043
1044
1045
1046
1047 public FC getPv120_FinancialClass(int rep) {
1048 FC retVal = this.getTypedField(20, rep);
1049 return retVal;
1050 }
1051
1052
1053
1054
1055
1056
1057 public int getPv120_FinancialClassReps() {
1058 return this.getReps(20);
1059 }
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069 public FC insertFinancialClass(int rep) throws HL7Exception {
1070 return (FC) super.insertRepetition(20, rep);
1071 }
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081 public FC insertPv120_FinancialClass(int rep) throws HL7Exception {
1082 return (FC) super.insertRepetition(20, rep);
1083 }
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093 public FC removeFinancialClass(int rep) throws HL7Exception {
1094 return (FC) super.removeRepetition(20, rep);
1095 }
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105 public FC removePv120_FinancialClass(int rep) throws HL7Exception {
1106 return (FC) super.removeRepetition(20, rep);
1107 }
1108
1109
1110
1111
1112
1113
1114
1115
1116 public IS getChargePriceIndicator() {
1117 IS retVal = this.getTypedField(21, 0);
1118 return retVal;
1119 }
1120
1121
1122
1123
1124
1125 public IS getPv121_ChargePriceIndicator() {
1126 IS retVal = this.getTypedField(21, 0);
1127 return retVal;
1128 }
1129
1130
1131
1132
1133
1134
1135
1136 public IS getCourtesyCode() {
1137 IS retVal = this.getTypedField(22, 0);
1138 return retVal;
1139 }
1140
1141
1142
1143
1144
1145 public IS getPv122_CourtesyCode() {
1146 IS retVal = this.getTypedField(22, 0);
1147 return retVal;
1148 }
1149
1150
1151
1152
1153
1154
1155
1156 public IS getCreditRating() {
1157 IS retVal = this.getTypedField(23, 0);
1158 return retVal;
1159 }
1160
1161
1162
1163
1164
1165 public IS getPv123_CreditRating() {
1166 IS retVal = this.getTypedField(23, 0);
1167 return retVal;
1168 }
1169
1170
1171
1172
1173
1174 public IS[] getContractCode() {
1175 IS[] retVal = this.getTypedField(24, new IS[0]);
1176 return retVal;
1177 }
1178
1179
1180
1181
1182
1183 public IS[] getPv124_ContractCode() {
1184 IS[] retVal = this.getTypedField(24, new IS[0]);
1185 return retVal;
1186 }
1187
1188
1189
1190
1191
1192
1193
1194 public int getContractCodeReps() {
1195 return this.getReps(24);
1196 }
1197
1198
1199
1200
1201
1202
1203
1204
1205 public IS getContractCode(int rep) {
1206 IS retVal = this.getTypedField(24, rep);
1207 return retVal;
1208 }
1209
1210
1211
1212
1213
1214
1215
1216 public IS getPv124_ContractCode(int rep) {
1217 IS retVal = this.getTypedField(24, rep);
1218 return retVal;
1219 }
1220
1221
1222
1223
1224
1225
1226 public int getPv124_ContractCodeReps() {
1227 return this.getReps(24);
1228 }
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238 public IS insertContractCode(int rep) throws HL7Exception {
1239 return (IS) super.insertRepetition(24, rep);
1240 }
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250 public IS insertPv124_ContractCode(int rep) throws HL7Exception {
1251 return (IS) super.insertRepetition(24, rep);
1252 }
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262 public IS removeContractCode(int rep) throws HL7Exception {
1263 return (IS) super.removeRepetition(24, rep);
1264 }
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274 public IS removePv124_ContractCode(int rep) throws HL7Exception {
1275 return (IS) super.removeRepetition(24, rep);
1276 }
1277
1278
1279
1280
1281
1282
1283 public DT[] getContractEffectiveDate() {
1284 DT[] retVal = this.getTypedField(25, new DT[0]);
1285 return retVal;
1286 }
1287
1288
1289
1290
1291
1292 public DT[] getPv125_ContractEffectiveDate() {
1293 DT[] retVal = this.getTypedField(25, new DT[0]);
1294 return retVal;
1295 }
1296
1297
1298
1299
1300
1301
1302
1303 public int getContractEffectiveDateReps() {
1304 return this.getReps(25);
1305 }
1306
1307
1308
1309
1310
1311
1312
1313
1314 public DT getContractEffectiveDate(int rep) {
1315 DT retVal = this.getTypedField(25, rep);
1316 return retVal;
1317 }
1318
1319
1320
1321
1322
1323
1324
1325 public DT getPv125_ContractEffectiveDate(int rep) {
1326 DT retVal = this.getTypedField(25, rep);
1327 return retVal;
1328 }
1329
1330
1331
1332
1333
1334
1335 public int getPv125_ContractEffectiveDateReps() {
1336 return this.getReps(25);
1337 }
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347 public DT insertContractEffectiveDate(int rep) throws HL7Exception {
1348 return (DT) super.insertRepetition(25, rep);
1349 }
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359 public DT insertPv125_ContractEffectiveDate(int rep) throws HL7Exception {
1360 return (DT) super.insertRepetition(25, rep);
1361 }
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371 public DT removeContractEffectiveDate(int rep) throws HL7Exception {
1372 return (DT) super.removeRepetition(25, rep);
1373 }
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 public DT removePv125_ContractEffectiveDate(int rep) throws HL7Exception {
1384 return (DT) super.removeRepetition(25, rep);
1385 }
1386
1387
1388
1389
1390
1391
1392 public NM[] getContractAmount() {
1393 NM[] retVal = this.getTypedField(26, new NM[0]);
1394 return retVal;
1395 }
1396
1397
1398
1399
1400
1401 public NM[] getPv126_ContractAmount() {
1402 NM[] retVal = this.getTypedField(26, new NM[0]);
1403 return retVal;
1404 }
1405
1406
1407
1408
1409
1410
1411
1412 public int getContractAmountReps() {
1413 return this.getReps(26);
1414 }
1415
1416
1417
1418
1419
1420
1421
1422
1423 public NM getContractAmount(int rep) {
1424 NM retVal = this.getTypedField(26, rep);
1425 return retVal;
1426 }
1427
1428
1429
1430
1431
1432
1433
1434 public NM getPv126_ContractAmount(int rep) {
1435 NM retVal = this.getTypedField(26, rep);
1436 return retVal;
1437 }
1438
1439
1440
1441
1442
1443
1444 public int getPv126_ContractAmountReps() {
1445 return this.getReps(26);
1446 }
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456 public NM insertContractAmount(int rep) throws HL7Exception {
1457 return (NM) super.insertRepetition(26, rep);
1458 }
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468 public NM insertPv126_ContractAmount(int rep) throws HL7Exception {
1469 return (NM) super.insertRepetition(26, rep);
1470 }
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480 public NM removeContractAmount(int rep) throws HL7Exception {
1481 return (NM) super.removeRepetition(26, rep);
1482 }
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492 public NM removePv126_ContractAmount(int rep) throws HL7Exception {
1493 return (NM) super.removeRepetition(26, rep);
1494 }
1495
1496
1497
1498
1499
1500
1501 public NM[] getContractPeriod() {
1502 NM[] retVal = this.getTypedField(27, new NM[0]);
1503 return retVal;
1504 }
1505
1506
1507
1508
1509
1510 public NM[] getPv127_ContractPeriod() {
1511 NM[] retVal = this.getTypedField(27, new NM[0]);
1512 return retVal;
1513 }
1514
1515
1516
1517
1518
1519
1520
1521 public int getContractPeriodReps() {
1522 return this.getReps(27);
1523 }
1524
1525
1526
1527
1528
1529
1530
1531
1532 public NM getContractPeriod(int rep) {
1533 NM retVal = this.getTypedField(27, rep);
1534 return retVal;
1535 }
1536
1537
1538
1539
1540
1541
1542
1543 public NM getPv127_ContractPeriod(int rep) {
1544 NM retVal = this.getTypedField(27, rep);
1545 return retVal;
1546 }
1547
1548
1549
1550
1551
1552
1553 public int getPv127_ContractPeriodReps() {
1554 return this.getReps(27);
1555 }
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565 public NM insertContractPeriod(int rep) throws HL7Exception {
1566 return (NM) super.insertRepetition(27, rep);
1567 }
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577 public NM insertPv127_ContractPeriod(int rep) throws HL7Exception {
1578 return (NM) super.insertRepetition(27, rep);
1579 }
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589 public NM removeContractPeriod(int rep) throws HL7Exception {
1590 return (NM) super.removeRepetition(27, rep);
1591 }
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601 public NM removePv127_ContractPeriod(int rep) throws HL7Exception {
1602 return (NM) super.removeRepetition(27, rep);
1603 }
1604
1605
1606
1607
1608
1609
1610
1611
1612 public IS getInterestCode() {
1613 IS retVal = this.getTypedField(28, 0);
1614 return retVal;
1615 }
1616
1617
1618
1619
1620
1621 public IS getPv128_InterestCode() {
1622 IS retVal = this.getTypedField(28, 0);
1623 return retVal;
1624 }
1625
1626
1627
1628
1629
1630
1631
1632 public IS getTransferToBadDebtCode() {
1633 IS retVal = this.getTypedField(29, 0);
1634 return retVal;
1635 }
1636
1637
1638
1639
1640
1641 public IS getPv129_TransferToBadDebtCode() {
1642 IS retVal = this.getTypedField(29, 0);
1643 return retVal;
1644 }
1645
1646
1647
1648
1649
1650
1651
1652 public DT getTransferToBadDebtDate() {
1653 DT retVal = this.getTypedField(30, 0);
1654 return retVal;
1655 }
1656
1657
1658
1659
1660
1661 public DT getPv130_TransferToBadDebtDate() {
1662 DT retVal = this.getTypedField(30, 0);
1663 return retVal;
1664 }
1665
1666
1667
1668
1669
1670
1671
1672 public IS getBadDebtAgencyCode() {
1673 IS retVal = this.getTypedField(31, 0);
1674 return retVal;
1675 }
1676
1677
1678
1679
1680
1681 public IS getPv131_BadDebtAgencyCode() {
1682 IS retVal = this.getTypedField(31, 0);
1683 return retVal;
1684 }
1685
1686
1687
1688
1689
1690
1691
1692 public NM getBadDebtTransferAmount() {
1693 NM retVal = this.getTypedField(32, 0);
1694 return retVal;
1695 }
1696
1697
1698
1699
1700
1701 public NM getPv132_BadDebtTransferAmount() {
1702 NM retVal = this.getTypedField(32, 0);
1703 return retVal;
1704 }
1705
1706
1707
1708
1709
1710
1711
1712 public NM getBadDebtRecoveryAmount() {
1713 NM retVal = this.getTypedField(33, 0);
1714 return retVal;
1715 }
1716
1717
1718
1719
1720
1721 public NM getPv133_BadDebtRecoveryAmount() {
1722 NM retVal = this.getTypedField(33, 0);
1723 return retVal;
1724 }
1725
1726
1727
1728
1729
1730
1731
1732 public IS getDeleteAccountIndicator() {
1733 IS retVal = this.getTypedField(34, 0);
1734 return retVal;
1735 }
1736
1737
1738
1739
1740
1741 public IS getPv134_DeleteAccountIndicator() {
1742 IS retVal = this.getTypedField(34, 0);
1743 return retVal;
1744 }
1745
1746
1747
1748
1749
1750
1751
1752 public DT getDeleteAccountDate() {
1753 DT retVal = this.getTypedField(35, 0);
1754 return retVal;
1755 }
1756
1757
1758
1759
1760
1761 public DT getPv135_DeleteAccountDate() {
1762 DT retVal = this.getTypedField(35, 0);
1763 return retVal;
1764 }
1765
1766
1767
1768
1769
1770
1771
1772 public IS getDischargeDisposition() {
1773 IS retVal = this.getTypedField(36, 0);
1774 return retVal;
1775 }
1776
1777
1778
1779
1780
1781 public IS getPv136_DischargeDisposition() {
1782 IS retVal = this.getTypedField(36, 0);
1783 return retVal;
1784 }
1785
1786
1787
1788
1789
1790
1791
1792 public DLD getDischargedToLocation() {
1793 DLD retVal = this.getTypedField(37, 0);
1794 return retVal;
1795 }
1796
1797
1798
1799
1800
1801 public DLD getPv137_DischargedToLocation() {
1802 DLD retVal = this.getTypedField(37, 0);
1803 return retVal;
1804 }
1805
1806
1807
1808
1809
1810
1811
1812 public CE getDietType() {
1813 CE retVal = this.getTypedField(38, 0);
1814 return retVal;
1815 }
1816
1817
1818
1819
1820
1821 public CE getPv138_DietType() {
1822 CE retVal = this.getTypedField(38, 0);
1823 return retVal;
1824 }
1825
1826
1827
1828
1829
1830
1831
1832 public IS getServicingFacility() {
1833 IS retVal = this.getTypedField(39, 0);
1834 return retVal;
1835 }
1836
1837
1838
1839
1840
1841 public IS getPv139_ServicingFacility() {
1842 IS retVal = this.getTypedField(39, 0);
1843 return retVal;
1844 }
1845
1846
1847
1848
1849
1850
1851
1852 public IS getBedStatus() {
1853 IS retVal = this.getTypedField(40, 0);
1854 return retVal;
1855 }
1856
1857
1858
1859
1860
1861 public IS getPv140_BedStatus() {
1862 IS retVal = this.getTypedField(40, 0);
1863 return retVal;
1864 }
1865
1866
1867
1868
1869
1870
1871
1872 public IS getAccountStatus() {
1873 IS retVal = this.getTypedField(41, 0);
1874 return retVal;
1875 }
1876
1877
1878
1879
1880
1881 public IS getPv141_AccountStatus() {
1882 IS retVal = this.getTypedField(41, 0);
1883 return retVal;
1884 }
1885
1886
1887
1888
1889
1890
1891
1892 public PL getPendingLocation() {
1893 PL retVal = this.getTypedField(42, 0);
1894 return retVal;
1895 }
1896
1897
1898
1899
1900
1901 public PL getPv142_PendingLocation() {
1902 PL retVal = this.getTypedField(42, 0);
1903 return retVal;
1904 }
1905
1906
1907
1908
1909
1910
1911
1912 public PL getPriorTemporaryLocation() {
1913 PL retVal = this.getTypedField(43, 0);
1914 return retVal;
1915 }
1916
1917
1918
1919
1920
1921 public PL getPv143_PriorTemporaryLocation() {
1922 PL retVal = this.getTypedField(43, 0);
1923 return retVal;
1924 }
1925
1926
1927
1928
1929
1930
1931
1932 public TS getAdmitDateTime() {
1933 TS retVal = this.getTypedField(44, 0);
1934 return retVal;
1935 }
1936
1937
1938
1939
1940
1941 public TS getPv144_AdmitDateTime() {
1942 TS retVal = this.getTypedField(44, 0);
1943 return retVal;
1944 }
1945
1946
1947
1948
1949
1950
1951
1952 public TS getDischargeDateTime() {
1953 TS retVal = this.getTypedField(45, 0);
1954 return retVal;
1955 }
1956
1957
1958
1959
1960
1961 public TS getPv145_DischargeDateTime() {
1962 TS retVal = this.getTypedField(45, 0);
1963 return retVal;
1964 }
1965
1966
1967
1968
1969
1970
1971
1972 public NM getCurrentPatientBalance() {
1973 NM retVal = this.getTypedField(46, 0);
1974 return retVal;
1975 }
1976
1977
1978
1979
1980
1981 public NM getPv146_CurrentPatientBalance() {
1982 NM retVal = this.getTypedField(46, 0);
1983 return retVal;
1984 }
1985
1986
1987
1988
1989
1990
1991
1992 public NM getTotalCharges() {
1993 NM retVal = this.getTypedField(47, 0);
1994 return retVal;
1995 }
1996
1997
1998
1999
2000
2001 public NM getPv147_TotalCharges() {
2002 NM retVal = this.getTypedField(47, 0);
2003 return retVal;
2004 }
2005
2006
2007
2008
2009
2010
2011
2012 public NM getTotalAdjustments() {
2013 NM retVal = this.getTypedField(48, 0);
2014 return retVal;
2015 }
2016
2017
2018
2019
2020
2021 public NM getPv148_TotalAdjustments() {
2022 NM retVal = this.getTypedField(48, 0);
2023 return retVal;
2024 }
2025
2026
2027
2028
2029
2030
2031
2032 public NM getTotalPayments() {
2033 NM retVal = this.getTypedField(49, 0);
2034 return retVal;
2035 }
2036
2037
2038
2039
2040
2041 public NM getPv149_TotalPayments() {
2042 NM retVal = this.getTypedField(49, 0);
2043 return retVal;
2044 }
2045
2046
2047
2048
2049
2050
2051
2052 public CX getAlternateVisitID() {
2053 CX retVal = this.getTypedField(50, 0);
2054 return retVal;
2055 }
2056
2057
2058
2059
2060
2061 public CX getPv150_AlternateVisitID() {
2062 CX retVal = this.getTypedField(50, 0);
2063 return retVal;
2064 }
2065
2066
2067
2068
2069
2070
2071
2072 public IS getVisitIndicator() {
2073 IS retVal = this.getTypedField(51, 0);
2074 return retVal;
2075 }
2076
2077
2078
2079
2080
2081 public IS getPv151_VisitIndicator() {
2082 IS retVal = this.getTypedField(51, 0);
2083 return retVal;
2084 }
2085
2086
2087
2088
2089
2090 public XCN[] getOtherHealthcareProvider() {
2091 XCN[] retVal = this.getTypedField(52, new XCN[0]);
2092 return retVal;
2093 }
2094
2095
2096
2097
2098
2099 public XCN[] getPv152_OtherHealthcareProvider() {
2100 XCN[] retVal = this.getTypedField(52, new XCN[0]);
2101 return retVal;
2102 }
2103
2104
2105
2106
2107
2108
2109
2110 public int getOtherHealthcareProviderReps() {
2111 return this.getReps(52);
2112 }
2113
2114
2115
2116
2117
2118
2119
2120
2121 public XCN getOtherHealthcareProvider(int rep) {
2122 XCN retVal = this.getTypedField(52, rep);
2123 return retVal;
2124 }
2125
2126
2127
2128
2129
2130
2131
2132 public XCN getPv152_OtherHealthcareProvider(int rep) {
2133 XCN retVal = this.getTypedField(52, rep);
2134 return retVal;
2135 }
2136
2137
2138
2139
2140
2141
2142 public int getPv152_OtherHealthcareProviderReps() {
2143 return this.getReps(52);
2144 }
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154 public XCN insertOtherHealthcareProvider(int rep) throws HL7Exception {
2155 return (XCN) super.insertRepetition(52, rep);
2156 }
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166 public XCN insertPv152_OtherHealthcareProvider(int rep) throws HL7Exception {
2167 return (XCN) super.insertRepetition(52, rep);
2168 }
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 public XCN removeOtherHealthcareProvider(int rep) throws HL7Exception {
2179 return (XCN) super.removeRepetition(52, rep);
2180 }
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190 public XCN removePv152_OtherHealthcareProvider(int rep) throws HL7Exception {
2191 return (XCN) super.removeRepetition(52, rep);
2192 }
2193
2194
2195
2196
2197
2198
2199
2200 protected Type createNewTypeWithoutReflection(int field) {
2201 switch (field) {
2202 case 0: return new SI(getMessage());
2203 case 1: return new IS(getMessage(), new Integer( 4 ));
2204 case 2: return new PL(getMessage());
2205 case 3: return new IS(getMessage(), new Integer( 7 ));
2206 case 4: return new CX(getMessage());
2207 case 5: return new PL(getMessage());
2208 case 6: return new XCN(getMessage());
2209 case 7: return new XCN(getMessage());
2210 case 8: return new XCN(getMessage());
2211 case 9: return new IS(getMessage(), new Integer( 69 ));
2212 case 10: return new PL(getMessage());
2213 case 11: return new IS(getMessage(), new Integer( 87 ));
2214 case 12: return new IS(getMessage(), new Integer( 92 ));
2215 case 13: return new IS(getMessage(), new Integer( 23 ));
2216 case 14: return new IS(getMessage(), new Integer( 9 ));
2217 case 15: return new IS(getMessage(), new Integer( 99 ));
2218 case 16: return new XCN(getMessage());
2219 case 17: return new IS(getMessage(), new Integer( 18 ));
2220 case 18: return new CX(getMessage());
2221 case 19: return new FC(getMessage());
2222 case 20: return new IS(getMessage(), new Integer( 32 ));
2223 case 21: return new IS(getMessage(), new Integer( 45 ));
2224 case 22: return new IS(getMessage(), new Integer( 46 ));
2225 case 23: return new IS(getMessage(), new Integer( 44 ));
2226 case 24: return new DT(getMessage());
2227 case 25: return new NM(getMessage());
2228 case 26: return new NM(getMessage());
2229 case 27: return new IS(getMessage(), new Integer( 73 ));
2230 case 28: return new IS(getMessage(), new Integer( 110 ));
2231 case 29: return new DT(getMessage());
2232 case 30: return new IS(getMessage(), new Integer( 21 ));
2233 case 31: return new NM(getMessage());
2234 case 32: return new NM(getMessage());
2235 case 33: return new IS(getMessage(), new Integer( 111 ));
2236 case 34: return new DT(getMessage());
2237 case 35: return new IS(getMessage(), new Integer( 112 ));
2238 case 36: return new DLD(getMessage());
2239 case 37: return new CE(getMessage());
2240 case 38: return new IS(getMessage(), new Integer( 115 ));
2241 case 39: return new IS(getMessage(), new Integer( 116 ));
2242 case 40: return new IS(getMessage(), new Integer( 117 ));
2243 case 41: return new PL(getMessage());
2244 case 42: return new PL(getMessage());
2245 case 43: return new TS(getMessage());
2246 case 44: return new TS(getMessage());
2247 case 45: return new NM(getMessage());
2248 case 46: return new NM(getMessage());
2249 case 47: return new NM(getMessage());
2250 case 48: return new NM(getMessage());
2251 case 49: return new CX(getMessage());
2252 case 50: return new IS(getMessage(), new Integer( 326 ));
2253 case 51: return new XCN(getMessage());
2254 default: return null;
2255 }
2256 }
2257
2258
2259 }
2260