View Javadoc
1   /*
2    * This class is an auto-generated source file for a HAPI
3    * HL7 v2.x standard structure class.
4    *
5    * For more information, visit: http://hl7api.sourceforge.net/
6    * 
7    * The contents of this file are subject to the Mozilla Public License Version 1.1 
8    * (the "License"); you may not use this file except in compliance with the License. 
9    * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
10   * Software distributed under the License is distributed on an "AS IS" basis, 
11   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
12   * specific language governing rights and limitations under the License. 
13   * 
14   * The Original Code is "[file_name]".  Description: 
15   * "[one_line_description]" 
16   * 
17   * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
18   * 2012.  All Rights Reserved. 
19   * 
20   * Contributor(s): ______________________________________. 
21   * 
22   * Alternatively, the contents of this file may be used under the terms of the 
23   * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
24   * applicable instead of those above.  If you wish to allow use of your version of this 
25   * file only under the terms of the GPL and not to allow others to use your version 
26   * of this file under the MPL, indicate your decision by deleting  the provisions above 
27   * and replace  them with the notice and other provisions required by the GPL License.  
28   * If you do not delete the provisions above, a recipient may use your version of 
29   * this file under either the MPL or the GPL. 
30   * 
31   */
32  
33  
34  package ca.uhn.hl7v2.model.v23.segment;
35  
36  // import ca.uhn.hl7v2.model.v23.group.*;
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   *<p>Represents an HL7 RXO message segment (Pharmacy prescription order segment). 
50   * This segment has the following fields:</p>
51   * <ul>
52       * <li>RXO-1: Requested Give Code (CE) <b> </b>
53       * <li>RXO-2: Requested Give Amount - Minimum (NM) <b> </b>
54       * <li>RXO-3: Requested Give Amount - Maximum (NM) <b>optional </b>
55       * <li>RXO-4: Requested Give Units (CE) <b> </b>
56       * <li>RXO-5: Requested Dosage Form (CE) <b>optional </b>
57       * <li>RXO-6: Provider's Pharmacy Instructions (CE) <b>optional repeating</b>
58       * <li>RXO-7: Provider's Administration Instructions (CE) <b>optional repeating</b>
59       * <li>RXO-8: Deliver To Location (CM_LA1) <b>optional </b>
60       * <li>RXO-9: Allow Substitutions (ID) <b>optional </b>
61       * <li>RXO-10: Requested Dispense Code (CE) <b>optional </b>
62       * <li>RXO-11: Requested Dispense Amount (NM) <b>optional </b>
63       * <li>RXO-12: Requested Dispense Units (CE) <b>optional </b>
64       * <li>RXO-13: Number of Refills (NM) <b>optional </b>
65       * <li>RXO-14: Ordering Provider's DEA Number (CN) <b>optional </b>
66       * <li>RXO-15: Pharmacist/Treatment Supplier's Verifier ID (CN) <b>optional </b>
67       * <li>RXO-16: Needs Human Review (ID) <b>optional </b>
68       * <li>RXO-17: Requested Give Per (Time Unit) (ST) <b>optional </b>
69       * <li>RXO-18: Requested Give Strength (NM) <b>optional </b>
70       * <li>RXO-19: Requested Give Strength Units (CE) <b>optional </b>
71       * <li>RXO-20: Indication (CE) <b>optional </b>
72       * <li>RXO-21: Requested Give Rate Amount (ST) <b>optional </b>
73       * <li>RXO-22: Requested Give Rate Units (CE) <b>optional </b>
74   * </ul>
75   */
76  @SuppressWarnings("unused")
77  public class RXO extends AbstractSegment {
78  
79      /** 
80       * Creates a new RXO segment
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      * Returns
120      * RXO-1: "Requested Give Code" - creates it if necessary
121      */
122     public CE getRequestedGiveCode() { 
123 		CE retVal = this.getTypedField(1, 0);
124 		return retVal;
125     }
126     
127     /**
128      * Returns
129      * RXO-1: "Requested Give Code" - creates it if necessary
130      */
131     public CE getRxo1_RequestedGiveCode() { 
132 		CE retVal = this.getTypedField(1, 0);
133 		return retVal;
134     }
135 
136 
137 
138     /**
139      * Returns
140      * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary
141      */
142     public NM getRequestedGiveAmountMinimum() { 
143 		NM retVal = this.getTypedField(2, 0);
144 		return retVal;
145     }
146     
147     /**
148      * Returns
149      * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary
150      */
151     public NM getRxo2_RequestedGiveAmountMinimum() { 
152 		NM retVal = this.getTypedField(2, 0);
153 		return retVal;
154     }
155 
156 
157 
158     /**
159      * Returns
160      * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary
161      */
162     public NM getRequestedGiveAmountMaximum() { 
163 		NM retVal = this.getTypedField(3, 0);
164 		return retVal;
165     }
166     
167     /**
168      * Returns
169      * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary
170      */
171     public NM getRxo3_RequestedGiveAmountMaximum() { 
172 		NM retVal = this.getTypedField(3, 0);
173 		return retVal;
174     }
175 
176 
177 
178     /**
179      * Returns
180      * RXO-4: "Requested Give Units" - creates it if necessary
181      */
182     public CE getRequestedGiveUnits() { 
183 		CE retVal = this.getTypedField(4, 0);
184 		return retVal;
185     }
186     
187     /**
188      * Returns
189      * RXO-4: "Requested Give Units" - creates it if necessary
190      */
191     public CE getRxo4_RequestedGiveUnits() { 
192 		CE retVal = this.getTypedField(4, 0);
193 		return retVal;
194     }
195 
196 
197 
198     /**
199      * Returns
200      * RXO-5: "Requested Dosage Form" - creates it if necessary
201      */
202     public CE getRequestedDosageForm() { 
203 		CE retVal = this.getTypedField(5, 0);
204 		return retVal;
205     }
206     
207     /**
208      * Returns
209      * RXO-5: "Requested Dosage Form" - creates it if necessary
210      */
211     public CE getRxo5_RequestedDosageForm() { 
212 		CE retVal = this.getTypedField(5, 0);
213 		return retVal;
214     }
215 
216 
217     /**
218      * Returns all repetitions of Provider's Pharmacy Instructions (RXO-6).
219      */
220     public CE[] getProviderSPharmacyInstructions() {
221     	CE[] retVal = this.getTypedField(6, new CE[0]);
222     	return retVal;
223     }
224 
225 
226     /**
227      * Returns all repetitions of Provider's Pharmacy Instructions (RXO-6).
228      */
229     public CE[] getRxo6_ProviderSPharmacyInstructions() {
230     	CE[] retVal = this.getTypedField(6, new CE[0]);
231     	return retVal;
232     }
233 
234 
235     /**
236      * Returns a count of the current number of repetitions of Provider's Pharmacy Instructions (RXO-6).
237      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
238      * it will return zero.
239      */
240     public int getProviderSPharmacyInstructionsReps() {
241     	return this.getReps(6);
242     }
243 
244 
245     /**
246      * Returns a specific repetition of
247      * RXO-6: "Provider's Pharmacy Instructions" - creates it if necessary
248      *
249      * @param rep The repetition index (0-indexed)
250      */
251     public CE getProviderSPharmacyInstructions(int rep) { 
252 		CE retVal = this.getTypedField(6, rep);
253 		return retVal;
254     }
255 
256     /**
257      * Returns a specific repetition of
258      * RXO-6: "Provider's Pharmacy Instructions" - creates it if necessary
259      *
260      * @param rep The repetition index (0-indexed)
261      */
262     public CE getRxo6_ProviderSPharmacyInstructions(int rep) { 
263 		CE retVal = this.getTypedField(6, rep);
264 		return retVal;
265     }
266 
267     /**
268      * Returns a count of the current number of repetitions of Provider's Pharmacy Instructions (RXO-6).
269      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
270      * it will return zero.
271      */
272     public int getRxo6_ProviderSPharmacyInstructionsReps() {
273     	return this.getReps(6);
274     }
275 
276 
277     /**
278      * Inserts a repetition of
279      * RXO-6: "Provider's Pharmacy Instructions" at a specific index
280      *
281      * @param rep The repetition index (0-indexed)
282      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
283      */
284     public CE insertProviderSPharmacyInstructions(int rep) throws HL7Exception { 
285         return (CE) super.insertRepetition(6, rep);
286     }
287 
288 
289     /**
290      * Inserts a repetition of
291      * RXO-6: "Provider's Pharmacy Instructions" at a specific index
292      *
293      * @param rep The repetition index (0-indexed)
294      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
295      */
296     public CE insertRxo6_ProviderSPharmacyInstructions(int rep) throws HL7Exception { 
297         return (CE) super.insertRepetition(6, rep);
298     }
299 
300 
301     /**
302      * Removes a repetition of
303      * RXO-6: "Provider's Pharmacy Instructions" at a specific index
304      *
305      * @param rep The repetition index (0-indexed)
306      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
307      */
308     public CE removeProviderSPharmacyInstructions(int rep) throws HL7Exception { 
309         return (CE) super.removeRepetition(6, rep);
310     }
311 
312 
313     /**
314      * Removes a repetition of
315      * RXO-6: "Provider's Pharmacy Instructions" at a specific index
316      *
317      * @param rep The repetition index (0-indexed)
318      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
319      */
320     public CE removeRxo6_ProviderSPharmacyInstructions(int rep) throws HL7Exception { 
321         return (CE) super.removeRepetition(6, rep);
322     }
323 
324 
325 
326     /**
327      * Returns all repetitions of Provider's Administration Instructions (RXO-7).
328      */
329     public CE[] getProviderSAdministrationInstructions() {
330     	CE[] retVal = this.getTypedField(7, new CE[0]);
331     	return retVal;
332     }
333 
334 
335     /**
336      * Returns all repetitions of Provider's Administration Instructions (RXO-7).
337      */
338     public CE[] getRxo7_ProviderSAdministrationInstructions() {
339     	CE[] retVal = this.getTypedField(7, new CE[0]);
340     	return retVal;
341     }
342 
343 
344     /**
345      * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXO-7).
346      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
347      * it will return zero.
348      */
349     public int getProviderSAdministrationInstructionsReps() {
350     	return this.getReps(7);
351     }
352 
353 
354     /**
355      * Returns a specific repetition of
356      * RXO-7: "Provider's Administration Instructions" - creates it if necessary
357      *
358      * @param rep The repetition index (0-indexed)
359      */
360     public CE getProviderSAdministrationInstructions(int rep) { 
361 		CE retVal = this.getTypedField(7, rep);
362 		return retVal;
363     }
364 
365     /**
366      * Returns a specific repetition of
367      * RXO-7: "Provider's Administration Instructions" - creates it if necessary
368      *
369      * @param rep The repetition index (0-indexed)
370      */
371     public CE getRxo7_ProviderSAdministrationInstructions(int rep) { 
372 		CE retVal = this.getTypedField(7, rep);
373 		return retVal;
374     }
375 
376     /**
377      * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXO-7).
378      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
379      * it will return zero.
380      */
381     public int getRxo7_ProviderSAdministrationInstructionsReps() {
382     	return this.getReps(7);
383     }
384 
385 
386     /**
387      * Inserts a repetition of
388      * RXO-7: "Provider's Administration Instructions" at a specific index
389      *
390      * @param rep The repetition index (0-indexed)
391      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
392      */
393     public CE insertProviderSAdministrationInstructions(int rep) throws HL7Exception { 
394         return (CE) super.insertRepetition(7, rep);
395     }
396 
397 
398     /**
399      * Inserts a repetition of
400      * RXO-7: "Provider's Administration Instructions" at a specific index
401      *
402      * @param rep The repetition index (0-indexed)
403      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
404      */
405     public CE insertRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
406         return (CE) super.insertRepetition(7, rep);
407     }
408 
409 
410     /**
411      * Removes a repetition of
412      * RXO-7: "Provider's Administration Instructions" at a specific index
413      *
414      * @param rep The repetition index (0-indexed)
415      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
416      */
417     public CE removeProviderSAdministrationInstructions(int rep) throws HL7Exception { 
418         return (CE) super.removeRepetition(7, rep);
419     }
420 
421 
422     /**
423      * Removes a repetition of
424      * RXO-7: "Provider's Administration Instructions" at a specific index
425      *
426      * @param rep The repetition index (0-indexed)
427      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
428      */
429     public CE removeRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
430         return (CE) super.removeRepetition(7, rep);
431     }
432 
433 
434 
435 
436     /**
437      * Returns
438      * RXO-8: "Deliver To Location" - creates it if necessary
439      */
440     public CM_LA1 getDeliverToLocation() { 
441 		CM_LA1 retVal = this.getTypedField(8, 0);
442 		return retVal;
443     }
444     
445     /**
446      * Returns
447      * RXO-8: "Deliver To Location" - creates it if necessary
448      */
449     public CM_LA1 getRxo8_DeliverToLocation() { 
450 		CM_LA1 retVal = this.getTypedField(8, 0);
451 		return retVal;
452     }
453 
454 
455 
456     /**
457      * Returns
458      * RXO-9: "Allow Substitutions" - creates it if necessary
459      */
460     public ID getAllowSubstitutions() { 
461 		ID retVal = this.getTypedField(9, 0);
462 		return retVal;
463     }
464     
465     /**
466      * Returns
467      * RXO-9: "Allow Substitutions" - creates it if necessary
468      */
469     public ID getRxo9_AllowSubstitutions() { 
470 		ID retVal = this.getTypedField(9, 0);
471 		return retVal;
472     }
473 
474 
475 
476     /**
477      * Returns
478      * RXO-10: "Requested Dispense Code" - creates it if necessary
479      */
480     public CE getRequestedDispenseCode() { 
481 		CE retVal = this.getTypedField(10, 0);
482 		return retVal;
483     }
484     
485     /**
486      * Returns
487      * RXO-10: "Requested Dispense Code" - creates it if necessary
488      */
489     public CE getRxo10_RequestedDispenseCode() { 
490 		CE retVal = this.getTypedField(10, 0);
491 		return retVal;
492     }
493 
494 
495 
496     /**
497      * Returns
498      * RXO-11: "Requested Dispense Amount" - creates it if necessary
499      */
500     public NM getRequestedDispenseAmount() { 
501 		NM retVal = this.getTypedField(11, 0);
502 		return retVal;
503     }
504     
505     /**
506      * Returns
507      * RXO-11: "Requested Dispense Amount" - creates it if necessary
508      */
509     public NM getRxo11_RequestedDispenseAmount() { 
510 		NM retVal = this.getTypedField(11, 0);
511 		return retVal;
512     }
513 
514 
515 
516     /**
517      * Returns
518      * RXO-12: "Requested Dispense Units" - creates it if necessary
519      */
520     public CE getRequestedDispenseUnits() { 
521 		CE retVal = this.getTypedField(12, 0);
522 		return retVal;
523     }
524     
525     /**
526      * Returns
527      * RXO-12: "Requested Dispense Units" - creates it if necessary
528      */
529     public CE getRxo12_RequestedDispenseUnits() { 
530 		CE retVal = this.getTypedField(12, 0);
531 		return retVal;
532     }
533 
534 
535 
536     /**
537      * Returns
538      * RXO-13: "Number of Refills" - creates it if necessary
539      */
540     public NM getNumberOfRefills() { 
541 		NM retVal = this.getTypedField(13, 0);
542 		return retVal;
543     }
544     
545     /**
546      * Returns
547      * RXO-13: "Number of Refills" - creates it if necessary
548      */
549     public NM getRxo13_NumberOfRefills() { 
550 		NM retVal = this.getTypedField(13, 0);
551 		return retVal;
552     }
553 
554 
555 
556     /**
557      * Returns
558      * RXO-14: "Ordering Provider's DEA Number" - creates it if necessary
559      */
560     public CN getOrderingProviderSDEANumber() { 
561 		CN retVal = this.getTypedField(14, 0);
562 		return retVal;
563     }
564     
565     /**
566      * Returns
567      * RXO-14: "Ordering Provider's DEA Number" - creates it if necessary
568      */
569     public CN getRxo14_OrderingProviderSDEANumber() { 
570 		CN retVal = this.getTypedField(14, 0);
571 		return retVal;
572     }
573 
574 
575 
576     /**
577      * Returns
578      * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
579      */
580     public CN getPharmacistTreatmentSupplierSVerifierID() { 
581 		CN retVal = this.getTypedField(15, 0);
582 		return retVal;
583     }
584     
585     /**
586      * Returns
587      * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
588      */
589     public CN getRxo15_PharmacistTreatmentSupplierSVerifierID() { 
590 		CN retVal = this.getTypedField(15, 0);
591 		return retVal;
592     }
593 
594 
595 
596     /**
597      * Returns
598      * RXO-16: "Needs Human Review" - creates it if necessary
599      */
600     public ID getNeedsHumanReview() { 
601 		ID retVal = this.getTypedField(16, 0);
602 		return retVal;
603     }
604     
605     /**
606      * Returns
607      * RXO-16: "Needs Human Review" - creates it if necessary
608      */
609     public ID getRxo16_NeedsHumanReview() { 
610 		ID retVal = this.getTypedField(16, 0);
611 		return retVal;
612     }
613 
614 
615 
616     /**
617      * Returns
618      * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary
619      */
620     public ST getRequestedGivePerTimeUnit() { 
621 		ST retVal = this.getTypedField(17, 0);
622 		return retVal;
623     }
624     
625     /**
626      * Returns
627      * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary
628      */
629     public ST getRxo17_RequestedGivePerTimeUnit() { 
630 		ST retVal = this.getTypedField(17, 0);
631 		return retVal;
632     }
633 
634 
635 
636     /**
637      * Returns
638      * RXO-18: "Requested Give Strength" - creates it if necessary
639      */
640     public NM getRequestedGiveStrength() { 
641 		NM retVal = this.getTypedField(18, 0);
642 		return retVal;
643     }
644     
645     /**
646      * Returns
647      * RXO-18: "Requested Give Strength" - creates it if necessary
648      */
649     public NM getRxo18_RequestedGiveStrength() { 
650 		NM retVal = this.getTypedField(18, 0);
651 		return retVal;
652     }
653 
654 
655 
656     /**
657      * Returns
658      * RXO-19: "Requested Give Strength Units" - creates it if necessary
659      */
660     public CE getRequestedGiveStrengthUnits() { 
661 		CE retVal = this.getTypedField(19, 0);
662 		return retVal;
663     }
664     
665     /**
666      * Returns
667      * RXO-19: "Requested Give Strength Units" - creates it if necessary
668      */
669     public CE getRxo19_RequestedGiveStrengthUnits() { 
670 		CE retVal = this.getTypedField(19, 0);
671 		return retVal;
672     }
673 
674 
675 
676     /**
677      * Returns
678      * RXO-20: "Indication" - creates it if necessary
679      */
680     public CE getIndication() { 
681 		CE retVal = this.getTypedField(20, 0);
682 		return retVal;
683     }
684     
685     /**
686      * Returns
687      * RXO-20: "Indication" - creates it if necessary
688      */
689     public CE getRxo20_Indication() { 
690 		CE retVal = this.getTypedField(20, 0);
691 		return retVal;
692     }
693 
694 
695 
696     /**
697      * Returns
698      * RXO-21: "Requested Give Rate Amount" - creates it if necessary
699      */
700     public ST getRequestedGiveRateAmount() { 
701 		ST retVal = this.getTypedField(21, 0);
702 		return retVal;
703     }
704     
705     /**
706      * Returns
707      * RXO-21: "Requested Give Rate Amount" - creates it if necessary
708      */
709     public ST getRxo21_RequestedGiveRateAmount() { 
710 		ST retVal = this.getTypedField(21, 0);
711 		return retVal;
712     }
713 
714 
715 
716     /**
717      * Returns
718      * RXO-22: "Requested Give Rate Units" - creates it if necessary
719      */
720     public CE getRequestedGiveRateUnits() { 
721 		CE retVal = this.getTypedField(22, 0);
722 		return retVal;
723     }
724     
725     /**
726      * Returns
727      * RXO-22: "Requested Give Rate Units" - creates it if necessary
728      */
729     public CE getRxo22_RequestedGiveRateUnits() { 
730 		CE retVal = this.getTypedField(22, 0);
731 		return retVal;
732     }
733 
734 
735 
736 
737 
738     /** {@inheritDoc} */   
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