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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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 @SuppressWarnings("unused")
104 public class PV1 extends AbstractSegment {
105
106
107
108
109 public PV1(Group parent, ModelClassFactory factory) {
110 super(parent, factory);
111 init(factory);
112 }
113
114 private void init(ModelClassFactory factory) {
115 try {
116 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "SET ID - PATIENT VISIT");
117 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(4) }, "PATIENT CLASS");
118 this.add(ID.class, true, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "ASSIGNED PATIENT LOCATION");
119 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(7) }, "ADMISSION TYPE");
120 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "PRE-ADMIT NUMBER");
121 this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PRIOR PATIENT LOCATION");
122 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "ATTENDING DOCTOR");
123 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "REFERRING DOCTOR");
124 this.add(CN.class, false, 0, 60, new Object[]{ getMessage() }, "CONSULTING DOCTOR");
125 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(69) }, "HOSPITAL SERVICE");
126 this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "TEMPORARY LOCATION");
127 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(87) }, "PRE-ADMIT TEST INDICATOR");
128 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(92) }, "RE-ADMISSION INDICATOR");
129 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(23) }, "ADMIT SOURCE");
130 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "AMBULATORY STATUS");
131 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(99) }, "VIP INDICATOR");
132 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "ADMITTING DOCTOR");
133 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "PATIENT TYPE");
134 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "VISIT NUMBER");
135 this.add(ID.class, false, 4, 11, new Object[]{ getMessage(), new Integer(64) }, "FINANCIAL CLASS");
136 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(32) }, "CHARGE PRICE INDICATOR");
137 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(45) }, "COURTESY CODE");
138 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(46) }, "CREDIT RATING");
139 this.add(ID.class, false, 0, 2, new Object[]{ getMessage(), new Integer(44) }, "CONTRACT CODE");
140 this.add(DT.class, false, 0, 8, new Object[]{ getMessage() }, "CONTRACT EFFECTIVE DATE");
141 this.add(NM.class, false, 0, 12, new Object[]{ getMessage() }, "CONTRACT AMOUNT");
142 this.add(NM.class, false, 0, 3, new Object[]{ getMessage() }, "CONTRACT PERIOD");
143 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(73) }, "INTEREST CODE");
144 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(110) }, "TRANSFER TO BAD DEBT CODE");
145 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "TRANSFER TO BAD DEBT DATE");
146 this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "BAD DEBT AGENCY CODE");
147 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "BAD DEBT TRANSFER AMOUNT");
148 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "BAD DEBT RECOVERY AMOUNT");
149 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(111) }, "DELETE ACCOUNT INDICATOR");
150 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "DELETE ACCOUNT DATE");
151 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(112) }, "DISCHARGE DISPOSITION");
152 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(113) }, "DISCHARGED TO LOCATION");
153 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(114) }, "DIET TYPE");
154 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(115) }, "SERVICING FACILITY");
155 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(116) }, "BED STATUS");
156 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(117) }, "ACCOUNT STATUS");
157 this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PENDING LOCATION");
158 this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PRIOR TEMPORARY LOCATION");
159 this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "ADMIT DATE/TIME");
160 this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DISCHARGE DATE/TIME");
161 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "CURRENT PATIENT BALANCE");
162 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL CHARGES");
163 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL ADJUSTMENTS");
164 this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL PAYMENTS");
165 } catch(HL7Exception e) {
166 log.error("Unexpected error creating PV1 - this is probably a bug in the source code generator.", e);
167 }
168 }
169
170
171
172
173
174
175
176 public SI getSETIDPATIENTVISIT() {
177 SI retVal = this.getTypedField(1, 0);
178 return retVal;
179 }
180
181
182
183
184
185 public SI getPv11_SETIDPATIENTVISIT() {
186 SI retVal = this.getTypedField(1, 0);
187 return retVal;
188 }
189
190
191
192
193
194
195
196 public ID getPATIENTCLASS() {
197 ID retVal = this.getTypedField(2, 0);
198 return retVal;
199 }
200
201
202
203
204
205 public ID getPv12_PATIENTCLASS() {
206 ID retVal = this.getTypedField(2, 0);
207 return retVal;
208 }
209
210
211
212
213
214
215
216 public ID getASSIGNEDPATIENTLOCATION() {
217 ID retVal = this.getTypedField(3, 0);
218 return retVal;
219 }
220
221
222
223
224
225 public ID getPv13_ASSIGNEDPATIENTLOCATION() {
226 ID retVal = this.getTypedField(3, 0);
227 return retVal;
228 }
229
230
231
232
233
234
235
236 public ID getADMISSIONTYPE() {
237 ID retVal = this.getTypedField(4, 0);
238 return retVal;
239 }
240
241
242
243
244
245 public ID getPv14_ADMISSIONTYPE() {
246 ID retVal = this.getTypedField(4, 0);
247 return retVal;
248 }
249
250
251
252
253
254
255
256 public ST getPREADMITNUMBER() {
257 ST retVal = this.getTypedField(5, 0);
258 return retVal;
259 }
260
261
262
263
264
265 public ST getPv15_PREADMITNUMBER() {
266 ST retVal = this.getTypedField(5, 0);
267 return retVal;
268 }
269
270
271
272
273
274
275
276 public ID getPRIORPATIENTLOCATION() {
277 ID retVal = this.getTypedField(6, 0);
278 return retVal;
279 }
280
281
282
283
284
285 public ID getPv16_PRIORPATIENTLOCATION() {
286 ID retVal = this.getTypedField(6, 0);
287 return retVal;
288 }
289
290
291
292
293
294
295
296 public CN getATTENDINGDOCTOR() {
297 CN retVal = this.getTypedField(7, 0);
298 return retVal;
299 }
300
301
302
303
304
305 public CN getPv17_ATTENDINGDOCTOR() {
306 CN retVal = this.getTypedField(7, 0);
307 return retVal;
308 }
309
310
311
312
313
314
315
316 public CN getREFERRINGDOCTOR() {
317 CN retVal = this.getTypedField(8, 0);
318 return retVal;
319 }
320
321
322
323
324
325 public CN getPv18_REFERRINGDOCTOR() {
326 CN retVal = this.getTypedField(8, 0);
327 return retVal;
328 }
329
330
331
332
333
334 public CN[] getCONSULTINGDOCTOR() {
335 CN[] retVal = this.getTypedField(9, new CN[0]);
336 return retVal;
337 }
338
339
340
341
342
343 public CN[] getPv19_CONSULTINGDOCTOR() {
344 CN[] retVal = this.getTypedField(9, new CN[0]);
345 return retVal;
346 }
347
348
349
350
351
352
353
354 public int getCONSULTINGDOCTORReps() {
355 return this.getReps(9);
356 }
357
358
359
360
361
362
363
364
365 public CN getCONSULTINGDOCTOR(int rep) {
366 CN retVal = this.getTypedField(9, rep);
367 return retVal;
368 }
369
370
371
372
373
374
375
376 public CN getPv19_CONSULTINGDOCTOR(int rep) {
377 CN retVal = this.getTypedField(9, rep);
378 return retVal;
379 }
380
381
382
383
384
385
386 public int getPv19_CONSULTINGDOCTORReps() {
387 return this.getReps(9);
388 }
389
390
391
392
393
394
395
396
397
398 public CN insertCONSULTINGDOCTOR(int rep) throws HL7Exception {
399 return (CN) super.insertRepetition(9, rep);
400 }
401
402
403
404
405
406
407
408
409
410 public CN insertPv19_CONSULTINGDOCTOR(int rep) throws HL7Exception {
411 return (CN) super.insertRepetition(9, rep);
412 }
413
414
415
416
417
418
419
420
421
422 public CN removeCONSULTINGDOCTOR(int rep) throws HL7Exception {
423 return (CN) super.removeRepetition(9, rep);
424 }
425
426
427
428
429
430
431
432
433
434 public CN removePv19_CONSULTINGDOCTOR(int rep) throws HL7Exception {
435 return (CN) super.removeRepetition(9, rep);
436 }
437
438
439
440
441
442
443
444
445 public ID getHOSPITALSERVICE() {
446 ID retVal = this.getTypedField(10, 0);
447 return retVal;
448 }
449
450
451
452
453
454 public ID getPv110_HOSPITALSERVICE() {
455 ID retVal = this.getTypedField(10, 0);
456 return retVal;
457 }
458
459
460
461
462
463
464
465 public ID getTEMPORARYLOCATION() {
466 ID retVal = this.getTypedField(11, 0);
467 return retVal;
468 }
469
470
471
472
473
474 public ID getPv111_TEMPORARYLOCATION() {
475 ID retVal = this.getTypedField(11, 0);
476 return retVal;
477 }
478
479
480
481
482
483
484
485 public ID getPREADMITTESTINDICATOR() {
486 ID retVal = this.getTypedField(12, 0);
487 return retVal;
488 }
489
490
491
492
493
494 public ID getPv112_PREADMITTESTINDICATOR() {
495 ID retVal = this.getTypedField(12, 0);
496 return retVal;
497 }
498
499
500
501
502
503
504
505 public ID getREADMISSIONINDICATOR() {
506 ID retVal = this.getTypedField(13, 0);
507 return retVal;
508 }
509
510
511
512
513
514 public ID getPv113_READMISSIONINDICATOR() {
515 ID retVal = this.getTypedField(13, 0);
516 return retVal;
517 }
518
519
520
521
522
523
524
525 public ID getADMITSOURCE() {
526 ID retVal = this.getTypedField(14, 0);
527 return retVal;
528 }
529
530
531
532
533
534 public ID getPv114_ADMITSOURCE() {
535 ID retVal = this.getTypedField(14, 0);
536 return retVal;
537 }
538
539
540
541
542
543
544
545 public ID getAMBULATORYSTATUS() {
546 ID retVal = this.getTypedField(15, 0);
547 return retVal;
548 }
549
550
551
552
553
554 public ID getPv115_AMBULATORYSTATUS() {
555 ID retVal = this.getTypedField(15, 0);
556 return retVal;
557 }
558
559
560
561
562
563
564
565 public ID getVIPINDICATOR() {
566 ID retVal = this.getTypedField(16, 0);
567 return retVal;
568 }
569
570
571
572
573
574 public ID getPv116_VIPINDICATOR() {
575 ID retVal = this.getTypedField(16, 0);
576 return retVal;
577 }
578
579
580
581
582
583
584
585 public CN getADMITTINGDOCTOR() {
586 CN retVal = this.getTypedField(17, 0);
587 return retVal;
588 }
589
590
591
592
593
594 public CN getPv117_ADMITTINGDOCTOR() {
595 CN retVal = this.getTypedField(17, 0);
596 return retVal;
597 }
598
599
600
601
602
603
604
605 public ID getPATIENTTYPE() {
606 ID retVal = this.getTypedField(18, 0);
607 return retVal;
608 }
609
610
611
612
613
614 public ID getPv118_PATIENTTYPE() {
615 ID retVal = this.getTypedField(18, 0);
616 return retVal;
617 }
618
619
620
621
622
623
624
625 public NM getVISITNUMBER() {
626 NM retVal = this.getTypedField(19, 0);
627 return retVal;
628 }
629
630
631
632
633
634 public NM getPv119_VISITNUMBER() {
635 NM retVal = this.getTypedField(19, 0);
636 return retVal;
637 }
638
639
640
641
642
643 public ID[] getFINANCIALCLASS() {
644 ID[] retVal = this.getTypedField(20, new ID[0]);
645 return retVal;
646 }
647
648
649
650
651
652 public ID[] getPv120_FINANCIALCLASS() {
653 ID[] retVal = this.getTypedField(20, new ID[0]);
654 return retVal;
655 }
656
657
658
659
660
661
662
663 public int getFINANCIALCLASSReps() {
664 return this.getReps(20);
665 }
666
667
668
669
670
671
672
673
674 public ID getFINANCIALCLASS(int rep) {
675 ID retVal = this.getTypedField(20, rep);
676 return retVal;
677 }
678
679
680
681
682
683
684
685 public ID getPv120_FINANCIALCLASS(int rep) {
686 ID retVal = this.getTypedField(20, rep);
687 return retVal;
688 }
689
690
691
692
693
694
695 public int getPv120_FINANCIALCLASSReps() {
696 return this.getReps(20);
697 }
698
699
700
701
702
703
704
705
706
707 public ID insertFINANCIALCLASS(int rep) throws HL7Exception {
708 return (ID) super.insertRepetition(20, rep);
709 }
710
711
712
713
714
715
716
717
718
719 public ID insertPv120_FINANCIALCLASS(int rep) throws HL7Exception {
720 return (ID) super.insertRepetition(20, rep);
721 }
722
723
724
725
726
727
728
729
730
731 public ID removeFINANCIALCLASS(int rep) throws HL7Exception {
732 return (ID) super.removeRepetition(20, rep);
733 }
734
735
736
737
738
739
740
741
742
743 public ID removePv120_FINANCIALCLASS(int rep) throws HL7Exception {
744 return (ID) super.removeRepetition(20, rep);
745 }
746
747
748
749
750
751
752
753
754 public ID getCHARGEPRICEINDICATOR() {
755 ID retVal = this.getTypedField(21, 0);
756 return retVal;
757 }
758
759
760
761
762
763 public ID getPv121_CHARGEPRICEINDICATOR() {
764 ID retVal = this.getTypedField(21, 0);
765 return retVal;
766 }
767
768
769
770
771
772
773
774 public ID getCOURTESYCODE() {
775 ID retVal = this.getTypedField(22, 0);
776 return retVal;
777 }
778
779
780
781
782
783 public ID getPv122_COURTESYCODE() {
784 ID retVal = this.getTypedField(22, 0);
785 return retVal;
786 }
787
788
789
790
791
792
793
794 public ID getCREDITRATING() {
795 ID retVal = this.getTypedField(23, 0);
796 return retVal;
797 }
798
799
800
801
802
803 public ID getPv123_CREDITRATING() {
804 ID retVal = this.getTypedField(23, 0);
805 return retVal;
806 }
807
808
809
810
811
812 public ID[] getCONTRACTCODE() {
813 ID[] retVal = this.getTypedField(24, new ID[0]);
814 return retVal;
815 }
816
817
818
819
820
821 public ID[] getPv124_CONTRACTCODE() {
822 ID[] retVal = this.getTypedField(24, new ID[0]);
823 return retVal;
824 }
825
826
827
828
829
830
831
832 public int getCONTRACTCODEReps() {
833 return this.getReps(24);
834 }
835
836
837
838
839
840
841
842
843 public ID getCONTRACTCODE(int rep) {
844 ID retVal = this.getTypedField(24, rep);
845 return retVal;
846 }
847
848
849
850
851
852
853
854 public ID getPv124_CONTRACTCODE(int rep) {
855 ID retVal = this.getTypedField(24, rep);
856 return retVal;
857 }
858
859
860
861
862
863
864 public int getPv124_CONTRACTCODEReps() {
865 return this.getReps(24);
866 }
867
868
869
870
871
872
873
874
875
876 public ID insertCONTRACTCODE(int rep) throws HL7Exception {
877 return (ID) super.insertRepetition(24, rep);
878 }
879
880
881
882
883
884
885
886
887
888 public ID insertPv124_CONTRACTCODE(int rep) throws HL7Exception {
889 return (ID) super.insertRepetition(24, rep);
890 }
891
892
893
894
895
896
897
898
899
900 public ID removeCONTRACTCODE(int rep) throws HL7Exception {
901 return (ID) super.removeRepetition(24, rep);
902 }
903
904
905
906
907
908
909
910
911
912 public ID removePv124_CONTRACTCODE(int rep) throws HL7Exception {
913 return (ID) super.removeRepetition(24, rep);
914 }
915
916
917
918
919
920
921 public DT[] getCONTRACTEFFECTIVEDATE() {
922 DT[] retVal = this.getTypedField(25, new DT[0]);
923 return retVal;
924 }
925
926
927
928
929
930 public DT[] getPv125_CONTRACTEFFECTIVEDATE() {
931 DT[] retVal = this.getTypedField(25, new DT[0]);
932 return retVal;
933 }
934
935
936
937
938
939
940
941 public int getCONTRACTEFFECTIVEDATEReps() {
942 return this.getReps(25);
943 }
944
945
946
947
948
949
950
951
952 public DT getCONTRACTEFFECTIVEDATE(int rep) {
953 DT retVal = this.getTypedField(25, rep);
954 return retVal;
955 }
956
957
958
959
960
961
962
963 public DT getPv125_CONTRACTEFFECTIVEDATE(int rep) {
964 DT retVal = this.getTypedField(25, rep);
965 return retVal;
966 }
967
968
969
970
971
972
973 public int getPv125_CONTRACTEFFECTIVEDATEReps() {
974 return this.getReps(25);
975 }
976
977
978
979
980
981
982
983
984
985 public DT insertCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
986 return (DT) super.insertRepetition(25, rep);
987 }
988
989
990
991
992
993
994
995
996
997 public DT insertPv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
998 return (DT) super.insertRepetition(25, rep);
999 }
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009 public DT removeCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
1010 return (DT) super.removeRepetition(25, rep);
1011 }
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021 public DT removePv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
1022 return (DT) super.removeRepetition(25, rep);
1023 }
1024
1025
1026
1027
1028
1029
1030 public NM[] getCONTRACTAMOUNT() {
1031 NM[] retVal = this.getTypedField(26, new NM[0]);
1032 return retVal;
1033 }
1034
1035
1036
1037
1038
1039 public NM[] getPv126_CONTRACTAMOUNT() {
1040 NM[] retVal = this.getTypedField(26, new NM[0]);
1041 return retVal;
1042 }
1043
1044
1045
1046
1047
1048
1049
1050 public int getCONTRACTAMOUNTReps() {
1051 return this.getReps(26);
1052 }
1053
1054
1055
1056
1057
1058
1059
1060
1061 public NM getCONTRACTAMOUNT(int rep) {
1062 NM retVal = this.getTypedField(26, rep);
1063 return retVal;
1064 }
1065
1066
1067
1068
1069
1070
1071
1072 public NM getPv126_CONTRACTAMOUNT(int rep) {
1073 NM retVal = this.getTypedField(26, rep);
1074 return retVal;
1075 }
1076
1077
1078
1079
1080
1081
1082 public int getPv126_CONTRACTAMOUNTReps() {
1083 return this.getReps(26);
1084 }
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094 public NM insertCONTRACTAMOUNT(int rep) throws HL7Exception {
1095 return (NM) super.insertRepetition(26, rep);
1096 }
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106 public NM insertPv126_CONTRACTAMOUNT(int rep) throws HL7Exception {
1107 return (NM) super.insertRepetition(26, rep);
1108 }
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118 public NM removeCONTRACTAMOUNT(int rep) throws HL7Exception {
1119 return (NM) super.removeRepetition(26, rep);
1120 }
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130 public NM removePv126_CONTRACTAMOUNT(int rep) throws HL7Exception {
1131 return (NM) super.removeRepetition(26, rep);
1132 }
1133
1134
1135
1136
1137
1138
1139 public NM[] getCONTRACTPERIOD() {
1140 NM[] retVal = this.getTypedField(27, new NM[0]);
1141 return retVal;
1142 }
1143
1144
1145
1146
1147
1148 public NM[] getPv127_CONTRACTPERIOD() {
1149 NM[] retVal = this.getTypedField(27, new NM[0]);
1150 return retVal;
1151 }
1152
1153
1154
1155
1156
1157
1158
1159 public int getCONTRACTPERIODReps() {
1160 return this.getReps(27);
1161 }
1162
1163
1164
1165
1166
1167
1168
1169
1170 public NM getCONTRACTPERIOD(int rep) {
1171 NM retVal = this.getTypedField(27, rep);
1172 return retVal;
1173 }
1174
1175
1176
1177
1178
1179
1180
1181 public NM getPv127_CONTRACTPERIOD(int rep) {
1182 NM retVal = this.getTypedField(27, rep);
1183 return retVal;
1184 }
1185
1186
1187
1188
1189
1190
1191 public int getPv127_CONTRACTPERIODReps() {
1192 return this.getReps(27);
1193 }
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203 public NM insertCONTRACTPERIOD(int rep) throws HL7Exception {
1204 return (NM) super.insertRepetition(27, rep);
1205 }
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215 public NM insertPv127_CONTRACTPERIOD(int rep) throws HL7Exception {
1216 return (NM) super.insertRepetition(27, rep);
1217 }
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227 public NM removeCONTRACTPERIOD(int rep) throws HL7Exception {
1228 return (NM) super.removeRepetition(27, rep);
1229 }
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239 public NM removePv127_CONTRACTPERIOD(int rep) throws HL7Exception {
1240 return (NM) super.removeRepetition(27, rep);
1241 }
1242
1243
1244
1245
1246
1247
1248
1249
1250 public ID getINTERESTCODE() {
1251 ID retVal = this.getTypedField(28, 0);
1252 return retVal;
1253 }
1254
1255
1256
1257
1258
1259 public ID getPv128_INTERESTCODE() {
1260 ID retVal = this.getTypedField(28, 0);
1261 return retVal;
1262 }
1263
1264
1265
1266
1267
1268
1269
1270 public ID getTRANSFERTOBADDEBTCODE() {
1271 ID retVal = this.getTypedField(29, 0);
1272 return retVal;
1273 }
1274
1275
1276
1277
1278
1279 public ID getPv129_TRANSFERTOBADDEBTCODE() {
1280 ID retVal = this.getTypedField(29, 0);
1281 return retVal;
1282 }
1283
1284
1285
1286
1287
1288
1289
1290 public DT getTRANSFERTOBADDEBTDATE() {
1291 DT retVal = this.getTypedField(30, 0);
1292 return retVal;
1293 }
1294
1295
1296
1297
1298
1299 public DT getPv130_TRANSFERTOBADDEBTDATE() {
1300 DT retVal = this.getTypedField(30, 0);
1301 return retVal;
1302 }
1303
1304
1305
1306
1307
1308
1309
1310 public ST getBADDEBTAGENCYCODE() {
1311 ST retVal = this.getTypedField(31, 0);
1312 return retVal;
1313 }
1314
1315
1316
1317
1318
1319 public ST getPv131_BADDEBTAGENCYCODE() {
1320 ST retVal = this.getTypedField(31, 0);
1321 return retVal;
1322 }
1323
1324
1325
1326
1327
1328
1329
1330 public NM getBADDEBTTRANSFERAMOUNT() {
1331 NM retVal = this.getTypedField(32, 0);
1332 return retVal;
1333 }
1334
1335
1336
1337
1338
1339 public NM getPv132_BADDEBTTRANSFERAMOUNT() {
1340 NM retVal = this.getTypedField(32, 0);
1341 return retVal;
1342 }
1343
1344
1345
1346
1347
1348
1349
1350 public NM getBADDEBTRECOVERYAMOUNT() {
1351 NM retVal = this.getTypedField(33, 0);
1352 return retVal;
1353 }
1354
1355
1356
1357
1358
1359 public NM getPv133_BADDEBTRECOVERYAMOUNT() {
1360 NM retVal = this.getTypedField(33, 0);
1361 return retVal;
1362 }
1363
1364
1365
1366
1367
1368
1369
1370 public ID getDELETEACCOUNTINDICATOR() {
1371 ID retVal = this.getTypedField(34, 0);
1372 return retVal;
1373 }
1374
1375
1376
1377
1378
1379 public ID getPv134_DELETEACCOUNTINDICATOR() {
1380 ID retVal = this.getTypedField(34, 0);
1381 return retVal;
1382 }
1383
1384
1385
1386
1387
1388
1389
1390 public DT getDELETEACCOUNTDATE() {
1391 DT retVal = this.getTypedField(35, 0);
1392 return retVal;
1393 }
1394
1395
1396
1397
1398
1399 public DT getPv135_DELETEACCOUNTDATE() {
1400 DT retVal = this.getTypedField(35, 0);
1401 return retVal;
1402 }
1403
1404
1405
1406
1407
1408
1409
1410 public ID getDISCHARGEDISPOSITION() {
1411 ID retVal = this.getTypedField(36, 0);
1412 return retVal;
1413 }
1414
1415
1416
1417
1418
1419 public ID getPv136_DISCHARGEDISPOSITION() {
1420 ID retVal = this.getTypedField(36, 0);
1421 return retVal;
1422 }
1423
1424
1425
1426
1427
1428
1429
1430 public ID getDISCHARGEDTOLOCATION() {
1431 ID retVal = this.getTypedField(37, 0);
1432 return retVal;
1433 }
1434
1435
1436
1437
1438
1439 public ID getPv137_DISCHARGEDTOLOCATION() {
1440 ID retVal = this.getTypedField(37, 0);
1441 return retVal;
1442 }
1443
1444
1445
1446
1447
1448
1449
1450 public ID getDIETTYPE() {
1451 ID retVal = this.getTypedField(38, 0);
1452 return retVal;
1453 }
1454
1455
1456
1457
1458
1459 public ID getPv138_DIETTYPE() {
1460 ID retVal = this.getTypedField(38, 0);
1461 return retVal;
1462 }
1463
1464
1465
1466
1467
1468
1469
1470 public ID getSERVICINGFACILITY() {
1471 ID retVal = this.getTypedField(39, 0);
1472 return retVal;
1473 }
1474
1475
1476
1477
1478
1479 public ID getPv139_SERVICINGFACILITY() {
1480 ID retVal = this.getTypedField(39, 0);
1481 return retVal;
1482 }
1483
1484
1485
1486
1487
1488
1489
1490 public ID getBEDSTATUS() {
1491 ID retVal = this.getTypedField(40, 0);
1492 return retVal;
1493 }
1494
1495
1496
1497
1498
1499 public ID getPv140_BEDSTATUS() {
1500 ID retVal = this.getTypedField(40, 0);
1501 return retVal;
1502 }
1503
1504
1505
1506
1507
1508
1509
1510 public ID getACCOUNTSTATUS() {
1511 ID retVal = this.getTypedField(41, 0);
1512 return retVal;
1513 }
1514
1515
1516
1517
1518
1519 public ID getPv141_ACCOUNTSTATUS() {
1520 ID retVal = this.getTypedField(41, 0);
1521 return retVal;
1522 }
1523
1524
1525
1526
1527
1528
1529
1530 public ID getPENDINGLOCATION() {
1531 ID retVal = this.getTypedField(42, 0);
1532 return retVal;
1533 }
1534
1535
1536
1537
1538
1539 public ID getPv142_PENDINGLOCATION() {
1540 ID retVal = this.getTypedField(42, 0);
1541 return retVal;
1542 }
1543
1544
1545
1546
1547
1548
1549
1550 public ID getPRIORTEMPORARYLOCATION() {
1551 ID retVal = this.getTypedField(43, 0);
1552 return retVal;
1553 }
1554
1555
1556
1557
1558
1559 public ID getPv143_PRIORTEMPORARYLOCATION() {
1560 ID retVal = this.getTypedField(43, 0);
1561 return retVal;
1562 }
1563
1564
1565
1566
1567
1568
1569
1570 public TS getADMITDATETIME() {
1571 TS retVal = this.getTypedField(44, 0);
1572 return retVal;
1573 }
1574
1575
1576
1577
1578
1579 public TS getPv144_ADMITDATETIME() {
1580 TS retVal = this.getTypedField(44, 0);
1581 return retVal;
1582 }
1583
1584
1585
1586
1587
1588
1589
1590 public TS getDISCHARGEDATETIME() {
1591 TS retVal = this.getTypedField(45, 0);
1592 return retVal;
1593 }
1594
1595
1596
1597
1598
1599 public TS getPv145_DISCHARGEDATETIME() {
1600 TS retVal = this.getTypedField(45, 0);
1601 return retVal;
1602 }
1603
1604
1605
1606
1607
1608
1609
1610 public NM getCURRENTPATIENTBALANCE() {
1611 NM retVal = this.getTypedField(46, 0);
1612 return retVal;
1613 }
1614
1615
1616
1617
1618
1619 public NM getPv146_CURRENTPATIENTBALANCE() {
1620 NM retVal = this.getTypedField(46, 0);
1621 return retVal;
1622 }
1623
1624
1625
1626
1627
1628
1629
1630 public NM getTOTALCHARGES() {
1631 NM retVal = this.getTypedField(47, 0);
1632 return retVal;
1633 }
1634
1635
1636
1637
1638
1639 public NM getPv147_TOTALCHARGES() {
1640 NM retVal = this.getTypedField(47, 0);
1641 return retVal;
1642 }
1643
1644
1645
1646
1647
1648
1649
1650 public NM getTOTALADJUSTMENTS() {
1651 NM retVal = this.getTypedField(48, 0);
1652 return retVal;
1653 }
1654
1655
1656
1657
1658
1659 public NM getPv148_TOTALADJUSTMENTS() {
1660 NM retVal = this.getTypedField(48, 0);
1661 return retVal;
1662 }
1663
1664
1665
1666
1667
1668
1669
1670 public NM getTOTALPAYMENTS() {
1671 NM retVal = this.getTypedField(49, 0);
1672 return retVal;
1673 }
1674
1675
1676
1677
1678
1679 public NM getPv149_TOTALPAYMENTS() {
1680 NM retVal = this.getTypedField(49, 0);
1681 return retVal;
1682 }
1683
1684
1685
1686
1687
1688
1689 protected Type createNewTypeWithoutReflection(int field) {
1690 switch (field) {
1691 case 0: return new SI(getMessage());
1692 case 1: return new ID(getMessage(), new Integer( 4 ));
1693 case 2: return new ID(getMessage(), new Integer( 79 ));
1694 case 3: return new ID(getMessage(), new Integer( 7 ));
1695 case 4: return new ST(getMessage());
1696 case 5: return new ID(getMessage(), new Integer( 79 ));
1697 case 6: return new CN(getMessage());
1698 case 7: return new CN(getMessage());
1699 case 8: return new CN(getMessage());
1700 case 9: return new ID(getMessage(), new Integer( 69 ));
1701 case 10: return new ID(getMessage(), new Integer( 79 ));
1702 case 11: return new ID(getMessage(), new Integer( 87 ));
1703 case 12: return new ID(getMessage(), new Integer( 92 ));
1704 case 13: return new ID(getMessage(), new Integer( 23 ));
1705 case 14: return new ID(getMessage(), new Integer( 9 ));
1706 case 15: return new ID(getMessage(), new Integer( 99 ));
1707 case 16: return new CN(getMessage());
1708 case 17: return new ID(getMessage(), new Integer( 18 ));
1709 case 18: return new NM(getMessage());
1710 case 19: return new ID(getMessage(), new Integer( 64 ));
1711 case 20: return new ID(getMessage(), new Integer( 32 ));
1712 case 21: return new ID(getMessage(), new Integer( 45 ));
1713 case 22: return new ID(getMessage(), new Integer( 46 ));
1714 case 23: return new ID(getMessage(), new Integer( 44 ));
1715 case 24: return new DT(getMessage());
1716 case 25: return new NM(getMessage());
1717 case 26: return new NM(getMessage());
1718 case 27: return new ID(getMessage(), new Integer( 73 ));
1719 case 28: return new ID(getMessage(), new Integer( 110 ));
1720 case 29: return new DT(getMessage());
1721 case 30: return new ST(getMessage());
1722 case 31: return new NM(getMessage());
1723 case 32: return new NM(getMessage());
1724 case 33: return new ID(getMessage(), new Integer( 111 ));
1725 case 34: return new DT(getMessage());
1726 case 35: return new ID(getMessage(), new Integer( 112 ));
1727 case 36: return new ID(getMessage(), new Integer( 113 ));
1728 case 37: return new ID(getMessage(), new Integer( 114 ));
1729 case 38: return new ID(getMessage(), new Integer( 115 ));
1730 case 39: return new ID(getMessage(), new Integer( 116 ));
1731 case 40: return new ID(getMessage(), new Integer( 117 ));
1732 case 41: return new ID(getMessage(), new Integer( 79 ));
1733 case 42: return new ID(getMessage(), new Integer( 79 ));
1734 case 43: return new TS(getMessage());
1735 case 44: return new TS(getMessage());
1736 case 45: return new NM(getMessage());
1737 case 46: return new NM(getMessage());
1738 case 47: return new NM(getMessage());
1739 case 48: return new NM(getMessage());
1740 default: return null;
1741 }
1742 }
1743
1744
1745 }
1746