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