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