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