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