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.v251.segment;
035
036// import ca.uhn.hl7v2.model.v251.group.*;
037import ca.uhn.hl7v2.model.v251.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 RXE message segment (Pharmacy/Treatment Encoded Order). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>RXE-1: Quantity/Timing (TQ) <b>optional </b>
052     * <li>RXE-2: Give Code (CE) <b> </b>
053     * <li>RXE-3: Give Amount - Minimum (NM) <b> </b>
054     * <li>RXE-4: Give Amount - Maximum (NM) <b>optional </b>
055     * <li>RXE-5: Give Units (CE) <b> </b>
056     * <li>RXE-6: Give Dosage Form (CE) <b>optional </b>
057     * <li>RXE-7: Provider's Administration Instructions (CE) <b>optional repeating</b>
058     * <li>RXE-8: Deliver-To Location (LA1) <b>optional </b>
059     * <li>RXE-9: Substitution Status (ID) <b>optional </b>
060     * <li>RXE-10: Dispense Amount (NM) <b>optional </b>
061     * <li>RXE-11: Dispense Units (CE) <b>optional </b>
062     * <li>RXE-12: Number Of Refills (NM) <b>optional </b>
063     * <li>RXE-13: Ordering Provider's DEA Number (XCN) <b>optional repeating</b>
064     * <li>RXE-14: Pharmacist/Treatment Supplier's Verifier ID (XCN) <b>optional repeating</b>
065     * <li>RXE-15: Prescription Number (ST) <b>optional </b>
066     * <li>RXE-16: Number of Refills Remaining (NM) <b>optional </b>
067     * <li>RXE-17: Number of Refills/Doses Dispensed (NM) <b>optional </b>
068     * <li>RXE-18: D/T of Most Recent Refill or Dose Dispensed (TS) <b>optional </b>
069     * <li>RXE-19: Total Daily Dose (CQ) <b>optional </b>
070     * <li>RXE-20: Needs Human Review (ID) <b>optional </b>
071     * <li>RXE-21: Pharmacy/Treatment Supplier's Special Dispensing Instructions (CE) <b>optional repeating</b>
072     * <li>RXE-22: Give Per (Time Unit) (ST) <b>optional </b>
073     * <li>RXE-23: Give Rate Amount (ST) <b>optional </b>
074     * <li>RXE-24: Give Rate Units (CE) <b>optional </b>
075     * <li>RXE-25: Give Strength (NM) <b>optional </b>
076     * <li>RXE-26: Give Strength Units (CE) <b>optional </b>
077     * <li>RXE-27: Give Indication (CE) <b>optional repeating</b>
078     * <li>RXE-28: Dispense Package Size (NM) <b>optional </b>
079     * <li>RXE-29: Dispense Package Size Unit (CE) <b>optional </b>
080     * <li>RXE-30: Dispense Package Method (ID) <b>optional </b>
081     * <li>RXE-31: Supplementary Code (CE) <b>optional repeating</b>
082     * <li>RXE-32: Original Order Date/Time (TS) <b>optional </b>
083     * <li>RXE-33: Give Drug Strength Volume (NM) <b>optional </b>
084     * <li>RXE-34: Give Drug Strength Volume Units (CWE) <b>optional </b>
085     * <li>RXE-35: Controlled Substance Schedule (CWE) <b>optional </b>
086     * <li>RXE-36: Formulary Status (ID) <b>optional </b>
087     * <li>RXE-37: Pharmaceutical Substance Alternative (CWE) <b>optional repeating</b>
088     * <li>RXE-38: Pharmacy of Most Recent Fill (CWE) <b>optional </b>
089     * <li>RXE-39: Initial Dispense Amount (NM) <b>optional </b>
090     * <li>RXE-40: Dispensing Pharmacy (CWE) <b>optional </b>
091     * <li>RXE-41: Dispensing Pharmacy Address (XAD) <b>optional </b>
092     * <li>RXE-42: Deliver-to Patient Location (PL) <b>optional </b>
093     * <li>RXE-43: Deliver-to Address (XAD) <b>optional </b>
094     * <li>RXE-44: Pharmacy Order Type (ID) <b>optional </b>
095 * </ul>
096 */
097@SuppressWarnings("unused")
098public class RXE extends AbstractSegment {
099
100    /** 
101     * Creates a new RXE segment
102     */
103    public RXE(Group parent, ModelClassFactory factory) {
104       super(parent, factory);
105       init(factory);
106    }
107
108    private void init(ModelClassFactory factory) {
109       try {
110                                  this.add(TQ.class, false, 1, 200, new Object[]{ getMessage() }, "Quantity/Timing");
111                                  this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Give Code");
112                                  this.add(NM.class, true, 1, 20, new Object[]{ getMessage() }, "Give Amount - Minimum");
113                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Give Amount - Maximum");
114                                  this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Give Units");
115                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Dosage Form");
116                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Provider's Administration Instructions");
117                                  this.add(LA1.class, false, 1, 200, new Object[]{ getMessage() }, "Deliver-To Location");
118                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(167) }, "Substitution Status");
119                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Dispense Amount");
120                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Dispense Units");
121                                  this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Number Of Refills");
122                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Provider's DEA Number");
123                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Pharmacist/Treatment Supplier's Verifier ID");
124                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Prescription Number");
125                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Number of Refills Remaining");
126                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Number of Refills/Doses Dispensed");
127                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "D/T of Most Recent Refill or Dose Dispensed");
128                                  this.add(CQ.class, false, 1, 10, new Object[]{ getMessage() }, "Total Daily Dose");
129                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review");
130                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Pharmacy/Treatment Supplier's Special Dispensing Instructions");
131                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Give Per (Time Unit)");
132                                  this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Give Rate Amount");
133                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Rate Units");
134                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Give Strength");
135                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Strength Units");
136                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Give Indication");
137                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Dispense Package Size");
138                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Dispense Package Size Unit");
139                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(321) }, "Dispense Package Method");
140                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Supplementary Code");
141                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Original Order Date/Time");
142                                  this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Give Drug Strength Volume");
143                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Give Drug Strength Volume Units");
144                                  this.add(CWE.class, false, 1, 60, new Object[]{ getMessage() }, "Controlled Substance Schedule");
145                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(478) }, "Formulary Status");
146                                  this.add(CWE.class, false, 0, 60, new Object[]{ getMessage() }, "Pharmaceutical Substance Alternative");
147                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Pharmacy of Most Recent Fill");
148                                  this.add(NM.class, false, 1, 250, new Object[]{ getMessage() }, "Initial Dispense Amount");
149                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Dispensing Pharmacy");
150                                  this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Dispensing Pharmacy Address");
151                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Deliver-to Patient Location");
152                                  this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Deliver-to Address");
153                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(480) }, "Pharmacy Order Type");
154       } catch(HL7Exception e) {
155          log.error("Unexpected error creating RXE - this is probably a bug in the source code generator.", e);
156       }
157    }
158
159
160
161    /**
162     * Returns
163     * RXE-1: "Quantity/Timing" - creates it if necessary
164     */
165    public TQ getQuantityTiming() { 
166                TQ retVal = this.getTypedField(1, 0);
167                return retVal;
168    }
169    
170    /**
171     * Returns
172     * RXE-1: "Quantity/Timing" - creates it if necessary
173     */
174    public TQ getRxe1_QuantityTiming() { 
175                TQ retVal = this.getTypedField(1, 0);
176                return retVal;
177    }
178
179
180
181    /**
182     * Returns
183     * RXE-2: "Give Code" - creates it if necessary
184     */
185    public CE getGiveCode() { 
186                CE retVal = this.getTypedField(2, 0);
187                return retVal;
188    }
189    
190    /**
191     * Returns
192     * RXE-2: "Give Code" - creates it if necessary
193     */
194    public CE getRxe2_GiveCode() { 
195                CE retVal = this.getTypedField(2, 0);
196                return retVal;
197    }
198
199
200
201    /**
202     * Returns
203     * RXE-3: "Give Amount - Minimum" - creates it if necessary
204     */
205    public NM getGiveAmountMinimum() { 
206                NM retVal = this.getTypedField(3, 0);
207                return retVal;
208    }
209    
210    /**
211     * Returns
212     * RXE-3: "Give Amount - Minimum" - creates it if necessary
213     */
214    public NM getRxe3_GiveAmountMinimum() { 
215                NM retVal = this.getTypedField(3, 0);
216                return retVal;
217    }
218
219
220
221    /**
222     * Returns
223     * RXE-4: "Give Amount - Maximum" - creates it if necessary
224     */
225    public NM getGiveAmountMaximum() { 
226                NM retVal = this.getTypedField(4, 0);
227                return retVal;
228    }
229    
230    /**
231     * Returns
232     * RXE-4: "Give Amount - Maximum" - creates it if necessary
233     */
234    public NM getRxe4_GiveAmountMaximum() { 
235                NM retVal = this.getTypedField(4, 0);
236                return retVal;
237    }
238
239
240
241    /**
242     * Returns
243     * RXE-5: "Give Units" - creates it if necessary
244     */
245    public CE getGiveUnits() { 
246                CE retVal = this.getTypedField(5, 0);
247                return retVal;
248    }
249    
250    /**
251     * Returns
252     * RXE-5: "Give Units" - creates it if necessary
253     */
254    public CE getRxe5_GiveUnits() { 
255                CE retVal = this.getTypedField(5, 0);
256                return retVal;
257    }
258
259
260
261    /**
262     * Returns
263     * RXE-6: "Give Dosage Form" - creates it if necessary
264     */
265    public CE getGiveDosageForm() { 
266                CE retVal = this.getTypedField(6, 0);
267                return retVal;
268    }
269    
270    /**
271     * Returns
272     * RXE-6: "Give Dosage Form" - creates it if necessary
273     */
274    public CE getRxe6_GiveDosageForm() { 
275                CE retVal = this.getTypedField(6, 0);
276                return retVal;
277    }
278
279
280    /**
281     * Returns all repetitions of Provider's Administration Instructions (RXE-7).
282     */
283    public CE[] getProviderSAdministrationInstructions() {
284        CE[] retVal = this.getTypedField(7, new CE[0]);
285        return retVal;
286    }
287
288
289    /**
290     * Returns all repetitions of Provider's Administration Instructions (RXE-7).
291     */
292    public CE[] getRxe7_ProviderSAdministrationInstructions() {
293        CE[] retVal = this.getTypedField(7, new CE[0]);
294        return retVal;
295    }
296
297
298    /**
299     * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXE-7).
300     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
301     * it will return zero.
302     */
303    public int getProviderSAdministrationInstructionsReps() {
304        return this.getReps(7);
305    }
306
307
308    /**
309     * Returns a specific repetition of
310     * RXE-7: "Provider's Administration Instructions" - creates it if necessary
311     *
312     * @param rep The repetition index (0-indexed)
313     */
314    public CE getProviderSAdministrationInstructions(int rep) { 
315                CE retVal = this.getTypedField(7, rep);
316                return retVal;
317    }
318
319    /**
320     * Returns a specific repetition of
321     * RXE-7: "Provider's Administration Instructions" - creates it if necessary
322     *
323     * @param rep The repetition index (0-indexed)
324     */
325    public CE getRxe7_ProviderSAdministrationInstructions(int rep) { 
326                CE retVal = this.getTypedField(7, rep);
327                return retVal;
328    }
329
330    /**
331     * Returns a count of the current number of repetitions of Provider's Administration Instructions (RXE-7).
332     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
333     * it will return zero.
334     */
335    public int getRxe7_ProviderSAdministrationInstructionsReps() {
336        return this.getReps(7);
337    }
338
339
340    /**
341     * Inserts a repetition of
342     * RXE-7: "Provider's Administration Instructions" at a specific index
343     *
344     * @param rep The repetition index (0-indexed)
345     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
346     */
347    public CE insertProviderSAdministrationInstructions(int rep) throws HL7Exception { 
348        return (CE) super.insertRepetition(7, rep);
349    }
350
351
352    /**
353     * Inserts a repetition of
354     * RXE-7: "Provider's Administration Instructions" at a specific index
355     *
356     * @param rep The repetition index (0-indexed)
357     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
358     */
359    public CE insertRxe7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
360        return (CE) super.insertRepetition(7, rep);
361    }
362
363
364    /**
365     * Removes a repetition of
366     * RXE-7: "Provider's Administration Instructions" at a specific index
367     *
368     * @param rep The repetition index (0-indexed)
369     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
370     */
371    public CE removeProviderSAdministrationInstructions(int rep) throws HL7Exception { 
372        return (CE) super.removeRepetition(7, rep);
373    }
374
375
376    /**
377     * Removes a repetition of
378     * RXE-7: "Provider's Administration Instructions" at a specific index
379     *
380     * @param rep The repetition index (0-indexed)
381     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
382     */
383    public CE removeRxe7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 
384        return (CE) super.removeRepetition(7, rep);
385    }
386
387
388
389
390    /**
391     * Returns
392     * RXE-8: "Deliver-To Location" - creates it if necessary
393     */
394    public LA1 getDeliverToLocation() { 
395                LA1 retVal = this.getTypedField(8, 0);
396                return retVal;
397    }
398    
399    /**
400     * Returns
401     * RXE-8: "Deliver-To Location" - creates it if necessary
402     */
403    public LA1 getRxe8_DeliverToLocation() { 
404                LA1 retVal = this.getTypedField(8, 0);
405                return retVal;
406    }
407
408
409
410    /**
411     * Returns
412     * RXE-9: "Substitution Status" - creates it if necessary
413     */
414    public ID getSubstitutionStatus() { 
415                ID retVal = this.getTypedField(9, 0);
416                return retVal;
417    }
418    
419    /**
420     * Returns
421     * RXE-9: "Substitution Status" - creates it if necessary
422     */
423    public ID getRxe9_SubstitutionStatus() { 
424                ID retVal = this.getTypedField(9, 0);
425                return retVal;
426    }
427
428
429
430    /**
431     * Returns
432     * RXE-10: "Dispense Amount" - creates it if necessary
433     */
434    public NM getDispenseAmount() { 
435                NM retVal = this.getTypedField(10, 0);
436                return retVal;
437    }
438    
439    /**
440     * Returns
441     * RXE-10: "Dispense Amount" - creates it if necessary
442     */
443    public NM getRxe10_DispenseAmount() { 
444                NM retVal = this.getTypedField(10, 0);
445                return retVal;
446    }
447
448
449
450    /**
451     * Returns
452     * RXE-11: "Dispense Units" - creates it if necessary
453     */
454    public CE getDispenseUnits() { 
455                CE retVal = this.getTypedField(11, 0);
456                return retVal;
457    }
458    
459    /**
460     * Returns
461     * RXE-11: "Dispense Units" - creates it if necessary
462     */
463    public CE getRxe11_DispenseUnits() { 
464                CE retVal = this.getTypedField(11, 0);
465                return retVal;
466    }
467
468
469
470    /**
471     * Returns
472     * RXE-12: "Number Of Refills" - creates it if necessary
473     */
474    public NM getNumberOfRefills() { 
475                NM retVal = this.getTypedField(12, 0);
476                return retVal;
477    }
478    
479    /**
480     * Returns
481     * RXE-12: "Number Of Refills" - creates it if necessary
482     */
483    public NM getRxe12_NumberOfRefills() { 
484                NM retVal = this.getTypedField(12, 0);
485                return retVal;
486    }
487
488
489    /**
490     * Returns all repetitions of Ordering Provider's DEA Number (RXE-13).
491     */
492    public XCN[] getOrderingProviderSDEANumber() {
493        XCN[] retVal = this.getTypedField(13, new XCN[0]);
494        return retVal;
495    }
496
497
498    /**
499     * Returns all repetitions of Ordering Provider's DEA Number (RXE-13).
500     */
501    public XCN[] getRxe13_OrderingProviderSDEANumber() {
502        XCN[] retVal = this.getTypedField(13, new XCN[0]);
503        return retVal;
504    }
505
506
507    /**
508     * Returns a count of the current number of repetitions of Ordering Provider's DEA Number (RXE-13).
509     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
510     * it will return zero.
511     */
512    public int getOrderingProviderSDEANumberReps() {
513        return this.getReps(13);
514    }
515
516
517    /**
518     * Returns a specific repetition of
519     * RXE-13: "Ordering Provider's DEA Number" - creates it if necessary
520     *
521     * @param rep The repetition index (0-indexed)
522     */
523    public XCN getOrderingProviderSDEANumber(int rep) { 
524                XCN retVal = this.getTypedField(13, rep);
525                return retVal;
526    }
527
528    /**
529     * Returns a specific repetition of
530     * RXE-13: "Ordering Provider's DEA Number" - creates it if necessary
531     *
532     * @param rep The repetition index (0-indexed)
533     */
534    public XCN getRxe13_OrderingProviderSDEANumber(int rep) { 
535                XCN retVal = this.getTypedField(13, rep);
536                return retVal;
537    }
538
539    /**
540     * Returns a count of the current number of repetitions of Ordering Provider's DEA Number (RXE-13).
541     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
542     * it will return zero.
543     */
544    public int getRxe13_OrderingProviderSDEANumberReps() {
545        return this.getReps(13);
546    }
547
548
549    /**
550     * Inserts a repetition of
551     * RXE-13: "Ordering Provider's DEA Number" at a specific index
552     *
553     * @param rep The repetition index (0-indexed)
554     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
555     */
556    public XCN insertOrderingProviderSDEANumber(int rep) throws HL7Exception { 
557        return (XCN) super.insertRepetition(13, rep);
558    }
559
560
561    /**
562     * Inserts a repetition of
563     * RXE-13: "Ordering Provider's DEA Number" at a specific index
564     *
565     * @param rep The repetition index (0-indexed)
566     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
567     */
568    public XCN insertRxe13_OrderingProviderSDEANumber(int rep) throws HL7Exception { 
569        return (XCN) super.insertRepetition(13, rep);
570    }
571
572
573    /**
574     * Removes a repetition of
575     * RXE-13: "Ordering Provider's DEA Number" at a specific index
576     *
577     * @param rep The repetition index (0-indexed)
578     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
579     */
580    public XCN removeOrderingProviderSDEANumber(int rep) throws HL7Exception { 
581        return (XCN) super.removeRepetition(13, rep);
582    }
583
584
585    /**
586     * Removes a repetition of
587     * RXE-13: "Ordering Provider's DEA Number" at a specific index
588     *
589     * @param rep The repetition index (0-indexed)
590     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
591     */
592    public XCN removeRxe13_OrderingProviderSDEANumber(int rep) throws HL7Exception { 
593        return (XCN) super.removeRepetition(13, rep);
594    }
595
596
597
598    /**
599     * Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
600     */
601    public XCN[] getPharmacistTreatmentSupplierSVerifierID() {
602        XCN[] retVal = this.getTypedField(14, new XCN[0]);
603        return retVal;
604    }
605
606
607    /**
608     * Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
609     */
610    public XCN[] getRxe14_PharmacistTreatmentSupplierSVerifierID() {
611        XCN[] retVal = this.getTypedField(14, new XCN[0]);
612        return retVal;
613    }
614
615
616    /**
617     * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
618     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
619     * it will return zero.
620     */
621    public int getPharmacistTreatmentSupplierSVerifierIDReps() {
622        return this.getReps(14);
623    }
624
625
626    /**
627     * Returns a specific repetition of
628     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
629     *
630     * @param rep The repetition index (0-indexed)
631     */
632    public XCN getPharmacistTreatmentSupplierSVerifierID(int rep) { 
633                XCN retVal = this.getTypedField(14, rep);
634                return retVal;
635    }
636
637    /**
638     * Returns a specific repetition of
639     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
640     *
641     * @param rep The repetition index (0-indexed)
642     */
643    public XCN getRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) { 
644                XCN retVal = this.getTypedField(14, rep);
645                return retVal;
646    }
647
648    /**
649     * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
650     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
651     * it will return zero.
652     */
653    public int getRxe14_PharmacistTreatmentSupplierSVerifierIDReps() {
654        return this.getReps(14);
655    }
656
657
658    /**
659     * Inserts a repetition of
660     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
661     *
662     * @param rep The repetition index (0-indexed)
663     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
664     */
665    public XCN insertPharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
666        return (XCN) super.insertRepetition(14, rep);
667    }
668
669
670    /**
671     * Inserts a repetition of
672     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
673     *
674     * @param rep The repetition index (0-indexed)
675     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
676     */
677    public XCN insertRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
678        return (XCN) super.insertRepetition(14, rep);
679    }
680
681
682    /**
683     * Removes a repetition of
684     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
685     *
686     * @param rep The repetition index (0-indexed)
687     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
688     */
689    public XCN removePharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
690        return (XCN) super.removeRepetition(14, rep);
691    }
692
693
694    /**
695     * Removes a repetition of
696     * RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" at a specific index
697     *
698     * @param rep The repetition index (0-indexed)
699     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
700     */
701    public XCN removeRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 
702        return (XCN) super.removeRepetition(14, rep);
703    }
704
705
706
707
708    /**
709     * Returns
710     * RXE-15: "Prescription Number" - creates it if necessary
711     */
712    public ST getPrescriptionNumber() { 
713                ST retVal = this.getTypedField(15, 0);
714                return retVal;
715    }
716    
717    /**
718     * Returns
719     * RXE-15: "Prescription Number" - creates it if necessary
720     */
721    public ST getRxe15_PrescriptionNumber() { 
722                ST retVal = this.getTypedField(15, 0);
723                return retVal;
724    }
725
726
727
728    /**
729     * Returns
730     * RXE-16: "Number of Refills Remaining" - creates it if necessary
731     */
732    public NM getNumberOfRefillsRemaining() { 
733                NM retVal = this.getTypedField(16, 0);
734                return retVal;
735    }
736    
737    /**
738     * Returns
739     * RXE-16: "Number of Refills Remaining" - creates it if necessary
740     */
741    public NM getRxe16_NumberOfRefillsRemaining() { 
742                NM retVal = this.getTypedField(16, 0);
743                return retVal;
744    }
745
746
747
748    /**
749     * Returns
750     * RXE-17: "Number of Refills/Doses Dispensed" - creates it if necessary
751     */
752    public NM getNumberOfRefillsDosesDispensed() { 
753                NM retVal = this.getTypedField(17, 0);
754                return retVal;
755    }
756    
757    /**
758     * Returns
759     * RXE-17: "Number of Refills/Doses Dispensed" - creates it if necessary
760     */
761    public NM getRxe17_NumberOfRefillsDosesDispensed() { 
762                NM retVal = this.getTypedField(17, 0);
763                return retVal;
764    }
765
766
767
768    /**
769     * Returns
770     * RXE-18: "D/T of Most Recent Refill or Dose Dispensed" - creates it if necessary
771     */
772    public TS getDTOfMostRecentRefillOrDoseDispensed() { 
773                TS retVal = this.getTypedField(18, 0);
774                return retVal;
775    }
776    
777    /**
778     * Returns
779     * RXE-18: "D/T of Most Recent Refill or Dose Dispensed" - creates it if necessary
780     */
781    public TS getRxe18_DTOfMostRecentRefillOrDoseDispensed() { 
782                TS retVal = this.getTypedField(18, 0);
783                return retVal;
784    }
785
786
787
788    /**
789     * Returns
790     * RXE-19: "Total Daily Dose" - creates it if necessary
791     */
792    public CQ getTotalDailyDose() { 
793                CQ retVal = this.getTypedField(19, 0);
794                return retVal;
795    }
796    
797    /**
798     * Returns
799     * RXE-19: "Total Daily Dose" - creates it if necessary
800     */
801    public CQ getRxe19_TotalDailyDose() { 
802                CQ retVal = this.getTypedField(19, 0);
803                return retVal;
804    }
805
806
807
808    /**
809     * Returns
810     * RXE-20: "Needs Human Review" - creates it if necessary
811     */
812    public ID getNeedsHumanReview() { 
813                ID retVal = this.getTypedField(20, 0);
814                return retVal;
815    }
816    
817    /**
818     * Returns
819     * RXE-20: "Needs Human Review" - creates it if necessary
820     */
821    public ID getRxe20_NeedsHumanReview() { 
822                ID retVal = this.getTypedField(20, 0);
823                return retVal;
824    }
825
826
827    /**
828     * Returns all repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
829     */
830    public CE[] getPharmacyTreatmentSupplierSSpecialDispensingInstructions() {
831        CE[] retVal = this.getTypedField(21, new CE[0]);
832        return retVal;
833    }
834
835
836    /**
837     * Returns all repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
838     */
839    public CE[] getRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions() {
840        CE[] retVal = this.getTypedField(21, new CE[0]);
841        return retVal;
842    }
843
844
845    /**
846     * Returns a count of the current number of repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
847     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
848     * it will return zero.
849     */
850    public int getPharmacyTreatmentSupplierSSpecialDispensingInstructionsReps() {
851        return this.getReps(21);
852    }
853
854
855    /**
856     * Returns a specific repetition of
857     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" - creates it if necessary
858     *
859     * @param rep The repetition index (0-indexed)
860     */
861    public CE getPharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) { 
862                CE retVal = this.getTypedField(21, rep);
863                return retVal;
864    }
865
866    /**
867     * Returns a specific repetition of
868     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" - creates it if necessary
869     *
870     * @param rep The repetition index (0-indexed)
871     */
872    public CE getRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) { 
873                CE retVal = this.getTypedField(21, rep);
874                return retVal;
875    }
876
877    /**
878     * Returns a count of the current number of repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
879     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
880     * it will return zero.
881     */
882    public int getRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructionsReps() {
883        return this.getReps(21);
884    }
885
886
887    /**
888     * Inserts a repetition of
889     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
890     *
891     * @param rep The repetition index (0-indexed)
892     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
893     */
894    public CE insertPharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception { 
895        return (CE) super.insertRepetition(21, rep);
896    }
897
898
899    /**
900     * Inserts a repetition of
901     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
902     *
903     * @param rep The repetition index (0-indexed)
904     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
905     */
906    public CE insertRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception { 
907        return (CE) super.insertRepetition(21, rep);
908    }
909
910
911    /**
912     * Removes a repetition of
913     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
914     *
915     * @param rep The repetition index (0-indexed)
916     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
917     */
918    public CE removePharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception { 
919        return (CE) super.removeRepetition(21, rep);
920    }
921
922
923    /**
924     * Removes a repetition of
925     * RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
926     *
927     * @param rep The repetition index (0-indexed)
928     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
929     */
930    public CE removeRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception { 
931        return (CE) super.removeRepetition(21, rep);
932    }
933
934
935
936
937    /**
938     * Returns
939     * RXE-22: "Give Per (Time Unit)" - creates it if necessary
940     */
941    public ST getGivePerTimeUnit() { 
942                ST retVal = this.getTypedField(22, 0);
943                return retVal;
944    }
945    
946    /**
947     * Returns
948     * RXE-22: "Give Per (Time Unit)" - creates it if necessary
949     */
950    public ST getRxe22_GivePerTimeUnit() { 
951                ST retVal = this.getTypedField(22, 0);
952                return retVal;
953    }
954
955
956
957    /**
958     * Returns
959     * RXE-23: "Give Rate Amount" - creates it if necessary
960     */
961    public ST getGiveRateAmount() { 
962                ST retVal = this.getTypedField(23, 0);
963                return retVal;
964    }
965    
966    /**
967     * Returns
968     * RXE-23: "Give Rate Amount" - creates it if necessary
969     */
970    public ST getRxe23_GiveRateAmount() { 
971                ST retVal = this.getTypedField(23, 0);
972                return retVal;
973    }
974
975
976
977    /**
978     * Returns
979     * RXE-24: "Give Rate Units" - creates it if necessary
980     */
981    public CE getGiveRateUnits() { 
982                CE retVal = this.getTypedField(24, 0);
983                return retVal;
984    }
985    
986    /**
987     * Returns
988     * RXE-24: "Give Rate Units" - creates it if necessary
989     */
990    public CE getRxe24_GiveRateUnits() { 
991                CE retVal = this.getTypedField(24, 0);
992                return retVal;
993    }
994
995
996
997    /**
998     * Returns
999     * RXE-25: "Give Strength" - creates it if necessary
1000     */
1001    public NM getGiveStrength() { 
1002                NM retVal = this.getTypedField(25, 0);
1003                return retVal;
1004    }
1005    
1006    /**
1007     * Returns
1008     * RXE-25: "Give Strength" - creates it if necessary
1009     */
1010    public NM getRxe25_GiveStrength() { 
1011                NM retVal = this.getTypedField(25, 0);
1012                return retVal;
1013    }
1014
1015
1016
1017    /**
1018     * Returns
1019     * RXE-26: "Give Strength Units" - creates it if necessary
1020     */
1021    public CE getGiveStrengthUnits() { 
1022                CE retVal = this.getTypedField(26, 0);
1023                return retVal;
1024    }
1025    
1026    /**
1027     * Returns
1028     * RXE-26: "Give Strength Units" - creates it if necessary
1029     */
1030    public CE getRxe26_GiveStrengthUnits() { 
1031                CE retVal = this.getTypedField(26, 0);
1032                return retVal;
1033    }
1034
1035
1036    /**
1037     * Returns all repetitions of Give Indication (RXE-27).
1038     */
1039    public CE[] getGiveIndication() {
1040        CE[] retVal = this.getTypedField(27, new CE[0]);
1041        return retVal;
1042    }
1043
1044
1045    /**
1046     * Returns all repetitions of Give Indication (RXE-27).
1047     */
1048    public CE[] getRxe27_GiveIndication() {
1049        CE[] retVal = this.getTypedField(27, new CE[0]);
1050        return retVal;
1051    }
1052
1053
1054    /**
1055     * Returns a count of the current number of repetitions of Give Indication (RXE-27).
1056     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1057     * it will return zero.
1058     */
1059    public int getGiveIndicationReps() {
1060        return this.getReps(27);
1061    }
1062
1063
1064    /**
1065     * Returns a specific repetition of
1066     * RXE-27: "Give Indication" - creates it if necessary
1067     *
1068     * @param rep The repetition index (0-indexed)
1069     */
1070    public CE getGiveIndication(int rep) { 
1071                CE retVal = this.getTypedField(27, rep);
1072                return retVal;
1073    }
1074
1075    /**
1076     * Returns a specific repetition of
1077     * RXE-27: "Give Indication" - creates it if necessary
1078     *
1079     * @param rep The repetition index (0-indexed)
1080     */
1081    public CE getRxe27_GiveIndication(int rep) { 
1082                CE retVal = this.getTypedField(27, rep);
1083                return retVal;
1084    }
1085
1086    /**
1087     * Returns a count of the current number of repetitions of Give Indication (RXE-27).
1088     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1089     * it will return zero.
1090     */
1091    public int getRxe27_GiveIndicationReps() {
1092        return this.getReps(27);
1093    }
1094
1095
1096    /**
1097     * Inserts a repetition of
1098     * RXE-27: "Give Indication" at a specific index
1099     *
1100     * @param rep The repetition index (0-indexed)
1101     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1102     */
1103    public CE insertGiveIndication(int rep) throws HL7Exception { 
1104        return (CE) super.insertRepetition(27, rep);
1105    }
1106
1107
1108    /**
1109     * Inserts a repetition of
1110     * RXE-27: "Give Indication" at a specific index
1111     *
1112     * @param rep The repetition index (0-indexed)
1113     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1114     */
1115    public CE insertRxe27_GiveIndication(int rep) throws HL7Exception { 
1116        return (CE) super.insertRepetition(27, rep);
1117    }
1118
1119
1120    /**
1121     * Removes a repetition of
1122     * RXE-27: "Give Indication" at a specific index
1123     *
1124     * @param rep The repetition index (0-indexed)
1125     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1126     */
1127    public CE removeGiveIndication(int rep) throws HL7Exception { 
1128        return (CE) super.removeRepetition(27, rep);
1129    }
1130
1131
1132    /**
1133     * Removes a repetition of
1134     * RXE-27: "Give Indication" at a specific index
1135     *
1136     * @param rep The repetition index (0-indexed)
1137     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1138     */
1139    public CE removeRxe27_GiveIndication(int rep) throws HL7Exception { 
1140        return (CE) super.removeRepetition(27, rep);
1141    }
1142
1143
1144
1145
1146    /**
1147     * Returns
1148     * RXE-28: "Dispense Package Size" - creates it if necessary
1149     */
1150    public NM getDispensePackageSize() { 
1151                NM retVal = this.getTypedField(28, 0);
1152                return retVal;
1153    }
1154    
1155    /**
1156     * Returns
1157     * RXE-28: "Dispense Package Size" - creates it if necessary
1158     */
1159    public NM getRxe28_DispensePackageSize() { 
1160                NM retVal = this.getTypedField(28, 0);
1161                return retVal;
1162    }
1163
1164
1165
1166    /**
1167     * Returns
1168     * RXE-29: "Dispense Package Size Unit" - creates it if necessary
1169     */
1170    public CE getDispensePackageSizeUnit() { 
1171                CE retVal = this.getTypedField(29, 0);
1172                return retVal;
1173    }
1174    
1175    /**
1176     * Returns
1177     * RXE-29: "Dispense Package Size Unit" - creates it if necessary
1178     */
1179    public CE getRxe29_DispensePackageSizeUnit() { 
1180                CE retVal = this.getTypedField(29, 0);
1181                return retVal;
1182    }
1183
1184
1185
1186    /**
1187     * Returns
1188     * RXE-30: "Dispense Package Method" - creates it if necessary
1189     */
1190    public ID getDispensePackageMethod() { 
1191                ID retVal = this.getTypedField(30, 0);
1192                return retVal;
1193    }
1194    
1195    /**
1196     * Returns
1197     * RXE-30: "Dispense Package Method" - creates it if necessary
1198     */
1199    public ID getRxe30_DispensePackageMethod() { 
1200                ID retVal = this.getTypedField(30, 0);
1201                return retVal;
1202    }
1203
1204
1205    /**
1206     * Returns all repetitions of Supplementary Code (RXE-31).
1207     */
1208    public CE[] getSupplementaryCode() {
1209        CE[] retVal = this.getTypedField(31, new CE[0]);
1210        return retVal;
1211    }
1212
1213
1214    /**
1215     * Returns all repetitions of Supplementary Code (RXE-31).
1216     */
1217    public CE[] getRxe31_SupplementaryCode() {
1218        CE[] retVal = this.getTypedField(31, new CE[0]);
1219        return retVal;
1220    }
1221
1222
1223    /**
1224     * Returns a count of the current number of repetitions of Supplementary Code (RXE-31).
1225     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1226     * it will return zero.
1227     */
1228    public int getSupplementaryCodeReps() {
1229        return this.getReps(31);
1230    }
1231
1232
1233    /**
1234     * Returns a specific repetition of
1235     * RXE-31: "Supplementary Code" - creates it if necessary
1236     *
1237     * @param rep The repetition index (0-indexed)
1238     */
1239    public CE getSupplementaryCode(int rep) { 
1240                CE retVal = this.getTypedField(31, rep);
1241                return retVal;
1242    }
1243
1244    /**
1245     * Returns a specific repetition of
1246     * RXE-31: "Supplementary Code" - creates it if necessary
1247     *
1248     * @param rep The repetition index (0-indexed)
1249     */
1250    public CE getRxe31_SupplementaryCode(int rep) { 
1251                CE retVal = this.getTypedField(31, rep);
1252                return retVal;
1253    }
1254
1255    /**
1256     * Returns a count of the current number of repetitions of Supplementary Code (RXE-31).
1257     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1258     * it will return zero.
1259     */
1260    public int getRxe31_SupplementaryCodeReps() {
1261        return this.getReps(31);
1262    }
1263
1264
1265    /**
1266     * Inserts a repetition of
1267     * RXE-31: "Supplementary Code" at a specific index
1268     *
1269     * @param rep The repetition index (0-indexed)
1270     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1271     */
1272    public CE insertSupplementaryCode(int rep) throws HL7Exception { 
1273        return (CE) super.insertRepetition(31, rep);
1274    }
1275
1276
1277    /**
1278     * Inserts a repetition of
1279     * RXE-31: "Supplementary Code" at a specific index
1280     *
1281     * @param rep The repetition index (0-indexed)
1282     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1283     */
1284    public CE insertRxe31_SupplementaryCode(int rep) throws HL7Exception { 
1285        return (CE) super.insertRepetition(31, rep);
1286    }
1287
1288
1289    /**
1290     * Removes a repetition of
1291     * RXE-31: "Supplementary Code" at a specific index
1292     *
1293     * @param rep The repetition index (0-indexed)
1294     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1295     */
1296    public CE removeSupplementaryCode(int rep) throws HL7Exception { 
1297        return (CE) super.removeRepetition(31, rep);
1298    }
1299
1300
1301    /**
1302     * Removes a repetition of
1303     * RXE-31: "Supplementary Code" at a specific index
1304     *
1305     * @param rep The repetition index (0-indexed)
1306     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1307     */
1308    public CE removeRxe31_SupplementaryCode(int rep) throws HL7Exception { 
1309        return (CE) super.removeRepetition(31, rep);
1310    }
1311
1312
1313
1314
1315    /**
1316     * Returns
1317     * RXE-32: "Original Order Date/Time" - creates it if necessary
1318     */
1319    public TS getOriginalOrderDateTime() { 
1320                TS retVal = this.getTypedField(32, 0);
1321                return retVal;
1322    }
1323    
1324    /**
1325     * Returns
1326     * RXE-32: "Original Order Date/Time" - creates it if necessary
1327     */
1328    public TS getRxe32_OriginalOrderDateTime() { 
1329                TS retVal = this.getTypedField(32, 0);
1330                return retVal;
1331    }
1332
1333
1334
1335    /**
1336     * Returns
1337     * RXE-33: "Give Drug Strength Volume" - creates it if necessary
1338     */
1339    public NM getGiveDrugStrengthVolume() { 
1340                NM retVal = this.getTypedField(33, 0);
1341                return retVal;
1342    }
1343    
1344    /**
1345     * Returns
1346     * RXE-33: "Give Drug Strength Volume" - creates it if necessary
1347     */
1348    public NM getRxe33_GiveDrugStrengthVolume() { 
1349                NM retVal = this.getTypedField(33, 0);
1350                return retVal;
1351    }
1352
1353
1354
1355    /**
1356     * Returns
1357     * RXE-34: "Give Drug Strength Volume Units" - creates it if necessary
1358     */
1359    public CWE getGiveDrugStrengthVolumeUnits() { 
1360                CWE retVal = this.getTypedField(34, 0);
1361                return retVal;
1362    }
1363    
1364    /**
1365     * Returns
1366     * RXE-34: "Give Drug Strength Volume Units" - creates it if necessary
1367     */
1368    public CWE getRxe34_GiveDrugStrengthVolumeUnits() { 
1369                CWE retVal = this.getTypedField(34, 0);
1370                return retVal;
1371    }
1372
1373
1374
1375    /**
1376     * Returns
1377     * RXE-35: "Controlled Substance Schedule" - creates it if necessary
1378     */
1379    public CWE getControlledSubstanceSchedule() { 
1380                CWE retVal = this.getTypedField(35, 0);
1381                return retVal;
1382    }
1383    
1384    /**
1385     * Returns
1386     * RXE-35: "Controlled Substance Schedule" - creates it if necessary
1387     */
1388    public CWE getRxe35_ControlledSubstanceSchedule() { 
1389                CWE retVal = this.getTypedField(35, 0);
1390                return retVal;
1391    }
1392
1393
1394
1395    /**
1396     * Returns
1397     * RXE-36: "Formulary Status" - creates it if necessary
1398     */
1399    public ID getFormularyStatus() { 
1400                ID retVal = this.getTypedField(36, 0);
1401                return retVal;
1402    }
1403    
1404    /**
1405     * Returns
1406     * RXE-36: "Formulary Status" - creates it if necessary
1407     */
1408    public ID getRxe36_FormularyStatus() { 
1409                ID retVal = this.getTypedField(36, 0);
1410                return retVal;
1411    }
1412
1413
1414    /**
1415     * Returns all repetitions of Pharmaceutical Substance Alternative (RXE-37).
1416     */
1417    public CWE[] getPharmaceuticalSubstanceAlternative() {
1418        CWE[] retVal = this.getTypedField(37, new CWE[0]);
1419        return retVal;
1420    }
1421
1422
1423    /**
1424     * Returns all repetitions of Pharmaceutical Substance Alternative (RXE-37).
1425     */
1426    public CWE[] getRxe37_PharmaceuticalSubstanceAlternative() {
1427        CWE[] retVal = this.getTypedField(37, new CWE[0]);
1428        return retVal;
1429    }
1430
1431
1432    /**
1433     * Returns a count of the current number of repetitions of Pharmaceutical Substance Alternative (RXE-37).
1434     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1435     * it will return zero.
1436     */
1437    public int getPharmaceuticalSubstanceAlternativeReps() {
1438        return this.getReps(37);
1439    }
1440
1441
1442    /**
1443     * Returns a specific repetition of
1444     * RXE-37: "Pharmaceutical Substance Alternative" - creates it if necessary
1445     *
1446     * @param rep The repetition index (0-indexed)
1447     */
1448    public CWE getPharmaceuticalSubstanceAlternative(int rep) { 
1449                CWE retVal = this.getTypedField(37, rep);
1450                return retVal;
1451    }
1452
1453    /**
1454     * Returns a specific repetition of
1455     * RXE-37: "Pharmaceutical Substance Alternative" - creates it if necessary
1456     *
1457     * @param rep The repetition index (0-indexed)
1458     */
1459    public CWE getRxe37_PharmaceuticalSubstanceAlternative(int rep) { 
1460                CWE retVal = this.getTypedField(37, rep);
1461                return retVal;
1462    }
1463
1464    /**
1465     * Returns a count of the current number of repetitions of Pharmaceutical Substance Alternative (RXE-37).
1466     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1467     * it will return zero.
1468     */
1469    public int getRxe37_PharmaceuticalSubstanceAlternativeReps() {
1470        return this.getReps(37);
1471    }
1472
1473
1474    /**
1475     * Inserts a repetition of
1476     * RXE-37: "Pharmaceutical Substance Alternative" at a specific index
1477     *
1478     * @param rep The repetition index (0-indexed)
1479     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1480     */
1481    public CWE insertPharmaceuticalSubstanceAlternative(int rep) throws HL7Exception { 
1482        return (CWE) super.insertRepetition(37, rep);
1483    }
1484
1485
1486    /**
1487     * Inserts a repetition of
1488     * RXE-37: "Pharmaceutical Substance Alternative" at a specific index
1489     *
1490     * @param rep The repetition index (0-indexed)
1491     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1492     */
1493    public CWE insertRxe37_PharmaceuticalSubstanceAlternative(int rep) throws HL7Exception { 
1494        return (CWE) super.insertRepetition(37, rep);
1495    }
1496
1497
1498    /**
1499     * Removes a repetition of
1500     * RXE-37: "Pharmaceutical Substance Alternative" at a specific index
1501     *
1502     * @param rep The repetition index (0-indexed)
1503     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1504     */
1505    public CWE removePharmaceuticalSubstanceAlternative(int rep) throws HL7Exception { 
1506        return (CWE) super.removeRepetition(37, rep);
1507    }
1508
1509
1510    /**
1511     * Removes a repetition of
1512     * RXE-37: "Pharmaceutical Substance Alternative" at a specific index
1513     *
1514     * @param rep The repetition index (0-indexed)
1515     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1516     */
1517    public CWE removeRxe37_PharmaceuticalSubstanceAlternative(int rep) throws HL7Exception { 
1518        return (CWE) super.removeRepetition(37, rep);
1519    }
1520
1521
1522
1523
1524    /**
1525     * Returns
1526     * RXE-38: "Pharmacy of Most Recent Fill" - creates it if necessary
1527     */
1528    public CWE getPharmacyOfMostRecentFill() { 
1529                CWE retVal = this.getTypedField(38, 0);
1530                return retVal;
1531    }
1532    
1533    /**
1534     * Returns
1535     * RXE-38: "Pharmacy of Most Recent Fill" - creates it if necessary
1536     */
1537    public CWE getRxe38_PharmacyOfMostRecentFill() { 
1538                CWE retVal = this.getTypedField(38, 0);
1539                return retVal;
1540    }
1541
1542
1543
1544    /**
1545     * Returns
1546     * RXE-39: "Initial Dispense Amount" - creates it if necessary
1547     */
1548    public NM getInitialDispenseAmount() { 
1549                NM retVal = this.getTypedField(39, 0);
1550                return retVal;
1551    }
1552    
1553    /**
1554     * Returns
1555     * RXE-39: "Initial Dispense Amount" - creates it if necessary
1556     */
1557    public NM getRxe39_InitialDispenseAmount() { 
1558                NM retVal = this.getTypedField(39, 0);
1559                return retVal;
1560    }
1561
1562
1563
1564    /**
1565     * Returns
1566     * RXE-40: "Dispensing Pharmacy" - creates it if necessary
1567     */
1568    public CWE getDispensingPharmacy() { 
1569                CWE retVal = this.getTypedField(40, 0);
1570                return retVal;
1571    }
1572    
1573    /**
1574     * Returns
1575     * RXE-40: "Dispensing Pharmacy" - creates it if necessary
1576     */
1577    public CWE getRxe40_DispensingPharmacy() { 
1578                CWE retVal = this.getTypedField(40, 0);
1579                return retVal;
1580    }
1581
1582
1583
1584    /**
1585     * Returns
1586     * RXE-41: "Dispensing Pharmacy Address" - creates it if necessary
1587     */
1588    public XAD getDispensingPharmacyAddress() { 
1589                XAD retVal = this.getTypedField(41, 0);
1590                return retVal;
1591    }
1592    
1593    /**
1594     * Returns
1595     * RXE-41: "Dispensing Pharmacy Address" - creates it if necessary
1596     */
1597    public XAD getRxe41_DispensingPharmacyAddress() { 
1598                XAD retVal = this.getTypedField(41, 0);
1599                return retVal;
1600    }
1601
1602
1603
1604    /**
1605     * Returns
1606     * RXE-42: "Deliver-to Patient Location" - creates it if necessary
1607     */
1608    public PL getDeliverToPatientLocation() { 
1609                PL retVal = this.getTypedField(42, 0);
1610                return retVal;
1611    }
1612    
1613    /**
1614     * Returns
1615     * RXE-42: "Deliver-to Patient Location" - creates it if necessary
1616     */
1617    public PL getRxe42_DeliverToPatientLocation() { 
1618                PL retVal = this.getTypedField(42, 0);
1619                return retVal;
1620    }
1621
1622
1623
1624    /**
1625     * Returns
1626     * RXE-43: "Deliver-to Address" - creates it if necessary
1627     */
1628    public XAD getDeliverToAddress() { 
1629                XAD retVal = this.getTypedField(43, 0);
1630                return retVal;
1631    }
1632    
1633    /**
1634     * Returns
1635     * RXE-43: "Deliver-to Address" - creates it if necessary
1636     */
1637    public XAD getRxe43_DeliverToAddress() { 
1638                XAD retVal = this.getTypedField(43, 0);
1639                return retVal;
1640    }
1641
1642
1643
1644    /**
1645     * Returns
1646     * RXE-44: "Pharmacy Order Type" - creates it if necessary
1647     */
1648    public ID getPharmacyOrderType() { 
1649                ID retVal = this.getTypedField(44, 0);
1650                return retVal;
1651    }
1652    
1653    /**
1654     * Returns
1655     * RXE-44: "Pharmacy Order Type" - creates it if necessary
1656     */
1657    public ID getRxe44_PharmacyOrderType() { 
1658                ID retVal = this.getTypedField(44, 0);
1659                return retVal;
1660    }
1661
1662
1663
1664
1665
1666    /** {@inheritDoc} */   
1667    protected Type createNewTypeWithoutReflection(int field) {
1668       switch (field) {
1669          case 0: return new TQ(getMessage());
1670          case 1: return new CE(getMessage());
1671          case 2: return new NM(getMessage());
1672          case 3: return new NM(getMessage());
1673          case 4: return new CE(getMessage());
1674          case 5: return new CE(getMessage());
1675          case 6: return new CE(getMessage());
1676          case 7: return new LA1(getMessage());
1677          case 8: return new ID(getMessage(), new Integer( 167 ));
1678          case 9: return new NM(getMessage());
1679          case 10: return new CE(getMessage());
1680          case 11: return new NM(getMessage());
1681          case 12: return new XCN(getMessage());
1682          case 13: return new XCN(getMessage());
1683          case 14: return new ST(getMessage());
1684          case 15: return new NM(getMessage());
1685          case 16: return new NM(getMessage());
1686          case 17: return new TS(getMessage());
1687          case 18: return new CQ(getMessage());
1688          case 19: return new ID(getMessage(), new Integer( 136 ));
1689          case 20: return new CE(getMessage());
1690          case 21: return new ST(getMessage());
1691          case 22: return new ST(getMessage());
1692          case 23: return new CE(getMessage());
1693          case 24: return new NM(getMessage());
1694          case 25: return new CE(getMessage());
1695          case 26: return new CE(getMessage());
1696          case 27: return new NM(getMessage());
1697          case 28: return new CE(getMessage());
1698          case 29: return new ID(getMessage(), new Integer( 321 ));
1699          case 30: return new CE(getMessage());
1700          case 31: return new TS(getMessage());
1701          case 32: return new NM(getMessage());
1702          case 33: return new CWE(getMessage());
1703          case 34: return new CWE(getMessage());
1704          case 35: return new ID(getMessage(), new Integer( 478 ));
1705          case 36: return new CWE(getMessage());
1706          case 37: return new CWE(getMessage());
1707          case 38: return new NM(getMessage());
1708          case 39: return new CWE(getMessage());
1709          case 40: return new XAD(getMessage());
1710          case 41: return new PL(getMessage());
1711          case 42: return new XAD(getMessage());
1712          case 43: return new ID(getMessage(), new Integer( 480 ));
1713          default: return null;
1714       }
1715   }
1716
1717
1718}
1719