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.v251.segment;
35
36
37 import ca.uhn.hl7v2.model.v251.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 RXA extends AbstractSegment {
82
83
84
85
86 public RXA(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, true, 1, 4, new Object[]{ getMessage() }, "Administration Sub-ID Counter");
95 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Date/Time Start of Administration");
96 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Date/Time End of Administration");
97 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Administered Code");
98 this.add(NM.class, true, 1, 20, new Object[]{ getMessage() }, "Administered Amount");
99 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Administered Units");
100 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Administered Dosage Form");
101 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Administration Notes");
102 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Administering Provider");
103 this.add(LA2.class, false, 1, 200, new Object[]{ getMessage() }, "Administered-at Location");
104 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Administered Per (Time Unit)");
105 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Administered Strength");
106 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Administered Strength Units");
107 this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "Substance Lot Number");
108 this.add(TS.class, false, 0, 26, new Object[]{ getMessage() }, "Substance Expiration Date");
109 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Substance Manufacturer Name");
110 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Substance/Treatment Refusal Reason");
111 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Indication");
112 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(322) }, "Completion Status");
113 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(323) }, "Action Code - RXA");
114 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "System Entry Date/Time");
115 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Administered Drug Strength Volume");
116 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Administered Drug Strength Volume Units");
117 this.add(CWE.class, false, 1, 60, new Object[]{ getMessage() }, "Administered 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 RXA - 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 getRxa1_GiveSubIDCounter() {
140 NM retVal = this.getTypedField(1, 0);
141 return retVal;
142 }
143
144
145
146
147
148
149
150 public NM getAdministrationSubIDCounter() {
151 NM retVal = this.getTypedField(2, 0);
152 return retVal;
153 }
154
155
156
157
158
159 public NM getRxa2_AdministrationSubIDCounter() {
160 NM retVal = this.getTypedField(2, 0);
161 return retVal;
162 }
163
164
165
166
167
168
169
170 public TS getDateTimeStartOfAdministration() {
171 TS retVal = this.getTypedField(3, 0);
172 return retVal;
173 }
174
175
176
177
178
179 public TS getRxa3_DateTimeStartOfAdministration() {
180 TS retVal = this.getTypedField(3, 0);
181 return retVal;
182 }
183
184
185
186
187
188
189
190 public TS getDateTimeEndOfAdministration() {
191 TS retVal = this.getTypedField(4, 0);
192 return retVal;
193 }
194
195
196
197
198
199 public TS getRxa4_DateTimeEndOfAdministration() {
200 TS retVal = this.getTypedField(4, 0);
201 return retVal;
202 }
203
204
205
206
207
208
209
210 public CE getAdministeredCode() {
211 CE retVal = this.getTypedField(5, 0);
212 return retVal;
213 }
214
215
216
217
218
219 public CE getRxa5_AdministeredCode() {
220 CE retVal = this.getTypedField(5, 0);
221 return retVal;
222 }
223
224
225
226
227
228
229
230 public NM getAdministeredAmount() {
231 NM retVal = this.getTypedField(6, 0);
232 return retVal;
233 }
234
235
236
237
238
239 public NM getRxa6_AdministeredAmount() {
240 NM retVal = this.getTypedField(6, 0);
241 return retVal;
242 }
243
244
245
246
247
248
249
250 public CE getAdministeredUnits() {
251 CE retVal = this.getTypedField(7, 0);
252 return retVal;
253 }
254
255
256
257
258
259 public CE getRxa7_AdministeredUnits() {
260 CE retVal = this.getTypedField(7, 0);
261 return retVal;
262 }
263
264
265
266
267
268
269
270 public CE getAdministeredDosageForm() {
271 CE retVal = this.getTypedField(8, 0);
272 return retVal;
273 }
274
275
276
277
278
279 public CE getRxa8_AdministeredDosageForm() {
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[] getRxa9_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 getRxa9_AdministrationNotes(int rep) {
331 CE retVal = this.getTypedField(9, rep);
332 return retVal;
333 }
334
335
336
337
338
339
340 public int getRxa9_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 insertRxa9_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 removeRxa9_AdministrationNotes(int rep) throws HL7Exception {
389 return (CE) super.removeRepetition(9, rep);
390 }
391
392
393
394
395
396
397 public XCN[] getAdministeringProvider() {
398 XCN[] retVal = this.getTypedField(10, new XCN[0]);
399 return retVal;
400 }
401
402
403
404
405
406 public XCN[] getRxa10_AdministeringProvider() {
407 XCN[] retVal = this.getTypedField(10, new XCN[0]);
408 return retVal;
409 }
410
411
412
413
414
415
416
417 public int getAdministeringProviderReps() {
418 return this.getReps(10);
419 }
420
421
422
423
424
425
426
427
428 public XCN getAdministeringProvider(int rep) {
429 XCN retVal = this.getTypedField(10, rep);
430 return retVal;
431 }
432
433
434
435
436
437
438
439 public XCN getRxa10_AdministeringProvider(int rep) {
440 XCN retVal = this.getTypedField(10, rep);
441 return retVal;
442 }
443
444
445
446
447
448
449 public int getRxa10_AdministeringProviderReps() {
450 return this.getReps(10);
451 }
452
453
454
455
456
457
458
459
460
461 public XCN insertAdministeringProvider(int rep) throws HL7Exception {
462 return (XCN) super.insertRepetition(10, rep);
463 }
464
465
466
467
468
469
470
471
472
473 public XCN insertRxa10_AdministeringProvider(int rep) throws HL7Exception {
474 return (XCN) super.insertRepetition(10, rep);
475 }
476
477
478
479
480
481
482
483
484
485 public XCN removeAdministeringProvider(int rep) throws HL7Exception {
486 return (XCN) super.removeRepetition(10, rep);
487 }
488
489
490
491
492
493
494
495
496
497 public XCN removeRxa10_AdministeringProvider(int rep) throws HL7Exception {
498 return (XCN) super.removeRepetition(10, rep);
499 }
500
501
502
503
504
505
506
507
508 public LA2 getAdministeredAtLocation() {
509 LA2 retVal = this.getTypedField(11, 0);
510 return retVal;
511 }
512
513
514
515
516
517 public LA2 getRxa11_AdministeredAtLocation() {
518 LA2 retVal = this.getTypedField(11, 0);
519 return retVal;
520 }
521
522
523
524
525
526
527
528 public ST getAdministeredPerTimeUnit() {
529 ST retVal = this.getTypedField(12, 0);
530 return retVal;
531 }
532
533
534
535
536
537 public ST getRxa12_AdministeredPerTimeUnit() {
538 ST retVal = this.getTypedField(12, 0);
539 return retVal;
540 }
541
542
543
544
545
546
547
548 public NM getAdministeredStrength() {
549 NM retVal = this.getTypedField(13, 0);
550 return retVal;
551 }
552
553
554
555
556
557 public NM getRxa13_AdministeredStrength() {
558 NM retVal = this.getTypedField(13, 0);
559 return retVal;
560 }
561
562
563
564
565
566
567
568 public CE getAdministeredStrengthUnits() {
569 CE retVal = this.getTypedField(14, 0);
570 return retVal;
571 }
572
573
574
575
576
577 public CE getRxa14_AdministeredStrengthUnits() {
578 CE retVal = this.getTypedField(14, 0);
579 return retVal;
580 }
581
582
583
584
585
586 public ST[] getSubstanceLotNumber() {
587 ST[] retVal = this.getTypedField(15, new ST[0]);
588 return retVal;
589 }
590
591
592
593
594
595 public ST[] getRxa15_SubstanceLotNumber() {
596 ST[] retVal = this.getTypedField(15, new ST[0]);
597 return retVal;
598 }
599
600
601
602
603
604
605
606 public int getSubstanceLotNumberReps() {
607 return this.getReps(15);
608 }
609
610
611
612
613
614
615
616
617 public ST getSubstanceLotNumber(int rep) {
618 ST retVal = this.getTypedField(15, rep);
619 return retVal;
620 }
621
622
623
624
625
626
627
628 public ST getRxa15_SubstanceLotNumber(int rep) {
629 ST retVal = this.getTypedField(15, rep);
630 return retVal;
631 }
632
633
634
635
636
637
638 public int getRxa15_SubstanceLotNumberReps() {
639 return this.getReps(15);
640 }
641
642
643
644
645
646
647
648
649
650 public ST insertSubstanceLotNumber(int rep) throws HL7Exception {
651 return (ST) super.insertRepetition(15, rep);
652 }
653
654
655
656
657
658
659
660
661
662 public ST insertRxa15_SubstanceLotNumber(int rep) throws HL7Exception {
663 return (ST) super.insertRepetition(15, rep);
664 }
665
666
667
668
669
670
671
672
673
674 public ST removeSubstanceLotNumber(int rep) throws HL7Exception {
675 return (ST) super.removeRepetition(15, rep);
676 }
677
678
679
680
681
682
683
684
685
686 public ST removeRxa15_SubstanceLotNumber(int rep) throws HL7Exception {
687 return (ST) super.removeRepetition(15, rep);
688 }
689
690
691
692
693
694
695 public TS[] getSubstanceExpirationDate() {
696 TS[] retVal = this.getTypedField(16, new TS[0]);
697 return retVal;
698 }
699
700
701
702
703
704 public TS[] getRxa16_SubstanceExpirationDate() {
705 TS[] retVal = this.getTypedField(16, new TS[0]);
706 return retVal;
707 }
708
709
710
711
712
713
714
715 public int getSubstanceExpirationDateReps() {
716 return this.getReps(16);
717 }
718
719
720
721
722
723
724
725
726 public TS getSubstanceExpirationDate(int rep) {
727 TS retVal = this.getTypedField(16, rep);
728 return retVal;
729 }
730
731
732
733
734
735
736
737 public TS getRxa16_SubstanceExpirationDate(int rep) {
738 TS retVal = this.getTypedField(16, rep);
739 return retVal;
740 }
741
742
743
744
745
746
747 public int getRxa16_SubstanceExpirationDateReps() {
748 return this.getReps(16);
749 }
750
751
752
753
754
755
756
757
758
759 public TS insertSubstanceExpirationDate(int rep) throws HL7Exception {
760 return (TS) super.insertRepetition(16, rep);
761 }
762
763
764
765
766
767
768
769
770
771 public TS insertRxa16_SubstanceExpirationDate(int rep) throws HL7Exception {
772 return (TS) super.insertRepetition(16, rep);
773 }
774
775
776
777
778
779
780
781
782
783 public TS removeSubstanceExpirationDate(int rep) throws HL7Exception {
784 return (TS) super.removeRepetition(16, rep);
785 }
786
787
788
789
790
791
792
793
794
795 public TS removeRxa16_SubstanceExpirationDate(int rep) throws HL7Exception {
796 return (TS) super.removeRepetition(16, rep);
797 }
798
799
800
801
802
803
804 public CE[] getSubstanceManufacturerName() {
805 CE[] retVal = this.getTypedField(17, new CE[0]);
806 return retVal;
807 }
808
809
810
811
812
813 public CE[] getRxa17_SubstanceManufacturerName() {
814 CE[] retVal = this.getTypedField(17, new CE[0]);
815 return retVal;
816 }
817
818
819
820
821
822
823
824 public int getSubstanceManufacturerNameReps() {
825 return this.getReps(17);
826 }
827
828
829
830
831
832
833
834
835 public CE getSubstanceManufacturerName(int rep) {
836 CE retVal = this.getTypedField(17, rep);
837 return retVal;
838 }
839
840
841
842
843
844
845
846 public CE getRxa17_SubstanceManufacturerName(int rep) {
847 CE retVal = this.getTypedField(17, rep);
848 return retVal;
849 }
850
851
852
853
854
855
856 public int getRxa17_SubstanceManufacturerNameReps() {
857 return this.getReps(17);
858 }
859
860
861
862
863
864
865
866
867
868 public CE insertSubstanceManufacturerName(int rep) throws HL7Exception {
869 return (CE) super.insertRepetition(17, rep);
870 }
871
872
873
874
875
876
877
878
879
880 public CE insertRxa17_SubstanceManufacturerName(int rep) throws HL7Exception {
881 return (CE) super.insertRepetition(17, rep);
882 }
883
884
885
886
887
888
889
890
891
892 public CE removeSubstanceManufacturerName(int rep) throws HL7Exception {
893 return (CE) super.removeRepetition(17, rep);
894 }
895
896
897
898
899
900
901
902
903
904 public CE removeRxa17_SubstanceManufacturerName(int rep) throws HL7Exception {
905 return (CE) super.removeRepetition(17, rep);
906 }
907
908
909
910
911
912
913 public CE[] getSubstanceTreatmentRefusalReason() {
914 CE[] retVal = this.getTypedField(18, new CE[0]);
915 return retVal;
916 }
917
918
919
920
921
922 public CE[] getRxa18_SubstanceTreatmentRefusalReason() {
923 CE[] retVal = this.getTypedField(18, new CE[0]);
924 return retVal;
925 }
926
927
928
929
930
931
932
933 public int getSubstanceTreatmentRefusalReasonReps() {
934 return this.getReps(18);
935 }
936
937
938
939
940
941
942
943
944 public CE getSubstanceTreatmentRefusalReason(int rep) {
945 CE retVal = this.getTypedField(18, rep);
946 return retVal;
947 }
948
949
950
951
952
953
954
955 public CE getRxa18_SubstanceTreatmentRefusalReason(int rep) {
956 CE retVal = this.getTypedField(18, rep);
957 return retVal;
958 }
959
960
961
962
963
964
965 public int getRxa18_SubstanceTreatmentRefusalReasonReps() {
966 return this.getReps(18);
967 }
968
969
970
971
972
973
974
975
976
977 public CE insertSubstanceTreatmentRefusalReason(int rep) throws HL7Exception {
978 return (CE) super.insertRepetition(18, rep);
979 }
980
981
982
983
984
985
986
987
988
989 public CE insertRxa18_SubstanceTreatmentRefusalReason(int rep) throws HL7Exception {
990 return (CE) super.insertRepetition(18, rep);
991 }
992
993
994
995
996
997
998
999
1000
1001 public CE removeSubstanceTreatmentRefusalReason(int rep) throws HL7Exception {
1002 return (CE) super.removeRepetition(18, rep);
1003 }
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013 public CE removeRxa18_SubstanceTreatmentRefusalReason(int rep) throws HL7Exception {
1014 return (CE) super.removeRepetition(18, rep);
1015 }
1016
1017
1018
1019
1020
1021
1022 public CE[] getIndication() {
1023 CE[] retVal = this.getTypedField(19, new CE[0]);
1024 return retVal;
1025 }
1026
1027
1028
1029
1030
1031 public CE[] getRxa19_Indication() {
1032 CE[] retVal = this.getTypedField(19, new CE[0]);
1033 return retVal;
1034 }
1035
1036
1037
1038
1039
1040
1041
1042 public int getIndicationReps() {
1043 return this.getReps(19);
1044 }
1045
1046
1047
1048
1049
1050
1051
1052
1053 public CE getIndication(int rep) {
1054 CE retVal = this.getTypedField(19, rep);
1055 return retVal;
1056 }
1057
1058
1059
1060
1061
1062
1063
1064 public CE getRxa19_Indication(int rep) {
1065 CE retVal = this.getTypedField(19, rep);
1066 return retVal;
1067 }
1068
1069
1070
1071
1072
1073
1074 public int getRxa19_IndicationReps() {
1075 return this.getReps(19);
1076 }
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086 public CE insertIndication(int rep) throws HL7Exception {
1087 return (CE) super.insertRepetition(19, rep);
1088 }
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098 public CE insertRxa19_Indication(int rep) throws HL7Exception {
1099 return (CE) super.insertRepetition(19, rep);
1100 }
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110 public CE removeIndication(int rep) throws HL7Exception {
1111 return (CE) super.removeRepetition(19, rep);
1112 }
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122 public CE removeRxa19_Indication(int rep) throws HL7Exception {
1123 return (CE) super.removeRepetition(19, rep);
1124 }
1125
1126
1127
1128
1129
1130
1131
1132
1133 public ID getCompletionStatus() {
1134 ID retVal = this.getTypedField(20, 0);
1135 return retVal;
1136 }
1137
1138
1139
1140
1141
1142 public ID getRxa20_CompletionStatus() {
1143 ID retVal = this.getTypedField(20, 0);
1144 return retVal;
1145 }
1146
1147
1148
1149
1150
1151
1152
1153 public ID getActionCodeRXA() {
1154 ID retVal = this.getTypedField(21, 0);
1155 return retVal;
1156 }
1157
1158
1159
1160
1161
1162 public ID getRxa21_ActionCodeRXA() {
1163 ID retVal = this.getTypedField(21, 0);
1164 return retVal;
1165 }
1166
1167
1168
1169
1170
1171
1172
1173 public TS getSystemEntryDateTime() {
1174 TS retVal = this.getTypedField(22, 0);
1175 return retVal;
1176 }
1177
1178
1179
1180
1181
1182 public TS getRxa22_SystemEntryDateTime() {
1183 TS retVal = this.getTypedField(22, 0);
1184 return retVal;
1185 }
1186
1187
1188
1189
1190
1191
1192
1193 public NM getAdministeredDrugStrengthVolume() {
1194 NM retVal = this.getTypedField(23, 0);
1195 return retVal;
1196 }
1197
1198
1199
1200
1201
1202 public NM getRxa23_AdministeredDrugStrengthVolume() {
1203 NM retVal = this.getTypedField(23, 0);
1204 return retVal;
1205 }
1206
1207
1208
1209
1210
1211
1212
1213 public CWE getAdministeredDrugStrengthVolumeUnits() {
1214 CWE retVal = this.getTypedField(24, 0);
1215 return retVal;
1216 }
1217
1218
1219
1220
1221
1222 public CWE getRxa24_AdministeredDrugStrengthVolumeUnits() {
1223 CWE retVal = this.getTypedField(24, 0);
1224 return retVal;
1225 }
1226
1227
1228
1229
1230
1231
1232
1233 public CWE getAdministeredBarcodeIdentifier() {
1234 CWE retVal = this.getTypedField(25, 0);
1235 return retVal;
1236 }
1237
1238
1239
1240
1241
1242 public CWE getRxa25_AdministeredBarcodeIdentifier() {
1243 CWE retVal = this.getTypedField(25, 0);
1244 return retVal;
1245 }
1246
1247
1248
1249
1250
1251
1252
1253 public ID getPharmacyOrderType() {
1254 ID retVal = this.getTypedField(26, 0);
1255 return retVal;
1256 }
1257
1258
1259
1260
1261
1262 public ID getRxa26_PharmacyOrderType() {
1263 ID retVal = this.getTypedField(26, 0);
1264 return retVal;
1265 }
1266
1267
1268
1269
1270
1271
1272 protected Type createNewTypeWithoutReflection(int field) {
1273 switch (field) {
1274 case 0: return new NM(getMessage());
1275 case 1: return new NM(getMessage());
1276 case 2: return new TS(getMessage());
1277 case 3: return new TS(getMessage());
1278 case 4: return new CE(getMessage());
1279 case 5: return new NM(getMessage());
1280 case 6: return new CE(getMessage());
1281 case 7: return new CE(getMessage());
1282 case 8: return new CE(getMessage());
1283 case 9: return new XCN(getMessage());
1284 case 10: return new LA2(getMessage());
1285 case 11: return new ST(getMessage());
1286 case 12: return new NM(getMessage());
1287 case 13: return new CE(getMessage());
1288 case 14: return new ST(getMessage());
1289 case 15: return new TS(getMessage());
1290 case 16: return new CE(getMessage());
1291 case 17: return new CE(getMessage());
1292 case 18: return new CE(getMessage());
1293 case 19: return new ID(getMessage(), new Integer( 322 ));
1294 case 20: return new ID(getMessage(), new Integer( 323 ));
1295 case 21: return new TS(getMessage());
1296 case 22: return new NM(getMessage());
1297 case 23: return new CWE(getMessage());
1298 case 24: return new CWE(getMessage());
1299 case 25: return new ID(getMessage(), new Integer( 480 ));
1300 default: return null;
1301 }
1302 }
1303
1304
1305 }
1306