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.v27.segment;
35
36
37 import ca.uhn.hl7v2.model.v27.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, 0, new Object[]{ getMessage() }, "Set ID - UB1");
91 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Blood Deductible");
92 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Blood Furnished-Pints");
93 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Blood Replaced-Pints");
94 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Blood Not Replaced-Pints");
95 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Co-Insurance Days");
96 this.add(NULLDT.class, false, 5, 0, new Object[]{ getMessage() }, "Condition Code");
97 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Covered Days");
98 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Non Covered Days");
99 this.add(NULLDT.class, false, 8, 0, new Object[]{ getMessage() }, "Value Amount & Code");
100 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Number Of Grace Days");
101 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Special Program Indicator");
102 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "PSRO/UR Approval Indicator");
103 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "PSRO/UR Approved Stay-Fm");
104 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "PSRO/UR Approved Stay-To");
105 this.add(NULLDT.class, false, 5, 0, new Object[]{ getMessage() }, "Occurrence");
106 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Occurrence Span");
107 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Occur Span Start Date");
108 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Occur Span End Date");
109 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "UB-82 Locator 2");
110 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "UB-82 Locator 9");
111 this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "UB-82 Locator 27");
112 this.add(NULLDT.class, false, 1, 0, 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 getSetIDUB1() {
125 SI retVal = this.getTypedField(1, 0);
126 return retVal;
127 }
128
129
130
131
132
133 public SI getUb11_SetIDUB1() {
134 SI retVal = this.getTypedField(1, 0);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public NULLDT getBloodDeductible() {
145 NULLDT retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public NULLDT getUb12_BloodDeductible() {
154 NULLDT retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public NULLDT getBloodFurnishedPints() {
165 NULLDT retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public NULLDT getUb13_BloodFurnishedPints() {
174 NULLDT retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public NULLDT getBloodReplacedPints() {
185 NULLDT retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public NULLDT getUb14_BloodReplacedPints() {
194 NULLDT retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public NULLDT getBloodNotReplacedPints() {
205 NULLDT retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public NULLDT getUb15_BloodNotReplacedPints() {
214 NULLDT retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public NULLDT getCoInsuranceDays() {
225 NULLDT retVal = this.getTypedField(6, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public NULLDT getUb16_CoInsuranceDays() {
234 NULLDT retVal = this.getTypedField(6, 0);
235 return retVal;
236 }
237
238
239
240
241
242 public NULLDT[] getConditionCode() {
243 NULLDT[] retVal = this.getTypedField(7, new NULLDT[0]);
244 return retVal;
245 }
246
247
248
249
250
251 public NULLDT[] getUb17_ConditionCode() {
252 NULLDT[] retVal = this.getTypedField(7, new NULLDT[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 NULLDT getConditionCode(int rep) {
274 NULLDT retVal = this.getTypedField(7, rep);
275 return retVal;
276 }
277
278
279
280
281
282
283
284 public NULLDT getUb17_ConditionCode(int rep) {
285 NULLDT 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 NULLDT insertConditionCode(int rep) throws HL7Exception {
307 return (NULLDT) super.insertRepetition(7, rep);
308 }
309
310
311
312
313
314
315
316
317
318 public NULLDT insertUb17_ConditionCode(int rep) throws HL7Exception {
319 return (NULLDT) super.insertRepetition(7, rep);
320 }
321
322
323
324
325
326
327
328
329
330 public NULLDT removeConditionCode(int rep) throws HL7Exception {
331 return (NULLDT) super.removeRepetition(7, rep);
332 }
333
334
335
336
337
338
339
340
341
342 public NULLDT removeUb17_ConditionCode(int rep) throws HL7Exception {
343 return (NULLDT) super.removeRepetition(7, rep);
344 }
345
346
347
348
349
350
351
352
353 public NULLDT getCoveredDays() {
354 NULLDT retVal = this.getTypedField(8, 0);
355 return retVal;
356 }
357
358
359
360
361
362 public NULLDT getUb18_CoveredDays() {
363 NULLDT retVal = this.getTypedField(8, 0);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public NULLDT getNonCoveredDays() {
374 NULLDT retVal = this.getTypedField(9, 0);
375 return retVal;
376 }
377
378
379
380
381
382 public NULLDT getUb19_NonCoveredDays() {
383 NULLDT retVal = this.getTypedField(9, 0);
384 return retVal;
385 }
386
387
388
389
390
391 public NULLDT[] getValueAmountCode() {
392 NULLDT[] retVal = this.getTypedField(10, new NULLDT[0]);
393 return retVal;
394 }
395
396
397
398
399
400 public NULLDT[] getUb110_ValueAmountCode() {
401 NULLDT[] retVal = this.getTypedField(10, new NULLDT[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 NULLDT getValueAmountCode(int rep) {
423 NULLDT retVal = this.getTypedField(10, rep);
424 return retVal;
425 }
426
427
428
429
430
431
432
433 public NULLDT getUb110_ValueAmountCode(int rep) {
434 NULLDT 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 NULLDT insertValueAmountCode(int rep) throws HL7Exception {
456 return (NULLDT) super.insertRepetition(10, rep);
457 }
458
459
460
461
462
463
464
465
466
467 public NULLDT insertUb110_ValueAmountCode(int rep) throws HL7Exception {
468 return (NULLDT) super.insertRepetition(10, rep);
469 }
470
471
472
473
474
475
476
477
478
479 public NULLDT removeValueAmountCode(int rep) throws HL7Exception {
480 return (NULLDT) super.removeRepetition(10, rep);
481 }
482
483
484
485
486
487
488
489
490
491 public NULLDT removeUb110_ValueAmountCode(int rep) throws HL7Exception {
492 return (NULLDT) super.removeRepetition(10, rep);
493 }
494
495
496
497
498
499
500
501
502 public NULLDT getNumberOfGraceDays() {
503 NULLDT retVal = this.getTypedField(11, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public NULLDT getUb111_NumberOfGraceDays() {
512 NULLDT retVal = this.getTypedField(11, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public NULLDT getSpecialProgramIndicator() {
523 NULLDT retVal = this.getTypedField(12, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public NULLDT getUb112_SpecialProgramIndicator() {
532 NULLDT retVal = this.getTypedField(12, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public NULLDT getPSROURApprovalIndicator() {
543 NULLDT retVal = this.getTypedField(13, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public NULLDT getUb113_PSROURApprovalIndicator() {
552 NULLDT retVal = this.getTypedField(13, 0);
553 return retVal;
554 }
555
556
557
558
559
560
561
562 public NULLDT getPSROURApprovedStayFm() {
563 NULLDT retVal = this.getTypedField(14, 0);
564 return retVal;
565 }
566
567
568
569
570
571 public NULLDT getUb114_PSROURApprovedStayFm() {
572 NULLDT retVal = this.getTypedField(14, 0);
573 return retVal;
574 }
575
576
577
578
579
580
581
582 public NULLDT getPSROURApprovedStayTo() {
583 NULLDT retVal = this.getTypedField(15, 0);
584 return retVal;
585 }
586
587
588
589
590
591 public NULLDT getUb115_PSROURApprovedStayTo() {
592 NULLDT retVal = this.getTypedField(15, 0);
593 return retVal;
594 }
595
596
597
598
599
600 public NULLDT[] getOccurrence() {
601 NULLDT[] retVal = this.getTypedField(16, new NULLDT[0]);
602 return retVal;
603 }
604
605
606
607
608
609 public NULLDT[] getUb116_Occurrence() {
610 NULLDT[] retVal = this.getTypedField(16, new NULLDT[0]);
611 return retVal;
612 }
613
614
615
616
617
618
619
620 public int getOccurrenceReps() {
621 return this.getReps(16);
622 }
623
624
625
626
627
628
629
630
631 public NULLDT getOccurrence(int rep) {
632 NULLDT retVal = this.getTypedField(16, rep);
633 return retVal;
634 }
635
636
637
638
639
640
641
642 public NULLDT getUb116_Occurrence(int rep) {
643 NULLDT retVal = this.getTypedField(16, rep);
644 return retVal;
645 }
646
647
648
649
650
651
652 public int getUb116_OccurrenceReps() {
653 return this.getReps(16);
654 }
655
656
657
658
659
660
661
662
663
664 public NULLDT insertOccurrence(int rep) throws HL7Exception {
665 return (NULLDT) super.insertRepetition(16, rep);
666 }
667
668
669
670
671
672
673
674
675
676 public NULLDT insertUb116_Occurrence(int rep) throws HL7Exception {
677 return (NULLDT) super.insertRepetition(16, rep);
678 }
679
680
681
682
683
684
685
686
687
688 public NULLDT removeOccurrence(int rep) throws HL7Exception {
689 return (NULLDT) super.removeRepetition(16, rep);
690 }
691
692
693
694
695
696
697
698
699
700 public NULLDT removeUb116_Occurrence(int rep) throws HL7Exception {
701 return (NULLDT) super.removeRepetition(16, rep);
702 }
703
704
705
706
707
708
709
710
711 public NULLDT getOccurrenceSpan() {
712 NULLDT retVal = this.getTypedField(17, 0);
713 return retVal;
714 }
715
716
717
718
719
720 public NULLDT getUb117_OccurrenceSpan() {
721 NULLDT retVal = this.getTypedField(17, 0);
722 return retVal;
723 }
724
725
726
727
728
729
730
731 public NULLDT getOccurSpanStartDate() {
732 NULLDT retVal = this.getTypedField(18, 0);
733 return retVal;
734 }
735
736
737
738
739
740 public NULLDT getUb118_OccurSpanStartDate() {
741 NULLDT retVal = this.getTypedField(18, 0);
742 return retVal;
743 }
744
745
746
747
748
749
750
751 public NULLDT getOccurSpanEndDate() {
752 NULLDT retVal = this.getTypedField(19, 0);
753 return retVal;
754 }
755
756
757
758
759
760 public NULLDT getUb119_OccurSpanEndDate() {
761 NULLDT retVal = this.getTypedField(19, 0);
762 return retVal;
763 }
764
765
766
767
768
769
770
771 public NULLDT getUB82Locator2() {
772 NULLDT retVal = this.getTypedField(20, 0);
773 return retVal;
774 }
775
776
777
778
779
780 public NULLDT getUb120_UB82Locator2() {
781 NULLDT retVal = this.getTypedField(20, 0);
782 return retVal;
783 }
784
785
786
787
788
789
790
791 public NULLDT getUB82Locator9() {
792 NULLDT retVal = this.getTypedField(21, 0);
793 return retVal;
794 }
795
796
797
798
799
800 public NULLDT getUb121_UB82Locator9() {
801 NULLDT retVal = this.getTypedField(21, 0);
802 return retVal;
803 }
804
805
806
807
808
809
810
811 public NULLDT getUB82Locator27() {
812 NULLDT retVal = this.getTypedField(22, 0);
813 return retVal;
814 }
815
816
817
818
819
820 public NULLDT getUb122_UB82Locator27() {
821 NULLDT retVal = this.getTypedField(22, 0);
822 return retVal;
823 }
824
825
826
827
828
829
830
831 public NULLDT getUB82Locator45() {
832 NULLDT retVal = this.getTypedField(23, 0);
833 return retVal;
834 }
835
836
837
838
839
840 public NULLDT getUb123_UB82Locator45() {
841 NULLDT 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 NULLDT(getMessage());
854 case 2: return new NULLDT(getMessage());
855 case 3: return new NULLDT(getMessage());
856 case 4: return new NULLDT(getMessage());
857 case 5: return new NULLDT(getMessage());
858 case 6: return new NULLDT(getMessage());
859 case 7: return new NULLDT(getMessage());
860 case 8: return new NULLDT(getMessage());
861 case 9: return new NULLDT(getMessage());
862 case 10: return new NULLDT(getMessage());
863 case 11: return new NULLDT(getMessage());
864 case 12: return new NULLDT(getMessage());
865 case 13: return new NULLDT(getMessage());
866 case 14: return new NULLDT(getMessage());
867 case 15: return new NULLDT(getMessage());
868 case 16: return new NULLDT(getMessage());
869 case 17: return new NULLDT(getMessage());
870 case 18: return new NULLDT(getMessage());
871 case 19: return new NULLDT(getMessage());
872 case 20: return new NULLDT(getMessage());
873 case 21: return new NULLDT(getMessage());
874 case 22: return new NULLDT(getMessage());
875 default: return null;
876 }
877 }
878
879
880 }
881