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.v26.segment;
035
036// import ca.uhn.hl7v2.model.v26.group.*;
037import ca.uhn.hl7v2.model.v26.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/**
049 *<p>Represents an HL7 RXO message segment (Pharmacy/Treatment Order). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>RXO-1: Requested Give Code (CWE) <b>optional </b>
053     * <li>RXO-2: Requested Give Amount - Minimum (NM) <b>optional </b>
054     * <li>RXO-3: Requested Give Amount - Maximum (NM) <b>optional </b>
055     * <li>RXO-4: Requested Give Units (CWE) <b>optional </b>
056     * <li>RXO-5: Requested Dosage Form (CWE) <b>optional </b>
057     * <li>RXO-6: Provider's Pharmacy/Treatment Instructions (CWE) <b>optional repeating</b>
058     * <li>RXO-7: Provider's Administration Instructions (CWE) <b>optional repeating</b>
059     * <li>RXO-8: Deliver-To Location (LA1) <b>optional </b>
060     * <li>RXO-9: Allow Substitutions (ID) <b>optional </b>
061     * <li>RXO-10: Requested Dispense Code (CWE) <b>optional </b>
062     * <li>RXO-11: Requested Dispense Amount (NM) <b>optional </b>
063     * <li>RXO-12: Requested Dispense Units (CWE) <b>optional </b>
064     * <li>RXO-13: Number Of Refills (NM) <b>optional </b>
065     * <li>RXO-14: Ordering Provider's DEA Number (XCN) <b>optional repeating</b>
066     * <li>RXO-15: Pharmacist/Treatment Supplier's Verifier ID (XCN) <b>optional repeating</b>
067     * <li>RXO-16: Needs Human Review (ID) <b>optional </b>
068     * <li>RXO-17: Requested Give Per (Time Unit) (ST) <b>optional </b>
069     * <li>RXO-18: Requested Give Strength (NM) <b>optional </b>
070     * <li>RXO-19: Requested Give Strength Units (CWE) <b>optional </b>
071     * <li>RXO-20: Indication (CWE) <b>optional repeating</b>
072     * <li>RXO-21: Requested Give Rate Amount (ST) <b>optional </b>
073     * <li>RXO-22: Requested Give Rate Units (CWE) <b>optional </b>
074     * <li>RXO-23: Total Daily Dose (CQ) <b>optional </b>
075     * <li>RXO-24: Supplementary Code (CWE) <b>optional repeating</b>
076     * <li>RXO-25: Requested Drug Strength Volume (NM) <b>optional </b>
077     * <li>RXO-26: Requested Drug Strength Volume Units (CWE) <b>optional </b>
078     * <li>RXO-27: Pharmacy Order Type (ID) <b>optional </b>
079     * <li>RXO-28: Dispensing Interval (NM) <b>optional </b>
080     * <li>RXO-29: Medication Instance Identifier (EI) <b>optional </b>
081     * <li>RXO-30: Segment Instance Identifier (EI) <b>optional </b>
082     * <li>RXO-31: Mood Code (CNE) <b>optional </b>
083     * <li>RXO-32: Dispensing Pharmacy (CWE) <b>optional </b>
084     * <li>RXO-33: Dispensing Pharmacy Address (XAD) <b>optional </b>
085     * <li>RXO-34: Deliver-to Patient Location (PL) <b>optional </b>
086     * <li>RXO-35: Deliver-to Address (XAD) <b>optional </b>
087 * </ul>
088 */
089@SuppressWarnings("unused")
090public class RXO extends AbstractSegment {
091
092    /** 
093     * Creates a new RXO segment
094     */
095    public RXO(Group parent, ModelClassFactory factory) {
096       super(parent, factory);
097       init(factory);
098    }
099
100    private void init(ModelClassFactory factory) {
101       try {
102                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Give Code");
103                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Minimum");
104                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Maximum");
105                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Give Units");
106                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Dosage Form");
107                                  this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Provider's Pharmacy/Treatment Instructions");
108                                  this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Provider's Administration Instructions");
109                                  this.add(LA1.class, false, 1, 0, new Object[]{ getMessage() }, "Deliver-To Location");
110                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(161) }, "Allow Substitutions");
111                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Dispense Code");
112                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Dispense Amount");
113                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Dispense Units");
114                                  this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Number Of Refills");
115                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Provider's DEA Number");
116                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Pharmacist/Treatment Supplier's Verifier ID");
117                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review");
118                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Per (Time Unit)");
119                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Strength");
120                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Give Strength Units");
121                                  this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Indication");
122                                  this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Requested Give Rate Amount");
123                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Give Rate Units");
124                                  this.add(CQ.class, false, 1, 10, new Object[]{ getMessage() }, "Total Daily Dose");
125                                  this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Supplementary Code");
126                                  this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Requested Drug Strength Volume");
127                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Requested Drug Strength Volume Units");
128                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(480) }, "Pharmacy Order Type");
129                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Dispensing Interval");
130                                  this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Medication Instance Identifier");
131                                  this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Segment Instance Identifier");
132                                  this.add(CNE.class, false, 1, 2, new Object[]{ getMessage() }, "Mood Code");
133                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Dispensing Pharmacy");
134                                  this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Dispensing Pharmacy Address");
135                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Deliver-to Patient Location");
136                                  this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Deliver-to Address");
137       } catch(HL7Exception e) {
138          log.error("Unexpected error creating RXO - this is probably a bug in the source code generator.", e);
139       }
140    }
141
142
143
144    /**
145     * Returns
146     * RXO-1: "Requested Give Code" - creates it if necessary
147     */
148    public CWE getRequestedGiveCode() { 
149                CWE retVal = this.getTypedField(1, 0);
150                return retVal;
151    }
152    
153    /**
154     * Returns
155     * RXO-1: "Requested Give Code" - creates it if necessary
156     */
157    public CWE getRxo1_RequestedGiveCode() { 
158                CWE retVal = this.getTypedField(1, 0);
159                return retVal;
160    }
161
162
163
164    /**
165     * Returns
166     * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary
167     */
168    public NM getRequestedGiveAmountMinimum() { 
169                NM retVal = this.getTypedField(2, 0);
170                return retVal;
171    }
172    
173    /**
174     * Returns
175     * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary
176     */
177    public NM getRxo2_RequestedGiveAmountMinimum() { 
178                NM retVal = this.getTypedField(2, 0);
179                return retVal;
180    }
181
182
183
184    /**
185     * Returns
186     * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary
187     */
188    public NM getRequestedGiveAmountMaximum() { 
189                NM retVal = this.getTypedField(3, 0);
190                return retVal;
191    }
192    
193    /**
194     * Returns
195     * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary
196     */
197    public NM getRxo3_RequestedGiveAmountMaximum() { 
198                NM retVal = this.getTypedField(3, 0);
199                return retVal;
200    }
201
202
203
204    /**
205     * Returns
206     * RXO-4: "Requested Give Units" - creates it if necessary
207     */
208    public CWE getRequestedGiveUnits() { 
209                CWE retVal = this.getTypedField(4, 0);
210                return retVal;
211    }
212    
213    /**
214     * Returns
215     * RXO-4: "Requested Give Units" - creates it if necessary
216     */
217    public CWE getRxo4_RequestedGiveUnits() { 
218                CWE retVal = this.getTypedField(4, 0);
219                return retVal;
220    }
221
222
223
224    /**
225     * Returns
226     * RXO-5: "Requested Dosage Form" - creates it if necessary
227     */
228    public CWE getRequestedDosageForm() { 
229                CWE retVal = this.getTypedField(5, 0);
230                return retVal;
231    }
232    
233    /**
234     * Returns
235     * RXO-5: "Requested Dosage Form" - creates it if necessary
236     */
237    public CWE getRxo5_RequestedDosageForm() { 
238                CWE retVal = this.getTypedField(5, 0);
239                return retVal;
240    }
241
242
243    /**
244     * Returns all repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
245     */
246    public CWE[] getProviderSPharmacyTreatmentInstructions() {
247        CWE[] retVal = this.getTypedField(6, new CWE[0]);
248        return retVal;
249    }
250
251
252    /**
253     * Returns all repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
254     */
255    public CWE[] getRxo6_ProviderSPharmacyTreatmentInstructions() {
256        CWE[] retVal = this.getTypedField(6, new CWE[0]);
257        return retVal;
258    }
259
260
261    /**
262     * Returns a count of the current number of repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
263     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
264     * it will return zero.
265     */
266    public int getProviderSPharmacyTreatmentInstructionsReps() {
267        return this.getReps(6);
268    }
269
270
271    /**
272     * Returns a specific repetition of
273     * RXO-6: "Provider's Pharmacy/Treatment Instructions" - creates it if necessary
274     *
275     * @param rep The repetition index (0-indexed)
276     */
277    public CWE getProviderSPharmacyTreatmentInstructions(int rep) { 
278                CWE retVal = this.getTypedField(6, rep);
279                return retVal;
280    }
281
282    /**
283     * Returns a specific repetition of
284     * RXO-6: "Provider's Pharmacy/Treatment Instructions" - creates it if necessary
285     *
286     * @param rep The repetition index (0-indexed)
287     */
288    public CWE getRxo6_ProviderSPharmacyTreatmentInstructions(int rep) { 
289                CWE retVal = this.getTypedField(6, rep);
290                return retVal;
291    }
292
293    /**
294     * Returns a count of the current number of repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
295     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
296     * it will return zero.
297     */
298    public int getRxo6_ProviderSPharmacyTreatmentInstructionsReps() {
299        return this.getReps(6);
300    }
301
302
303    /**
304     * Inserts a repetition of
305     * RXO-6: "Provider's Pharmacy/Treatment Instructions" at a specific index
306     *
307     * @param rep The repetition index (0-indexed)
308     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
309     */
310    public CWE insertProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 
311        return (CWE) super.insertRepetition(6, rep);
312    }
313
314
315    /**
316     * Inserts a repetition of
317     * RXO-6: "Provider's Pharmacy/Treatment Instructions" at a specific index
318     *
319     * @param rep The repetition index (0-indexed)
320     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
321     */
322    public CWE insertRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 
323        return (CWE) super.insertRepetition(6, rep);
324    }
325
326
327    /**
328     * Removes a repetition of
329     * RXO-6: "Provider's Pharmacy/Treatment Instructions" at a specific index
330     *
331     * @param rep The repetition index (0-indexed)
332     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
333     */
334    public CWE removeProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 
335        return (CWE) super.removeRepetition(6, rep);
336    }
337
338
339    /**
340     * Removes a repetition of
341     * RXO-6: "Provider's Pharmacy/Treatment Instructions" at a specific index
342     *
343     * @param rep The repetition index (0-indexed)
344     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
345     */
346    public CWE removeRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 
347        return (CWE) super.removeRepetition(6, rep);
348    }
349
350
351
352    /**
353     * Returns all repetitions of Provider's Administration Instructions (RXO-7).
354     */
355    public CWE[] getProviderSAdministrationInstructions() {
356        CWE[] retVal = this.getTypedField(7, new CWE[0]);
357        return retVal;
358    }
359
360
361    /**
362     * Returns all repetitions of Provider's Administration Instructions (RXO-7).
363     */
364    public CWE[] getRxo7_ProviderSAdministrationInstructions() {
365        CWE[] retVal = this.getTypedField(7, new CWE[0]);
366        return retVal;
367    }
368
369
370    /**
371     * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXO-7).
372     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
373     * it will return zero.
374     */
375    public int getProviderSAdministrationInstructionsReps() {
376        return this.getReps(7);
377    }
378
379
380    /**
381     * Returns a specific repetition of
382     * RXO-7: "Provider's Administration Instructions" - creates it if necessary
383     *
384     * @param rep The repetition index (0-indexed)
385     */
386    public CWE getProviderSAdministrationInstructions(int rep) { 
387                CWE retVal = this.getTypedField(7, rep);
388                return retVal;
389    }
390
391    /**
392     * Returns a specific repetition of
393     * RXO-7: "Provider's Administration Instructions" - creates it if necessary
394     *
395     * @param rep The repetition index (0-indexed)
396     */
397    public CWE getRxo7_ProviderSAdministrationInstructions(int rep) { 
398                CWE retVal = this.getTypedField(7, rep);
399                return retVal;
400    }
401
402    /**
403     * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXO-7).
404     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
405     * it will return zero.
406     */
407    public int getRxo7_ProviderSAdministrationInstructionsReps() {
408        return this.getReps(7);
409    }
410
411
412    /**
413     * Inserts a repetition of
414     * RXO-7: "Provider's Administration Instructions" at a specific index
415     *
416     * @param rep The repetition index (0-indexed)
417     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
418     */
419    public CWE insertProviderSAdministrationInstructions(int rep) throws HL7Exception { 
420        return (CWE) super.insertRepetition(7, rep);
421    }
422
423
424    /**
425     * Inserts a repetition of
426     * RXO-7: "Provider's Administration Instructions" at a specific index
427     *
428     * @param rep The repetition index (0-indexed)
429     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
430     */
431    public CWE insertRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
432        return (CWE) super.insertRepetition(7, rep);
433    }
434
435
436    /**
437     * Removes a repetition of
438     * RXO-7: "Provider's Administration Instructions" at a specific index
439     *
440     * @param rep The repetition index (0-indexed)
441     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
442     */
443    public CWE removeProviderSAdministrationInstructions(int rep) throws HL7Exception { 
444        return (CWE) super.removeRepetition(7, rep);
445    }
446
447
448    /**
449     * Removes a repetition of
450     * RXO-7: "Provider's Administration Instructions" at a specific index
451     *
452     * @param rep The repetition index (0-indexed)
453     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
454     */
455    public CWE removeRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
456        return (CWE) super.removeRepetition(7, rep);
457    }
458
459
460
461
462    /**
463     * Returns
464     * RXO-8: "Deliver-To Location" - creates it if necessary
465     */
466    public LA1 getDeliverToLocation() { 
467                LA1 retVal = this.getTypedField(8, 0);
468                return retVal;
469    }
470    
471    /**
472     * Returns
473     * RXO-8: "Deliver-To Location" - creates it if necessary
474     */
475    public LA1 getRxo8_DeliverToLocation() { 
476                LA1 retVal = this.getTypedField(8, 0);
477                return retVal;
478    }
479
480
481
482    /**
483     * Returns
484     * RXO-9: "Allow Substitutions" - creates it if necessary
485     */
486    public ID getAllowSubstitutions() { 
487                ID retVal = this.getTypedField(9, 0);
488                return retVal;
489    }
490    
491    /**
492     * Returns
493     * RXO-9: "Allow Substitutions" - creates it if necessary
494     */
495    public ID getRxo9_AllowSubstitutions() { 
496                ID retVal = this.getTypedField(9, 0);
497                return retVal;
498    }
499
500
501
502    /**
503     * Returns
504     * RXO-10: "Requested Dispense Code" - creates it if necessary
505     */
506    public CWE getRequestedDispenseCode() { 
507                CWE retVal = this.getTypedField(10, 0);
508                return retVal;
509    }
510    
511    /**
512     * Returns
513     * RXO-10: "Requested Dispense Code" - creates it if necessary
514     */
515    public CWE getRxo10_RequestedDispenseCode() { 
516                CWE retVal = this.getTypedField(10, 0);
517                return retVal;
518    }
519
520
521
522    /**
523     * Returns
524     * RXO-11: "Requested Dispense Amount" - creates it if necessary
525     */
526    public NM getRequestedDispenseAmount() { 
527                NM retVal = this.getTypedField(11, 0);
528                return retVal;
529    }
530    
531    /**
532     * Returns
533     * RXO-11: "Requested Dispense Amount" - creates it if necessary
534     */
535    public NM getRxo11_RequestedDispenseAmount() { 
536                NM retVal = this.getTypedField(11, 0);
537                return retVal;
538    }
539
540
541
542    /**
543     * Returns
544     * RXO-12: "Requested Dispense Units" - creates it if necessary
545     */
546    public CWE getRequestedDispenseUnits() { 
547                CWE retVal = this.getTypedField(12, 0);
548                return retVal;
549    }
550    
551    /**
552     * Returns
553     * RXO-12: "Requested Dispense Units" - creates it if necessary
554     */
555    public CWE getRxo12_RequestedDispenseUnits() { 
556                CWE retVal = this.getTypedField(12, 0);
557                return retVal;
558    }
559
560
561
562    /**
563     * Returns
564     * RXO-13: "Number Of Refills" - creates it if necessary
565     */
566    public NM getNumberOfRefills() { 
567                NM retVal = this.getTypedField(13, 0);
568                return retVal;
569    }
570    
571    /**
572     * Returns
573     * RXO-13: "Number Of Refills" - creates it if necessary
574     */
575    public NM getRxo13_NumberOfRefills() { 
576                NM retVal = this.getTypedField(13, 0);
577                return retVal;
578    }
579
580
581    /**
582     * Returns all repetitions of Ordering Provider's DEA Number (RXO-14).
583     */
584    public XCN[] getOrderingProviderSDEANumber() {
585        XCN[] retVal = this.getTypedField(14, new XCN[0]);
586        return retVal;
587    }
588
589
590    /**
591     * Returns all repetitions of Ordering Provider's DEA Number (RXO-14).
592     */
593    public XCN[] getRxo14_OrderingProviderSDEANumber() {
594        XCN[] retVal = this.getTypedField(14, new XCN[0]);
595        return retVal;
596    }
597
598
599    /**
600     * Returns a count of the current number of repetitions of Ordering Provider's DEA Number (RXO-14).
601     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
602     * it will return zero.
603     */
604    public int getOrderingProviderSDEANumberReps() {
605        return this.getReps(14);
606    }
607
608
609    /**
610     * Returns a specific repetition of
611     * RXO-14: "Ordering Provider's DEA Number" - creates it if necessary
612     *
613     * @param rep The repetition index (0-indexed)
614     */
615    public XCN getOrderingProviderSDEANumber(int rep) { 
616                XCN retVal = this.getTypedField(14, rep);
617                return retVal;
618    }
619
620    /**
621     * Returns a specific repetition of
622     * RXO-14: "Ordering Provider's DEA Number" - creates it if necessary
623     *
624     * @param rep The repetition index (0-indexed)
625     */
626    public XCN getRxo14_OrderingProviderSDEANumber(int rep) { 
627                XCN retVal = this.getTypedField(14, rep);
628                return retVal;
629    }
630
631    /**
632     * Returns a count of the current number of repetitions of Ordering Provider's DEA Number (RXO-14).
633     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
634     * it will return zero.
635     */
636    public int getRxo14_OrderingProviderSDEANumberReps() {
637        return this.getReps(14);
638    }
639
640
641    /**
642     * Inserts a repetition of
643     * RXO-14: "Ordering Provider's DEA Number" at a specific index
644     *
645     * @param rep The repetition index (0-indexed)
646     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
647     */
648    public XCN insertOrderingProviderSDEANumber(int rep) throws HL7Exception { 
649        return (XCN) super.insertRepetition(14, rep);
650    }
651
652
653    /**
654     * Inserts a repetition of
655     * RXO-14: "Ordering Provider's DEA Number" at a specific index
656     *
657     * @param rep The repetition index (0-indexed)
658     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
659     */
660    public XCN insertRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception { 
661        return (XCN) super.insertRepetition(14, rep);
662    }
663
664
665    /**
666     * Removes a repetition of
667     * RXO-14: "Ordering Provider's DEA Number" at a specific index
668     *
669     * @param rep The repetition index (0-indexed)
670     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
671     */
672    public XCN removeOrderingProviderSDEANumber(int rep) throws HL7Exception { 
673        return (XCN) super.removeRepetition(14, rep);
674    }
675
676
677    /**
678     * Removes a repetition of
679     * RXO-14: "Ordering Provider's DEA Number" at a specific index
680     *
681     * @param rep The repetition index (0-indexed)
682     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
683     */
684    public XCN removeRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception { 
685        return (XCN) super.removeRepetition(14, rep);
686    }
687
688
689
690    /**
691     * Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXO-15).
692     */
693    public XCN[] getPharmacistTreatmentSupplierSVerifierID() {
694        XCN[] retVal = this.getTypedField(15, new XCN[0]);
695        return retVal;
696    }
697
698
699    /**
700     * Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXO-15).
701     */
702    public XCN[] getRxo15_PharmacistTreatmentSupplierSVerifierID() {
703        XCN[] retVal = this.getTypedField(15, new XCN[0]);
704        return retVal;
705    }
706
707
708    /**
709     * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXO-15).
710     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
711     * it will return zero.
712     */
713    public int getPharmacistTreatmentSupplierSVerifierIDReps() {
714        return this.getReps(15);
715    }
716
717
718    /**
719     * Returns a specific repetition of
720     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
721     *
722     * @param rep The repetition index (0-indexed)
723     */
724    public XCN getPharmacistTreatmentSupplierSVerifierID(int rep) { 
725                XCN retVal = this.getTypedField(15, rep);
726                return retVal;
727    }
728
729    /**
730     * Returns a specific repetition of
731     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
732     *
733     * @param rep The repetition index (0-indexed)
734     */
735    public XCN getRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) { 
736                XCN retVal = this.getTypedField(15, rep);
737                return retVal;
738    }
739
740    /**
741     * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXO-15).
742     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
743     * it will return zero.
744     */
745    public int getRxo15_PharmacistTreatmentSupplierSVerifierIDReps() {
746        return this.getReps(15);
747    }
748
749
750    /**
751     * Inserts a repetition of
752     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
753     *
754     * @param rep The repetition index (0-indexed)
755     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
756     */
757    public XCN insertPharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
758        return (XCN) super.insertRepetition(15, rep);
759    }
760
761
762    /**
763     * Inserts a repetition of
764     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
765     *
766     * @param rep The repetition index (0-indexed)
767     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
768     */
769    public XCN insertRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
770        return (XCN) super.insertRepetition(15, rep);
771    }
772
773
774    /**
775     * Removes a repetition of
776     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
777     *
778     * @param rep The repetition index (0-indexed)
779     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
780     */
781    public XCN removePharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
782        return (XCN) super.removeRepetition(15, rep);
783    }
784
785
786    /**
787     * Removes a repetition of
788     * RXO-15: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
789     *
790     * @param rep The repetition index (0-indexed)
791     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
792     */
793    public XCN removeRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
794        return (XCN) super.removeRepetition(15, rep);
795    }
796
797
798
799
800    /**
801     * Returns
802     * RXO-16: "Needs Human Review" - creates it if necessary
803     */
804    public ID getNeedsHumanReview() { 
805                ID retVal = this.getTypedField(16, 0);
806                return retVal;
807    }
808    
809    /**
810     * Returns
811     * RXO-16: "Needs Human Review" - creates it if necessary
812     */
813    public ID getRxo16_NeedsHumanReview() { 
814                ID retVal = this.getTypedField(16, 0);
815                return retVal;
816    }
817
818
819
820    /**
821     * Returns
822     * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary
823     */
824    public ST getRequestedGivePerTimeUnit() { 
825                ST retVal = this.getTypedField(17, 0);
826                return retVal;
827    }
828    
829    /**
830     * Returns
831     * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary
832     */
833    public ST getRxo17_RequestedGivePerTimeUnit() { 
834                ST retVal = this.getTypedField(17, 0);
835                return retVal;
836    }
837
838
839
840    /**
841     * Returns
842     * RXO-18: "Requested Give Strength" - creates it if necessary
843     */
844    public NM getRequestedGiveStrength() { 
845                NM retVal = this.getTypedField(18, 0);
846                return retVal;
847    }
848    
849    /**
850     * Returns
851     * RXO-18: "Requested Give Strength" - creates it if necessary
852     */
853    public NM getRxo18_RequestedGiveStrength() { 
854                NM retVal = this.getTypedField(18, 0);
855                return retVal;
856    }
857
858
859
860    /**
861     * Returns
862     * RXO-19: "Requested Give Strength Units" - creates it if necessary
863     */
864    public CWE getRequestedGiveStrengthUnits() { 
865                CWE retVal = this.getTypedField(19, 0);
866                return retVal;
867    }
868    
869    /**
870     * Returns
871     * RXO-19: "Requested Give Strength Units" - creates it if necessary
872     */
873    public CWE getRxo19_RequestedGiveStrengthUnits() { 
874                CWE retVal = this.getTypedField(19, 0);
875                return retVal;
876    }
877
878
879    /**
880     * Returns all repetitions of Indication (RXO-20).
881     */
882    public CWE[] getIndication() {
883        CWE[] retVal = this.getTypedField(20, new CWE[0]);
884        return retVal;
885    }
886
887
888    /**
889     * Returns all repetitions of Indication (RXO-20).
890     */
891    public CWE[] getRxo20_Indication() {
892        CWE[] retVal = this.getTypedField(20, new CWE[0]);
893        return retVal;
894    }
895
896
897    /**
898     * Returns a count of the current number of repetitions of Indication (RXO-20).
899     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
900     * it will return zero.
901     */
902    public int getIndicationReps() {
903        return this.getReps(20);
904    }
905
906
907    /**
908     * Returns a specific repetition of
909     * RXO-20: "Indication" - creates it if necessary
910     *
911     * @param rep The repetition index (0-indexed)
912     */
913    public CWE getIndication(int rep) { 
914                CWE retVal = this.getTypedField(20, rep);
915                return retVal;
916    }
917
918    /**
919     * Returns a specific repetition of
920     * RXO-20: "Indication" - creates it if necessary
921     *
922     * @param rep The repetition index (0-indexed)
923     */
924    public CWE getRxo20_Indication(int rep) { 
925                CWE retVal = this.getTypedField(20, rep);
926                return retVal;
927    }
928
929    /**
930     * Returns a count of the current number of repetitions of Indication (RXO-20).
931     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
932     * it will return zero.
933     */
934    public int getRxo20_IndicationReps() {
935        return this.getReps(20);
936    }
937
938
939    /**
940     * Inserts a repetition of
941     * RXO-20: "Indication" at a specific index
942     *
943     * @param rep The repetition index (0-indexed)
944     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
945     */
946    public CWE insertIndication(int rep) throws HL7Exception { 
947        return (CWE) super.insertRepetition(20, rep);
948    }
949
950
951    /**
952     * Inserts a repetition of
953     * RXO-20: "Indication" at a specific index
954     *
955     * @param rep The repetition index (0-indexed)
956     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
957     */
958    public CWE insertRxo20_Indication(int rep) throws HL7Exception { 
959        return (CWE) super.insertRepetition(20, rep);
960    }
961
962
963    /**
964     * Removes a repetition of
965     * RXO-20: "Indication" at a specific index
966     *
967     * @param rep The repetition index (0-indexed)
968     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
969     */
970    public CWE removeIndication(int rep) throws HL7Exception { 
971        return (CWE) super.removeRepetition(20, rep);
972    }
973
974
975    /**
976     * Removes a repetition of
977     * RXO-20: "Indication" at a specific index
978     *
979     * @param rep The repetition index (0-indexed)
980     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
981     */
982    public CWE removeRxo20_Indication(int rep) throws HL7Exception { 
983        return (CWE) super.removeRepetition(20, rep);
984    }
985
986
987
988
989    /**
990     * Returns
991     * RXO-21: "Requested Give Rate Amount" - creates it if necessary
992     */
993    public ST getRequestedGiveRateAmount() { 
994                ST retVal = this.getTypedField(21, 0);
995                return retVal;
996    }
997    
998    /**
999     * Returns
1000     * RXO-21: "Requested Give Rate Amount" - creates it if necessary
1001     */
1002    public ST getRxo21_RequestedGiveRateAmount() { 
1003                ST retVal = this.getTypedField(21, 0);
1004                return retVal;
1005    }
1006
1007
1008
1009    /**
1010     * Returns
1011     * RXO-22: "Requested Give Rate Units" - creates it if necessary
1012     */
1013    public CWE getRequestedGiveRateUnits() { 
1014                CWE retVal = this.getTypedField(22, 0);
1015                return retVal;
1016    }
1017    
1018    /**
1019     * Returns
1020     * RXO-22: "Requested Give Rate Units" - creates it if necessary
1021     */
1022    public CWE getRxo22_RequestedGiveRateUnits() { 
1023                CWE retVal = this.getTypedField(22, 0);
1024                return retVal;
1025    }
1026
1027
1028
1029    /**
1030     * Returns
1031     * RXO-23: "Total Daily Dose" - creates it if necessary
1032     */
1033    public CQ getTotalDailyDose() { 
1034                CQ retVal = this.getTypedField(23, 0);
1035                return retVal;
1036    }
1037    
1038    /**
1039     * Returns
1040     * RXO-23: "Total Daily Dose" - creates it if necessary
1041     */
1042    public CQ getRxo23_TotalDailyDose() { 
1043                CQ retVal = this.getTypedField(23, 0);
1044                return retVal;
1045    }
1046
1047
1048    /**
1049     * Returns all repetitions of Supplementary Code (RXO-24).
1050     */
1051    public CWE[] getSupplementaryCode() {
1052        CWE[] retVal = this.getTypedField(24, new CWE[0]);
1053        return retVal;
1054    }
1055
1056
1057    /**
1058     * Returns all repetitions of Supplementary Code (RXO-24).
1059     */
1060    public CWE[] getRxo24_SupplementaryCode() {
1061        CWE[] retVal = this.getTypedField(24, new CWE[0]);
1062        return retVal;
1063    }
1064
1065
1066    /**
1067     * Returns a count of the current number of repetitions of Supplementary Code (RXO-24).
1068     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1069     * it will return zero.
1070     */
1071    public int getSupplementaryCodeReps() {
1072        return this.getReps(24);
1073    }
1074
1075
1076    /**
1077     * Returns a specific repetition of
1078     * RXO-24: "Supplementary Code" - creates it if necessary
1079     *
1080     * @param rep The repetition index (0-indexed)
1081     */
1082    public CWE getSupplementaryCode(int rep) { 
1083                CWE retVal = this.getTypedField(24, rep);
1084                return retVal;
1085    }
1086
1087    /**
1088     * Returns a specific repetition of
1089     * RXO-24: "Supplementary Code" - creates it if necessary
1090     *
1091     * @param rep The repetition index (0-indexed)
1092     */
1093    public CWE getRxo24_SupplementaryCode(int rep) { 
1094                CWE retVal = this.getTypedField(24, rep);
1095                return retVal;
1096    }
1097
1098    /**
1099     * Returns a count of the current number of repetitions of Supplementary Code (RXO-24).
1100     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1101     * it will return zero.
1102     */
1103    public int getRxo24_SupplementaryCodeReps() {
1104        return this.getReps(24);
1105    }
1106
1107
1108    /**
1109     * Inserts a repetition of
1110     * RXO-24: "Supplementary Code" at a specific index
1111     *
1112     * @param rep The repetition index (0-indexed)
1113     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1114     */
1115    public CWE insertSupplementaryCode(int rep) throws HL7Exception { 
1116        return (CWE) super.insertRepetition(24, rep);
1117    }
1118
1119
1120    /**
1121     * Inserts a repetition of
1122     * RXO-24: "Supplementary Code" at a specific index
1123     *
1124     * @param rep The repetition index (0-indexed)
1125     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1126     */
1127    public CWE insertRxo24_SupplementaryCode(int rep) throws HL7Exception { 
1128        return (CWE) super.insertRepetition(24, rep);
1129    }
1130
1131
1132    /**
1133     * Removes a repetition of
1134     * RXO-24: "Supplementary Code" at a specific index
1135     *
1136     * @param rep The repetition index (0-indexed)
1137     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1138     */
1139    public CWE removeSupplementaryCode(int rep) throws HL7Exception { 
1140        return (CWE) super.removeRepetition(24, rep);
1141    }
1142
1143
1144    /**
1145     * Removes a repetition of
1146     * RXO-24: "Supplementary Code" at a specific index
1147     *
1148     * @param rep The repetition index (0-indexed)
1149     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1150     */
1151    public CWE removeRxo24_SupplementaryCode(int rep) throws HL7Exception { 
1152        return (CWE) super.removeRepetition(24, rep);
1153    }
1154
1155
1156
1157
1158    /**
1159     * Returns
1160     * RXO-25: "Requested Drug Strength Volume" - creates it if necessary
1161     */
1162    public NM getRequestedDrugStrengthVolume() { 
1163                NM retVal = this.getTypedField(25, 0);
1164                return retVal;
1165    }
1166    
1167    /**
1168     * Returns
1169     * RXO-25: "Requested Drug Strength Volume" - creates it if necessary
1170     */
1171    public NM getRxo25_RequestedDrugStrengthVolume() { 
1172                NM retVal = this.getTypedField(25, 0);
1173                return retVal;
1174    }
1175
1176
1177
1178    /**
1179     * Returns
1180     * RXO-26: "Requested Drug Strength Volume Units" - creates it if necessary
1181     */
1182    public CWE getRequestedDrugStrengthVolumeUnits() { 
1183                CWE retVal = this.getTypedField(26, 0);
1184                return retVal;
1185    }
1186    
1187    /**
1188     * Returns
1189     * RXO-26: "Requested Drug Strength Volume Units" - creates it if necessary
1190     */
1191    public CWE getRxo26_RequestedDrugStrengthVolumeUnits() { 
1192                CWE retVal = this.getTypedField(26, 0);
1193                return retVal;
1194    }
1195
1196
1197
1198    /**
1199     * Returns
1200     * RXO-27: "Pharmacy Order Type" - creates it if necessary
1201     */
1202    public ID getPharmacyOrderType() { 
1203                ID retVal = this.getTypedField(27, 0);
1204                return retVal;
1205    }
1206    
1207    /**
1208     * Returns
1209     * RXO-27: "Pharmacy Order Type" - creates it if necessary
1210     */
1211    public ID getRxo27_PharmacyOrderType() { 
1212                ID retVal = this.getTypedField(27, 0);
1213                return retVal;
1214    }
1215
1216
1217
1218    /**
1219     * Returns
1220     * RXO-28: "Dispensing Interval" - creates it if necessary
1221     */
1222    public NM getDispensingInterval() { 
1223                NM retVal = this.getTypedField(28, 0);
1224                return retVal;
1225    }
1226    
1227    /**
1228     * Returns
1229     * RXO-28: "Dispensing Interval" - creates it if necessary
1230     */
1231    public NM getRxo28_DispensingInterval() { 
1232                NM retVal = this.getTypedField(28, 0);
1233                return retVal;
1234    }
1235
1236
1237
1238    /**
1239     * Returns
1240     * RXO-29: "Medication Instance Identifier" - creates it if necessary
1241     */
1242    public EI getMedicationInstanceIdentifier() { 
1243                EI retVal = this.getTypedField(29, 0);
1244                return retVal;
1245    }
1246    
1247    /**
1248     * Returns
1249     * RXO-29: "Medication Instance Identifier" - creates it if necessary
1250     */
1251    public EI getRxo29_MedicationInstanceIdentifier() { 
1252                EI retVal = this.getTypedField(29, 0);
1253                return retVal;
1254    }
1255
1256
1257
1258    /**
1259     * Returns
1260     * RXO-30: "Segment Instance Identifier" - creates it if necessary
1261     */
1262    public EI getSegmentInstanceIdentifier() { 
1263                EI retVal = this.getTypedField(30, 0);
1264                return retVal;
1265    }
1266    
1267    /**
1268     * Returns
1269     * RXO-30: "Segment Instance Identifier" - creates it if necessary
1270     */
1271    public EI getRxo30_SegmentInstanceIdentifier() { 
1272                EI retVal = this.getTypedField(30, 0);
1273                return retVal;
1274    }
1275
1276
1277
1278    /**
1279     * Returns
1280     * RXO-31: "Mood Code" - creates it if necessary
1281     */
1282    public CNE getMoodCode() { 
1283                CNE retVal = this.getTypedField(31, 0);
1284                return retVal;
1285    }
1286    
1287    /**
1288     * Returns
1289     * RXO-31: "Mood Code" - creates it if necessary
1290     */
1291    public CNE getRxo31_MoodCode() { 
1292                CNE retVal = this.getTypedField(31, 0);
1293                return retVal;
1294    }
1295
1296
1297
1298    /**
1299     * Returns
1300     * RXO-32: "Dispensing Pharmacy" - creates it if necessary
1301     */
1302    public CWE getDispensingPharmacy() { 
1303                CWE retVal = this.getTypedField(32, 0);
1304                return retVal;
1305    }
1306    
1307    /**
1308     * Returns
1309     * RXO-32: "Dispensing Pharmacy" - creates it if necessary
1310     */
1311    public CWE getRxo32_DispensingPharmacy() { 
1312                CWE retVal = this.getTypedField(32, 0);
1313                return retVal;
1314    }
1315
1316
1317
1318    /**
1319     * Returns
1320     * RXO-33: "Dispensing Pharmacy Address" - creates it if necessary
1321     */
1322    public XAD getDispensingPharmacyAddress() { 
1323                XAD retVal = this.getTypedField(33, 0);
1324                return retVal;
1325    }
1326    
1327    /**
1328     * Returns
1329     * RXO-33: "Dispensing Pharmacy Address" - creates it if necessary
1330     */
1331    public XAD getRxo33_DispensingPharmacyAddress() { 
1332                XAD retVal = this.getTypedField(33, 0);
1333                return retVal;
1334    }
1335
1336
1337
1338    /**
1339     * Returns
1340     * RXO-34: "Deliver-to Patient Location" - creates it if necessary
1341     */
1342    public PL getDeliverToPatientLocation() { 
1343                PL retVal = this.getTypedField(34, 0);
1344                return retVal;
1345    }
1346    
1347    /**
1348     * Returns
1349     * RXO-34: "Deliver-to Patient Location" - creates it if necessary
1350     */
1351    public PL getRxo34_DeliverToPatientLocation() { 
1352                PL retVal = this.getTypedField(34, 0);
1353                return retVal;
1354    }
1355
1356
1357
1358    /**
1359     * Returns
1360     * RXO-35: "Deliver-to Address" - creates it if necessary
1361     */
1362    public XAD getDeliverToAddress() { 
1363                XAD retVal = this.getTypedField(35, 0);
1364                return retVal;
1365    }
1366    
1367    /**
1368     * Returns
1369     * RXO-35: "Deliver-to Address" - creates it if necessary
1370     */
1371    public XAD getRxo35_DeliverToAddress() { 
1372                XAD retVal = this.getTypedField(35, 0);
1373                return retVal;
1374    }
1375
1376
1377
1378
1379
1380    /** {@inheritDoc} */   
1381    protected Type createNewTypeWithoutReflection(int field) {
1382       switch (field) {
1383          case 0: return new CWE(getMessage());
1384          case 1: return new NM(getMessage());
1385          case 2: return new NM(getMessage());
1386          case 3: return new CWE(getMessage());
1387          case 4: return new CWE(getMessage());
1388          case 5: return new CWE(getMessage());
1389          case 6: return new CWE(getMessage());
1390          case 7: return new LA1(getMessage());
1391          case 8: return new ID(getMessage(), new Integer( 161 ));
1392          case 9: return new CWE(getMessage());
1393          case 10: return new NM(getMessage());
1394          case 11: return new CWE(getMessage());
1395          case 12: return new NM(getMessage());
1396          case 13: return new XCN(getMessage());
1397          case 14: return new XCN(getMessage());
1398          case 15: return new ID(getMessage(), new Integer( 136 ));
1399          case 16: return new ST(getMessage());
1400          case 17: return new NM(getMessage());
1401          case 18: return new CWE(getMessage());
1402          case 19: return new CWE(getMessage());
1403          case 20: return new ST(getMessage());
1404          case 21: return new CWE(getMessage());
1405          case 22: return new CQ(getMessage());
1406          case 23: return new CWE(getMessage());
1407          case 24: return new NM(getMessage());
1408          case 25: return new CWE(getMessage());
1409          case 26: return new ID(getMessage(), new Integer( 480 ));
1410          case 27: return new NM(getMessage());
1411          case 28: return new EI(getMessage());
1412          case 29: return new EI(getMessage());
1413          case 30: return new CNE(getMessage());
1414          case 31: return new CWE(getMessage());
1415          case 32: return new XAD(getMessage());
1416          case 33: return new PL(getMessage());
1417          case 34: return new XAD(getMessage());
1418          default: return null;
1419       }
1420   }
1421
1422
1423}
1424