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