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 @SuppressWarnings("unused")
80 public class IN3 extends AbstractSegment {
81
82
83
84
85 public IN3(Group parent, ModelClassFactory factory) {
86 super(parent, factory);
87 init(factory);
88 }
89
90 private void init(ModelClassFactory factory) {
91 try {
92 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - insurance certification");
93 this.add(ST.class, false, 1, 25, new Object[]{ getMessage() }, "Certification number");
94 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Certified by");
95 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Certification required");
96 this.add(CM_PEN.class, false, 1, 10, new Object[]{ getMessage() }, "Penalty");
97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Certification date / time");
98 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Certification modify date / time");
99 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Operator");
100 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Certification begin date");
101 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Certification end date");
102 this.add(CM_DTN.class, false, 1, 3, new Object[]{ getMessage() }, "Days");
103 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Non-concur code / description");
104 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Non-concur effective date / time");
105 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Physician reviewer");
106 this.add(ST.class, false, 1, 48, new Object[]{ getMessage() }, "Certification contact");
107 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Certification contact phone number");
108 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Appeal reason");
109 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Certification agency");
110 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Certification agency phone number");
111 this.add(CM_PCF.class, false, 0, 40, new Object[]{ getMessage() }, "Pre-certification required / window");
112 this.add(ST.class, false, 1, 48, new Object[]{ getMessage() }, "Case manager");
113 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Second opinion date");
114 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(151) }, "Second opinion status");
115 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(152) }, "Second opinion documentation received");
116 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Second opinion practitioner");
117 } catch(HL7Exception e) {
118 log.error("Unexpected error creating IN3 - this is probably a bug in the source code generator.", e);
119 }
120 }
121
122
123
124
125
126
127
128 public SI getSetIDInsuranceCertification() {
129 SI retVal = this.getTypedField(1, 0);
130 return retVal;
131 }
132
133
134
135
136
137 public SI getIn31_SetIDInsuranceCertification() {
138 SI retVal = this.getTypedField(1, 0);
139 return retVal;
140 }
141
142
143
144
145
146
147
148 public ST getCertificationNumber() {
149 ST retVal = this.getTypedField(2, 0);
150 return retVal;
151 }
152
153
154
155
156
157 public ST getIn32_CertificationNumber() {
158 ST retVal = this.getTypedField(2, 0);
159 return retVal;
160 }
161
162
163
164
165
166
167
168 public CN getCertifiedBy() {
169 CN retVal = this.getTypedField(3, 0);
170 return retVal;
171 }
172
173
174
175
176
177 public CN getIn33_CertifiedBy() {
178 CN retVal = this.getTypedField(3, 0);
179 return retVal;
180 }
181
182
183
184
185
186
187
188 public ID getCertificationRequired() {
189 ID retVal = this.getTypedField(4, 0);
190 return retVal;
191 }
192
193
194
195
196
197 public ID getIn34_CertificationRequired() {
198 ID retVal = this.getTypedField(4, 0);
199 return retVal;
200 }
201
202
203
204
205
206
207
208 public CM_PEN getPenalty() {
209 CM_PEN retVal = this.getTypedField(5, 0);
210 return retVal;
211 }
212
213
214
215
216
217 public CM_PEN getIn35_Penalty() {
218 CM_PEN retVal = this.getTypedField(5, 0);
219 return retVal;
220 }
221
222
223
224
225
226
227
228 public TS getCertificationDateTime() {
229 TS retVal = this.getTypedField(6, 0);
230 return retVal;
231 }
232
233
234
235
236
237 public TS getIn36_CertificationDateTime() {
238 TS retVal = this.getTypedField(6, 0);
239 return retVal;
240 }
241
242
243
244
245
246
247
248 public TS getCertificationModifyDateTime() {
249 TS retVal = this.getTypedField(7, 0);
250 return retVal;
251 }
252
253
254
255
256
257 public TS getIn37_CertificationModifyDateTime() {
258 TS retVal = this.getTypedField(7, 0);
259 return retVal;
260 }
261
262
263
264
265
266
267
268 public CN getOperator() {
269 CN retVal = this.getTypedField(8, 0);
270 return retVal;
271 }
272
273
274
275
276
277 public CN getIn38_Operator() {
278 CN retVal = this.getTypedField(8, 0);
279 return retVal;
280 }
281
282
283
284
285
286
287
288 public DT getCertificationBeginDate() {
289 DT retVal = this.getTypedField(9, 0);
290 return retVal;
291 }
292
293
294
295
296
297 public DT getIn39_CertificationBeginDate() {
298 DT retVal = this.getTypedField(9, 0);
299 return retVal;
300 }
301
302
303
304
305
306
307
308 public DT getCertificationEndDate() {
309 DT retVal = this.getTypedField(10, 0);
310 return retVal;
311 }
312
313
314
315
316
317 public DT getIn310_CertificationEndDate() {
318 DT retVal = this.getTypedField(10, 0);
319 return retVal;
320 }
321
322
323
324
325
326
327
328 public CM_DTN getDays() {
329 CM_DTN retVal = this.getTypedField(11, 0);
330 return retVal;
331 }
332
333
334
335
336
337 public CM_DTN getIn311_Days() {
338 CM_DTN retVal = this.getTypedField(11, 0);
339 return retVal;
340 }
341
342
343
344
345
346
347
348 public CE getNonConcurCodeDescription() {
349 CE retVal = this.getTypedField(12, 0);
350 return retVal;
351 }
352
353
354
355
356
357 public CE getIn312_NonConcurCodeDescription() {
358 CE retVal = this.getTypedField(12, 0);
359 return retVal;
360 }
361
362
363
364
365
366
367
368 public TS getNonConcurEffectiveDateTime() {
369 TS retVal = this.getTypedField(13, 0);
370 return retVal;
371 }
372
373
374
375
376
377 public TS getIn313_NonConcurEffectiveDateTime() {
378 TS retVal = this.getTypedField(13, 0);
379 return retVal;
380 }
381
382
383
384
385
386
387
388 public CN getPhysicianReviewer() {
389 CN retVal = this.getTypedField(14, 0);
390 return retVal;
391 }
392
393
394
395
396
397 public CN getIn314_PhysicianReviewer() {
398 CN retVal = this.getTypedField(14, 0);
399 return retVal;
400 }
401
402
403
404
405
406
407
408 public ST getCertificationContact() {
409 ST retVal = this.getTypedField(15, 0);
410 return retVal;
411 }
412
413
414
415
416
417 public ST getIn315_CertificationContact() {
418 ST retVal = this.getTypedField(15, 0);
419 return retVal;
420 }
421
422
423
424
425
426 public TN[] getCertificationContactPhoneNumber() {
427 TN[] retVal = this.getTypedField(16, new TN[0]);
428 return retVal;
429 }
430
431
432
433
434
435 public TN[] getIn316_CertificationContactPhoneNumber() {
436 TN[] retVal = this.getTypedField(16, new TN[0]);
437 return retVal;
438 }
439
440
441
442
443
444
445
446 public int getCertificationContactPhoneNumberReps() {
447 return this.getReps(16);
448 }
449
450
451
452
453
454
455
456
457 public TN getCertificationContactPhoneNumber(int rep) {
458 TN retVal = this.getTypedField(16, rep);
459 return retVal;
460 }
461
462
463
464
465
466
467
468 public TN getIn316_CertificationContactPhoneNumber(int rep) {
469 TN retVal = this.getTypedField(16, rep);
470 return retVal;
471 }
472
473
474
475
476
477
478 public int getIn316_CertificationContactPhoneNumberReps() {
479 return this.getReps(16);
480 }
481
482
483
484
485
486
487
488
489
490 public TN insertCertificationContactPhoneNumber(int rep) throws HL7Exception {
491 return (TN) super.insertRepetition(16, rep);
492 }
493
494
495
496
497
498
499
500
501
502 public TN insertIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception {
503 return (TN) super.insertRepetition(16, rep);
504 }
505
506
507
508
509
510
511
512
513
514 public TN removeCertificationContactPhoneNumber(int rep) throws HL7Exception {
515 return (TN) super.removeRepetition(16, rep);
516 }
517
518
519
520
521
522
523
524
525
526 public TN removeIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception {
527 return (TN) super.removeRepetition(16, rep);
528 }
529
530
531
532
533
534
535
536
537 public CE getAppealReason() {
538 CE retVal = this.getTypedField(17, 0);
539 return retVal;
540 }
541
542
543
544
545
546 public CE getIn317_AppealReason() {
547 CE retVal = this.getTypedField(17, 0);
548 return retVal;
549 }
550
551
552
553
554
555
556
557 public CE getCertificationAgency() {
558 CE retVal = this.getTypedField(18, 0);
559 return retVal;
560 }
561
562
563
564
565
566 public CE getIn318_CertificationAgency() {
567 CE retVal = this.getTypedField(18, 0);
568 return retVal;
569 }
570
571
572
573
574
575 public TN[] getCertificationAgencyPhoneNumber() {
576 TN[] retVal = this.getTypedField(19, new TN[0]);
577 return retVal;
578 }
579
580
581
582
583
584 public TN[] getIn319_CertificationAgencyPhoneNumber() {
585 TN[] retVal = this.getTypedField(19, new TN[0]);
586 return retVal;
587 }
588
589
590
591
592
593
594
595 public int getCertificationAgencyPhoneNumberReps() {
596 return this.getReps(19);
597 }
598
599
600
601
602
603
604
605
606 public TN getCertificationAgencyPhoneNumber(int rep) {
607 TN retVal = this.getTypedField(19, rep);
608 return retVal;
609 }
610
611
612
613
614
615
616
617 public TN getIn319_CertificationAgencyPhoneNumber(int rep) {
618 TN retVal = this.getTypedField(19, rep);
619 return retVal;
620 }
621
622
623
624
625
626
627 public int getIn319_CertificationAgencyPhoneNumberReps() {
628 return this.getReps(19);
629 }
630
631
632
633
634
635
636
637
638
639 public TN insertCertificationAgencyPhoneNumber(int rep) throws HL7Exception {
640 return (TN) super.insertRepetition(19, rep);
641 }
642
643
644
645
646
647
648
649
650
651 public TN insertIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception {
652 return (TN) super.insertRepetition(19, rep);
653 }
654
655
656
657
658
659
660
661
662
663 public TN removeCertificationAgencyPhoneNumber(int rep) throws HL7Exception {
664 return (TN) super.removeRepetition(19, rep);
665 }
666
667
668
669
670
671
672
673
674
675 public TN removeIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception {
676 return (TN) super.removeRepetition(19, rep);
677 }
678
679
680
681
682
683
684 public CM_PCF[] getPreCertificationRequiredWindow() {
685 CM_PCF[] retVal = this.getTypedField(20, new CM_PCF[0]);
686 return retVal;
687 }
688
689
690
691
692
693 public CM_PCF[] getIn320_PreCertificationRequiredWindow() {
694 CM_PCF[] retVal = this.getTypedField(20, new CM_PCF[0]);
695 return retVal;
696 }
697
698
699
700
701
702
703
704 public int getPreCertificationRequiredWindowReps() {
705 return this.getReps(20);
706 }
707
708
709
710
711
712
713
714
715 public CM_PCF getPreCertificationRequiredWindow(int rep) {
716 CM_PCF retVal = this.getTypedField(20, rep);
717 return retVal;
718 }
719
720
721
722
723
724
725
726 public CM_PCF getIn320_PreCertificationRequiredWindow(int rep) {
727 CM_PCF retVal = this.getTypedField(20, rep);
728 return retVal;
729 }
730
731
732
733
734
735
736 public int getIn320_PreCertificationRequiredWindowReps() {
737 return this.getReps(20);
738 }
739
740
741
742
743
744
745
746
747
748 public CM_PCF insertPreCertificationRequiredWindow(int rep) throws HL7Exception {
749 return (CM_PCF) super.insertRepetition(20, rep);
750 }
751
752
753
754
755
756
757
758
759
760 public CM_PCF insertIn320_PreCertificationRequiredWindow(int rep) throws HL7Exception {
761 return (CM_PCF) super.insertRepetition(20, rep);
762 }
763
764
765
766
767
768
769
770
771
772 public CM_PCF removePreCertificationRequiredWindow(int rep) throws HL7Exception {
773 return (CM_PCF) super.removeRepetition(20, rep);
774 }
775
776
777
778
779
780
781
782
783
784 public CM_PCF removeIn320_PreCertificationRequiredWindow(int rep) throws HL7Exception {
785 return (CM_PCF) super.removeRepetition(20, rep);
786 }
787
788
789
790
791
792
793
794
795 public ST getCaseManager() {
796 ST retVal = this.getTypedField(21, 0);
797 return retVal;
798 }
799
800
801
802
803
804 public ST getIn321_CaseManager() {
805 ST retVal = this.getTypedField(21, 0);
806 return retVal;
807 }
808
809
810
811
812
813
814
815 public DT getSecondOpinionDate() {
816 DT retVal = this.getTypedField(22, 0);
817 return retVal;
818 }
819
820
821
822
823
824 public DT getIn322_SecondOpinionDate() {
825 DT retVal = this.getTypedField(22, 0);
826 return retVal;
827 }
828
829
830
831
832
833
834
835 public ID getSecondOpinionStatus() {
836 ID retVal = this.getTypedField(23, 0);
837 return retVal;
838 }
839
840
841
842
843
844 public ID getIn323_SecondOpinionStatus() {
845 ID retVal = this.getTypedField(23, 0);
846 return retVal;
847 }
848
849
850
851
852
853
854
855 public ID getSecondOpinionDocumentationReceived() {
856 ID retVal = this.getTypedField(24, 0);
857 return retVal;
858 }
859
860
861
862
863
864 public ID getIn324_SecondOpinionDocumentationReceived() {
865 ID retVal = this.getTypedField(24, 0);
866 return retVal;
867 }
868
869
870
871
872
873
874
875 public CN getSecondOpinionPractitioner() {
876 CN retVal = this.getTypedField(25, 0);
877 return retVal;
878 }
879
880
881
882
883
884 public CN getIn325_SecondOpinionPractitioner() {
885 CN retVal = this.getTypedField(25, 0);
886 return retVal;
887 }
888
889
890
891
892
893
894 protected Type createNewTypeWithoutReflection(int field) {
895 switch (field) {
896 case 0: return new SI(getMessage());
897 case 1: return new ST(getMessage());
898 case 2: return new CN(getMessage());
899 case 3: return new ID(getMessage(), new Integer( 136 ));
900 case 4: return new CM_PEN(getMessage());
901 case 5: return new TS(getMessage());
902 case 6: return new TS(getMessage());
903 case 7: return new CN(getMessage());
904 case 8: return new DT(getMessage());
905 case 9: return new DT(getMessage());
906 case 10: return new CM_DTN(getMessage());
907 case 11: return new CE(getMessage());
908 case 12: return new TS(getMessage());
909 case 13: return new CN(getMessage());
910 case 14: return new ST(getMessage());
911 case 15: return new TN(getMessage());
912 case 16: return new CE(getMessage());
913 case 17: return new CE(getMessage());
914 case 18: return new TN(getMessage());
915 case 19: return new CM_PCF(getMessage());
916 case 20: return new ST(getMessage());
917 case 21: return new DT(getMessage());
918 case 22: return new ID(getMessage(), new Integer( 151 ));
919 case 23: return new ID(getMessage(), new Integer( 152 ));
920 case 24: return new CN(getMessage());
921 default: return null;
922 }
923 }
924
925
926 }
927