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.v281.segment;
35
36
37 import ca.uhn.hl7v2.model.v281.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 @SuppressWarnings("unused")
84 public class AUT extends AbstractSegment {
85
86
87
88
89 public AUT(Group parent, ModelClassFactory factory) {
90 super(parent, factory);
91 init(factory);
92 }
93
94 private void init(ModelClassFactory factory) {
95 try {
96 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Plan ID");
97 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company ID");
98 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company Name");
99 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Effective Date");
100 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Expiration Date");
101 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Identifier");
102 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Reimbursement Limit");
103 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Requested Number of Treatments");
104 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Number of Treatments");
105 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Process Date");
106 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Requested Discipline(s)");
107 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Authorized Discipline(s)");
108 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Authorization Referral Type");
109 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Approval Status");
110 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Planned Treatment Stop Date");
111 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Clinical Service");
112 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Reason Text");
113 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Authorized Treatments/Units");
114 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Used Treatments/Units");
115 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Schedule Treatments/Units");
116 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Encounter Type");
117 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Remaining Benefit Amount");
118 this.add(XON.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Provider");
119 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Health Professional");
120 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Source Text");
121 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Source Date");
122 this.add(XTN.class, false, 1, 0, new Object[]{ getMessage() }, "Source Phone");
123 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Comment");
124 this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(206) }, "Action Code");
125 } catch(HL7Exception e) {
126 log.error("Unexpected error creating AUT - this is probably a bug in the source code generator.", e);
127 }
128 }
129
130
131
132
133
134
135
136 public CWE getAuthorizingPayorPlanID() {
137 CWE retVal = this.getTypedField(1, 0);
138 return retVal;
139 }
140
141
142
143
144
145 public CWE getAut1_AuthorizingPayorPlanID() {
146 CWE retVal = this.getTypedField(1, 0);
147 return retVal;
148 }
149
150
151
152
153
154
155
156 public CWE getAuthorizingPayorCompanyID() {
157 CWE retVal = this.getTypedField(2, 0);
158 return retVal;
159 }
160
161
162
163
164
165 public CWE getAut2_AuthorizingPayorCompanyID() {
166 CWE retVal = this.getTypedField(2, 0);
167 return retVal;
168 }
169
170
171
172
173
174
175
176 public ST getAuthorizingPayorCompanyName() {
177 ST retVal = this.getTypedField(3, 0);
178 return retVal;
179 }
180
181
182
183
184
185 public ST getAut3_AuthorizingPayorCompanyName() {
186 ST retVal = this.getTypedField(3, 0);
187 return retVal;
188 }
189
190
191
192
193
194
195
196 public DTM getAuthorizationEffectiveDate() {
197 DTM retVal = this.getTypedField(4, 0);
198 return retVal;
199 }
200
201
202
203
204
205 public DTM getAut4_AuthorizationEffectiveDate() {
206 DTM retVal = this.getTypedField(4, 0);
207 return retVal;
208 }
209
210
211
212
213
214
215
216 public DTM getAuthorizationExpirationDate() {
217 DTM retVal = this.getTypedField(5, 0);
218 return retVal;
219 }
220
221
222
223
224
225 public DTM getAut5_AuthorizationExpirationDate() {
226 DTM retVal = this.getTypedField(5, 0);
227 return retVal;
228 }
229
230
231
232
233
234
235
236 public EI getAuthorizationIdentifier() {
237 EI retVal = this.getTypedField(6, 0);
238 return retVal;
239 }
240
241
242
243
244
245 public EI getAut6_AuthorizationIdentifier() {
246 EI retVal = this.getTypedField(6, 0);
247 return retVal;
248 }
249
250
251
252
253
254
255
256 public CP getReimbursementLimit() {
257 CP retVal = this.getTypedField(7, 0);
258 return retVal;
259 }
260
261
262
263
264
265 public CP getAut7_ReimbursementLimit() {
266 CP retVal = this.getTypedField(7, 0);
267 return retVal;
268 }
269
270
271
272
273
274
275
276 public CQ getRequestedNumberOfTreatments() {
277 CQ retVal = this.getTypedField(8, 0);
278 return retVal;
279 }
280
281
282
283
284
285 public CQ getAut8_RequestedNumberOfTreatments() {
286 CQ retVal = this.getTypedField(8, 0);
287 return retVal;
288 }
289
290
291
292
293
294
295
296 public CQ getAuthorizedNumberOfTreatments() {
297 CQ retVal = this.getTypedField(9, 0);
298 return retVal;
299 }
300
301
302
303
304
305 public CQ getAut9_AuthorizedNumberOfTreatments() {
306 CQ retVal = this.getTypedField(9, 0);
307 return retVal;
308 }
309
310
311
312
313
314
315
316 public DTM getProcessDate() {
317 DTM retVal = this.getTypedField(10, 0);
318 return retVal;
319 }
320
321
322
323
324
325 public DTM getAut10_ProcessDate() {
326 DTM retVal = this.getTypedField(10, 0);
327 return retVal;
328 }
329
330
331
332
333
334 public CWE[] getRequestedDisciplineS() {
335 CWE[] retVal = this.getTypedField(11, new CWE[0]);
336 return retVal;
337 }
338
339
340
341
342
343 public CWE[] getAut11_RequestedDisciplineS() {
344 CWE[] retVal = this.getTypedField(11, new CWE[0]);
345 return retVal;
346 }
347
348
349
350
351
352
353
354 public int getRequestedDisciplineSReps() {
355 return this.getReps(11);
356 }
357
358
359
360
361
362
363
364
365 public CWE getRequestedDisciplineS(int rep) {
366 CWE retVal = this.getTypedField(11, rep);
367 return retVal;
368 }
369
370
371
372
373
374
375
376 public CWE getAut11_RequestedDisciplineS(int rep) {
377 CWE retVal = this.getTypedField(11, rep);
378 return retVal;
379 }
380
381
382
383
384
385
386 public int getAut11_RequestedDisciplineSReps() {
387 return this.getReps(11);
388 }
389
390
391
392
393
394
395
396
397
398 public CWE insertRequestedDisciplineS(int rep) throws HL7Exception {
399 return (CWE) super.insertRepetition(11, rep);
400 }
401
402
403
404
405
406
407
408
409
410 public CWE insertAut11_RequestedDisciplineS(int rep) throws HL7Exception {
411 return (CWE) super.insertRepetition(11, rep);
412 }
413
414
415
416
417
418
419
420
421
422 public CWE removeRequestedDisciplineS(int rep) throws HL7Exception {
423 return (CWE) super.removeRepetition(11, rep);
424 }
425
426
427
428
429
430
431
432
433
434 public CWE removeAut11_RequestedDisciplineS(int rep) throws HL7Exception {
435 return (CWE) super.removeRepetition(11, rep);
436 }
437
438
439
440
441
442
443 public CWE[] getAuthorizedDisciplineS() {
444 CWE[] retVal = this.getTypedField(12, new CWE[0]);
445 return retVal;
446 }
447
448
449
450
451
452 public CWE[] getAut12_AuthorizedDisciplineS() {
453 CWE[] retVal = this.getTypedField(12, new CWE[0]);
454 return retVal;
455 }
456
457
458
459
460
461
462
463 public int getAuthorizedDisciplineSReps() {
464 return this.getReps(12);
465 }
466
467
468
469
470
471
472
473
474 public CWE getAuthorizedDisciplineS(int rep) {
475 CWE retVal = this.getTypedField(12, rep);
476 return retVal;
477 }
478
479
480
481
482
483
484
485 public CWE getAut12_AuthorizedDisciplineS(int rep) {
486 CWE retVal = this.getTypedField(12, rep);
487 return retVal;
488 }
489
490
491
492
493
494
495 public int getAut12_AuthorizedDisciplineSReps() {
496 return this.getReps(12);
497 }
498
499
500
501
502
503
504
505
506
507 public CWE insertAuthorizedDisciplineS(int rep) throws HL7Exception {
508 return (CWE) super.insertRepetition(12, rep);
509 }
510
511
512
513
514
515
516
517
518
519 public CWE insertAut12_AuthorizedDisciplineS(int rep) throws HL7Exception {
520 return (CWE) super.insertRepetition(12, rep);
521 }
522
523
524
525
526
527
528
529
530
531 public CWE removeAuthorizedDisciplineS(int rep) throws HL7Exception {
532 return (CWE) super.removeRepetition(12, rep);
533 }
534
535
536
537
538
539
540
541
542
543 public CWE removeAut12_AuthorizedDisciplineS(int rep) throws HL7Exception {
544 return (CWE) super.removeRepetition(12, rep);
545 }
546
547
548
549
550
551
552
553
554 public CWE getAuthorizationReferralType() {
555 CWE retVal = this.getTypedField(13, 0);
556 return retVal;
557 }
558
559
560
561
562
563 public CWE getAut13_AuthorizationReferralType() {
564 CWE retVal = this.getTypedField(13, 0);
565 return retVal;
566 }
567
568
569
570
571
572
573
574 public CWE getApprovalStatus() {
575 CWE retVal = this.getTypedField(14, 0);
576 return retVal;
577 }
578
579
580
581
582
583 public CWE getAut14_ApprovalStatus() {
584 CWE retVal = this.getTypedField(14, 0);
585 return retVal;
586 }
587
588
589
590
591
592
593
594 public DTM getPlannedTreatmentStopDate() {
595 DTM retVal = this.getTypedField(15, 0);
596 return retVal;
597 }
598
599
600
601
602
603 public DTM getAut15_PlannedTreatmentStopDate() {
604 DTM retVal = this.getTypedField(15, 0);
605 return retVal;
606 }
607
608
609
610
611
612
613
614 public CWE getClinicalService() {
615 CWE retVal = this.getTypedField(16, 0);
616 return retVal;
617 }
618
619
620
621
622
623 public CWE getAut16_ClinicalService() {
624 CWE retVal = this.getTypedField(16, 0);
625 return retVal;
626 }
627
628
629
630
631
632
633
634 public ST getReasonText() {
635 ST retVal = this.getTypedField(17, 0);
636 return retVal;
637 }
638
639
640
641
642
643 public ST getAut17_ReasonText() {
644 ST retVal = this.getTypedField(17, 0);
645 return retVal;
646 }
647
648
649
650
651
652
653
654 public CQ getNumberOfAuthorizedTreatmentsUnits() {
655 CQ retVal = this.getTypedField(18, 0);
656 return retVal;
657 }
658
659
660
661
662
663 public CQ getAut18_NumberOfAuthorizedTreatmentsUnits() {
664 CQ retVal = this.getTypedField(18, 0);
665 return retVal;
666 }
667
668
669
670
671
672
673
674 public CQ getNumberOfUsedTreatmentsUnits() {
675 CQ retVal = this.getTypedField(19, 0);
676 return retVal;
677 }
678
679
680
681
682
683 public CQ getAut19_NumberOfUsedTreatmentsUnits() {
684 CQ retVal = this.getTypedField(19, 0);
685 return retVal;
686 }
687
688
689
690
691
692
693
694 public CQ getNumberOfScheduleTreatmentsUnits() {
695 CQ retVal = this.getTypedField(20, 0);
696 return retVal;
697 }
698
699
700
701
702
703 public CQ getAut20_NumberOfScheduleTreatmentsUnits() {
704 CQ retVal = this.getTypedField(20, 0);
705 return retVal;
706 }
707
708
709
710
711
712
713
714 public CWE getEncounterType() {
715 CWE retVal = this.getTypedField(21, 0);
716 return retVal;
717 }
718
719
720
721
722
723 public CWE getAut21_EncounterType() {
724 CWE retVal = this.getTypedField(21, 0);
725 return retVal;
726 }
727
728
729
730
731
732
733
734 public MO getRemainingBenefitAmount() {
735 MO retVal = this.getTypedField(22, 0);
736 return retVal;
737 }
738
739
740
741
742
743 public MO getAut22_RemainingBenefitAmount() {
744 MO retVal = this.getTypedField(22, 0);
745 return retVal;
746 }
747
748
749
750
751
752
753
754 public XON getAuthorizedProvider() {
755 XON retVal = this.getTypedField(23, 0);
756 return retVal;
757 }
758
759
760
761
762
763 public XON getAut23_AuthorizedProvider() {
764 XON retVal = this.getTypedField(23, 0);
765 return retVal;
766 }
767
768
769
770
771
772
773
774 public XCN getAuthorizedHealthProfessional() {
775 XCN retVal = this.getTypedField(24, 0);
776 return retVal;
777 }
778
779
780
781
782
783 public XCN getAut24_AuthorizedHealthProfessional() {
784 XCN retVal = this.getTypedField(24, 0);
785 return retVal;
786 }
787
788
789
790
791
792
793
794 public ST getSourceText() {
795 ST retVal = this.getTypedField(25, 0);
796 return retVal;
797 }
798
799
800
801
802
803 public ST getAut25_SourceText() {
804 ST retVal = this.getTypedField(25, 0);
805 return retVal;
806 }
807
808
809
810
811
812
813
814 public DTM getSourceDate() {
815 DTM retVal = this.getTypedField(26, 0);
816 return retVal;
817 }
818
819
820
821
822
823 public DTM getAut26_SourceDate() {
824 DTM retVal = this.getTypedField(26, 0);
825 return retVal;
826 }
827
828
829
830
831
832
833
834 public XTN getSourcePhone() {
835 XTN retVal = this.getTypedField(27, 0);
836 return retVal;
837 }
838
839
840
841
842
843 public XTN getAut27_SourcePhone() {
844 XTN retVal = this.getTypedField(27, 0);
845 return retVal;
846 }
847
848
849
850
851
852
853
854 public ST getComment() {
855 ST retVal = this.getTypedField(28, 0);
856 return retVal;
857 }
858
859
860
861
862
863 public ST getAut28_Comment() {
864 ST retVal = this.getTypedField(28, 0);
865 return retVal;
866 }
867
868
869
870
871
872
873
874 public ID getActionCode() {
875 ID retVal = this.getTypedField(29, 0);
876 return retVal;
877 }
878
879
880
881
882
883 public ID getAut29_ActionCode() {
884 ID retVal = this.getTypedField(29, 0);
885 return retVal;
886 }
887
888
889
890
891
892
893 protected Type createNewTypeWithoutReflection(int field) {
894 switch (field) {
895 case 0: return new CWE(getMessage());
896 case 1: return new CWE(getMessage());
897 case 2: return new ST(getMessage());
898 case 3: return new DTM(getMessage());
899 case 4: return new DTM(getMessage());
900 case 5: return new EI(getMessage());
901 case 6: return new CP(getMessage());
902 case 7: return new CQ(getMessage());
903 case 8: return new CQ(getMessage());
904 case 9: return new DTM(getMessage());
905 case 10: return new CWE(getMessage());
906 case 11: return new CWE(getMessage());
907 case 12: return new CWE(getMessage());
908 case 13: return new CWE(getMessage());
909 case 14: return new DTM(getMessage());
910 case 15: return new CWE(getMessage());
911 case 16: return new ST(getMessage());
912 case 17: return new CQ(getMessage());
913 case 18: return new CQ(getMessage());
914 case 19: return new CQ(getMessage());
915 case 20: return new CWE(getMessage());
916 case 21: return new MO(getMessage());
917 case 22: return new XON(getMessage());
918 case 23: return new XCN(getMessage());
919 case 24: return new ST(getMessage());
920 case 25: return new DTM(getMessage());
921 case 26: return new XTN(getMessage());
922 case 27: return new ST(getMessage());
923 case 28: return new ID(getMessage(), new Integer( 206 ));
924 default: return null;
925 }
926 }
927
928
929 }
930