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