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 @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(NM.class, false, 1, 1, new Object[]{ getMessage() }, "Blood deductible (43)");
92 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Blood furnished pints of (40)");
93 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Blood replaced pints (41)");
94 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Blood not replaced pints (42)");
95 this.add(NM.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 (35-39)");
97 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Covered days (23)");
98 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Non-covered days (24)");
99 this.add(CM_UVC.class, false, 8, 12, new Object[]{ getMessage() }, "Value amount and code (46-49)");
100 this.add(NM.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) }, "Special program indicator (44)");
102 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "PSRO / UR approval indicator (87)");
103 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO / UR approved stay - from (88)");
104 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO / UR approved stay - to (89)");
105 this.add(CM_OCD.class, false, 5, 20, new Object[]{ getMessage() }, "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() }, "Occurrence 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 NM getBloodDeductible() {
145 NM retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public NM getUb12_BloodDeductible() {
154 NM retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public NM getBloodFurnishedPintsOf() {
165 NM retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public NM getUb13_BloodFurnishedPintsOf() {
174 NM retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public NM getBloodReplacedPints() {
185 NM retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public NM getUb14_BloodReplacedPints() {
194 NM retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public NM getBloodNotReplacedPints() {
205 NM retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public NM getUb15_BloodNotReplacedPints() {
214 NM retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public NM getCoInsuranceDays() {
225 NM retVal = this.getTypedField(6, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public NM getUb16_CoInsuranceDays() {
234 NM retVal = this.getTypedField(6, 0);
235 return retVal;
236 }
237
238
239
240
241
242 public ID[] getConditionCode3539() {
243 ID[] retVal = this.getTypedField(7, new ID[0]);
244 return retVal;
245 }
246
247
248
249
250
251 public ID[] getUb17_ConditionCode3539() {
252 ID[] retVal = this.getTypedField(7, new ID[0]);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public int getConditionCode3539Reps() {
263 return this.getReps(7);
264 }
265
266
267
268
269
270
271
272
273 public ID getConditionCode3539(int rep) {
274 ID retVal = this.getTypedField(7, rep);
275 return retVal;
276 }
277
278
279
280
281
282
283
284 public ID getUb17_ConditionCode3539(int rep) {
285 ID retVal = this.getTypedField(7, rep);
286 return retVal;
287 }
288
289
290
291
292
293
294 public int getUb17_ConditionCode3539Reps() {
295 return this.getReps(7);
296 }
297
298
299
300
301
302
303
304
305
306 public ID insertConditionCode3539(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_ConditionCode3539(int rep) throws HL7Exception {
319 return (ID) super.insertRepetition(7, rep);
320 }
321
322
323
324
325
326
327
328
329
330 public ID removeConditionCode3539(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_ConditionCode3539(int rep) throws HL7Exception {
343 return (ID) super.removeRepetition(7, rep);
344 }
345
346
347
348
349
350
351
352
353 public NM getCoveredDays() {
354 NM retVal = this.getTypedField(8, 0);
355 return retVal;
356 }
357
358
359
360
361
362 public NM getUb18_CoveredDays() {
363 NM retVal = this.getTypedField(8, 0);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public NM getNonCoveredDays() {
374 NM retVal = this.getTypedField(9, 0);
375 return retVal;
376 }
377
378
379
380
381
382 public NM getUb19_NonCoveredDays() {
383 NM retVal = this.getTypedField(9, 0);
384 return retVal;
385 }
386
387
388
389
390
391 public CM_UVC[] getValueAmountAndCode4649() {
392 CM_UVC[] retVal = this.getTypedField(10, new CM_UVC[0]);
393 return retVal;
394 }
395
396
397
398
399
400 public CM_UVC[] getUb110_ValueAmountAndCode4649() {
401 CM_UVC[] retVal = this.getTypedField(10, new CM_UVC[0]);
402 return retVal;
403 }
404
405
406
407
408
409
410
411 public int getValueAmountAndCode4649Reps() {
412 return this.getReps(10);
413 }
414
415
416
417
418
419
420
421
422 public CM_UVC getValueAmountAndCode4649(int rep) {
423 CM_UVC retVal = this.getTypedField(10, rep);
424 return retVal;
425 }
426
427
428
429
430
431
432
433 public CM_UVC getUb110_ValueAmountAndCode4649(int rep) {
434 CM_UVC retVal = this.getTypedField(10, rep);
435 return retVal;
436 }
437
438
439
440
441
442
443 public int getUb110_ValueAmountAndCode4649Reps() {
444 return this.getReps(10);
445 }
446
447
448
449
450
451
452
453
454
455 public CM_UVC insertValueAmountAndCode4649(int rep) throws HL7Exception {
456 return (CM_UVC) super.insertRepetition(10, rep);
457 }
458
459
460
461
462
463
464
465
466
467 public CM_UVC insertUb110_ValueAmountAndCode4649(int rep) throws HL7Exception {
468 return (CM_UVC) super.insertRepetition(10, rep);
469 }
470
471
472
473
474
475
476
477
478
479 public CM_UVC removeValueAmountAndCode4649(int rep) throws HL7Exception {
480 return (CM_UVC) super.removeRepetition(10, rep);
481 }
482
483
484
485
486
487
488
489
490
491 public CM_UVC removeUb110_ValueAmountAndCode4649(int rep) throws HL7Exception {
492 return (CM_UVC) super.removeRepetition(10, rep);
493 }
494
495
496
497
498
499
500
501
502 public NM getNumberOfGraceDays() {
503 NM retVal = this.getTypedField(11, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public NM getUb111_NumberOfGraceDays() {
512 NM retVal = this.getTypedField(11, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public ID getSpecialProgramIndicator() {
523 ID retVal = this.getTypedField(12, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public ID getUb112_SpecialProgramIndicator() {
532 ID retVal = this.getTypedField(12, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public ID getPSROURApprovalIndicator() {
543 ID retVal = this.getTypedField(13, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public ID getUb113_PSROURApprovalIndicator() {
552 ID retVal = this.getTypedField(13, 0);
553 return retVal;
554 }
555
556
557
558
559
560
561
562 public DT getPSROURApprovedStayFrom() {
563 DT retVal = this.getTypedField(14, 0);
564 return retVal;
565 }
566
567
568
569
570
571 public DT getUb114_PSROURApprovedStayFrom() {
572 DT retVal = this.getTypedField(14, 0);
573 return retVal;
574 }
575
576
577
578
579
580
581
582 public DT getPSROURApprovedStayTo() {
583 DT retVal = this.getTypedField(15, 0);
584 return retVal;
585 }
586
587
588
589
590
591 public DT getUb115_PSROURApprovedStayTo() {
592 DT retVal = this.getTypedField(15, 0);
593 return retVal;
594 }
595
596
597
598
599
600 public CM_OCD[] getOccurrence2832() {
601 CM_OCD[] retVal = this.getTypedField(16, new CM_OCD[0]);
602 return retVal;
603 }
604
605
606
607
608
609 public CM_OCD[] getUb116_Occurrence2832() {
610 CM_OCD[] retVal = this.getTypedField(16, new CM_OCD[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 CM_OCD getOccurrence2832(int rep) {
632 CM_OCD retVal = this.getTypedField(16, rep);
633 return retVal;
634 }
635
636
637
638
639
640
641
642 public CM_OCD getUb116_Occurrence2832(int rep) {
643 CM_OCD 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 CM_OCD insertOccurrence2832(int rep) throws HL7Exception {
665 return (CM_OCD) super.insertRepetition(16, rep);
666 }
667
668
669
670
671
672
673
674
675
676 public CM_OCD insertUb116_Occurrence2832(int rep) throws HL7Exception {
677 return (CM_OCD) super.insertRepetition(16, rep);
678 }
679
680
681
682
683
684
685
686
687
688 public CM_OCD removeOccurrence2832(int rep) throws HL7Exception {
689 return (CM_OCD) super.removeRepetition(16, rep);
690 }
691
692
693
694
695
696
697
698
699
700 public CM_OCD removeUb116_Occurrence2832(int rep) throws HL7Exception {
701 return (CM_OCD) 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 getOccurrenceSpanEndDate() {
752 DT retVal = this.getTypedField(19, 0);
753 return retVal;
754 }
755
756
757
758
759
760 public DT getUb119_OccurrenceSpanEndDate() {
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 NM(getMessage());
854 case 2: return new NM(getMessage());
855 case 3: return new NM(getMessage());
856 case 4: return new NM(getMessage());
857 case 5: return new NM(getMessage());
858 case 6: return new ID(getMessage(), new Integer( 43 ));
859 case 7: return new NM(getMessage());
860 case 8: return new NM(getMessage());
861 case 9: return new CM_UVC(getMessage());
862 case 10: return new NM(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 CM_OCD(getMessage());
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