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