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