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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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 RX1 extends AbstractSegment {
86
87
88
89
90 public RX1(Group parent, ModelClassFactory factory) {
91 super(parent, factory);
92 init(factory);
93 }
94
95 private void init(ModelClassFactory factory) {
96 try {
97 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "UNUSED");
98 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "UNUSED Number 2");
99 this.add(ST.class, false, 1, 8, new Object[]{ getMessage() }, "ROUTE");
100 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "SITE ADMINISTERED");
101 this.add(CQ.class, false, 1, 10, new Object[]{ getMessage() }, "IV SOLUTION RATE");
102 this.add(CQ.class, false, 1, 14, new Object[]{ getMessage() }, "DRUG STRENGTH");
103 this.add(NM.class, false, 1, 10, new Object[]{ getMessage() }, "FINAL CONCENTRATION");
104 this.add(NM.class, false, 1, 10, new Object[]{ getMessage() }, "FINAL VOLUME IN ML.");
105 this.add(CM.class, false, 1, 10, new Object[]{ getMessage() }, "DRUG DOSE");
106 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "DRUG ROLE");
107 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "PRESCRIPTION SEQUENCE #");
108 this.add(CQ.class, false, 1, 4, new Object[]{ getMessage() }, "QUANTITY DISPENSED");
109 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "UNUSED Number 3");
110 this.add(CE.class, false, 1, 5, new Object[]{ getMessage() }, "DRUG ID");
111 this.add(ID.class, false, 5, 5, new Object[]{ getMessage(), new Integer(0) }, "COMPONENT DRUG IDS");
112 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "PRESCRIPTION TYPE");
113 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "SUBSTITUTION STATUS");
114 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(38) }, "RX ORDER STATUS");
115 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "NUMBER OF REFILLS");
116 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "UNUSED Number 4");
117 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "REFILLS REMAINING");
118 this.add(ID.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "DEA CLASS");
119 this.add(NM.class, false, 1, 10, new Object[]{ getMessage() }, "ORDERING MD'S DEA NUMBER");
120 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "UNUSED Number 5");
121 this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "LAST REFILL DATE/TIME");
122 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "RX NUMBER");
123 this.add(ID.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "PRN STATUS");
124 this.add(TX.class, false, 5, 80, new Object[]{ getMessage() }, "PHARMACY INSTRUCTIONS");
125 this.add(TX.class, false, 5, 80, new Object[]{ getMessage() }, "PATIENT INSTRUCTIONS");
126 this.add(TX.class, false, 0, 500, new Object[]{ getMessage() }, "INSTRUCTIONS (SIG)");
127 } catch(HL7Exception e) {
128 log.error("Unexpected error creating RX1 - this is probably a bug in the source code generator.", e);
129 }
130 }
131
132
133
134
135
136
137
138 public ST getUNUSED() {
139 ST retVal = this.getTypedField(1, 0);
140 return retVal;
141 }
142
143
144
145
146
147 public ST getRx11_UNUSED() {
148 ST retVal = this.getTypedField(1, 0);
149 return retVal;
150 }
151
152
153
154
155
156
157
158 public ST getUNUSEDNumber2() {
159 ST retVal = this.getTypedField(2, 0);
160 return retVal;
161 }
162
163
164
165
166
167 public ST getRx12_UNUSEDNumber2() {
168 ST retVal = this.getTypedField(2, 0);
169 return retVal;
170 }
171
172
173
174
175
176
177
178 public ST getROUTE() {
179 ST retVal = this.getTypedField(3, 0);
180 return retVal;
181 }
182
183
184
185
186
187 public ST getRx13_ROUTE() {
188 ST retVal = this.getTypedField(3, 0);
189 return retVal;
190 }
191
192
193
194
195
196
197
198 public ST getSITEADMINISTERED() {
199 ST retVal = this.getTypedField(4, 0);
200 return retVal;
201 }
202
203
204
205
206
207 public ST getRx14_SITEADMINISTERED() {
208 ST retVal = this.getTypedField(4, 0);
209 return retVal;
210 }
211
212
213
214
215
216
217
218 public CQ getIVSOLUTIONRATE() {
219 CQ retVal = this.getTypedField(5, 0);
220 return retVal;
221 }
222
223
224
225
226
227 public CQ getRx15_IVSOLUTIONRATE() {
228 CQ retVal = this.getTypedField(5, 0);
229 return retVal;
230 }
231
232
233
234
235
236
237
238 public CQ getDRUGSTRENGTH() {
239 CQ retVal = this.getTypedField(6, 0);
240 return retVal;
241 }
242
243
244
245
246
247 public CQ getRx16_DRUGSTRENGTH() {
248 CQ retVal = this.getTypedField(6, 0);
249 return retVal;
250 }
251
252
253
254
255
256
257
258 public NM getFINALCONCENTRATION() {
259 NM retVal = this.getTypedField(7, 0);
260 return retVal;
261 }
262
263
264
265
266
267 public NM getRx17_FINALCONCENTRATION() {
268 NM retVal = this.getTypedField(7, 0);
269 return retVal;
270 }
271
272
273
274
275
276
277
278 public NM getFINALVOLUMEINML() {
279 NM retVal = this.getTypedField(8, 0);
280 return retVal;
281 }
282
283
284
285
286
287 public NM getRx18_FINALVOLUMEINML() {
288 NM retVal = this.getTypedField(8, 0);
289 return retVal;
290 }
291
292
293
294
295
296
297
298 public CM getDRUGDOSE() {
299 CM retVal = this.getTypedField(9, 0);
300 return retVal;
301 }
302
303
304
305
306
307 public CM getRx19_DRUGDOSE() {
308 CM retVal = this.getTypedField(9, 0);
309 return retVal;
310 }
311
312
313
314
315
316
317
318 public ID getDRUGROLE() {
319 ID retVal = this.getTypedField(10, 0);
320 return retVal;
321 }
322
323
324
325
326
327 public ID getRx110_DRUGROLE() {
328 ID retVal = this.getTypedField(10, 0);
329 return retVal;
330 }
331
332
333
334
335
336
337
338 public NM getPRESCRIPTIONSEQUENCE() {
339 NM retVal = this.getTypedField(11, 0);
340 return retVal;
341 }
342
343
344
345
346
347 public NM getRx111_PRESCRIPTIONSEQUENCE() {
348 NM retVal = this.getTypedField(11, 0);
349 return retVal;
350 }
351
352
353
354
355
356
357
358 public CQ getQUANTITYDISPENSED() {
359 CQ retVal = this.getTypedField(12, 0);
360 return retVal;
361 }
362
363
364
365
366
367 public CQ getRx112_QUANTITYDISPENSED() {
368 CQ retVal = this.getTypedField(12, 0);
369 return retVal;
370 }
371
372
373
374
375
376
377
378 public ST getUNUSEDNumber3() {
379 ST retVal = this.getTypedField(13, 0);
380 return retVal;
381 }
382
383
384
385
386
387 public ST getRx113_UNUSEDNumber3() {
388 ST retVal = this.getTypedField(13, 0);
389 return retVal;
390 }
391
392
393
394
395
396
397
398 public CE getDRUGID() {
399 CE retVal = this.getTypedField(14, 0);
400 return retVal;
401 }
402
403
404
405
406
407 public CE getRx114_DRUGID() {
408 CE retVal = this.getTypedField(14, 0);
409 return retVal;
410 }
411
412
413
414
415
416 public ID[] getCOMPONENTDRUGIDS() {
417 ID[] retVal = this.getTypedField(15, new ID[0]);
418 return retVal;
419 }
420
421
422
423
424
425 public ID[] getRx115_COMPONENTDRUGIDS() {
426 ID[] retVal = this.getTypedField(15, new ID[0]);
427 return retVal;
428 }
429
430
431
432
433
434
435
436 public int getCOMPONENTDRUGIDSReps() {
437 return this.getReps(15);
438 }
439
440
441
442
443
444
445
446
447 public ID getCOMPONENTDRUGIDS(int rep) {
448 ID retVal = this.getTypedField(15, rep);
449 return retVal;
450 }
451
452
453
454
455
456
457
458 public ID getRx115_COMPONENTDRUGIDS(int rep) {
459 ID retVal = this.getTypedField(15, rep);
460 return retVal;
461 }
462
463
464
465
466
467
468 public int getRx115_COMPONENTDRUGIDSReps() {
469 return this.getReps(15);
470 }
471
472
473
474
475
476
477
478
479
480 public ID insertCOMPONENTDRUGIDS(int rep) throws HL7Exception {
481 return (ID) super.insertRepetition(15, rep);
482 }
483
484
485
486
487
488
489
490
491
492 public ID insertRx115_COMPONENTDRUGIDS(int rep) throws HL7Exception {
493 return (ID) super.insertRepetition(15, rep);
494 }
495
496
497
498
499
500
501
502
503
504 public ID removeCOMPONENTDRUGIDS(int rep) throws HL7Exception {
505 return (ID) super.removeRepetition(15, rep);
506 }
507
508
509
510
511
512
513
514
515
516 public ID removeRx115_COMPONENTDRUGIDS(int rep) throws HL7Exception {
517 return (ID) super.removeRepetition(15, rep);
518 }
519
520
521
522
523
524
525
526
527 public ID getPRESCRIPTIONTYPE() {
528 ID retVal = this.getTypedField(16, 0);
529 return retVal;
530 }
531
532
533
534
535
536 public ID getRx116_PRESCRIPTIONTYPE() {
537 ID retVal = this.getTypedField(16, 0);
538 return retVal;
539 }
540
541
542
543
544
545
546
547 public ID getSUBSTITUTIONSTATUS() {
548 ID retVal = this.getTypedField(17, 0);
549 return retVal;
550 }
551
552
553
554
555
556 public ID getRx117_SUBSTITUTIONSTATUS() {
557 ID retVal = this.getTypedField(17, 0);
558 return retVal;
559 }
560
561
562
563
564
565
566
567 public ID getRXORDERSTATUS() {
568 ID retVal = this.getTypedField(18, 0);
569 return retVal;
570 }
571
572
573
574
575
576 public ID getRx118_RXORDERSTATUS() {
577 ID retVal = this.getTypedField(18, 0);
578 return retVal;
579 }
580
581
582
583
584
585
586
587 public NM getNUMBEROFREFILLS() {
588 NM retVal = this.getTypedField(19, 0);
589 return retVal;
590 }
591
592
593
594
595
596 public NM getRx119_NUMBEROFREFILLS() {
597 NM retVal = this.getTypedField(19, 0);
598 return retVal;
599 }
600
601
602
603
604
605
606
607 public ST getUNUSEDNumber4() {
608 ST retVal = this.getTypedField(20, 0);
609 return retVal;
610 }
611
612
613
614
615
616 public ST getRx120_UNUSEDNumber4() {
617 ST retVal = this.getTypedField(20, 0);
618 return retVal;
619 }
620
621
622
623
624
625
626
627 public NM getREFILLSREMAINING() {
628 NM retVal = this.getTypedField(21, 0);
629 return retVal;
630 }
631
632
633
634
635
636 public NM getRx121_REFILLSREMAINING() {
637 NM retVal = this.getTypedField(21, 0);
638 return retVal;
639 }
640
641
642
643
644
645
646
647 public ID getDEACLASS() {
648 ID retVal = this.getTypedField(22, 0);
649 return retVal;
650 }
651
652
653
654
655
656 public ID getRx122_DEACLASS() {
657 ID retVal = this.getTypedField(22, 0);
658 return retVal;
659 }
660
661
662
663
664
665
666
667 public NM getORDERINGMDSDEANUMBER() {
668 NM retVal = this.getTypedField(23, 0);
669 return retVal;
670 }
671
672
673
674
675
676 public NM getRx123_ORDERINGMDSDEANUMBER() {
677 NM retVal = this.getTypedField(23, 0);
678 return retVal;
679 }
680
681
682
683
684
685
686
687 public ST getUNUSEDNumber5() {
688 ST retVal = this.getTypedField(24, 0);
689 return retVal;
690 }
691
692
693
694
695
696 public ST getRx124_UNUSEDNumber5() {
697 ST retVal = this.getTypedField(24, 0);
698 return retVal;
699 }
700
701
702
703
704
705
706
707 public TS getLASTREFILLDATETIME() {
708 TS retVal = this.getTypedField(25, 0);
709 return retVal;
710 }
711
712
713
714
715
716 public TS getRx125_LASTREFILLDATETIME() {
717 TS retVal = this.getTypedField(25, 0);
718 return retVal;
719 }
720
721
722
723
724
725
726
727 public ST getRXNUMBER() {
728 ST retVal = this.getTypedField(26, 0);
729 return retVal;
730 }
731
732
733
734
735
736 public ST getRx126_RXNUMBER() {
737 ST retVal = this.getTypedField(26, 0);
738 return retVal;
739 }
740
741
742
743
744
745
746
747 public ID getPRNSTATUS() {
748 ID retVal = this.getTypedField(27, 0);
749 return retVal;
750 }
751
752
753
754
755
756 public ID getRx127_PRNSTATUS() {
757 ID retVal = this.getTypedField(27, 0);
758 return retVal;
759 }
760
761
762
763
764
765 public TX[] getPHARMACYINSTRUCTIONS() {
766 TX[] retVal = this.getTypedField(28, new TX[0]);
767 return retVal;
768 }
769
770
771
772
773
774 public TX[] getRx128_PHARMACYINSTRUCTIONS() {
775 TX[] retVal = this.getTypedField(28, new TX[0]);
776 return retVal;
777 }
778
779
780
781
782
783
784
785 public int getPHARMACYINSTRUCTIONSReps() {
786 return this.getReps(28);
787 }
788
789
790
791
792
793
794
795
796 public TX getPHARMACYINSTRUCTIONS(int rep) {
797 TX retVal = this.getTypedField(28, rep);
798 return retVal;
799 }
800
801
802
803
804
805
806
807 public TX getRx128_PHARMACYINSTRUCTIONS(int rep) {
808 TX retVal = this.getTypedField(28, rep);
809 return retVal;
810 }
811
812
813
814
815
816
817 public int getRx128_PHARMACYINSTRUCTIONSReps() {
818 return this.getReps(28);
819 }
820
821
822
823
824
825
826
827
828
829 public TX insertPHARMACYINSTRUCTIONS(int rep) throws HL7Exception {
830 return (TX) super.insertRepetition(28, rep);
831 }
832
833
834
835
836
837
838
839
840
841 public TX insertRx128_PHARMACYINSTRUCTIONS(int rep) throws HL7Exception {
842 return (TX) super.insertRepetition(28, rep);
843 }
844
845
846
847
848
849
850
851
852
853 public TX removePHARMACYINSTRUCTIONS(int rep) throws HL7Exception {
854 return (TX) super.removeRepetition(28, rep);
855 }
856
857
858
859
860
861
862
863
864
865 public TX removeRx128_PHARMACYINSTRUCTIONS(int rep) throws HL7Exception {
866 return (TX) super.removeRepetition(28, rep);
867 }
868
869
870
871
872
873
874 public TX[] getPATIENTINSTRUCTIONS() {
875 TX[] retVal = this.getTypedField(29, new TX[0]);
876 return retVal;
877 }
878
879
880
881
882
883 public TX[] getRx129_PATIENTINSTRUCTIONS() {
884 TX[] retVal = this.getTypedField(29, new TX[0]);
885 return retVal;
886 }
887
888
889
890
891
892
893
894 public int getPATIENTINSTRUCTIONSReps() {
895 return this.getReps(29);
896 }
897
898
899
900
901
902
903
904
905 public TX getPATIENTINSTRUCTIONS(int rep) {
906 TX retVal = this.getTypedField(29, rep);
907 return retVal;
908 }
909
910
911
912
913
914
915
916 public TX getRx129_PATIENTINSTRUCTIONS(int rep) {
917 TX retVal = this.getTypedField(29, rep);
918 return retVal;
919 }
920
921
922
923
924
925
926 public int getRx129_PATIENTINSTRUCTIONSReps() {
927 return this.getReps(29);
928 }
929
930
931
932
933
934
935
936
937
938 public TX insertPATIENTINSTRUCTIONS(int rep) throws HL7Exception {
939 return (TX) super.insertRepetition(29, rep);
940 }
941
942
943
944
945
946
947
948
949
950 public TX insertRx129_PATIENTINSTRUCTIONS(int rep) throws HL7Exception {
951 return (TX) super.insertRepetition(29, rep);
952 }
953
954
955
956
957
958
959
960
961
962 public TX removePATIENTINSTRUCTIONS(int rep) throws HL7Exception {
963 return (TX) super.removeRepetition(29, rep);
964 }
965
966
967
968
969
970
971
972
973
974 public TX removeRx129_PATIENTINSTRUCTIONS(int rep) throws HL7Exception {
975 return (TX) super.removeRepetition(29, rep);
976 }
977
978
979
980
981
982
983 public TX[] getINSTRUCTIONS() {
984 TX[] retVal = this.getTypedField(30, new TX[0]);
985 return retVal;
986 }
987
988
989
990
991
992 public TX[] getRx130_INSTRUCTIONS() {
993 TX[] retVal = this.getTypedField(30, new TX[0]);
994 return retVal;
995 }
996
997
998
999
1000
1001
1002
1003 public int getINSTRUCTIONSReps() {
1004 return this.getReps(30);
1005 }
1006
1007
1008
1009
1010
1011
1012
1013
1014 public TX getINSTRUCTIONS(int rep) {
1015 TX retVal = this.getTypedField(30, rep);
1016 return retVal;
1017 }
1018
1019
1020
1021
1022
1023
1024
1025 public TX getRx130_INSTRUCTIONS(int rep) {
1026 TX retVal = this.getTypedField(30, rep);
1027 return retVal;
1028 }
1029
1030
1031
1032
1033
1034
1035 public int getRx130_INSTRUCTIONSReps() {
1036 return this.getReps(30);
1037 }
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047 public TX insertINSTRUCTIONS(int rep) throws HL7Exception {
1048 return (TX) super.insertRepetition(30, rep);
1049 }
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059 public TX insertRx130_INSTRUCTIONS(int rep) throws HL7Exception {
1060 return (TX) super.insertRepetition(30, rep);
1061 }
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071 public TX removeINSTRUCTIONS(int rep) throws HL7Exception {
1072 return (TX) super.removeRepetition(30, rep);
1073 }
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083 public TX removeRx130_INSTRUCTIONS(int rep) throws HL7Exception {
1084 return (TX) super.removeRepetition(30, rep);
1085 }
1086
1087
1088
1089
1090
1091
1092
1093 protected Type createNewTypeWithoutReflection(int field) {
1094 switch (field) {
1095 case 0: return new ST(getMessage());
1096 case 1: return new ST(getMessage());
1097 case 2: return new ST(getMessage());
1098 case 3: return new ST(getMessage());
1099 case 4: return new CQ(getMessage());
1100 case 5: return new CQ(getMessage());
1101 case 6: return new NM(getMessage());
1102 case 7: return new NM(getMessage());
1103 case 8: return new CM(getMessage());
1104 case 9: return new ID(getMessage(), new Integer( 0 ));
1105 case 10: return new NM(getMessage());
1106 case 11: return new CQ(getMessage());
1107 case 12: return new ST(getMessage());
1108 case 13: return new CE(getMessage());
1109 case 14: return new ID(getMessage(), new Integer( 0 ));
1110 case 15: return new ID(getMessage(), new Integer( 0 ));
1111 case 16: return new ID(getMessage(), new Integer( 0 ));
1112 case 17: return new ID(getMessage(), new Integer( 38 ));
1113 case 18: return new NM(getMessage());
1114 case 19: return new ST(getMessage());
1115 case 20: return new NM(getMessage());
1116 case 21: return new ID(getMessage(), new Integer( 0 ));
1117 case 22: return new NM(getMessage());
1118 case 23: return new ST(getMessage());
1119 case 24: return new TS(getMessage());
1120 case 25: return new ST(getMessage());
1121 case 26: return new ID(getMessage(), new Integer( 0 ));
1122 case 27: return new TX(getMessage());
1123 case 28: return new TX(getMessage());
1124 case 29: return new TX(getMessage());
1125 default: return null;
1126 }
1127 }
1128
1129
1130 }
1131