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.v25.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
78
79
80 @SuppressWarnings("unused")
81 public class RXG extends AbstractSegment {
82
83
84
85
86 public RXG(Group parent, ModelClassFactory factory) {
87 super(parent, factory);
88 init(factory);
89 }
90
91 private void init(ModelClassFactory factory) {
92 try {
93 this.add(NM.class, true, 1, 4, new Object[]{ getMessage() }, "Give Sub-ID Counter");
94 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Dispense Sub-ID Counter");
95 this.add(TQ.class, false, 1, 200, new Object[]{ getMessage() }, "Quantity/Timing");
96 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Give Code");
97 this.add(NM.class, true, 1, 20, new Object[]{ getMessage() }, "Give Amount - Minimum");
98 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Give Amount - Maximum");
99 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Give Units");
100 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Dosage Form");
101 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Administration Notes");
102 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(167) }, "Substitution Status");
103 this.add(LA2.class, false, 1, 200, new Object[]{ getMessage() }, "Dispense-to Location");
104 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review");
105 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Pharmacy/Treatment Supplier's Special Administration Instructions");
106 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Give Per (Time Unit)");
107 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Give Rate Amount");
108 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Rate Units");
109 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Give Strength");
110 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Strength Units");
111 this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "Substance Lot Number");
112 this.add(TS.class, false, 0, 26, new Object[]{ getMessage() }, "Substance Expiration Date");
113 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Substance Manufacturer Name");
114 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Indication");
115 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Give Drug Strength Volume");
116 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Drug Strength Volume Units");
117 this.add(CWE.class, false, 1, 60, new Object[]{ getMessage() }, "Give Barcode Identifier");
118 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(480) }, "Pharmacy Order Type");
119 } catch(HL7Exception e) {
120 log.error("Unexpected error creating RXG - this is probably a bug in the source code generator.", e);
121 }
122 }
123
124
125
126
127
128
129
130 public NM getGiveSubIDCounter() {
131 NM retVal = this.getTypedField(1, 0);
132 return retVal;
133 }
134
135
136
137
138
139 public NM getRxg1_GiveSubIDCounter() {
140 NM retVal = this.getTypedField(1, 0);
141 return retVal;
142 }
143
144
145
146
147
148
149
150 public NM getDispenseSubIDCounter() {
151 NM retVal = this.getTypedField(2, 0);
152 return retVal;
153 }
154
155
156
157
158
159 public NM getRxg2_DispenseSubIDCounter() {
160 NM retVal = this.getTypedField(2, 0);
161 return retVal;
162 }
163
164
165
166
167
168
169
170 public TQ getQuantityTiming() {
171 TQ retVal = this.getTypedField(3, 0);
172 return retVal;
173 }
174
175
176
177
178
179 public TQ getRxg3_QuantityTiming() {
180 TQ retVal = this.getTypedField(3, 0);
181 return retVal;
182 }
183
184
185
186
187
188
189
190 public CE getGiveCode() {
191 CE retVal = this.getTypedField(4, 0);
192 return retVal;
193 }
194
195
196
197
198
199 public CE getRxg4_GiveCode() {
200 CE retVal = this.getTypedField(4, 0);
201 return retVal;
202 }
203
204
205
206
207
208
209
210 public NM getGiveAmountMinimum() {
211 NM retVal = this.getTypedField(5, 0);
212 return retVal;
213 }
214
215
216
217
218
219 public NM getRxg5_GiveAmountMinimum() {
220 NM retVal = this.getTypedField(5, 0);
221 return retVal;
222 }
223
224
225
226
227
228
229
230 public NM getGiveAmountMaximum() {
231 NM retVal = this.getTypedField(6, 0);
232 return retVal;
233 }
234
235
236
237
238
239 public NM getRxg6_GiveAmountMaximum() {
240 NM retVal = this.getTypedField(6, 0);
241 return retVal;
242 }
243
244
245
246
247
248
249
250 public CE getGiveUnits() {
251 CE retVal = this.getTypedField(7, 0);
252 return retVal;
253 }
254
255
256
257
258
259 public CE getRxg7_GiveUnits() {
260 CE retVal = this.getTypedField(7, 0);
261 return retVal;
262 }
263
264
265
266
267
268
269
270 public CE getGiveDosageForm() {
271 CE retVal = this.getTypedField(8, 0);
272 return retVal;
273 }
274
275
276
277
278
279 public CE getRxg8_GiveDosageForm() {
280 CE retVal = this.getTypedField(8, 0);
281 return retVal;
282 }
283
284
285
286
287
288 public CE[] getAdministrationNotes() {
289 CE[] retVal = this.getTypedField(9, new CE[0]);
290 return retVal;
291 }
292
293
294
295
296
297 public CE[] getRxg9_AdministrationNotes() {
298 CE[] retVal = this.getTypedField(9, new CE[0]);
299 return retVal;
300 }
301
302
303
304
305
306
307
308 public int getAdministrationNotesReps() {
309 return this.getReps(9);
310 }
311
312
313
314
315
316
317
318
319 public CE getAdministrationNotes(int rep) {
320 CE retVal = this.getTypedField(9, rep);
321 return retVal;
322 }
323
324
325
326
327
328
329
330 public CE getRxg9_AdministrationNotes(int rep) {
331 CE retVal = this.getTypedField(9, rep);
332 return retVal;
333 }
334
335
336
337
338
339
340 public int getRxg9_AdministrationNotesReps() {
341 return this.getReps(9);
342 }
343
344
345
346
347
348
349
350
351
352 public CE insertAdministrationNotes(int rep) throws HL7Exception {
353 return (CE) super.insertRepetition(9, rep);
354 }
355
356
357
358
359
360
361
362
363
364 public CE insertRxg9_AdministrationNotes(int rep) throws HL7Exception {
365 return (CE) super.insertRepetition(9, rep);
366 }
367
368
369
370
371
372
373
374
375
376 public CE removeAdministrationNotes(int rep) throws HL7Exception {
377 return (CE) super.removeRepetition(9, rep);
378 }
379
380
381
382
383
384
385
386
387
388 public CE removeRxg9_AdministrationNotes(int rep) throws HL7Exception {
389 return (CE) super.removeRepetition(9, rep);
390 }
391
392
393
394
395
396
397
398
399 public ID getSubstitutionStatus() {
400 ID retVal = this.getTypedField(10, 0);
401 return retVal;
402 }
403
404
405
406
407
408 public ID getRxg10_SubstitutionStatus() {
409 ID retVal = this.getTypedField(10, 0);
410 return retVal;
411 }
412
413
414
415
416
417
418
419 public LA2 getDispenseToLocation() {
420 LA2 retVal = this.getTypedField(11, 0);
421 return retVal;
422 }
423
424
425
426
427
428 public LA2 getRxg11_DispenseToLocation() {
429 LA2 retVal = this.getTypedField(11, 0);
430 return retVal;
431 }
432
433
434
435
436
437
438
439 public ID getNeedsHumanReview() {
440 ID retVal = this.getTypedField(12, 0);
441 return retVal;
442 }
443
444
445
446
447
448 public ID getRxg12_NeedsHumanReview() {
449 ID retVal = this.getTypedField(12, 0);
450 return retVal;
451 }
452
453
454
455
456
457 public CE[] getPharmacyTreatmentSupplierSSpecialAdministrationInstructions() {
458 CE[] retVal = this.getTypedField(13, new CE[0]);
459 return retVal;
460 }
461
462
463
464
465
466 public CE[] getRxg13_PharmacyTreatmentSupplierSSpecialAdministrationInstructions() {
467 CE[] retVal = this.getTypedField(13, new CE[0]);
468 return retVal;
469 }
470
471
472
473
474
475
476
477 public int getPharmacyTreatmentSupplierSSpecialAdministrationInstructionsReps() {
478 return this.getReps(13);
479 }
480
481
482
483
484
485
486
487
488 public CE getPharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) {
489 CE retVal = this.getTypedField(13, rep);
490 return retVal;
491 }
492
493
494
495
496
497
498
499 public CE getRxg13_PharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) {
500 CE retVal = this.getTypedField(13, rep);
501 return retVal;
502 }
503
504
505
506
507
508
509 public int getRxg13_PharmacyTreatmentSupplierSSpecialAdministrationInstructionsReps() {
510 return this.getReps(13);
511 }
512
513
514
515
516
517
518
519
520
521 public CE insertPharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) throws HL7Exception {
522 return (CE) super.insertRepetition(13, rep);
523 }
524
525
526
527
528
529
530
531
532
533 public CE insertRxg13_PharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) throws HL7Exception {
534 return (CE) super.insertRepetition(13, rep);
535 }
536
537
538
539
540
541
542
543
544
545 public CE removePharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) throws HL7Exception {
546 return (CE) super.removeRepetition(13, rep);
547 }
548
549
550
551
552
553
554
555
556
557 public CE removeRxg13_PharmacyTreatmentSupplierSSpecialAdministrationInstructions(int rep) throws HL7Exception {
558 return (CE) super.removeRepetition(13, rep);
559 }
560
561
562
563
564
565
566
567
568 public ST getGivePerTimeUnit() {
569 ST retVal = this.getTypedField(14, 0);
570 return retVal;
571 }
572
573
574
575
576
577 public ST getRxg14_GivePerTimeUnit() {
578 ST retVal = this.getTypedField(14, 0);
579 return retVal;
580 }
581
582
583
584
585
586
587
588 public ST getGiveRateAmount() {
589 ST retVal = this.getTypedField(15, 0);
590 return retVal;
591 }
592
593
594
595
596
597 public ST getRxg15_GiveRateAmount() {
598 ST retVal = this.getTypedField(15, 0);
599 return retVal;
600 }
601
602
603
604
605
606
607
608 public CE getGiveRateUnits() {
609 CE retVal = this.getTypedField(16, 0);
610 return retVal;
611 }
612
613
614
615
616
617 public CE getRxg16_GiveRateUnits() {
618 CE retVal = this.getTypedField(16, 0);
619 return retVal;
620 }
621
622
623
624
625
626
627
628 public NM getGiveStrength() {
629 NM retVal = this.getTypedField(17, 0);
630 return retVal;
631 }
632
633
634
635
636
637 public NM getRxg17_GiveStrength() {
638 NM retVal = this.getTypedField(17, 0);
639 return retVal;
640 }
641
642
643
644
645
646
647
648 public CE getGiveStrengthUnits() {
649 CE retVal = this.getTypedField(18, 0);
650 return retVal;
651 }
652
653
654
655
656
657 public CE getRxg18_GiveStrengthUnits() {
658 CE retVal = this.getTypedField(18, 0);
659 return retVal;
660 }
661
662
663
664
665
666 public ST[] getSubstanceLotNumber() {
667 ST[] retVal = this.getTypedField(19, new ST[0]);
668 return retVal;
669 }
670
671
672
673
674
675 public ST[] getRxg19_SubstanceLotNumber() {
676 ST[] retVal = this.getTypedField(19, new ST[0]);
677 return retVal;
678 }
679
680
681
682
683
684
685
686 public int getSubstanceLotNumberReps() {
687 return this.getReps(19);
688 }
689
690
691
692
693
694
695
696
697 public ST getSubstanceLotNumber(int rep) {
698 ST retVal = this.getTypedField(19, rep);
699 return retVal;
700 }
701
702
703
704
705
706
707
708 public ST getRxg19_SubstanceLotNumber(int rep) {
709 ST retVal = this.getTypedField(19, rep);
710 return retVal;
711 }
712
713
714
715
716
717
718 public int getRxg19_SubstanceLotNumberReps() {
719 return this.getReps(19);
720 }
721
722
723
724
725
726
727
728
729
730 public ST insertSubstanceLotNumber(int rep) throws HL7Exception {
731 return (ST) super.insertRepetition(19, rep);
732 }
733
734
735
736
737
738
739
740
741
742 public ST insertRxg19_SubstanceLotNumber(int rep) throws HL7Exception {
743 return (ST) super.insertRepetition(19, rep);
744 }
745
746
747
748
749
750
751
752
753
754 public ST removeSubstanceLotNumber(int rep) throws HL7Exception {
755 return (ST) super.removeRepetition(19, rep);
756 }
757
758
759
760
761
762
763
764
765
766 public ST removeRxg19_SubstanceLotNumber(int rep) throws HL7Exception {
767 return (ST) super.removeRepetition(19, rep);
768 }
769
770
771
772
773
774
775 public TS[] getSubstanceExpirationDate() {
776 TS[] retVal = this.getTypedField(20, new TS[0]);
777 return retVal;
778 }
779
780
781
782
783
784 public TS[] getRxg20_SubstanceExpirationDate() {
785 TS[] retVal = this.getTypedField(20, new TS[0]);
786 return retVal;
787 }
788
789
790
791
792
793
794
795 public int getSubstanceExpirationDateReps() {
796 return this.getReps(20);
797 }
798
799
800
801
802
803
804
805
806 public TS getSubstanceExpirationDate(int rep) {
807 TS retVal = this.getTypedField(20, rep);
808 return retVal;
809 }
810
811
812
813
814
815
816
817 public TS getRxg20_SubstanceExpirationDate(int rep) {
818 TS retVal = this.getTypedField(20, rep);
819 return retVal;
820 }
821
822
823
824
825
826
827 public int getRxg20_SubstanceExpirationDateReps() {
828 return this.getReps(20);
829 }
830
831
832
833
834
835
836
837
838
839 public TS insertSubstanceExpirationDate(int rep) throws HL7Exception {
840 return (TS) super.insertRepetition(20, rep);
841 }
842
843
844
845
846
847
848
849
850
851 public TS insertRxg20_SubstanceExpirationDate(int rep) throws HL7Exception {
852 return (TS) super.insertRepetition(20, rep);
853 }
854
855
856
857
858
859
860
861
862
863 public TS removeSubstanceExpirationDate(int rep) throws HL7Exception {
864 return (TS) super.removeRepetition(20, rep);
865 }
866
867
868
869
870
871
872
873
874
875 public TS removeRxg20_SubstanceExpirationDate(int rep) throws HL7Exception {
876 return (TS) super.removeRepetition(20, rep);
877 }
878
879
880
881
882
883
884 public CE[] getSubstanceManufacturerName() {
885 CE[] retVal = this.getTypedField(21, new CE[0]);
886 return retVal;
887 }
888
889
890
891
892
893 public CE[] getRxg21_SubstanceManufacturerName() {
894 CE[] retVal = this.getTypedField(21, new CE[0]);
895 return retVal;
896 }
897
898
899
900
901
902
903
904 public int getSubstanceManufacturerNameReps() {
905 return this.getReps(21);
906 }
907
908
909
910
911
912
913
914
915 public CE getSubstanceManufacturerName(int rep) {
916 CE retVal = this.getTypedField(21, rep);
917 return retVal;
918 }
919
920
921
922
923
924
925
926 public CE getRxg21_SubstanceManufacturerName(int rep) {
927 CE retVal = this.getTypedField(21, rep);
928 return retVal;
929 }
930
931
932
933
934
935
936 public int getRxg21_SubstanceManufacturerNameReps() {
937 return this.getReps(21);
938 }
939
940
941
942
943
944
945
946
947
948 public CE insertSubstanceManufacturerName(int rep) throws HL7Exception {
949 return (CE) super.insertRepetition(21, rep);
950 }
951
952
953
954
955
956
957
958
959
960 public CE insertRxg21_SubstanceManufacturerName(int rep) throws HL7Exception {
961 return (CE) super.insertRepetition(21, rep);
962 }
963
964
965
966
967
968
969
970
971
972 public CE removeSubstanceManufacturerName(int rep) throws HL7Exception {
973 return (CE) super.removeRepetition(21, rep);
974 }
975
976
977
978
979
980
981
982
983
984 public CE removeRxg21_SubstanceManufacturerName(int rep) throws HL7Exception {
985 return (CE) super.removeRepetition(21, rep);
986 }
987
988
989
990
991
992
993 public CE[] getIndication() {
994 CE[] retVal = this.getTypedField(22, new CE[0]);
995 return retVal;
996 }
997
998
999
1000
1001
1002 public CE[] getRxg22_Indication() {
1003 CE[] retVal = this.getTypedField(22, new CE[0]);
1004 return retVal;
1005 }
1006
1007
1008
1009
1010
1011
1012
1013 public int getIndicationReps() {
1014 return this.getReps(22);
1015 }
1016
1017
1018
1019
1020
1021
1022
1023
1024 public CE getIndication(int rep) {
1025 CE retVal = this.getTypedField(22, rep);
1026 return retVal;
1027 }
1028
1029
1030
1031
1032
1033
1034
1035 public CE getRxg22_Indication(int rep) {
1036 CE retVal = this.getTypedField(22, rep);
1037 return retVal;
1038 }
1039
1040
1041
1042
1043
1044
1045 public int getRxg22_IndicationReps() {
1046 return this.getReps(22);
1047 }
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057 public CE insertIndication(int rep) throws HL7Exception {
1058 return (CE) super.insertRepetition(22, rep);
1059 }
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069 public CE insertRxg22_Indication(int rep) throws HL7Exception {
1070 return (CE) super.insertRepetition(22, rep);
1071 }
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081 public CE removeIndication(int rep) throws HL7Exception {
1082 return (CE) super.removeRepetition(22, rep);
1083 }
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093 public CE removeRxg22_Indication(int rep) throws HL7Exception {
1094 return (CE) super.removeRepetition(22, rep);
1095 }
1096
1097
1098
1099
1100
1101
1102
1103
1104 public NM getGiveDrugStrengthVolume() {
1105 NM retVal = this.getTypedField(23, 0);
1106 return retVal;
1107 }
1108
1109
1110
1111
1112
1113 public NM getRxg23_GiveDrugStrengthVolume() {
1114 NM retVal = this.getTypedField(23, 0);
1115 return retVal;
1116 }
1117
1118
1119
1120
1121
1122
1123
1124 public CWE getGiveDrugStrengthVolumeUnits() {
1125 CWE retVal = this.getTypedField(24, 0);
1126 return retVal;
1127 }
1128
1129
1130
1131
1132
1133 public CWE getRxg24_GiveDrugStrengthVolumeUnits() {
1134 CWE retVal = this.getTypedField(24, 0);
1135 return retVal;
1136 }
1137
1138
1139
1140
1141
1142
1143
1144 public CWE getGiveBarcodeIdentifier() {
1145 CWE retVal = this.getTypedField(25, 0);
1146 return retVal;
1147 }
1148
1149
1150
1151
1152
1153 public CWE getRxg25_GiveBarcodeIdentifier() {
1154 CWE retVal = this.getTypedField(25, 0);
1155 return retVal;
1156 }
1157
1158
1159
1160
1161
1162
1163
1164 public ID getPharmacyOrderType() {
1165 ID retVal = this.getTypedField(26, 0);
1166 return retVal;
1167 }
1168
1169
1170
1171
1172
1173 public ID getRxg26_PharmacyOrderType() {
1174 ID retVal = this.getTypedField(26, 0);
1175 return retVal;
1176 }
1177
1178
1179
1180
1181
1182
1183 protected Type createNewTypeWithoutReflection(int field) {
1184 switch (field) {
1185 case 0: return new NM(getMessage());
1186 case 1: return new NM(getMessage());
1187 case 2: return new TQ(getMessage());
1188 case 3: return new CE(getMessage());
1189 case 4: return new NM(getMessage());
1190 case 5: return new NM(getMessage());
1191 case 6: return new CE(getMessage());
1192 case 7: return new CE(getMessage());
1193 case 8: return new CE(getMessage());
1194 case 9: return new ID(getMessage(), new Integer( 167 ));
1195 case 10: return new LA2(getMessage());
1196 case 11: return new ID(getMessage(), new Integer( 136 ));
1197 case 12: return new CE(getMessage());
1198 case 13: return new ST(getMessage());
1199 case 14: return new ST(getMessage());
1200 case 15: return new CE(getMessage());
1201 case 16: return new NM(getMessage());
1202 case 17: return new CE(getMessage());
1203 case 18: return new ST(getMessage());
1204 case 19: return new TS(getMessage());
1205 case 20: return new CE(getMessage());
1206 case 21: return new CE(getMessage());
1207 case 22: return new NM(getMessage());
1208 case 23: return new CWE(getMessage());
1209 case 24: return new CWE(getMessage());
1210 case 25: return new ID(getMessage(), new Integer( 480 ));
1211 default: return null;
1212 }
1213 }
1214
1215
1216 }
1217