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.v25.segment;
35
36
37 import ca.uhn.hl7v2.model.v25.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 PV2 extends AbstractSegment {
105
106
107
108
109 public PV2(Group parent, ModelClassFactory factory) {
110 super(parent, factory);
111 init(factory);
112 }
113
114 private void init(ModelClassFactory factory) {
115 try {
116 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Prior Pending Location");
117 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Accommodation Code");
118 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Admit Reason");
119 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Transfer Reason");
120 this.add(ST.class, false, 0, 25, new Object[]{ getMessage() }, "Patient Valuables");
121 this.add(ST.class, false, 1, 25, new Object[]{ getMessage() }, "Patient Valuables Location");
122 this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(130) }, "Visit User Code");
123 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected Admit Date/Time");
124 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected Discharge Date/Time");
125 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Estimated Length of Inpatient Stay");
126 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Actual Length of Inpatient Stay");
127 this.add(ST.class, false, 1, 50, new Object[]{ getMessage() }, "Visit Description");
128 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Referral Source Code");
129 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Previous Service Date");
130 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Employment Illness Related Indicator");
131 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(213) }, "Purge Status Code");
132 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Purge Status Date");
133 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(214) }, "Special Program Code");
134 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Retention Indicator");
135 this.add(NM.class, false, 1, 1, new Object[]{ getMessage() }, "Expected Number of Insurance Plans");
136 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(215) }, "Visit Publicity Code");
137 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Visit Protection Indicator");
138 this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Clinic Organization Name");
139 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(216) }, "Patient Status Code");
140 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(217) }, "Visit Priority Code");
141 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Previous Treatment Date");
142 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(112) }, "Expected Discharge Disposition");
143 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Signature on File Date");
144 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "First Similar Illness Date");
145 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Patient Charge Adjustment Code");
146 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(219) }, "Recurring Service Code");
147 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Billing Media Code");
148 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected Surgery Date and Time");
149 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Military Partnership Code");
150 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Military Non-Availability Code");
151 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Newborn Baby Indicator");
152 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Baby Detained Indicator");
153 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Mode of Arrival Code");
154 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Recreational Drug Use Code");
155 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Admission Level of Care Code");
156 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Precaution Code");
157 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Patient Condition Code");
158 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(315) }, "Living Will Code");
159 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(316) }, "Organ Donor Code");
160 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Advance Directive Code");
161 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Patient Status Effective Date");
162 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected LOA Return Date/Time");
163 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected Pre-admission Testing Date/Time");
164 this.add(IS.class, false, 0, 20, new Object[]{ getMessage(), new Integer(534) }, "Notify Clergy Code");
165 } catch(HL7Exception e) {
166 log.error("Unexpected error creating PV2 - this is probably a bug in the source code generator.", e);
167 }
168 }
169
170
171
172
173
174
175
176 public PL getPriorPendingLocation() {
177 PL retVal = this.getTypedField(1, 0);
178 return retVal;
179 }
180
181
182
183
184
185 public PL getPv21_PriorPendingLocation() {
186 PL retVal = this.getTypedField(1, 0);
187 return retVal;
188 }
189
190
191
192
193
194
195
196 public CE getAccommodationCode() {
197 CE retVal = this.getTypedField(2, 0);
198 return retVal;
199 }
200
201
202
203
204
205 public CE getPv22_AccommodationCode() {
206 CE retVal = this.getTypedField(2, 0);
207 return retVal;
208 }
209
210
211
212
213
214
215
216 public CE getAdmitReason() {
217 CE retVal = this.getTypedField(3, 0);
218 return retVal;
219 }
220
221
222
223
224
225 public CE getPv23_AdmitReason() {
226 CE retVal = this.getTypedField(3, 0);
227 return retVal;
228 }
229
230
231
232
233
234
235
236 public CE getTransferReason() {
237 CE retVal = this.getTypedField(4, 0);
238 return retVal;
239 }
240
241
242
243
244
245 public CE getPv24_TransferReason() {
246 CE retVal = this.getTypedField(4, 0);
247 return retVal;
248 }
249
250
251
252
253
254 public ST[] getPatientValuables() {
255 ST[] retVal = this.getTypedField(5, new ST[0]);
256 return retVal;
257 }
258
259
260
261
262
263 public ST[] getPv25_PatientValuables() {
264 ST[] retVal = this.getTypedField(5, new ST[0]);
265 return retVal;
266 }
267
268
269
270
271
272
273
274 public int getPatientValuablesReps() {
275 return this.getReps(5);
276 }
277
278
279
280
281
282
283
284
285 public ST getPatientValuables(int rep) {
286 ST retVal = this.getTypedField(5, rep);
287 return retVal;
288 }
289
290
291
292
293
294
295
296 public ST getPv25_PatientValuables(int rep) {
297 ST retVal = this.getTypedField(5, rep);
298 return retVal;
299 }
300
301
302
303
304
305
306 public int getPv25_PatientValuablesReps() {
307 return this.getReps(5);
308 }
309
310
311
312
313
314
315
316
317
318 public ST insertPatientValuables(int rep) throws HL7Exception {
319 return (ST) super.insertRepetition(5, rep);
320 }
321
322
323
324
325
326
327
328
329
330 public ST insertPv25_PatientValuables(int rep) throws HL7Exception {
331 return (ST) super.insertRepetition(5, rep);
332 }
333
334
335
336
337
338
339
340
341
342 public ST removePatientValuables(int rep) throws HL7Exception {
343 return (ST) super.removeRepetition(5, rep);
344 }
345
346
347
348
349
350
351
352
353
354 public ST removePv25_PatientValuables(int rep) throws HL7Exception {
355 return (ST) super.removeRepetition(5, rep);
356 }
357
358
359
360
361
362
363
364
365 public ST getPatientValuablesLocation() {
366 ST retVal = this.getTypedField(6, 0);
367 return retVal;
368 }
369
370
371
372
373
374 public ST getPv26_PatientValuablesLocation() {
375 ST retVal = this.getTypedField(6, 0);
376 return retVal;
377 }
378
379
380
381
382
383 public IS[] getVisitUserCode() {
384 IS[] retVal = this.getTypedField(7, new IS[0]);
385 return retVal;
386 }
387
388
389
390
391
392 public IS[] getPv27_VisitUserCode() {
393 IS[] retVal = this.getTypedField(7, new IS[0]);
394 return retVal;
395 }
396
397
398
399
400
401
402
403 public int getVisitUserCodeReps() {
404 return this.getReps(7);
405 }
406
407
408
409
410
411
412
413
414 public IS getVisitUserCode(int rep) {
415 IS retVal = this.getTypedField(7, rep);
416 return retVal;
417 }
418
419
420
421
422
423
424
425 public IS getPv27_VisitUserCode(int rep) {
426 IS retVal = this.getTypedField(7, rep);
427 return retVal;
428 }
429
430
431
432
433
434
435 public int getPv27_VisitUserCodeReps() {
436 return this.getReps(7);
437 }
438
439
440
441
442
443
444
445
446
447 public IS insertVisitUserCode(int rep) throws HL7Exception {
448 return (IS) super.insertRepetition(7, rep);
449 }
450
451
452
453
454
455
456
457
458
459 public IS insertPv27_VisitUserCode(int rep) throws HL7Exception {
460 return (IS) super.insertRepetition(7, rep);
461 }
462
463
464
465
466
467
468
469
470
471 public IS removeVisitUserCode(int rep) throws HL7Exception {
472 return (IS) super.removeRepetition(7, rep);
473 }
474
475
476
477
478
479
480
481
482
483 public IS removePv27_VisitUserCode(int rep) throws HL7Exception {
484 return (IS) super.removeRepetition(7, rep);
485 }
486
487
488
489
490
491
492
493
494 public TS getExpectedAdmitDateTime() {
495 TS retVal = this.getTypedField(8, 0);
496 return retVal;
497 }
498
499
500
501
502
503 public TS getPv28_ExpectedAdmitDateTime() {
504 TS retVal = this.getTypedField(8, 0);
505 return retVal;
506 }
507
508
509
510
511
512
513
514 public TS getExpectedDischargeDateTime() {
515 TS retVal = this.getTypedField(9, 0);
516 return retVal;
517 }
518
519
520
521
522
523 public TS getPv29_ExpectedDischargeDateTime() {
524 TS retVal = this.getTypedField(9, 0);
525 return retVal;
526 }
527
528
529
530
531
532
533
534 public NM getEstimatedLengthOfInpatientStay() {
535 NM retVal = this.getTypedField(10, 0);
536 return retVal;
537 }
538
539
540
541
542
543 public NM getPv210_EstimatedLengthOfInpatientStay() {
544 NM retVal = this.getTypedField(10, 0);
545 return retVal;
546 }
547
548
549
550
551
552
553
554 public NM getActualLengthOfInpatientStay() {
555 NM retVal = this.getTypedField(11, 0);
556 return retVal;
557 }
558
559
560
561
562
563 public NM getPv211_ActualLengthOfInpatientStay() {
564 NM retVal = this.getTypedField(11, 0);
565 return retVal;
566 }
567
568
569
570
571
572
573
574 public ST getVisitDescription() {
575 ST retVal = this.getTypedField(12, 0);
576 return retVal;
577 }
578
579
580
581
582
583 public ST getPv212_VisitDescription() {
584 ST retVal = this.getTypedField(12, 0);
585 return retVal;
586 }
587
588
589
590
591
592 public XCN[] getReferralSourceCode() {
593 XCN[] retVal = this.getTypedField(13, new XCN[0]);
594 return retVal;
595 }
596
597
598
599
600
601 public XCN[] getPv213_ReferralSourceCode() {
602 XCN[] retVal = this.getTypedField(13, new XCN[0]);
603 return retVal;
604 }
605
606
607
608
609
610
611
612 public int getReferralSourceCodeReps() {
613 return this.getReps(13);
614 }
615
616
617
618
619
620
621
622
623 public XCN getReferralSourceCode(int rep) {
624 XCN retVal = this.getTypedField(13, rep);
625 return retVal;
626 }
627
628
629
630
631
632
633
634 public XCN getPv213_ReferralSourceCode(int rep) {
635 XCN retVal = this.getTypedField(13, rep);
636 return retVal;
637 }
638
639
640
641
642
643
644 public int getPv213_ReferralSourceCodeReps() {
645 return this.getReps(13);
646 }
647
648
649
650
651
652
653
654
655
656 public XCN insertReferralSourceCode(int rep) throws HL7Exception {
657 return (XCN) super.insertRepetition(13, rep);
658 }
659
660
661
662
663
664
665
666
667
668 public XCN insertPv213_ReferralSourceCode(int rep) throws HL7Exception {
669 return (XCN) super.insertRepetition(13, rep);
670 }
671
672
673
674
675
676
677
678
679
680 public XCN removeReferralSourceCode(int rep) throws HL7Exception {
681 return (XCN) super.removeRepetition(13, rep);
682 }
683
684
685
686
687
688
689
690
691
692 public XCN removePv213_ReferralSourceCode(int rep) throws HL7Exception {
693 return (XCN) super.removeRepetition(13, rep);
694 }
695
696
697
698
699
700
701
702
703 public DT getPreviousServiceDate() {
704 DT retVal = this.getTypedField(14, 0);
705 return retVal;
706 }
707
708
709
710
711
712 public DT getPv214_PreviousServiceDate() {
713 DT retVal = this.getTypedField(14, 0);
714 return retVal;
715 }
716
717
718
719
720
721
722
723 public ID getEmploymentIllnessRelatedIndicator() {
724 ID retVal = this.getTypedField(15, 0);
725 return retVal;
726 }
727
728
729
730
731
732 public ID getPv215_EmploymentIllnessRelatedIndicator() {
733 ID retVal = this.getTypedField(15, 0);
734 return retVal;
735 }
736
737
738
739
740
741
742
743 public IS getPurgeStatusCode() {
744 IS retVal = this.getTypedField(16, 0);
745 return retVal;
746 }
747
748
749
750
751
752 public IS getPv216_PurgeStatusCode() {
753 IS retVal = this.getTypedField(16, 0);
754 return retVal;
755 }
756
757
758
759
760
761
762
763 public DT getPurgeStatusDate() {
764 DT retVal = this.getTypedField(17, 0);
765 return retVal;
766 }
767
768
769
770
771
772 public DT getPv217_PurgeStatusDate() {
773 DT retVal = this.getTypedField(17, 0);
774 return retVal;
775 }
776
777
778
779
780
781
782
783 public IS getSpecialProgramCode() {
784 IS retVal = this.getTypedField(18, 0);
785 return retVal;
786 }
787
788
789
790
791
792 public IS getPv218_SpecialProgramCode() {
793 IS retVal = this.getTypedField(18, 0);
794 return retVal;
795 }
796
797
798
799
800
801
802
803 public ID getRetentionIndicator() {
804 ID retVal = this.getTypedField(19, 0);
805 return retVal;
806 }
807
808
809
810
811
812 public ID getPv219_RetentionIndicator() {
813 ID retVal = this.getTypedField(19, 0);
814 return retVal;
815 }
816
817
818
819
820
821
822
823 public NM getExpectedNumberOfInsurancePlans() {
824 NM retVal = this.getTypedField(20, 0);
825 return retVal;
826 }
827
828
829
830
831
832 public NM getPv220_ExpectedNumberOfInsurancePlans() {
833 NM retVal = this.getTypedField(20, 0);
834 return retVal;
835 }
836
837
838
839
840
841
842
843 public IS getVisitPublicityCode() {
844 IS retVal = this.getTypedField(21, 0);
845 return retVal;
846 }
847
848
849
850
851
852 public IS getPv221_VisitPublicityCode() {
853 IS retVal = this.getTypedField(21, 0);
854 return retVal;
855 }
856
857
858
859
860
861
862
863 public ID getVisitProtectionIndicator() {
864 ID retVal = this.getTypedField(22, 0);
865 return retVal;
866 }
867
868
869
870
871
872 public ID getPv222_VisitProtectionIndicator() {
873 ID retVal = this.getTypedField(22, 0);
874 return retVal;
875 }
876
877
878
879
880
881 public XON[] getClinicOrganizationName() {
882 XON[] retVal = this.getTypedField(23, new XON[0]);
883 return retVal;
884 }
885
886
887
888
889
890 public XON[] getPv223_ClinicOrganizationName() {
891 XON[] retVal = this.getTypedField(23, new XON[0]);
892 return retVal;
893 }
894
895
896
897
898
899
900
901 public int getClinicOrganizationNameReps() {
902 return this.getReps(23);
903 }
904
905
906
907
908
909
910
911
912 public XON getClinicOrganizationName(int rep) {
913 XON retVal = this.getTypedField(23, rep);
914 return retVal;
915 }
916
917
918
919
920
921
922
923 public XON getPv223_ClinicOrganizationName(int rep) {
924 XON retVal = this.getTypedField(23, rep);
925 return retVal;
926 }
927
928
929
930
931
932
933 public int getPv223_ClinicOrganizationNameReps() {
934 return this.getReps(23);
935 }
936
937
938
939
940
941
942
943
944
945 public XON insertClinicOrganizationName(int rep) throws HL7Exception {
946 return (XON) super.insertRepetition(23, rep);
947 }
948
949
950
951
952
953
954
955
956
957 public XON insertPv223_ClinicOrganizationName(int rep) throws HL7Exception {
958 return (XON) super.insertRepetition(23, rep);
959 }
960
961
962
963
964
965
966
967
968
969 public XON removeClinicOrganizationName(int rep) throws HL7Exception {
970 return (XON) super.removeRepetition(23, rep);
971 }
972
973
974
975
976
977
978
979
980
981 public XON removePv223_ClinicOrganizationName(int rep) throws HL7Exception {
982 return (XON) super.removeRepetition(23, rep);
983 }
984
985
986
987
988
989
990
991
992 public IS getPatientStatusCode() {
993 IS retVal = this.getTypedField(24, 0);
994 return retVal;
995 }
996
997
998
999
1000
1001 public IS getPv224_PatientStatusCode() {
1002 IS retVal = this.getTypedField(24, 0);
1003 return retVal;
1004 }
1005
1006
1007
1008
1009
1010
1011
1012 public IS getVisitPriorityCode() {
1013 IS retVal = this.getTypedField(25, 0);
1014 return retVal;
1015 }
1016
1017
1018
1019
1020
1021 public IS getPv225_VisitPriorityCode() {
1022 IS retVal = this.getTypedField(25, 0);
1023 return retVal;
1024 }
1025
1026
1027
1028
1029
1030
1031
1032 public DT getPreviousTreatmentDate() {
1033 DT retVal = this.getTypedField(26, 0);
1034 return retVal;
1035 }
1036
1037
1038
1039
1040
1041 public DT getPv226_PreviousTreatmentDate() {
1042 DT retVal = this.getTypedField(26, 0);
1043 return retVal;
1044 }
1045
1046
1047
1048
1049
1050
1051
1052 public IS getExpectedDischargeDisposition() {
1053 IS retVal = this.getTypedField(27, 0);
1054 return retVal;
1055 }
1056
1057
1058
1059
1060
1061 public IS getPv227_ExpectedDischargeDisposition() {
1062 IS retVal = this.getTypedField(27, 0);
1063 return retVal;
1064 }
1065
1066
1067
1068
1069
1070
1071
1072 public DT getSignatureOnFileDate() {
1073 DT retVal = this.getTypedField(28, 0);
1074 return retVal;
1075 }
1076
1077
1078
1079
1080
1081 public DT getPv228_SignatureOnFileDate() {
1082 DT retVal = this.getTypedField(28, 0);
1083 return retVal;
1084 }
1085
1086
1087
1088
1089
1090
1091
1092 public DT getFirstSimilarIllnessDate() {
1093 DT retVal = this.getTypedField(29, 0);
1094 return retVal;
1095 }
1096
1097
1098
1099
1100
1101 public DT getPv229_FirstSimilarIllnessDate() {
1102 DT retVal = this.getTypedField(29, 0);
1103 return retVal;
1104 }
1105
1106
1107
1108
1109
1110
1111
1112 public CE getPatientChargeAdjustmentCode() {
1113 CE retVal = this.getTypedField(30, 0);
1114 return retVal;
1115 }
1116
1117
1118
1119
1120
1121 public CE getPv230_PatientChargeAdjustmentCode() {
1122 CE retVal = this.getTypedField(30, 0);
1123 return retVal;
1124 }
1125
1126
1127
1128
1129
1130
1131
1132 public IS getRecurringServiceCode() {
1133 IS retVal = this.getTypedField(31, 0);
1134 return retVal;
1135 }
1136
1137
1138
1139
1140
1141 public IS getPv231_RecurringServiceCode() {
1142 IS retVal = this.getTypedField(31, 0);
1143 return retVal;
1144 }
1145
1146
1147
1148
1149
1150
1151
1152 public ID getBillingMediaCode() {
1153 ID retVal = this.getTypedField(32, 0);
1154 return retVal;
1155 }
1156
1157
1158
1159
1160
1161 public ID getPv232_BillingMediaCode() {
1162 ID retVal = this.getTypedField(32, 0);
1163 return retVal;
1164 }
1165
1166
1167
1168
1169
1170
1171
1172 public TS getExpectedSurgeryDateAndTime() {
1173 TS retVal = this.getTypedField(33, 0);
1174 return retVal;
1175 }
1176
1177
1178
1179
1180
1181 public TS getPv233_ExpectedSurgeryDateAndTime() {
1182 TS retVal = this.getTypedField(33, 0);
1183 return retVal;
1184 }
1185
1186
1187
1188
1189
1190
1191
1192 public ID getMilitaryPartnershipCode() {
1193 ID retVal = this.getTypedField(34, 0);
1194 return retVal;
1195 }
1196
1197
1198
1199
1200
1201 public ID getPv234_MilitaryPartnershipCode() {
1202 ID retVal = this.getTypedField(34, 0);
1203 return retVal;
1204 }
1205
1206
1207
1208
1209
1210
1211
1212 public ID getMilitaryNonAvailabilityCode() {
1213 ID retVal = this.getTypedField(35, 0);
1214 return retVal;
1215 }
1216
1217
1218
1219
1220
1221 public ID getPv235_MilitaryNonAvailabilityCode() {
1222 ID retVal = this.getTypedField(35, 0);
1223 return retVal;
1224 }
1225
1226
1227
1228
1229
1230
1231
1232 public ID getNewbornBabyIndicator() {
1233 ID retVal = this.getTypedField(36, 0);
1234 return retVal;
1235 }
1236
1237
1238
1239
1240
1241 public ID getPv236_NewbornBabyIndicator() {
1242 ID retVal = this.getTypedField(36, 0);
1243 return retVal;
1244 }
1245
1246
1247
1248
1249
1250
1251
1252 public ID getBabyDetainedIndicator() {
1253 ID retVal = this.getTypedField(37, 0);
1254 return retVal;
1255 }
1256
1257
1258
1259
1260
1261 public ID getPv237_BabyDetainedIndicator() {
1262 ID retVal = this.getTypedField(37, 0);
1263 return retVal;
1264 }
1265
1266
1267
1268
1269
1270
1271
1272 public CE getModeOfArrivalCode() {
1273 CE retVal = this.getTypedField(38, 0);
1274 return retVal;
1275 }
1276
1277
1278
1279
1280
1281 public CE getPv238_ModeOfArrivalCode() {
1282 CE retVal = this.getTypedField(38, 0);
1283 return retVal;
1284 }
1285
1286
1287
1288
1289
1290 public CE[] getRecreationalDrugUseCode() {
1291 CE[] retVal = this.getTypedField(39, new CE[0]);
1292 return retVal;
1293 }
1294
1295
1296
1297
1298
1299 public CE[] getPv239_RecreationalDrugUseCode() {
1300 CE[] retVal = this.getTypedField(39, new CE[0]);
1301 return retVal;
1302 }
1303
1304
1305
1306
1307
1308
1309
1310 public int getRecreationalDrugUseCodeReps() {
1311 return this.getReps(39);
1312 }
1313
1314
1315
1316
1317
1318
1319
1320
1321 public CE getRecreationalDrugUseCode(int rep) {
1322 CE retVal = this.getTypedField(39, rep);
1323 return retVal;
1324 }
1325
1326
1327
1328
1329
1330
1331
1332 public CE getPv239_RecreationalDrugUseCode(int rep) {
1333 CE retVal = this.getTypedField(39, rep);
1334 return retVal;
1335 }
1336
1337
1338
1339
1340
1341
1342 public int getPv239_RecreationalDrugUseCodeReps() {
1343 return this.getReps(39);
1344 }
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354 public CE insertRecreationalDrugUseCode(int rep) throws HL7Exception {
1355 return (CE) super.insertRepetition(39, rep);
1356 }
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 public CE insertPv239_RecreationalDrugUseCode(int rep) throws HL7Exception {
1367 return (CE) super.insertRepetition(39, rep);
1368 }
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378 public CE removeRecreationalDrugUseCode(int rep) throws HL7Exception {
1379 return (CE) super.removeRepetition(39, rep);
1380 }
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390 public CE removePv239_RecreationalDrugUseCode(int rep) throws HL7Exception {
1391 return (CE) super.removeRepetition(39, rep);
1392 }
1393
1394
1395
1396
1397
1398
1399
1400
1401 public CE getAdmissionLevelOfCareCode() {
1402 CE retVal = this.getTypedField(40, 0);
1403 return retVal;
1404 }
1405
1406
1407
1408
1409
1410 public CE getPv240_AdmissionLevelOfCareCode() {
1411 CE retVal = this.getTypedField(40, 0);
1412 return retVal;
1413 }
1414
1415
1416
1417
1418
1419 public CE[] getPrecautionCode() {
1420 CE[] retVal = this.getTypedField(41, new CE[0]);
1421 return retVal;
1422 }
1423
1424
1425
1426
1427
1428 public CE[] getPv241_PrecautionCode() {
1429 CE[] retVal = this.getTypedField(41, new CE[0]);
1430 return retVal;
1431 }
1432
1433
1434
1435
1436
1437
1438
1439 public int getPrecautionCodeReps() {
1440 return this.getReps(41);
1441 }
1442
1443
1444
1445
1446
1447
1448
1449
1450 public CE getPrecautionCode(int rep) {
1451 CE retVal = this.getTypedField(41, rep);
1452 return retVal;
1453 }
1454
1455
1456
1457
1458
1459
1460
1461 public CE getPv241_PrecautionCode(int rep) {
1462 CE retVal = this.getTypedField(41, rep);
1463 return retVal;
1464 }
1465
1466
1467
1468
1469
1470
1471 public int getPv241_PrecautionCodeReps() {
1472 return this.getReps(41);
1473 }
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483 public CE insertPrecautionCode(int rep) throws HL7Exception {
1484 return (CE) super.insertRepetition(41, rep);
1485 }
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495 public CE insertPv241_PrecautionCode(int rep) throws HL7Exception {
1496 return (CE) super.insertRepetition(41, rep);
1497 }
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507 public CE removePrecautionCode(int rep) throws HL7Exception {
1508 return (CE) super.removeRepetition(41, rep);
1509 }
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 public CE removePv241_PrecautionCode(int rep) throws HL7Exception {
1520 return (CE) super.removeRepetition(41, rep);
1521 }
1522
1523
1524
1525
1526
1527
1528
1529
1530 public CE getPatientConditionCode() {
1531 CE retVal = this.getTypedField(42, 0);
1532 return retVal;
1533 }
1534
1535
1536
1537
1538
1539 public CE getPv242_PatientConditionCode() {
1540 CE retVal = this.getTypedField(42, 0);
1541 return retVal;
1542 }
1543
1544
1545
1546
1547
1548
1549
1550 public IS getLivingWillCode() {
1551 IS retVal = this.getTypedField(43, 0);
1552 return retVal;
1553 }
1554
1555
1556
1557
1558
1559 public IS getPv243_LivingWillCode() {
1560 IS retVal = this.getTypedField(43, 0);
1561 return retVal;
1562 }
1563
1564
1565
1566
1567
1568
1569
1570 public IS getOrganDonorCode() {
1571 IS retVal = this.getTypedField(44, 0);
1572 return retVal;
1573 }
1574
1575
1576
1577
1578
1579 public IS getPv244_OrganDonorCode() {
1580 IS retVal = this.getTypedField(44, 0);
1581 return retVal;
1582 }
1583
1584
1585
1586
1587
1588 public CE[] getAdvanceDirectiveCode() {
1589 CE[] retVal = this.getTypedField(45, new CE[0]);
1590 return retVal;
1591 }
1592
1593
1594
1595
1596
1597 public CE[] getPv245_AdvanceDirectiveCode() {
1598 CE[] retVal = this.getTypedField(45, new CE[0]);
1599 return retVal;
1600 }
1601
1602
1603
1604
1605
1606
1607
1608 public int getAdvanceDirectiveCodeReps() {
1609 return this.getReps(45);
1610 }
1611
1612
1613
1614
1615
1616
1617
1618
1619 public CE getAdvanceDirectiveCode(int rep) {
1620 CE retVal = this.getTypedField(45, rep);
1621 return retVal;
1622 }
1623
1624
1625
1626
1627
1628
1629
1630 public CE getPv245_AdvanceDirectiveCode(int rep) {
1631 CE retVal = this.getTypedField(45, rep);
1632 return retVal;
1633 }
1634
1635
1636
1637
1638
1639
1640 public int getPv245_AdvanceDirectiveCodeReps() {
1641 return this.getReps(45);
1642 }
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652 public CE insertAdvanceDirectiveCode(int rep) throws HL7Exception {
1653 return (CE) super.insertRepetition(45, rep);
1654 }
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664 public CE insertPv245_AdvanceDirectiveCode(int rep) throws HL7Exception {
1665 return (CE) super.insertRepetition(45, rep);
1666 }
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676 public CE removeAdvanceDirectiveCode(int rep) throws HL7Exception {
1677 return (CE) super.removeRepetition(45, rep);
1678 }
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688 public CE removePv245_AdvanceDirectiveCode(int rep) throws HL7Exception {
1689 return (CE) super.removeRepetition(45, rep);
1690 }
1691
1692
1693
1694
1695
1696
1697
1698
1699 public DT getPatientStatusEffectiveDate() {
1700 DT retVal = this.getTypedField(46, 0);
1701 return retVal;
1702 }
1703
1704
1705
1706
1707
1708 public DT getPv246_PatientStatusEffectiveDate() {
1709 DT retVal = this.getTypedField(46, 0);
1710 return retVal;
1711 }
1712
1713
1714
1715
1716
1717
1718
1719 public TS getExpectedLOAReturnDateTime() {
1720 TS retVal = this.getTypedField(47, 0);
1721 return retVal;
1722 }
1723
1724
1725
1726
1727
1728 public TS getPv247_ExpectedLOAReturnDateTime() {
1729 TS retVal = this.getTypedField(47, 0);
1730 return retVal;
1731 }
1732
1733
1734
1735
1736
1737
1738
1739 public TS getExpectedPreAdmissionTestingDateTime() {
1740 TS retVal = this.getTypedField(48, 0);
1741 return retVal;
1742 }
1743
1744
1745
1746
1747
1748 public TS getPv248_ExpectedPreAdmissionTestingDateTime() {
1749 TS retVal = this.getTypedField(48, 0);
1750 return retVal;
1751 }
1752
1753
1754
1755
1756
1757 public IS[] getNotifyClergyCode() {
1758 IS[] retVal = this.getTypedField(49, new IS[0]);
1759 return retVal;
1760 }
1761
1762
1763
1764
1765
1766 public IS[] getPv249_NotifyClergyCode() {
1767 IS[] retVal = this.getTypedField(49, new IS[0]);
1768 return retVal;
1769 }
1770
1771
1772
1773
1774
1775
1776
1777 public int getNotifyClergyCodeReps() {
1778 return this.getReps(49);
1779 }
1780
1781
1782
1783
1784
1785
1786
1787
1788 public IS getNotifyClergyCode(int rep) {
1789 IS retVal = this.getTypedField(49, rep);
1790 return retVal;
1791 }
1792
1793
1794
1795
1796
1797
1798
1799 public IS getPv249_NotifyClergyCode(int rep) {
1800 IS retVal = this.getTypedField(49, rep);
1801 return retVal;
1802 }
1803
1804
1805
1806
1807
1808
1809 public int getPv249_NotifyClergyCodeReps() {
1810 return this.getReps(49);
1811 }
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821 public IS insertNotifyClergyCode(int rep) throws HL7Exception {
1822 return (IS) super.insertRepetition(49, rep);
1823 }
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833 public IS insertPv249_NotifyClergyCode(int rep) throws HL7Exception {
1834 return (IS) super.insertRepetition(49, rep);
1835 }
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845 public IS removeNotifyClergyCode(int rep) throws HL7Exception {
1846 return (IS) super.removeRepetition(49, rep);
1847 }
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 public IS removePv249_NotifyClergyCode(int rep) throws HL7Exception {
1858 return (IS) super.removeRepetition(49, rep);
1859 }
1860
1861
1862
1863
1864
1865
1866
1867 protected Type createNewTypeWithoutReflection(int field) {
1868 switch (field) {
1869 case 0: return new PL(getMessage());
1870 case 1: return new CE(getMessage());
1871 case 2: return new CE(getMessage());
1872 case 3: return new CE(getMessage());
1873 case 4: return new ST(getMessage());
1874 case 5: return new ST(getMessage());
1875 case 6: return new IS(getMessage(), new Integer( 130 ));
1876 case 7: return new TS(getMessage());
1877 case 8: return new TS(getMessage());
1878 case 9: return new NM(getMessage());
1879 case 10: return new NM(getMessage());
1880 case 11: return new ST(getMessage());
1881 case 12: return new XCN(getMessage());
1882 case 13: return new DT(getMessage());
1883 case 14: return new ID(getMessage(), new Integer( 136 ));
1884 case 15: return new IS(getMessage(), new Integer( 213 ));
1885 case 16: return new DT(getMessage());
1886 case 17: return new IS(getMessage(), new Integer( 214 ));
1887 case 18: return new ID(getMessage(), new Integer( 136 ));
1888 case 19: return new NM(getMessage());
1889 case 20: return new IS(getMessage(), new Integer( 215 ));
1890 case 21: return new ID(getMessage(), new Integer( 136 ));
1891 case 22: return new XON(getMessage());
1892 case 23: return new IS(getMessage(), new Integer( 216 ));
1893 case 24: return new IS(getMessage(), new Integer( 217 ));
1894 case 25: return new DT(getMessage());
1895 case 26: return new IS(getMessage(), new Integer( 112 ));
1896 case 27: return new DT(getMessage());
1897 case 28: return new DT(getMessage());
1898 case 29: return new CE(getMessage());
1899 case 30: return new IS(getMessage(), new Integer( 219 ));
1900 case 31: return new ID(getMessage(), new Integer( 136 ));
1901 case 32: return new TS(getMessage());
1902 case 33: return new ID(getMessage(), new Integer( 136 ));
1903 case 34: return new ID(getMessage(), new Integer( 136 ));
1904 case 35: return new ID(getMessage(), new Integer( 136 ));
1905 case 36: return new ID(getMessage(), new Integer( 136 ));
1906 case 37: return new CE(getMessage());
1907 case 38: return new CE(getMessage());
1908 case 39: return new CE(getMessage());
1909 case 40: return new CE(getMessage());
1910 case 41: return new CE(getMessage());
1911 case 42: return new IS(getMessage(), new Integer( 315 ));
1912 case 43: return new IS(getMessage(), new Integer( 316 ));
1913 case 44: return new CE(getMessage());
1914 case 45: return new DT(getMessage());
1915 case 46: return new TS(getMessage());
1916 case 47: return new TS(getMessage());
1917 case 48: return new IS(getMessage(), new Integer( 534 ));
1918 default: return null;
1919 }
1920 }
1921
1922
1923 }
1924