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.test.nodt.conf.segment;
35
36
37 import ca.uhn.hl7v2.model.v25.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 - UB1");
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(IS.class, false, -1, 14, 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(UVC.class, false, -1, 717, new Object[]{ getMessage() }, "Value Amount & Code (46-49)");
100 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Number Of Grace Days (90)");
101 this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Special Program Indicator (44)");
102 this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "PSRO/UR Approval Indicator (87)");
103 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO/UR Approved Stay-Fm (88)");
104 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PSRO/UR Approved Stay-To (89)");
105 this.add(OCD.class, false, -1, 713, new Object[]{ getMessage() }, "Occurrence (28-32)");
106 this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Occurrence Span (33)");
107 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Occur 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 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 public NM[] getBloodDeductible() {
143 NM[] retVal = this.getTypedField(2, new NM[0]);
144 return retVal;
145 }
146
147
148
149
150
151 public NM[] getUb12_BloodDeductible() {
152 NM[] retVal = this.getTypedField(2, new NM[0]);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public int getBloodDeductibleReps() {
163 return this.getReps(2);
164 }
165
166
167
168
169
170
171
172
173 public NM getBloodDeductible(int rep) {
174 NM retVal = this.getTypedField(2, rep);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public NM getUb12_BloodDeductible(int rep) {
185 NM retVal = this.getTypedField(2, rep);
186 return retVal;
187 }
188
189
190
191
192
193
194 public int getUb12_BloodDeductibleReps() {
195 return this.getReps(2);
196 }
197
198
199
200
201
202
203
204
205
206 public NM insertBloodDeductible(int rep) throws HL7Exception {
207 return (NM) super.insertRepetition(2, rep);
208 }
209
210
211
212
213
214
215
216
217
218 public NM insertUb12_BloodDeductible(int rep) throws HL7Exception {
219 return (NM) super.insertRepetition(2, rep);
220 }
221
222
223
224
225
226
227
228
229
230 public NM removeBloodDeductible(int rep) throws HL7Exception {
231 return (NM) super.removeRepetition(2, rep);
232 }
233
234
235
236
237
238
239
240
241
242 public NM removeUb12_BloodDeductible(int rep) throws HL7Exception {
243 return (NM) super.removeRepetition(2, rep);
244 }
245
246
247
248
249
250
251
252
253 public NM getBloodFurnishedPintsOf() {
254 NM retVal = this.getTypedField(3, 0);
255 return retVal;
256 }
257
258
259
260
261
262 public NM getUb13_BloodFurnishedPintsOf() {
263 NM retVal = this.getTypedField(3, 0);
264 return retVal;
265 }
266
267
268
269
270
271
272
273 public NM getBloodReplacedPints() {
274 NM retVal = this.getTypedField(4, 0);
275 return retVal;
276 }
277
278
279
280
281
282 public NM getUb14_BloodReplacedPints() {
283 NM retVal = this.getTypedField(4, 0);
284 return retVal;
285 }
286
287
288
289
290
291
292
293 public NM getBloodNotReplacedPints() {
294 NM retVal = this.getTypedField(5, 0);
295 return retVal;
296 }
297
298
299
300
301
302 public NM getUb15_BloodNotReplacedPints() {
303 NM retVal = this.getTypedField(5, 0);
304 return retVal;
305 }
306
307
308
309
310
311
312
313 public NM getCoInsuranceDays() {
314 NM retVal = this.getTypedField(6, 0);
315 return retVal;
316 }
317
318
319
320
321
322 public NM getUb16_CoInsuranceDays() {
323 NM retVal = this.getTypedField(6, 0);
324 return retVal;
325 }
326
327
328
329
330
331 public IS[] getConditionCode3539() {
332 IS[] retVal = this.getTypedField(7, new IS[0]);
333 return retVal;
334 }
335
336
337
338
339
340 public IS[] getUb17_ConditionCode3539() {
341 IS[] retVal = this.getTypedField(7, new IS[0]);
342 return retVal;
343 }
344
345
346
347
348
349
350
351 public int getConditionCode3539Reps() {
352 return this.getReps(7);
353 }
354
355
356
357
358
359
360
361
362 public IS getConditionCode3539(int rep) {
363 IS retVal = this.getTypedField(7, rep);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public IS getUb17_ConditionCode3539(int rep) {
374 IS retVal = this.getTypedField(7, rep);
375 return retVal;
376 }
377
378
379
380
381
382
383 public int getUb17_ConditionCode3539Reps() {
384 return this.getReps(7);
385 }
386
387
388
389
390
391
392
393
394
395 public IS insertConditionCode3539(int rep) throws HL7Exception {
396 return (IS) super.insertRepetition(7, rep);
397 }
398
399
400
401
402
403
404
405
406
407 public IS insertUb17_ConditionCode3539(int rep) throws HL7Exception {
408 return (IS) super.insertRepetition(7, rep);
409 }
410
411
412
413
414
415
416
417
418
419 public IS removeConditionCode3539(int rep) throws HL7Exception {
420 return (IS) super.removeRepetition(7, rep);
421 }
422
423
424
425
426
427
428
429
430
431 public IS removeUb17_ConditionCode3539(int rep) throws HL7Exception {
432 return (IS) super.removeRepetition(7, rep);
433 }
434
435
436
437
438
439
440
441
442 public NM getCoveredDays() {
443 NM retVal = this.getTypedField(8, 0);
444 return retVal;
445 }
446
447
448
449
450
451 public NM getUb18_CoveredDays() {
452 NM retVal = this.getTypedField(8, 0);
453 return retVal;
454 }
455
456
457
458
459
460
461
462 public NM getNonCoveredDays() {
463 NM retVal = this.getTypedField(9, 0);
464 return retVal;
465 }
466
467
468
469
470
471 public NM getUb19_NonCoveredDays() {
472 NM retVal = this.getTypedField(9, 0);
473 return retVal;
474 }
475
476
477
478
479
480 public UVC[] getValueAmountCode4649() {
481 UVC[] retVal = this.getTypedField(10, new UVC[0]);
482 return retVal;
483 }
484
485
486
487
488
489 public UVC[] getUb110_ValueAmountCode4649() {
490 UVC[] retVal = this.getTypedField(10, new UVC[0]);
491 return retVal;
492 }
493
494
495
496
497
498
499
500 public int getValueAmountCode4649Reps() {
501 return this.getReps(10);
502 }
503
504
505
506
507
508
509
510
511 public UVC getValueAmountCode4649(int rep) {
512 UVC retVal = this.getTypedField(10, rep);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public UVC getUb110_ValueAmountCode4649(int rep) {
523 UVC retVal = this.getTypedField(10, rep);
524 return retVal;
525 }
526
527
528
529
530
531
532 public int getUb110_ValueAmountCode4649Reps() {
533 return this.getReps(10);
534 }
535
536
537
538
539
540
541
542
543
544 public UVC insertValueAmountCode4649(int rep) throws HL7Exception {
545 return (UVC) super.insertRepetition(10, rep);
546 }
547
548
549
550
551
552
553
554
555
556 public UVC insertUb110_ValueAmountCode4649(int rep) throws HL7Exception {
557 return (UVC) super.insertRepetition(10, rep);
558 }
559
560
561
562
563
564
565
566
567
568 public UVC removeValueAmountCode4649(int rep) throws HL7Exception {
569 return (UVC) super.removeRepetition(10, rep);
570 }
571
572
573
574
575
576
577
578
579
580 public UVC removeUb110_ValueAmountCode4649(int rep) throws HL7Exception {
581 return (UVC) super.removeRepetition(10, rep);
582 }
583
584
585
586
587
588
589
590
591 public NM getNumberOfGraceDays() {
592 NM retVal = this.getTypedField(11, 0);
593 return retVal;
594 }
595
596
597
598
599
600 public NM getUb111_NumberOfGraceDays() {
601 NM retVal = this.getTypedField(11, 0);
602 return retVal;
603 }
604
605
606
607
608
609
610
611 public CE getSpecialProgramIndicator() {
612 CE retVal = this.getTypedField(12, 0);
613 return retVal;
614 }
615
616
617
618
619
620 public CE getUb112_SpecialProgramIndicator() {
621 CE retVal = this.getTypedField(12, 0);
622 return retVal;
623 }
624
625
626
627
628
629
630
631 public CE getPSROURApprovalIndicator() {
632 CE retVal = this.getTypedField(13, 0);
633 return retVal;
634 }
635
636
637
638
639
640 public CE getUb113_PSROURApprovalIndicator() {
641 CE retVal = this.getTypedField(13, 0);
642 return retVal;
643 }
644
645
646
647
648
649
650
651 public DT getPSROURApprovedStayFm() {
652 DT retVal = this.getTypedField(14, 0);
653 return retVal;
654 }
655
656
657
658
659
660 public DT getUb114_PSROURApprovedStayFm() {
661 DT retVal = this.getTypedField(14, 0);
662 return retVal;
663 }
664
665
666
667
668
669
670
671 public DT getPSROURApprovedStayTo() {
672 DT retVal = this.getTypedField(15, 0);
673 return retVal;
674 }
675
676
677
678
679
680 public DT getUb115_PSROURApprovedStayTo() {
681 DT retVal = this.getTypedField(15, 0);
682 return retVal;
683 }
684
685
686
687
688
689 public OCD[] getOccurrence2832() {
690 OCD[] retVal = this.getTypedField(16, new OCD[0]);
691 return retVal;
692 }
693
694
695
696
697
698 public OCD[] getUb116_Occurrence2832() {
699 OCD[] retVal = this.getTypedField(16, new OCD[0]);
700 return retVal;
701 }
702
703
704
705
706
707
708
709 public int getOccurrence2832Reps() {
710 return this.getReps(16);
711 }
712
713
714
715
716
717
718
719
720 public OCD getOccurrence2832(int rep) {
721 OCD retVal = this.getTypedField(16, rep);
722 return retVal;
723 }
724
725
726
727
728
729
730
731 public OCD getUb116_Occurrence2832(int rep) {
732 OCD retVal = this.getTypedField(16, rep);
733 return retVal;
734 }
735
736
737
738
739
740
741 public int getUb116_Occurrence2832Reps() {
742 return this.getReps(16);
743 }
744
745
746
747
748
749
750
751
752
753 public OCD insertOccurrence2832(int rep) throws HL7Exception {
754 return (OCD) super.insertRepetition(16, rep);
755 }
756
757
758
759
760
761
762
763
764
765 public OCD insertUb116_Occurrence2832(int rep) throws HL7Exception {
766 return (OCD) super.insertRepetition(16, rep);
767 }
768
769
770
771
772
773
774
775
776
777 public OCD removeOccurrence2832(int rep) throws HL7Exception {
778 return (OCD) super.removeRepetition(16, rep);
779 }
780
781
782
783
784
785
786
787
788
789 public OCD removeUb116_Occurrence2832(int rep) throws HL7Exception {
790 return (OCD) super.removeRepetition(16, rep);
791 }
792
793
794
795
796
797
798
799
800 public CE getOccurrenceSpan() {
801 CE retVal = this.getTypedField(17, 0);
802 return retVal;
803 }
804
805
806
807
808
809 public CE getUb117_OccurrenceSpan() {
810 CE retVal = this.getTypedField(17, 0);
811 return retVal;
812 }
813
814
815
816
817
818
819
820 public DT getOccurSpanStartDate() {
821 DT retVal = this.getTypedField(18, 0);
822 return retVal;
823 }
824
825
826
827
828
829 public DT getUb118_OccurSpanStartDate() {
830 DT retVal = this.getTypedField(18, 0);
831 return retVal;
832 }
833
834
835
836
837
838
839
840 public DT getOccurSpanEndDate() {
841 DT retVal = this.getTypedField(19, 0);
842 return retVal;
843 }
844
845
846
847
848
849 public DT getUb119_OccurSpanEndDate() {
850 DT retVal = this.getTypedField(19, 0);
851 return retVal;
852 }
853
854
855
856
857
858 public ST[] getUB82Locator2() {
859 ST[] retVal = this.getTypedField(20, new ST[0]);
860 return retVal;
861 }
862
863
864
865
866
867 public ST[] getUb120_UB82Locator2() {
868 ST[] retVal = this.getTypedField(20, new ST[0]);
869 return retVal;
870 }
871
872
873
874
875
876
877
878 public int getUB82Locator2Reps() {
879 return this.getReps(20);
880 }
881
882
883
884
885
886
887
888
889 public ST getUB82Locator2(int rep) {
890 ST retVal = this.getTypedField(20, rep);
891 return retVal;
892 }
893
894
895
896
897
898
899
900 public ST getUb120_UB82Locator2(int rep) {
901 ST retVal = this.getTypedField(20, rep);
902 return retVal;
903 }
904
905
906
907
908
909
910 public int getUb120_UB82Locator2Reps() {
911 return this.getReps(20);
912 }
913
914
915
916
917
918
919
920
921
922 public ST insertUB82Locator2(int rep) throws HL7Exception {
923 return (ST) super.insertRepetition(20, rep);
924 }
925
926
927
928
929
930
931
932
933
934 public ST insertUb120_UB82Locator2(int rep) throws HL7Exception {
935 return (ST) super.insertRepetition(20, rep);
936 }
937
938
939
940
941
942
943
944
945
946 public ST removeUB82Locator2(int rep) throws HL7Exception {
947 return (ST) super.removeRepetition(20, rep);
948 }
949
950
951
952
953
954
955
956
957
958 public ST removeUb120_UB82Locator2(int rep) throws HL7Exception {
959 return (ST) super.removeRepetition(20, rep);
960 }
961
962
963
964
965
966
967 public ST[] getUB82Locator9() {
968 ST[] retVal = this.getTypedField(21, new ST[0]);
969 return retVal;
970 }
971
972
973
974
975
976 public ST[] getUb121_UB82Locator9() {
977 ST[] retVal = this.getTypedField(21, new ST[0]);
978 return retVal;
979 }
980
981
982
983
984
985
986
987 public int getUB82Locator9Reps() {
988 return this.getReps(21);
989 }
990
991
992
993
994
995
996
997
998 public ST getUB82Locator9(int rep) {
999 ST retVal = this.getTypedField(21, rep);
1000 return retVal;
1001 }
1002
1003
1004
1005
1006
1007
1008
1009 public ST getUb121_UB82Locator9(int rep) {
1010 ST retVal = this.getTypedField(21, rep);
1011 return retVal;
1012 }
1013
1014
1015
1016
1017
1018
1019 public int getUb121_UB82Locator9Reps() {
1020 return this.getReps(21);
1021 }
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031 public ST insertUB82Locator9(int rep) throws HL7Exception {
1032 return (ST) super.insertRepetition(21, rep);
1033 }
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043 public ST insertUb121_UB82Locator9(int rep) throws HL7Exception {
1044 return (ST) super.insertRepetition(21, rep);
1045 }
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055 public ST removeUB82Locator9(int rep) throws HL7Exception {
1056 return (ST) super.removeRepetition(21, rep);
1057 }
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067 public ST removeUb121_UB82Locator9(int rep) throws HL7Exception {
1068 return (ST) super.removeRepetition(21, rep);
1069 }
1070
1071
1072
1073
1074
1075
1076 public ST[] getUB82Locator27() {
1077 ST[] retVal = this.getTypedField(22, new ST[0]);
1078 return retVal;
1079 }
1080
1081
1082
1083
1084
1085 public ST[] getUb122_UB82Locator27() {
1086 ST[] retVal = this.getTypedField(22, new ST[0]);
1087 return retVal;
1088 }
1089
1090
1091
1092
1093
1094
1095
1096 public int getUB82Locator27Reps() {
1097 return this.getReps(22);
1098 }
1099
1100
1101
1102
1103
1104
1105
1106
1107 public ST getUB82Locator27(int rep) {
1108 ST retVal = this.getTypedField(22, rep);
1109 return retVal;
1110 }
1111
1112
1113
1114
1115
1116
1117
1118 public ST getUb122_UB82Locator27(int rep) {
1119 ST retVal = this.getTypedField(22, rep);
1120 return retVal;
1121 }
1122
1123
1124
1125
1126
1127
1128 public int getUb122_UB82Locator27Reps() {
1129 return this.getReps(22);
1130 }
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140 public ST insertUB82Locator27(int rep) throws HL7Exception {
1141 return (ST) super.insertRepetition(22, rep);
1142 }
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152 public ST insertUb122_UB82Locator27(int rep) throws HL7Exception {
1153 return (ST) super.insertRepetition(22, rep);
1154 }
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164 public ST removeUB82Locator27(int rep) throws HL7Exception {
1165 return (ST) super.removeRepetition(22, rep);
1166 }
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176 public ST removeUb122_UB82Locator27(int rep) throws HL7Exception {
1177 return (ST) super.removeRepetition(22, rep);
1178 }
1179
1180
1181
1182
1183
1184
1185 public ST[] getUB82Locator45() {
1186 ST[] retVal = this.getTypedField(23, new ST[0]);
1187 return retVal;
1188 }
1189
1190
1191
1192
1193
1194 public ST[] getUb123_UB82Locator45() {
1195 ST[] retVal = this.getTypedField(23, new ST[0]);
1196 return retVal;
1197 }
1198
1199
1200
1201
1202
1203
1204
1205 public int getUB82Locator45Reps() {
1206 return this.getReps(23);
1207 }
1208
1209
1210
1211
1212
1213
1214
1215
1216 public ST getUB82Locator45(int rep) {
1217 ST retVal = this.getTypedField(23, rep);
1218 return retVal;
1219 }
1220
1221
1222
1223
1224
1225
1226
1227 public ST getUb123_UB82Locator45(int rep) {
1228 ST retVal = this.getTypedField(23, rep);
1229 return retVal;
1230 }
1231
1232
1233
1234
1235
1236
1237 public int getUb123_UB82Locator45Reps() {
1238 return this.getReps(23);
1239 }
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249 public ST insertUB82Locator45(int rep) throws HL7Exception {
1250 return (ST) super.insertRepetition(23, rep);
1251 }
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261 public ST insertUb123_UB82Locator45(int rep) throws HL7Exception {
1262 return (ST) super.insertRepetition(23, rep);
1263 }
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273 public ST removeUB82Locator45(int rep) throws HL7Exception {
1274 return (ST) super.removeRepetition(23, rep);
1275 }
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285 public ST removeUb123_UB82Locator45(int rep) throws HL7Exception {
1286 return (ST) super.removeRepetition(23, rep);
1287 }
1288
1289
1290
1291
1292
1293
1294
1295 protected Type createNewTypeWithoutReflection(int field) {
1296 switch (field) {
1297 case 0: return new SI(getMessage());
1298 case 1: return new NM(getMessage());
1299 case 2: return new NM(getMessage());
1300 case 3: return new NM(getMessage());
1301 case 4: return new NM(getMessage());
1302 case 5: return new NM(getMessage());
1303 case 6: return new IS(getMessage(), new Integer( 43 ));
1304 case 7: return new NM(getMessage());
1305 case 8: return new NM(getMessage());
1306 case 9: return new UVC(getMessage());
1307 case 10: return new NM(getMessage());
1308 case 11: return new CE(getMessage());
1309 case 12: return new CE(getMessage());
1310 case 13: return new DT(getMessage());
1311 case 14: return new DT(getMessage());
1312 case 15: return new OCD(getMessage());
1313 case 16: return new CE(getMessage());
1314 case 17: return new DT(getMessage());
1315 case 18: return new DT(getMessage());
1316 case 19: return new ST(getMessage());
1317 case 20: return new ST(getMessage());
1318 case 21: return new ST(getMessage());
1319 case 22: return new ST(getMessage());
1320 default: return null;
1321 }
1322 }
1323
1324
1325 }
1326