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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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 @SuppressWarnings("unused")
78 public class UB1 extends AbstractSegment {
79
80
81
82
83 public UB1(Group parent, ModelClassFactory factory) {
84 super(parent, factory);
85 init(factory);
86 }
87
88 private void init(ModelClassFactory factory) {
89 try {
90 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "SET ID - UB82");
91 this.add(ST.class, false, 1, 1, new Object[]{ getMessage() }, "BLOOD DEDUCTIBLE");
92 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "BLOOD FURN.-PINTS OF (40)");
93 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "BLOOD REPLACED-PINTS (41)");
94 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "BLOOD NOT RPLCD-PINTS(42)");
95 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "CO-INSURANCE DAYS (25)");
96 this.add(ID.class, false, 5, 2, new Object[]{ getMessage(), new Integer(43) }, "CONDITION CODE");
97 this.add(ST.class, false, 1, 3, new Object[]{ getMessage() }, "COVERED DAYS - (23)");
98 this.add(ST.class, false, 1, 3, new Object[]{ getMessage() }, "NON COVERED DAYS - (24)");
99 this.add(CM.class, false, 8, 12, new Object[]{ getMessage() }, "VALUE AMOUNT & CODE");
100 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "NUMBER OF GRACE DAYS (90)");
101 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "SPEC. PROG. INDICATOR(44)");
102 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "PSRO/UR APPROVAL IND. (87)");
103 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO/UR APRVD STAY-FM(88)");
104 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO/UR APRVD STAY-TO(89)");
105 this.add(ID.class, false, 5, 20, new Object[]{ getMessage(), new Integer(0) }, "OCCURRENCE (28-32)");
106 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "OCCURRENCE SPAN (33)");
107 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "OCCURRENCE SPAN START DATE(33)");
108 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "OCCUR. SPAN END DATE (33)");
109 this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "UB-82 LOCATOR 2");
110 this.add(ST.class, false, 1, 7, new Object[]{ getMessage() }, "UB-82 LOCATOR 9");
111 this.add(ST.class, false, 1, 8, new Object[]{ getMessage() }, "UB-82 LOCATOR 27");
112 this.add(ST.class, false, 1, 17, new Object[]{ getMessage() }, "UB-82 LOCATOR 45");
113 } catch(HL7Exception e) {
114 log.error("Unexpected error creating UB1 - this is probably a bug in the source code generator.", e);
115 }
116 }
117
118
119
120
121
122
123
124 public SI getSETIDUB82() {
125 SI retVal = this.getTypedField(1, 0);
126 return retVal;
127 }
128
129
130
131
132
133 public SI getUb11_SETIDUB82() {
134 SI retVal = this.getTypedField(1, 0);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public ST getBLOODDEDUCTIBLE() {
145 ST retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public ST getUb12_BLOODDEDUCTIBLE() {
154 ST retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public ST getBLOODFURNPINTSOF() {
165 ST retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public ST getUb13_BLOODFURNPINTSOF() {
174 ST retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public ST getBLOODREPLACEDPINTS() {
185 ST retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public ST getUb14_BLOODREPLACEDPINTS() {
194 ST retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public ST getBLOODNOTRPLCDPINTS() {
205 ST retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public ST getUb15_BLOODNOTRPLCDPINTS() {
214 ST retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public ST getCOINSURANCEDAYS() {
225 ST retVal = this.getTypedField(6, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public ST getUb16_COINSURANCEDAYS() {
234 ST retVal = this.getTypedField(6, 0);
235 return retVal;
236 }
237
238
239
240
241
242 public ID[] getCONDITIONCODE() {
243 ID[] retVal = this.getTypedField(7, new ID[0]);
244 return retVal;
245 }
246
247
248
249
250
251 public ID[] getUb17_CONDITIONCODE() {
252 ID[] retVal = this.getTypedField(7, new ID[0]);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public int getCONDITIONCODEReps() {
263 return this.getReps(7);
264 }
265
266
267
268
269
270
271
272
273 public ID getCONDITIONCODE(int rep) {
274 ID retVal = this.getTypedField(7, rep);
275 return retVal;
276 }
277
278
279
280
281
282
283
284 public ID getUb17_CONDITIONCODE(int rep) {
285 ID retVal = this.getTypedField(7, rep);
286 return retVal;
287 }
288
289
290
291
292
293
294 public int getUb17_CONDITIONCODEReps() {
295 return this.getReps(7);
296 }
297
298
299
300
301
302
303
304
305
306 public ID insertCONDITIONCODE(int rep) throws HL7Exception {
307 return (ID) super.insertRepetition(7, rep);
308 }
309
310
311
312
313
314
315
316
317
318 public ID insertUb17_CONDITIONCODE(int rep) throws HL7Exception {
319 return (ID) super.insertRepetition(7, rep);
320 }
321
322
323
324
325
326
327
328
329
330 public ID removeCONDITIONCODE(int rep) throws HL7Exception {
331 return (ID) super.removeRepetition(7, rep);
332 }
333
334
335
336
337
338
339
340
341
342 public ID removeUb17_CONDITIONCODE(int rep) throws HL7Exception {
343 return (ID) super.removeRepetition(7, rep);
344 }
345
346
347
348
349
350
351
352
353 public ST getCOVEREDDAYS() {
354 ST retVal = this.getTypedField(8, 0);
355 return retVal;
356 }
357
358
359
360
361
362 public ST getUb18_COVEREDDAYS() {
363 ST retVal = this.getTypedField(8, 0);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public ST getNONCOVEREDDAYS() {
374 ST retVal = this.getTypedField(9, 0);
375 return retVal;
376 }
377
378
379
380
381
382 public ST getUb19_NONCOVEREDDAYS() {
383 ST retVal = this.getTypedField(9, 0);
384 return retVal;
385 }
386
387
388
389
390
391 public CM[] getVALUEAMOUNTCODE() {
392 CM[] retVal = this.getTypedField(10, new CM[0]);
393 return retVal;
394 }
395
396
397
398
399
400 public CM[] getUb110_VALUEAMOUNTCODE() {
401 CM[] retVal = this.getTypedField(10, new CM[0]);
402 return retVal;
403 }
404
405
406
407
408
409
410
411 public int getVALUEAMOUNTCODEReps() {
412 return this.getReps(10);
413 }
414
415
416
417
418
419
420
421
422 public CM getVALUEAMOUNTCODE(int rep) {
423 CM retVal = this.getTypedField(10, rep);
424 return retVal;
425 }
426
427
428
429
430
431
432
433 public CM getUb110_VALUEAMOUNTCODE(int rep) {
434 CM retVal = this.getTypedField(10, rep);
435 return retVal;
436 }
437
438
439
440
441
442
443 public int getUb110_VALUEAMOUNTCODEReps() {
444 return this.getReps(10);
445 }
446
447
448
449
450
451
452
453
454
455 public CM insertVALUEAMOUNTCODE(int rep) throws HL7Exception {
456 return (CM) super.insertRepetition(10, rep);
457 }
458
459
460
461
462
463
464
465
466
467 public CM insertUb110_VALUEAMOUNTCODE(int rep) throws HL7Exception {
468 return (CM) super.insertRepetition(10, rep);
469 }
470
471
472
473
474
475
476
477
478
479 public CM removeVALUEAMOUNTCODE(int rep) throws HL7Exception {
480 return (CM) super.removeRepetition(10, rep);
481 }
482
483
484
485
486
487
488
489
490
491 public CM removeUb110_VALUEAMOUNTCODE(int rep) throws HL7Exception {
492 return (CM) super.removeRepetition(10, rep);
493 }
494
495
496
497
498
499
500
501
502 public ST getNUMBEROFGRACEDAYS() {
503 ST retVal = this.getTypedField(11, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public ST getUb111_NUMBEROFGRACEDAYS() {
512 ST retVal = this.getTypedField(11, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public ID getSPECPROGINDICATOR() {
523 ID retVal = this.getTypedField(12, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public ID getUb112_SPECPROGINDICATOR() {
532 ID retVal = this.getTypedField(12, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public ID getPSROURAPPROVALIND() {
543 ID retVal = this.getTypedField(13, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public ID getUb113_PSROURAPPROVALIND() {
552 ID retVal = this.getTypedField(13, 0);
553 return retVal;
554 }
555
556
557
558
559
560
561
562 public DT getPSROURAPRVDSTAYFM() {
563 DT retVal = this.getTypedField(14, 0);
564 return retVal;
565 }
566
567
568
569
570
571 public DT getUb114_PSROURAPRVDSTAYFM() {
572 DT retVal = this.getTypedField(14, 0);
573 return retVal;
574 }
575
576
577
578
579
580
581
582 public DT getPSROURAPRVDSTAYTO() {
583 DT retVal = this.getTypedField(15, 0);
584 return retVal;
585 }
586
587
588
589
590
591 public DT getUb115_PSROURAPRVDSTAYTO() {
592 DT retVal = this.getTypedField(15, 0);
593 return retVal;
594 }
595
596
597
598
599
600 public ID[] getOCCURRENCE2832() {
601 ID[] retVal = this.getTypedField(16, new ID[0]);
602 return retVal;
603 }
604
605
606
607
608
609 public ID[] getUb116_OCCURRENCE2832() {
610 ID[] retVal = this.getTypedField(16, new ID[0]);
611 return retVal;
612 }
613
614
615
616
617
618
619
620 public int getOCCURRENCE2832Reps() {
621 return this.getReps(16);
622 }
623
624
625
626
627
628
629
630
631 public ID getOCCURRENCE2832(int rep) {
632 ID retVal = this.getTypedField(16, rep);
633 return retVal;
634 }
635
636
637
638
639
640
641
642 public ID getUb116_OCCURRENCE2832(int rep) {
643 ID retVal = this.getTypedField(16, rep);
644 return retVal;
645 }
646
647
648
649
650
651
652 public int getUb116_OCCURRENCE2832Reps() {
653 return this.getReps(16);
654 }
655
656
657
658
659
660
661
662
663
664 public ID insertOCCURRENCE2832(int rep) throws HL7Exception {
665 return (ID) super.insertRepetition(16, rep);
666 }
667
668
669
670
671
672
673
674
675
676 public ID insertUb116_OCCURRENCE2832(int rep) throws HL7Exception {
677 return (ID) super.insertRepetition(16, rep);
678 }
679
680
681
682
683
684
685
686
687
688 public ID removeOCCURRENCE2832(int rep) throws HL7Exception {
689 return (ID) super.removeRepetition(16, rep);
690 }
691
692
693
694
695
696
697
698
699
700 public ID removeUb116_OCCURRENCE2832(int rep) throws HL7Exception {
701 return (ID) super.removeRepetition(16, rep);
702 }
703
704
705
706
707
708
709
710
711 public ID getOCCURRENCESPAN() {
712 ID retVal = this.getTypedField(17, 0);
713 return retVal;
714 }
715
716
717
718
719
720 public ID getUb117_OCCURRENCESPAN() {
721 ID retVal = this.getTypedField(17, 0);
722 return retVal;
723 }
724
725
726
727
728
729
730
731 public DT getOCCURRENCESPANSTARTDATE() {
732 DT retVal = this.getTypedField(18, 0);
733 return retVal;
734 }
735
736
737
738
739
740 public DT getUb118_OCCURRENCESPANSTARTDATE() {
741 DT retVal = this.getTypedField(18, 0);
742 return retVal;
743 }
744
745
746
747
748
749
750
751 public DT getOCCURSPANENDDATE() {
752 DT retVal = this.getTypedField(19, 0);
753 return retVal;
754 }
755
756
757
758
759
760 public DT getUb119_OCCURSPANENDDATE() {
761 DT retVal = this.getTypedField(19, 0);
762 return retVal;
763 }
764
765
766
767
768
769
770
771 public ST getUB82LOCATOR2() {
772 ST retVal = this.getTypedField(20, 0);
773 return retVal;
774 }
775
776
777
778
779
780 public ST getUb120_UB82LOCATOR2() {
781 ST retVal = this.getTypedField(20, 0);
782 return retVal;
783 }
784
785
786
787
788
789
790
791 public ST getUB82LOCATOR9() {
792 ST retVal = this.getTypedField(21, 0);
793 return retVal;
794 }
795
796
797
798
799
800 public ST getUb121_UB82LOCATOR9() {
801 ST retVal = this.getTypedField(21, 0);
802 return retVal;
803 }
804
805
806
807
808
809
810
811 public ST getUB82LOCATOR27() {
812 ST retVal = this.getTypedField(22, 0);
813 return retVal;
814 }
815
816
817
818
819
820 public ST getUb122_UB82LOCATOR27() {
821 ST retVal = this.getTypedField(22, 0);
822 return retVal;
823 }
824
825
826
827
828
829
830
831 public ST getUB82LOCATOR45() {
832 ST retVal = this.getTypedField(23, 0);
833 return retVal;
834 }
835
836
837
838
839
840 public ST getUb123_UB82LOCATOR45() {
841 ST retVal = this.getTypedField(23, 0);
842 return retVal;
843 }
844
845
846
847
848
849
850 protected Type createNewTypeWithoutReflection(int field) {
851 switch (field) {
852 case 0: return new SI(getMessage());
853 case 1: return new ST(getMessage());
854 case 2: return new ST(getMessage());
855 case 3: return new ST(getMessage());
856 case 4: return new ST(getMessage());
857 case 5: return new ST(getMessage());
858 case 6: return new ID(getMessage(), new Integer( 43 ));
859 case 7: return new ST(getMessage());
860 case 8: return new ST(getMessage());
861 case 9: return new CM(getMessage());
862 case 10: return new ST(getMessage());
863 case 11: return new ID(getMessage(), new Integer( 0 ));
864 case 12: return new ID(getMessage(), new Integer( 0 ));
865 case 13: return new DT(getMessage());
866 case 14: return new DT(getMessage());
867 case 15: return new ID(getMessage(), new Integer( 0 ));
868 case 16: return new ID(getMessage(), new Integer( 0 ));
869 case 17: return new DT(getMessage());
870 case 18: return new DT(getMessage());
871 case 19: return new ST(getMessage());
872 case 20: return new ST(getMessage());
873 case 21: return new ST(getMessage());
874 case 22: return new ST(getMessage());
875 default: return null;
876 }
877 }
878
879
880 }
881