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