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 @SuppressWarnings("unused")
77 public class RXO extends AbstractSegment {
78
79
80
81
82 public RXO(Group parent, ModelClassFactory factory) {
83 super(parent, factory);
84 init(factory);
85 }
86
87 private void init(ModelClassFactory factory) {
88 try {
89 this.add(CE.class, true, 1, 100, new Object[]{ getMessage() }, "Requested Give Code");
90 this.add(NM.class, true, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Minimum");
91 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Maximum");
92 this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Requested Give Units");
93 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dosage Form");
94 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider's Pharmacy Instructions");
95 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider's Administration Instructions");
96 this.add(CM_LA1.class, false, 1, 200, new Object[]{ getMessage() }, "Deliver To Location");
97 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(161) }, "Allow Substitutions");
98 this.add(CE.class, false, 1, 100, new Object[]{ getMessage() }, "Requested Dispense Code");
99 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Dispense Amount");
100 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dispense Units");
101 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Number of Refills");
102 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Ordering Provider's DEA Number");
103 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Pharmacist/Treatment Supplier's Verifier ID");
104 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review");
105 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Per (Time Unit)");
106 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Strength");
107 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Strength Units");
108 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Indication");
109 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Requested Give Rate Amount");
110 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Rate Units");
111 } catch(HL7Exception e) {
112 log.error("Unexpected error creating RXO - this is probably a bug in the source code generator.", e);
113 }
114 }
115
116
117
118
119
120
121
122 public CE getRequestedGiveCode() {
123 CE retVal = this.getTypedField(1, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public CE getRxo1_RequestedGiveCode() {
132 CE retVal = this.getTypedField(1, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public NM getRequestedGiveAmountMinimum() {
143 NM retVal = this.getTypedField(2, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public NM getRxo2_RequestedGiveAmountMinimum() {
152 NM retVal = this.getTypedField(2, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public NM getRequestedGiveAmountMaximum() {
163 NM retVal = this.getTypedField(3, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public NM getRxo3_RequestedGiveAmountMaximum() {
172 NM retVal = this.getTypedField(3, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public CE getRequestedGiveUnits() {
183 CE retVal = this.getTypedField(4, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public CE getRxo4_RequestedGiveUnits() {
192 CE retVal = this.getTypedField(4, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public CE getRequestedDosageForm() {
203 CE retVal = this.getTypedField(5, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public CE getRxo5_RequestedDosageForm() {
212 CE retVal = this.getTypedField(5, 0);
213 return retVal;
214 }
215
216
217
218
219
220 public CE[] getProviderSPharmacyInstructions() {
221 CE[] retVal = this.getTypedField(6, new CE[0]);
222 return retVal;
223 }
224
225
226
227
228
229 public CE[] getRxo6_ProviderSPharmacyInstructions() {
230 CE[] retVal = this.getTypedField(6, new CE[0]);
231 return retVal;
232 }
233
234
235
236
237
238
239
240 public int getProviderSPharmacyInstructionsReps() {
241 return this.getReps(6);
242 }
243
244
245
246
247
248
249
250
251 public CE getProviderSPharmacyInstructions(int rep) {
252 CE retVal = this.getTypedField(6, rep);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public CE getRxo6_ProviderSPharmacyInstructions(int rep) {
263 CE retVal = this.getTypedField(6, rep);
264 return retVal;
265 }
266
267
268
269
270
271
272 public int getRxo6_ProviderSPharmacyInstructionsReps() {
273 return this.getReps(6);
274 }
275
276
277
278
279
280
281
282
283
284 public CE insertProviderSPharmacyInstructions(int rep) throws HL7Exception {
285 return (CE) super.insertRepetition(6, rep);
286 }
287
288
289
290
291
292
293
294
295
296 public CE insertRxo6_ProviderSPharmacyInstructions(int rep) throws HL7Exception {
297 return (CE) super.insertRepetition(6, rep);
298 }
299
300
301
302
303
304
305
306
307
308 public CE removeProviderSPharmacyInstructions(int rep) throws HL7Exception {
309 return (CE) super.removeRepetition(6, rep);
310 }
311
312
313
314
315
316
317
318
319
320 public CE removeRxo6_ProviderSPharmacyInstructions(int rep) throws HL7Exception {
321 return (CE) super.removeRepetition(6, rep);
322 }
323
324
325
326
327
328
329 public CE[] getProviderSAdministrationInstructions() {
330 CE[] retVal = this.getTypedField(7, new CE[0]);
331 return retVal;
332 }
333
334
335
336
337
338 public CE[] getRxo7_ProviderSAdministrationInstructions() {
339 CE[] retVal = this.getTypedField(7, new CE[0]);
340 return retVal;
341 }
342
343
344
345
346
347
348
349 public int getProviderSAdministrationInstructionsReps() {
350 return this.getReps(7);
351 }
352
353
354
355
356
357
358
359
360 public CE getProviderSAdministrationInstructions(int rep) {
361 CE retVal = this.getTypedField(7, rep);
362 return retVal;
363 }
364
365
366
367
368
369
370
371 public CE getRxo7_ProviderSAdministrationInstructions(int rep) {
372 CE retVal = this.getTypedField(7, rep);
373 return retVal;
374 }
375
376
377
378
379
380
381 public int getRxo7_ProviderSAdministrationInstructionsReps() {
382 return this.getReps(7);
383 }
384
385
386
387
388
389
390
391
392
393 public CE insertProviderSAdministrationInstructions(int rep) throws HL7Exception {
394 return (CE) super.insertRepetition(7, rep);
395 }
396
397
398
399
400
401
402
403
404
405 public CE insertRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
406 return (CE) super.insertRepetition(7, rep);
407 }
408
409
410
411
412
413
414
415
416
417 public CE removeProviderSAdministrationInstructions(int rep) throws HL7Exception {
418 return (CE) super.removeRepetition(7, rep);
419 }
420
421
422
423
424
425
426
427
428
429 public CE removeRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
430 return (CE) super.removeRepetition(7, rep);
431 }
432
433
434
435
436
437
438
439
440 public CM_LA1 getDeliverToLocation() {
441 CM_LA1 retVal = this.getTypedField(8, 0);
442 return retVal;
443 }
444
445
446
447
448
449 public CM_LA1 getRxo8_DeliverToLocation() {
450 CM_LA1 retVal = this.getTypedField(8, 0);
451 return retVal;
452 }
453
454
455
456
457
458
459
460 public ID getAllowSubstitutions() {
461 ID retVal = this.getTypedField(9, 0);
462 return retVal;
463 }
464
465
466
467
468
469 public ID getRxo9_AllowSubstitutions() {
470 ID retVal = this.getTypedField(9, 0);
471 return retVal;
472 }
473
474
475
476
477
478
479
480 public CE getRequestedDispenseCode() {
481 CE retVal = this.getTypedField(10, 0);
482 return retVal;
483 }
484
485
486
487
488
489 public CE getRxo10_RequestedDispenseCode() {
490 CE retVal = this.getTypedField(10, 0);
491 return retVal;
492 }
493
494
495
496
497
498
499
500 public NM getRequestedDispenseAmount() {
501 NM retVal = this.getTypedField(11, 0);
502 return retVal;
503 }
504
505
506
507
508
509 public NM getRxo11_RequestedDispenseAmount() {
510 NM retVal = this.getTypedField(11, 0);
511 return retVal;
512 }
513
514
515
516
517
518
519
520 public CE getRequestedDispenseUnits() {
521 CE retVal = this.getTypedField(12, 0);
522 return retVal;
523 }
524
525
526
527
528
529 public CE getRxo12_RequestedDispenseUnits() {
530 CE retVal = this.getTypedField(12, 0);
531 return retVal;
532 }
533
534
535
536
537
538
539
540 public NM getNumberOfRefills() {
541 NM retVal = this.getTypedField(13, 0);
542 return retVal;
543 }
544
545
546
547
548
549 public NM getRxo13_NumberOfRefills() {
550 NM retVal = this.getTypedField(13, 0);
551 return retVal;
552 }
553
554
555
556
557
558
559
560 public CN getOrderingProviderSDEANumber() {
561 CN retVal = this.getTypedField(14, 0);
562 return retVal;
563 }
564
565
566
567
568
569 public CN getRxo14_OrderingProviderSDEANumber() {
570 CN retVal = this.getTypedField(14, 0);
571 return retVal;
572 }
573
574
575
576
577
578
579
580 public CN getPharmacistTreatmentSupplierSVerifierID() {
581 CN retVal = this.getTypedField(15, 0);
582 return retVal;
583 }
584
585
586
587
588
589 public CN getRxo15_PharmacistTreatmentSupplierSVerifierID() {
590 CN retVal = this.getTypedField(15, 0);
591 return retVal;
592 }
593
594
595
596
597
598
599
600 public ID getNeedsHumanReview() {
601 ID retVal = this.getTypedField(16, 0);
602 return retVal;
603 }
604
605
606
607
608
609 public ID getRxo16_NeedsHumanReview() {
610 ID retVal = this.getTypedField(16, 0);
611 return retVal;
612 }
613
614
615
616
617
618
619
620 public ST getRequestedGivePerTimeUnit() {
621 ST retVal = this.getTypedField(17, 0);
622 return retVal;
623 }
624
625
626
627
628
629 public ST getRxo17_RequestedGivePerTimeUnit() {
630 ST retVal = this.getTypedField(17, 0);
631 return retVal;
632 }
633
634
635
636
637
638
639
640 public NM getRequestedGiveStrength() {
641 NM retVal = this.getTypedField(18, 0);
642 return retVal;
643 }
644
645
646
647
648
649 public NM getRxo18_RequestedGiveStrength() {
650 NM retVal = this.getTypedField(18, 0);
651 return retVal;
652 }
653
654
655
656
657
658
659
660 public CE getRequestedGiveStrengthUnits() {
661 CE retVal = this.getTypedField(19, 0);
662 return retVal;
663 }
664
665
666
667
668
669 public CE getRxo19_RequestedGiveStrengthUnits() {
670 CE retVal = this.getTypedField(19, 0);
671 return retVal;
672 }
673
674
675
676
677
678
679
680 public CE getIndication() {
681 CE retVal = this.getTypedField(20, 0);
682 return retVal;
683 }
684
685
686
687
688
689 public CE getRxo20_Indication() {
690 CE retVal = this.getTypedField(20, 0);
691 return retVal;
692 }
693
694
695
696
697
698
699
700 public ST getRequestedGiveRateAmount() {
701 ST retVal = this.getTypedField(21, 0);
702 return retVal;
703 }
704
705
706
707
708
709 public ST getRxo21_RequestedGiveRateAmount() {
710 ST retVal = this.getTypedField(21, 0);
711 return retVal;
712 }
713
714
715
716
717
718
719
720 public CE getRequestedGiveRateUnits() {
721 CE retVal = this.getTypedField(22, 0);
722 return retVal;
723 }
724
725
726
727
728
729 public CE getRxo22_RequestedGiveRateUnits() {
730 CE retVal = this.getTypedField(22, 0);
731 return retVal;
732 }
733
734
735
736
737
738
739 protected Type createNewTypeWithoutReflection(int field) {
740 switch (field) {
741 case 0: return new CE(getMessage());
742 case 1: return new NM(getMessage());
743 case 2: return new NM(getMessage());
744 case 3: return new CE(getMessage());
745 case 4: return new CE(getMessage());
746 case 5: return new CE(getMessage());
747 case 6: return new CE(getMessage());
748 case 7: return new CM_LA1(getMessage());
749 case 8: return new ID(getMessage(), new Integer( 161 ));
750 case 9: return new CE(getMessage());
751 case 10: return new NM(getMessage());
752 case 11: return new CE(getMessage());
753 case 12: return new NM(getMessage());
754 case 13: return new CN(getMessage());
755 case 14: return new CN(getMessage());
756 case 15: return new ID(getMessage(), new Integer( 136 ));
757 case 16: return new ST(getMessage());
758 case 17: return new NM(getMessage());
759 case 18: return new CE(getMessage());
760 case 19: return new CE(getMessage());
761 case 20: return new ST(getMessage());
762 case 21: return new CE(getMessage());
763 default: return null;
764 }
765 }
766
767
768 }
769