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