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