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