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