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 @SuppressWarnings("unused")
78 public class RXO extends AbstractSegment {
79
80
81
82
83 public RXO(Group parent, ModelClassFactory factory) {
84 super(parent, factory);
85 init(factory);
86 }
87
88 private void init(ModelClassFactory factory) {
89 try {
90 this.add(CE.class, false, 1, 100, new Object[]{ getMessage() }, "Requested Give Code");
91 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Minimum");
92 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Maximum");
93 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Units");
94 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dosage Form");
95 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider’s Pharmacy/Treatment Instructions");
96 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider’s Administration Instructions");
97 this.add(LA1.class, false, 1, 200, new Object[]{ getMessage() }, "Deliver-to Location");
98 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(161) }, "Allow Substitutions");
99 this.add(CE.class, false, 1, 100, new Object[]{ getMessage() }, "Requested Dispense Code");
100 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Dispense Amount");
101 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dispense Units");
102 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Number Of Refills");
103 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Ordering Provider’s DEA Number");
104 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Pharmacist/Treatment Supplier’s Verifier ID");
105 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review");
106 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Per (Time Unit)");
107 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Strength");
108 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Strength Units");
109 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Indication");
110 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Requested Give Rate Amount");
111 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Rate Units");
112 this.add(CQ.class, false, 1, 10, new Object[]{ getMessage() }, "Total Daily Dose");
113 } catch(HL7Exception e) {
114 log.error("Unexpected error creating RXO - this is probably a bug in the source code generator.", e);
115 }
116 }
117
118
119
120
121
122
123
124 public CE getRequestedGiveCode() {
125 CE retVal = this.getTypedField(1, 0);
126 return retVal;
127 }
128
129
130
131
132
133 public CE getRxo1_RequestedGiveCode() {
134 CE retVal = this.getTypedField(1, 0);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public NM getRequestedGiveAmountMinimum() {
145 NM retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public NM getRxo2_RequestedGiveAmountMinimum() {
154 NM retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public NM getRequestedGiveAmountMaximum() {
165 NM retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public NM getRxo3_RequestedGiveAmountMaximum() {
174 NM retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public CE getRequestedGiveUnits() {
185 CE retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public CE getRxo4_RequestedGiveUnits() {
194 CE retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public CE getRequestedDosageForm() {
205 CE retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public CE getRxo5_RequestedDosageForm() {
214 CE retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222 public CE[] getProviderSPharmacyTreatmentInstructions() {
223 CE[] retVal = this.getTypedField(6, new CE[0]);
224 return retVal;
225 }
226
227
228
229
230
231 public CE[] getRxo6_ProviderSPharmacyTreatmentInstructions() {
232 CE[] retVal = this.getTypedField(6, new CE[0]);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public int getProviderSPharmacyTreatmentInstructionsReps() {
243 return this.getReps(6);
244 }
245
246
247
248
249
250
251
252
253 public CE getProviderSPharmacyTreatmentInstructions(int rep) {
254 CE retVal = this.getTypedField(6, rep);
255 return retVal;
256 }
257
258
259
260
261
262
263
264 public CE getRxo6_ProviderSPharmacyTreatmentInstructions(int rep) {
265 CE retVal = this.getTypedField(6, rep);
266 return retVal;
267 }
268
269
270
271
272
273
274 public int getRxo6_ProviderSPharmacyTreatmentInstructionsReps() {
275 return this.getReps(6);
276 }
277
278
279
280
281
282
283
284
285
286 public CE insertProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception {
287 return (CE) super.insertRepetition(6, rep);
288 }
289
290
291
292
293
294
295
296
297
298 public CE insertRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception {
299 return (CE) super.insertRepetition(6, rep);
300 }
301
302
303
304
305
306
307
308
309
310 public CE removeProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception {
311 return (CE) super.removeRepetition(6, rep);
312 }
313
314
315
316
317
318
319
320
321
322 public CE removeRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception {
323 return (CE) super.removeRepetition(6, rep);
324 }
325
326
327
328
329
330
331 public CE[] getProviderSAdministrationInstructions() {
332 CE[] retVal = this.getTypedField(7, new CE[0]);
333 return retVal;
334 }
335
336
337
338
339
340 public CE[] getRxo7_ProviderSAdministrationInstructions() {
341 CE[] retVal = this.getTypedField(7, new CE[0]);
342 return retVal;
343 }
344
345
346
347
348
349
350
351 public int getProviderSAdministrationInstructionsReps() {
352 return this.getReps(7);
353 }
354
355
356
357
358
359
360
361
362 public CE getProviderSAdministrationInstructions(int rep) {
363 CE retVal = this.getTypedField(7, rep);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public CE getRxo7_ProviderSAdministrationInstructions(int rep) {
374 CE retVal = this.getTypedField(7, rep);
375 return retVal;
376 }
377
378
379
380
381
382
383 public int getRxo7_ProviderSAdministrationInstructionsReps() {
384 return this.getReps(7);
385 }
386
387
388
389
390
391
392
393
394
395 public CE insertProviderSAdministrationInstructions(int rep) throws HL7Exception {
396 return (CE) super.insertRepetition(7, rep);
397 }
398
399
400
401
402
403
404
405
406
407 public CE insertRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
408 return (CE) super.insertRepetition(7, rep);
409 }
410
411
412
413
414
415
416
417
418
419 public CE removeProviderSAdministrationInstructions(int rep) throws HL7Exception {
420 return (CE) super.removeRepetition(7, rep);
421 }
422
423
424
425
426
427
428
429
430
431 public CE removeRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
432 return (CE) super.removeRepetition(7, rep);
433 }
434
435
436
437
438
439
440
441
442 public LA1 getDeliverToLocation() {
443 LA1 retVal = this.getTypedField(8, 0);
444 return retVal;
445 }
446
447
448
449
450
451 public LA1 getRxo8_DeliverToLocation() {
452 LA1 retVal = this.getTypedField(8, 0);
453 return retVal;
454 }
455
456
457
458
459
460
461
462 public ID getAllowSubstitutions() {
463 ID retVal = this.getTypedField(9, 0);
464 return retVal;
465 }
466
467
468
469
470
471 public ID getRxo9_AllowSubstitutions() {
472 ID retVal = this.getTypedField(9, 0);
473 return retVal;
474 }
475
476
477
478
479
480
481
482 public CE getRequestedDispenseCode() {
483 CE retVal = this.getTypedField(10, 0);
484 return retVal;
485 }
486
487
488
489
490
491 public CE getRxo10_RequestedDispenseCode() {
492 CE retVal = this.getTypedField(10, 0);
493 return retVal;
494 }
495
496
497
498
499
500
501
502 public NM getRequestedDispenseAmount() {
503 NM retVal = this.getTypedField(11, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public NM getRxo11_RequestedDispenseAmount() {
512 NM retVal = this.getTypedField(11, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public CE getRequestedDispenseUnits() {
523 CE retVal = this.getTypedField(12, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public CE getRxo12_RequestedDispenseUnits() {
532 CE retVal = this.getTypedField(12, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public NM getNumberOfRefills() {
543 NM retVal = this.getTypedField(13, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public NM getRxo13_NumberOfRefills() {
552 NM retVal = this.getTypedField(13, 0);
553 return retVal;
554 }
555
556
557
558
559
560 public XCN[] getOrderingProviderSDEANumber() {
561 XCN[] retVal = this.getTypedField(14, new XCN[0]);
562 return retVal;
563 }
564
565
566
567
568
569 public XCN[] getRxo14_OrderingProviderSDEANumber() {
570 XCN[] retVal = this.getTypedField(14, new XCN[0]);
571 return retVal;
572 }
573
574
575
576
577
578
579
580 public int getOrderingProviderSDEANumberReps() {
581 return this.getReps(14);
582 }
583
584
585
586
587
588
589
590
591 public XCN getOrderingProviderSDEANumber(int rep) {
592 XCN retVal = this.getTypedField(14, rep);
593 return retVal;
594 }
595
596
597
598
599
600
601
602 public XCN getRxo14_OrderingProviderSDEANumber(int rep) {
603 XCN retVal = this.getTypedField(14, rep);
604 return retVal;
605 }
606
607
608
609
610
611
612 public int getRxo14_OrderingProviderSDEANumberReps() {
613 return this.getReps(14);
614 }
615
616
617
618
619
620
621
622
623
624 public XCN insertOrderingProviderSDEANumber(int rep) throws HL7Exception {
625 return (XCN) super.insertRepetition(14, rep);
626 }
627
628
629
630
631
632
633
634
635
636 public XCN insertRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception {
637 return (XCN) super.insertRepetition(14, rep);
638 }
639
640
641
642
643
644
645
646
647
648 public XCN removeOrderingProviderSDEANumber(int rep) throws HL7Exception {
649 return (XCN) super.removeRepetition(14, rep);
650 }
651
652
653
654
655
656
657
658
659
660 public XCN removeRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception {
661 return (XCN) super.removeRepetition(14, rep);
662 }
663
664
665
666
667
668
669 public XCN[] getPharmacistTreatmentSupplierSVerifierID() {
670 XCN[] retVal = this.getTypedField(15, new XCN[0]);
671 return retVal;
672 }
673
674
675
676
677
678 public XCN[] getRxo15_PharmacistTreatmentSupplierSVerifierID() {
679 XCN[] retVal = this.getTypedField(15, new XCN[0]);
680 return retVal;
681 }
682
683
684
685
686
687
688
689 public int getPharmacistTreatmentSupplierSVerifierIDReps() {
690 return this.getReps(15);
691 }
692
693
694
695
696
697
698
699
700 public XCN getPharmacistTreatmentSupplierSVerifierID(int rep) {
701 XCN retVal = this.getTypedField(15, rep);
702 return retVal;
703 }
704
705
706
707
708
709
710
711 public XCN getRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) {
712 XCN retVal = this.getTypedField(15, rep);
713 return retVal;
714 }
715
716
717
718
719
720
721 public int getRxo15_PharmacistTreatmentSupplierSVerifierIDReps() {
722 return this.getReps(15);
723 }
724
725
726
727
728
729
730
731
732
733 public XCN insertPharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
734 return (XCN) super.insertRepetition(15, rep);
735 }
736
737
738
739
740
741
742
743
744
745 public XCN insertRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
746 return (XCN) super.insertRepetition(15, rep);
747 }
748
749
750
751
752
753
754
755
756
757 public XCN removePharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
758 return (XCN) super.removeRepetition(15, rep);
759 }
760
761
762
763
764
765
766
767
768
769 public XCN removeRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
770 return (XCN) super.removeRepetition(15, rep);
771 }
772
773
774
775
776
777
778
779
780 public ID getNeedsHumanReview() {
781 ID retVal = this.getTypedField(16, 0);
782 return retVal;
783 }
784
785
786
787
788
789 public ID getRxo16_NeedsHumanReview() {
790 ID retVal = this.getTypedField(16, 0);
791 return retVal;
792 }
793
794
795
796
797
798
799
800 public ST getRequestedGivePerTimeUnit() {
801 ST retVal = this.getTypedField(17, 0);
802 return retVal;
803 }
804
805
806
807
808
809 public ST getRxo17_RequestedGivePerTimeUnit() {
810 ST retVal = this.getTypedField(17, 0);
811 return retVal;
812 }
813
814
815
816
817
818
819
820 public NM getRequestedGiveStrength() {
821 NM retVal = this.getTypedField(18, 0);
822 return retVal;
823 }
824
825
826
827
828
829 public NM getRxo18_RequestedGiveStrength() {
830 NM retVal = this.getTypedField(18, 0);
831 return retVal;
832 }
833
834
835
836
837
838
839
840 public CE getRequestedGiveStrengthUnits() {
841 CE retVal = this.getTypedField(19, 0);
842 return retVal;
843 }
844
845
846
847
848
849 public CE getRxo19_RequestedGiveStrengthUnits() {
850 CE retVal = this.getTypedField(19, 0);
851 return retVal;
852 }
853
854
855
856
857
858 public CE[] getIndication() {
859 CE[] retVal = this.getTypedField(20, new CE[0]);
860 return retVal;
861 }
862
863
864
865
866
867 public CE[] getRxo20_Indication() {
868 CE[] retVal = this.getTypedField(20, new CE[0]);
869 return retVal;
870 }
871
872
873
874
875
876
877
878 public int getIndicationReps() {
879 return this.getReps(20);
880 }
881
882
883
884
885
886
887
888
889 public CE getIndication(int rep) {
890 CE retVal = this.getTypedField(20, rep);
891 return retVal;
892 }
893
894
895
896
897
898
899
900 public CE getRxo20_Indication(int rep) {
901 CE retVal = this.getTypedField(20, rep);
902 return retVal;
903 }
904
905
906
907
908
909
910 public int getRxo20_IndicationReps() {
911 return this.getReps(20);
912 }
913
914
915
916
917
918
919
920
921
922 public CE insertIndication(int rep) throws HL7Exception {
923 return (CE) super.insertRepetition(20, rep);
924 }
925
926
927
928
929
930
931
932
933
934 public CE insertRxo20_Indication(int rep) throws HL7Exception {
935 return (CE) super.insertRepetition(20, rep);
936 }
937
938
939
940
941
942
943
944
945
946 public CE removeIndication(int rep) throws HL7Exception {
947 return (CE) super.removeRepetition(20, rep);
948 }
949
950
951
952
953
954
955
956
957
958 public CE removeRxo20_Indication(int rep) throws HL7Exception {
959 return (CE) super.removeRepetition(20, rep);
960 }
961
962
963
964
965
966
967
968
969 public ST getRequestedGiveRateAmount() {
970 ST retVal = this.getTypedField(21, 0);
971 return retVal;
972 }
973
974
975
976
977
978 public ST getRxo21_RequestedGiveRateAmount() {
979 ST retVal = this.getTypedField(21, 0);
980 return retVal;
981 }
982
983
984
985
986
987
988
989 public CE getRequestedGiveRateUnits() {
990 CE retVal = this.getTypedField(22, 0);
991 return retVal;
992 }
993
994
995
996
997
998 public CE getRxo22_RequestedGiveRateUnits() {
999 CE retVal = this.getTypedField(22, 0);
1000 return retVal;
1001 }
1002
1003
1004
1005
1006
1007
1008
1009 public CQ getTotalDailyDose() {
1010 CQ retVal = this.getTypedField(23, 0);
1011 return retVal;
1012 }
1013
1014
1015
1016
1017
1018 public CQ getRxo23_TotalDailyDose() {
1019 CQ retVal = this.getTypedField(23, 0);
1020 return retVal;
1021 }
1022
1023
1024
1025
1026
1027
1028 protected Type createNewTypeWithoutReflection(int field) {
1029 switch (field) {
1030 case 0: return new CE(getMessage());
1031 case 1: return new NM(getMessage());
1032 case 2: return new NM(getMessage());
1033 case 3: return new CE(getMessage());
1034 case 4: return new CE(getMessage());
1035 case 5: return new CE(getMessage());
1036 case 6: return new CE(getMessage());
1037 case 7: return new LA1(getMessage());
1038 case 8: return new ID(getMessage(), new Integer( 161 ));
1039 case 9: return new CE(getMessage());
1040 case 10: return new NM(getMessage());
1041 case 11: return new CE(getMessage());
1042 case 12: return new NM(getMessage());
1043 case 13: return new XCN(getMessage());
1044 case 14: return new XCN(getMessage());
1045 case 15: return new ID(getMessage(), new Integer( 136 ));
1046 case 16: return new ST(getMessage());
1047 case 17: return new NM(getMessage());
1048 case 18: return new CE(getMessage());
1049 case 19: return new CE(getMessage());
1050 case 20: return new ST(getMessage());
1051 case 21: return new CE(getMessage());
1052 case 22: return new CQ(getMessage());
1053 default: return null;
1054 }
1055 }
1056
1057
1058 }
1059