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