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.v22.segment;
35
36
37 import ca.uhn.hl7v2.model.v22.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 @SuppressWarnings("unused")
85 public class IN2 extends AbstractSegment {
86
87
88
89
90 public IN2(Group parent, ModelClassFactory factory) {
91 super(parent, factory);
92 init(factory);
93 }
94
95 private void init(ModelClassFactory factory) {
96 try {
97 this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Insured's employee ID");
98 this.add(ST.class, false, 1, 9, new Object[]{ getMessage() }, "Insured's social security number");
99 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Insured's employer name");
100 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(139) }, "Employer information data");
101 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(137) }, "Mail claim party");
102 this.add(NM.class, false, 1, 15, new Object[]{ getMessage() }, "Medicare health insurance card number");
103 this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "Medicaid case name");
104 this.add(NM.class, false, 1, 15, new Object[]{ getMessage() }, "Medicaid case number");
105 this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "Champus sponsor name");
106 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Champus ID number");
107 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "Dependent of champus recipient");
108 this.add(ST.class, false, 1, 25, new Object[]{ getMessage() }, "Champus organization");
109 this.add(ST.class, false, 1, 25, new Object[]{ getMessage() }, "Champus station");
110 this.add(ID.class, false, 1, 14, new Object[]{ getMessage(), new Integer(140) }, "Champus service");
111 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(141) }, "Champus rank / grade");
112 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(142) }, "Champus status");
113 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Champus retire date");
114 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Champus non-availability certification on file");
115 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Baby coverage");
116 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Combine baby bill");
117 this.add(NM.class, false, 1, 1, new Object[]{ getMessage() }, "Blood deductible");
118 this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "Special coverage approval name");
119 this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Special coverage approval title");
120 this.add(ID.class, false, 0, 8, new Object[]{ getMessage(), new Integer(143) }, "Non-covered insurance code");
121 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Payor ID");
122 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Payor subscriber ID");
123 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(144) }, "Eligibility source");
124 this.add(CM_RMC.class, false, 0, 25, new Object[]{ getMessage() }, "Room coverage type / amount");
125 this.add(CM_PTA.class, false, 0, 25, new Object[]{ getMessage() }, "Policy type / amount");
126 this.add(CM_DDI.class, false, 1, 25, new Object[]{ getMessage() }, "Daily deductible");
127 } catch(HL7Exception e) {
128 log.error("Unexpected error creating IN2 - this is probably a bug in the source code generator.", e);
129 }
130 }
131
132
133
134
135
136
137
138 public ST getInsuredSEmployeeID() {
139 ST retVal = this.getTypedField(1, 0);
140 return retVal;
141 }
142
143
144
145
146
147 public ST getIn21_InsuredSEmployeeID() {
148 ST retVal = this.getTypedField(1, 0);
149 return retVal;
150 }
151
152
153
154
155
156
157
158 public ST getInsuredSSocialSecurityNumber() {
159 ST retVal = this.getTypedField(2, 0);
160 return retVal;
161 }
162
163
164
165
166
167 public ST getIn22_InsuredSSocialSecurityNumber() {
168 ST retVal = this.getTypedField(2, 0);
169 return retVal;
170 }
171
172
173
174
175
176
177
178 public CN getInsuredSEmployerName() {
179 CN retVal = this.getTypedField(3, 0);
180 return retVal;
181 }
182
183
184
185
186
187 public CN getIn23_InsuredSEmployerName() {
188 CN retVal = this.getTypedField(3, 0);
189 return retVal;
190 }
191
192
193
194
195
196
197
198 public ID getEmployerInformationData() {
199 ID retVal = this.getTypedField(4, 0);
200 return retVal;
201 }
202
203
204
205
206
207 public ID getIn24_EmployerInformationData() {
208 ID retVal = this.getTypedField(4, 0);
209 return retVal;
210 }
211
212
213
214
215
216
217
218 public ID getMailClaimParty() {
219 ID retVal = this.getTypedField(5, 0);
220 return retVal;
221 }
222
223
224
225
226
227 public ID getIn25_MailClaimParty() {
228 ID retVal = this.getTypedField(5, 0);
229 return retVal;
230 }
231
232
233
234
235
236
237
238 public NM getMedicareHealthInsuranceCardNumber() {
239 NM retVal = this.getTypedField(6, 0);
240 return retVal;
241 }
242
243
244
245
246
247 public NM getIn26_MedicareHealthInsuranceCardNumber() {
248 NM retVal = this.getTypedField(6, 0);
249 return retVal;
250 }
251
252
253
254
255
256
257
258 public PN getMedicaidCaseName() {
259 PN retVal = this.getTypedField(7, 0);
260 return retVal;
261 }
262
263
264
265
266
267 public PN getIn27_MedicaidCaseName() {
268 PN retVal = this.getTypedField(7, 0);
269 return retVal;
270 }
271
272
273
274
275
276
277
278 public NM getMedicaidCaseNumber() {
279 NM retVal = this.getTypedField(8, 0);
280 return retVal;
281 }
282
283
284
285
286
287 public NM getIn28_MedicaidCaseNumber() {
288 NM retVal = this.getTypedField(8, 0);
289 return retVal;
290 }
291
292
293
294
295
296
297
298 public PN getChampusSponsorName() {
299 PN retVal = this.getTypedField(9, 0);
300 return retVal;
301 }
302
303
304
305
306
307 public PN getIn29_ChampusSponsorName() {
308 PN retVal = this.getTypedField(9, 0);
309 return retVal;
310 }
311
312
313
314
315
316
317
318 public NM getChampusIDNumber() {
319 NM retVal = this.getTypedField(10, 0);
320 return retVal;
321 }
322
323
324
325
326
327 public NM getIn210_ChampusIDNumber() {
328 NM retVal = this.getTypedField(10, 0);
329 return retVal;
330 }
331
332
333
334
335
336
337
338 public ID getDependentOfChampusRecipient() {
339 ID retVal = this.getTypedField(11, 0);
340 return retVal;
341 }
342
343
344
345
346
347 public ID getIn211_DependentOfChampusRecipient() {
348 ID retVal = this.getTypedField(11, 0);
349 return retVal;
350 }
351
352
353
354
355
356
357
358 public ST getChampusOrganization() {
359 ST retVal = this.getTypedField(12, 0);
360 return retVal;
361 }
362
363
364
365
366
367 public ST getIn212_ChampusOrganization() {
368 ST retVal = this.getTypedField(12, 0);
369 return retVal;
370 }
371
372
373
374
375
376
377
378 public ST getChampusStation() {
379 ST retVal = this.getTypedField(13, 0);
380 return retVal;
381 }
382
383
384
385
386
387 public ST getIn213_ChampusStation() {
388 ST retVal = this.getTypedField(13, 0);
389 return retVal;
390 }
391
392
393
394
395
396
397
398 public ID getChampusService() {
399 ID retVal = this.getTypedField(14, 0);
400 return retVal;
401 }
402
403
404
405
406
407 public ID getIn214_ChampusService() {
408 ID retVal = this.getTypedField(14, 0);
409 return retVal;
410 }
411
412
413
414
415
416
417
418 public ID getChampusRankGrade() {
419 ID retVal = this.getTypedField(15, 0);
420 return retVal;
421 }
422
423
424
425
426
427 public ID getIn215_ChampusRankGrade() {
428 ID retVal = this.getTypedField(15, 0);
429 return retVal;
430 }
431
432
433
434
435
436
437
438 public ID getChampusStatus() {
439 ID retVal = this.getTypedField(16, 0);
440 return retVal;
441 }
442
443
444
445
446
447 public ID getIn216_ChampusStatus() {
448 ID retVal = this.getTypedField(16, 0);
449 return retVal;
450 }
451
452
453
454
455
456
457
458 public DT getChampusRetireDate() {
459 DT retVal = this.getTypedField(17, 0);
460 return retVal;
461 }
462
463
464
465
466
467 public DT getIn217_ChampusRetireDate() {
468 DT retVal = this.getTypedField(17, 0);
469 return retVal;
470 }
471
472
473
474
475
476
477
478 public ID getChampusNonAvailabilityCertificationOnFile() {
479 ID retVal = this.getTypedField(18, 0);
480 return retVal;
481 }
482
483
484
485
486
487 public ID getIn218_ChampusNonAvailabilityCertificationOnFile() {
488 ID retVal = this.getTypedField(18, 0);
489 return retVal;
490 }
491
492
493
494
495
496
497
498 public ID getBabyCoverage() {
499 ID retVal = this.getTypedField(19, 0);
500 return retVal;
501 }
502
503
504
505
506
507 public ID getIn219_BabyCoverage() {
508 ID retVal = this.getTypedField(19, 0);
509 return retVal;
510 }
511
512
513
514
515
516
517
518 public ID getCombineBabyBill() {
519 ID retVal = this.getTypedField(20, 0);
520 return retVal;
521 }
522
523
524
525
526
527 public ID getIn220_CombineBabyBill() {
528 ID retVal = this.getTypedField(20, 0);
529 return retVal;
530 }
531
532
533
534
535
536
537
538 public NM getBloodDeductible() {
539 NM retVal = this.getTypedField(21, 0);
540 return retVal;
541 }
542
543
544
545
546
547 public NM getIn221_BloodDeductible() {
548 NM retVal = this.getTypedField(21, 0);
549 return retVal;
550 }
551
552
553
554
555
556
557
558 public PN getSpecialCoverageApprovalName() {
559 PN retVal = this.getTypedField(22, 0);
560 return retVal;
561 }
562
563
564
565
566
567 public PN getIn222_SpecialCoverageApprovalName() {
568 PN retVal = this.getTypedField(22, 0);
569 return retVal;
570 }
571
572
573
574
575
576
577
578 public ST getSpecialCoverageApprovalTitle() {
579 ST retVal = this.getTypedField(23, 0);
580 return retVal;
581 }
582
583
584
585
586
587 public ST getIn223_SpecialCoverageApprovalTitle() {
588 ST retVal = this.getTypedField(23, 0);
589 return retVal;
590 }
591
592
593
594
595
596 public ID[] getNonCoveredInsuranceCode() {
597 ID[] retVal = this.getTypedField(24, new ID[0]);
598 return retVal;
599 }
600
601
602
603
604
605 public ID[] getIn224_NonCoveredInsuranceCode() {
606 ID[] retVal = this.getTypedField(24, new ID[0]);
607 return retVal;
608 }
609
610
611
612
613
614
615
616 public int getNonCoveredInsuranceCodeReps() {
617 return this.getReps(24);
618 }
619
620
621
622
623
624
625
626
627 public ID getNonCoveredInsuranceCode(int rep) {
628 ID retVal = this.getTypedField(24, rep);
629 return retVal;
630 }
631
632
633
634
635
636
637
638 public ID getIn224_NonCoveredInsuranceCode(int rep) {
639 ID retVal = this.getTypedField(24, rep);
640 return retVal;
641 }
642
643
644
645
646
647
648 public int getIn224_NonCoveredInsuranceCodeReps() {
649 return this.getReps(24);
650 }
651
652
653
654
655
656
657
658
659
660 public ID insertNonCoveredInsuranceCode(int rep) throws HL7Exception {
661 return (ID) super.insertRepetition(24, rep);
662 }
663
664
665
666
667
668
669
670
671
672 public ID insertIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception {
673 return (ID) super.insertRepetition(24, rep);
674 }
675
676
677
678
679
680
681
682
683
684 public ID removeNonCoveredInsuranceCode(int rep) throws HL7Exception {
685 return (ID) super.removeRepetition(24, rep);
686 }
687
688
689
690
691
692
693
694
695
696 public ID removeIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception {
697 return (ID) super.removeRepetition(24, rep);
698 }
699
700
701
702
703
704
705
706
707 public ST getPayorID() {
708 ST retVal = this.getTypedField(25, 0);
709 return retVal;
710 }
711
712
713
714
715
716 public ST getIn225_PayorID() {
717 ST retVal = this.getTypedField(25, 0);
718 return retVal;
719 }
720
721
722
723
724
725
726
727 public ST getPayorSubscriberID() {
728 ST retVal = this.getTypedField(26, 0);
729 return retVal;
730 }
731
732
733
734
735
736 public ST getIn226_PayorSubscriberID() {
737 ST retVal = this.getTypedField(26, 0);
738 return retVal;
739 }
740
741
742
743
744
745
746
747 public ID getEligibilitySource() {
748 ID retVal = this.getTypedField(27, 0);
749 return retVal;
750 }
751
752
753
754
755
756 public ID getIn227_EligibilitySource() {
757 ID retVal = this.getTypedField(27, 0);
758 return retVal;
759 }
760
761
762
763
764
765 public CM_RMC[] getRoomCoverageTypeAmount() {
766 CM_RMC[] retVal = this.getTypedField(28, new CM_RMC[0]);
767 return retVal;
768 }
769
770
771
772
773
774 public CM_RMC[] getIn228_RoomCoverageTypeAmount() {
775 CM_RMC[] retVal = this.getTypedField(28, new CM_RMC[0]);
776 return retVal;
777 }
778
779
780
781
782
783
784
785 public int getRoomCoverageTypeAmountReps() {
786 return this.getReps(28);
787 }
788
789
790
791
792
793
794
795
796 public CM_RMC getRoomCoverageTypeAmount(int rep) {
797 CM_RMC retVal = this.getTypedField(28, rep);
798 return retVal;
799 }
800
801
802
803
804
805
806
807 public CM_RMC getIn228_RoomCoverageTypeAmount(int rep) {
808 CM_RMC retVal = this.getTypedField(28, rep);
809 return retVal;
810 }
811
812
813
814
815
816
817 public int getIn228_RoomCoverageTypeAmountReps() {
818 return this.getReps(28);
819 }
820
821
822
823
824
825
826
827
828
829 public CM_RMC insertRoomCoverageTypeAmount(int rep) throws HL7Exception {
830 return (CM_RMC) super.insertRepetition(28, rep);
831 }
832
833
834
835
836
837
838
839
840
841 public CM_RMC insertIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception {
842 return (CM_RMC) super.insertRepetition(28, rep);
843 }
844
845
846
847
848
849
850
851
852
853 public CM_RMC removeRoomCoverageTypeAmount(int rep) throws HL7Exception {
854 return (CM_RMC) super.removeRepetition(28, rep);
855 }
856
857
858
859
860
861
862
863
864
865 public CM_RMC removeIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception {
866 return (CM_RMC) super.removeRepetition(28, rep);
867 }
868
869
870
871
872
873
874 public CM_PTA[] getPolicyTypeAmount() {
875 CM_PTA[] retVal = this.getTypedField(29, new CM_PTA[0]);
876 return retVal;
877 }
878
879
880
881
882
883 public CM_PTA[] getIn229_PolicyTypeAmount() {
884 CM_PTA[] retVal = this.getTypedField(29, new CM_PTA[0]);
885 return retVal;
886 }
887
888
889
890
891
892
893
894 public int getPolicyTypeAmountReps() {
895 return this.getReps(29);
896 }
897
898
899
900
901
902
903
904
905 public CM_PTA getPolicyTypeAmount(int rep) {
906 CM_PTA retVal = this.getTypedField(29, rep);
907 return retVal;
908 }
909
910
911
912
913
914
915
916 public CM_PTA getIn229_PolicyTypeAmount(int rep) {
917 CM_PTA retVal = this.getTypedField(29, rep);
918 return retVal;
919 }
920
921
922
923
924
925
926 public int getIn229_PolicyTypeAmountReps() {
927 return this.getReps(29);
928 }
929
930
931
932
933
934
935
936
937
938 public CM_PTA insertPolicyTypeAmount(int rep) throws HL7Exception {
939 return (CM_PTA) super.insertRepetition(29, rep);
940 }
941
942
943
944
945
946
947
948
949
950 public CM_PTA insertIn229_PolicyTypeAmount(int rep) throws HL7Exception {
951 return (CM_PTA) super.insertRepetition(29, rep);
952 }
953
954
955
956
957
958
959
960
961
962 public CM_PTA removePolicyTypeAmount(int rep) throws HL7Exception {
963 return (CM_PTA) super.removeRepetition(29, rep);
964 }
965
966
967
968
969
970
971
972
973
974 public CM_PTA removeIn229_PolicyTypeAmount(int rep) throws HL7Exception {
975 return (CM_PTA) super.removeRepetition(29, rep);
976 }
977
978
979
980
981
982
983
984
985 public CM_DDI getDailyDeductible() {
986 CM_DDI retVal = this.getTypedField(30, 0);
987 return retVal;
988 }
989
990
991
992
993
994 public CM_DDI getIn230_DailyDeductible() {
995 CM_DDI retVal = this.getTypedField(30, 0);
996 return retVal;
997 }
998
999
1000
1001
1002
1003
1004 protected Type createNewTypeWithoutReflection(int field) {
1005 switch (field) {
1006 case 0: return new ST(getMessage());
1007 case 1: return new ST(getMessage());
1008 case 2: return new CN(getMessage());
1009 case 3: return new ID(getMessage(), new Integer( 139 ));
1010 case 4: return new ID(getMessage(), new Integer( 137 ));
1011 case 5: return new NM(getMessage());
1012 case 6: return new PN(getMessage());
1013 case 7: return new NM(getMessage());
1014 case 8: return new PN(getMessage());
1015 case 9: return new NM(getMessage());
1016 case 10: return new ID(getMessage(), new Integer( 0 ));
1017 case 11: return new ST(getMessage());
1018 case 12: return new ST(getMessage());
1019 case 13: return new ID(getMessage(), new Integer( 140 ));
1020 case 14: return new ID(getMessage(), new Integer( 141 ));
1021 case 15: return new ID(getMessage(), new Integer( 142 ));
1022 case 16: return new DT(getMessage());
1023 case 17: return new ID(getMessage(), new Integer( 136 ));
1024 case 18: return new ID(getMessage(), new Integer( 136 ));
1025 case 19: return new ID(getMessage(), new Integer( 136 ));
1026 case 20: return new NM(getMessage());
1027 case 21: return new PN(getMessage());
1028 case 22: return new ST(getMessage());
1029 case 23: return new ID(getMessage(), new Integer( 143 ));
1030 case 24: return new ST(getMessage());
1031 case 25: return new ST(getMessage());
1032 case 26: return new ID(getMessage(), new Integer( 144 ));
1033 case 27: return new CM_RMC(getMessage());
1034 case 28: return new CM_PTA(getMessage());
1035 case 29: return new CM_DDI(getMessage());
1036 default: return null;
1037 }
1038 }
1039
1040
1041 }
1042