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