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