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.v24.segment;
035
036// import ca.uhn.hl7v2.model.v24.group.*;
037import ca.uhn.hl7v2.model.v24.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 Order (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 * </ul>
078 */
079@SuppressWarnings("unused")
080public class ORC extends AbstractSegment {
081
082    /** 
083     * Creates a new ORC segment
084     */
085    public ORC(Group parent, ModelClassFactory factory) {
086       super(parent, factory);
087       init(factory);
088    }
089
090    private void init(ModelClassFactory factory) {
091       try {
092                                              this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(119) }, "Order Control");
093                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Order Number");
094                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
095                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number");
096                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(38) }, "Order Status");
097                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(121) }, "Response Flag");
098                                  this.add(TQ.class, false, 0, 200, new Object[]{ getMessage() }, "Quantity/Timing");
099                                  this.add(EIP.class, false, 1, 200, new Object[]{ getMessage() }, "Parent Order");
100                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of Transaction");
101                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Entered By");
102                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Verified By");
103                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Provider");
104                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Enterer's Location");
105                                  this.add(XTN.class, false, 2, 250, new Object[]{ getMessage() }, "Call Back Phone Number");
106                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Order Effective Date/Time");
107                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Order Control Code Reason");
108                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Entering Organization");
109                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Entering Device");
110                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Action By");
111                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Advanced Beneficiary Notice Code");
112                                  this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Facility Name");
113                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Facility Address");
114                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Facility Phone Number");
115                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Ordering Provider Address");
116                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Order Status Modifier");
117       } catch(HL7Exception e) {
118          log.error("Unexpected error creating ORC - this is probably a bug in the source code generator.", e);
119       }
120    }
121
122
123
124    /**
125     * Returns
126     * ORC-1: "Order Control" - creates it if necessary
127     */
128    public ID getOrderControl() { 
129                ID retVal = this.getTypedField(1, 0);
130                return retVal;
131    }
132    
133    /**
134     * Returns
135     * ORC-1: "Order Control" - creates it if necessary
136     */
137    public ID getOrc1_OrderControl() { 
138                ID retVal = this.getTypedField(1, 0);
139                return retVal;
140    }
141
142
143
144    /**
145     * Returns
146     * ORC-2: "Placer Order Number" - creates it if necessary
147     */
148    public EI getPlacerOrderNumber() { 
149                EI retVal = this.getTypedField(2, 0);
150                return retVal;
151    }
152    
153    /**
154     * Returns
155     * ORC-2: "Placer Order Number" - creates it if necessary
156     */
157    public EI getOrc2_PlacerOrderNumber() { 
158                EI retVal = this.getTypedField(2, 0);
159                return retVal;
160    }
161
162
163
164    /**
165     * Returns
166     * ORC-3: "Filler Order Number" - creates it if necessary
167     */
168    public EI getFillerOrderNumber() { 
169                EI retVal = this.getTypedField(3, 0);
170                return retVal;
171    }
172    
173    /**
174     * Returns
175     * ORC-3: "Filler Order Number" - creates it if necessary
176     */
177    public EI getOrc3_FillerOrderNumber() { 
178                EI retVal = this.getTypedField(3, 0);
179                return retVal;
180    }
181
182
183
184    /**
185     * Returns
186     * ORC-4: "Placer Group Number" - creates it if necessary
187     */
188    public EI getPlacerGroupNumber() { 
189                EI retVal = this.getTypedField(4, 0);
190                return retVal;
191    }
192    
193    /**
194     * Returns
195     * ORC-4: "Placer Group Number" - creates it if necessary
196     */
197    public EI getOrc4_PlacerGroupNumber() { 
198                EI retVal = this.getTypedField(4, 0);
199                return retVal;
200    }
201
202
203
204    /**
205     * Returns
206     * ORC-5: "Order Status" - creates it if necessary
207     */
208    public ID getOrderStatus() { 
209                ID retVal = this.getTypedField(5, 0);
210                return retVal;
211    }
212    
213    /**
214     * Returns
215     * ORC-5: "Order Status" - creates it if necessary
216     */
217    public ID getOrc5_OrderStatus() { 
218                ID retVal = this.getTypedField(5, 0);
219                return retVal;
220    }
221
222
223
224    /**
225     * Returns
226     * ORC-6: "Response Flag" - creates it if necessary
227     */
228    public ID getResponseFlag() { 
229                ID retVal = this.getTypedField(6, 0);
230                return retVal;
231    }
232    
233    /**
234     * Returns
235     * ORC-6: "Response Flag" - creates it if necessary
236     */
237    public ID getOrc6_ResponseFlag() { 
238                ID retVal = this.getTypedField(6, 0);
239                return retVal;
240    }
241
242
243    /**
244     * Returns all repetitions of Quantity/Timing (ORC-7).
245     */
246    public TQ[] getQuantityTiming() {
247        TQ[] retVal = this.getTypedField(7, new TQ[0]);
248        return retVal;
249    }
250
251
252    /**
253     * Returns all repetitions of Quantity/Timing (ORC-7).
254     */
255    public TQ[] getOrc7_QuantityTiming() {
256        TQ[] retVal = this.getTypedField(7, new TQ[0]);
257        return retVal;
258    }
259
260
261    /**
262     * Returns a count of the current number of repetitions of Quantity/Timing (ORC-7).
263     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
264     * it will return zero.
265     */
266    public int getQuantityTimingReps() {
267        return this.getReps(7);
268    }
269
270
271    /**
272     * Returns a specific repetition of
273     * ORC-7: "Quantity/Timing" - creates it if necessary
274     *
275     * @param rep The repetition index (0-indexed)
276     */
277    public TQ getQuantityTiming(int rep) { 
278                TQ retVal = this.getTypedField(7, rep);
279                return retVal;
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 getOrc7_QuantityTiming(int rep) { 
289                TQ retVal = this.getTypedField(7, rep);
290                return retVal;
291    }
292
293    /**
294     * Returns a count of the current number of repetitions of Quantity/Timing (ORC-7).
295     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
296     * it will return zero.
297     */
298    public int getOrc7_QuantityTimingReps() {
299        return this.getReps(7);
300    }
301
302
303    /**
304     * Inserts a repetition of
305     * ORC-7: "Quantity/Timing" at a specific index
306     *
307     * @param rep The repetition index (0-indexed)
308     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
309     */
310    public TQ insertQuantityTiming(int rep) throws HL7Exception { 
311        return (TQ) super.insertRepetition(7, rep);
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 insertOrc7_QuantityTiming(int rep) throws HL7Exception { 
323        return (TQ) super.insertRepetition(7, rep);
324    }
325
326
327    /**
328     * Removes 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 removeQuantityTiming(int rep) throws HL7Exception { 
335        return (TQ) super.removeRepetition(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 removeOrc7_QuantityTiming(int rep) throws HL7Exception { 
347        return (TQ) super.removeRepetition(7, rep);
348    }
349
350
351
352
353    /**
354     * Returns
355     * ORC-8: "Parent Order" - creates it if necessary
356     */
357    public EIP getParentOrder() { 
358                EIP retVal = this.getTypedField(8, 0);
359                return retVal;
360    }
361    
362    /**
363     * Returns
364     * ORC-8: "Parent Order" - creates it if necessary
365     */
366    public EIP getOrc8_ParentOrder() { 
367                EIP retVal = this.getTypedField(8, 0);
368                return retVal;
369    }
370
371
372
373    /**
374     * Returns
375     * ORC-9: "Date/Time of Transaction" - creates it if necessary
376     */
377    public TS getDateTimeOfTransaction() { 
378                TS retVal = this.getTypedField(9, 0);
379                return retVal;
380    }
381    
382    /**
383     * Returns
384     * ORC-9: "Date/Time of Transaction" - creates it if necessary
385     */
386    public TS getOrc9_DateTimeOfTransaction() { 
387                TS retVal = this.getTypedField(9, 0);
388                return retVal;
389    }
390
391
392    /**
393     * Returns all repetitions of Entered By (ORC-10).
394     */
395    public XCN[] getEnteredBy() {
396        XCN[] retVal = this.getTypedField(10, new XCN[0]);
397        return retVal;
398    }
399
400
401    /**
402     * Returns all repetitions of Entered By (ORC-10).
403     */
404    public XCN[] getOrc10_EnteredBy() {
405        XCN[] retVal = this.getTypedField(10, new XCN[0]);
406        return retVal;
407    }
408
409
410    /**
411     * Returns a count of the current number of repetitions of Entered By (ORC-10).
412     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
413     * it will return zero.
414     */
415    public int getEnteredByReps() {
416        return this.getReps(10);
417    }
418
419
420    /**
421     * Returns a specific repetition of
422     * ORC-10: "Entered By" - creates it if necessary
423     *
424     * @param rep The repetition index (0-indexed)
425     */
426    public XCN getEnteredBy(int rep) { 
427                XCN retVal = this.getTypedField(10, rep);
428                return retVal;
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 getOrc10_EnteredBy(int rep) { 
438                XCN retVal = this.getTypedField(10, rep);
439                return retVal;
440    }
441
442    /**
443     * Returns a count of the current number of repetitions of Entered By (ORC-10).
444     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
445     * it will return zero.
446     */
447    public int getOrc10_EnteredByReps() {
448        return this.getReps(10);
449    }
450
451
452    /**
453     * Inserts a repetition of
454     * ORC-10: "Entered By" at a specific index
455     *
456     * @param rep The repetition index (0-indexed)
457     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
458     */
459    public XCN insertEnteredBy(int rep) throws HL7Exception { 
460        return (XCN) super.insertRepetition(10, rep);
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 insertOrc10_EnteredBy(int rep) throws HL7Exception { 
472        return (XCN) super.insertRepetition(10, rep);
473    }
474
475
476    /**
477     * Removes 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 removeEnteredBy(int rep) throws HL7Exception { 
484        return (XCN) super.removeRepetition(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 removeOrc10_EnteredBy(int rep) throws HL7Exception { 
496        return (XCN) super.removeRepetition(10, rep);
497    }
498
499
500
501    /**
502     * Returns all repetitions of Verified By (ORC-11).
503     */
504    public XCN[] getVerifiedBy() {
505        XCN[] retVal = this.getTypedField(11, new XCN[0]);
506        return retVal;
507    }
508
509
510    /**
511     * Returns all repetitions of Verified By (ORC-11).
512     */
513    public XCN[] getOrc11_VerifiedBy() {
514        XCN[] retVal = this.getTypedField(11, new XCN[0]);
515        return retVal;
516    }
517
518
519    /**
520     * Returns a count of the current number of repetitions of Verified By (ORC-11).
521     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
522     * it will return zero.
523     */
524    public int getVerifiedByReps() {
525        return this.getReps(11);
526    }
527
528
529    /**
530     * Returns a specific repetition of
531     * ORC-11: "Verified By" - creates it if necessary
532     *
533     * @param rep The repetition index (0-indexed)
534     */
535    public XCN getVerifiedBy(int rep) { 
536                XCN retVal = this.getTypedField(11, rep);
537                return retVal;
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 getOrc11_VerifiedBy(int rep) { 
547                XCN retVal = this.getTypedField(11, rep);
548                return retVal;
549    }
550
551    /**
552     * Returns a count of the current number of repetitions of Verified By (ORC-11).
553     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
554     * it will return zero.
555     */
556    public int getOrc11_VerifiedByReps() {
557        return this.getReps(11);
558    }
559
560
561    /**
562     * Inserts a repetition of
563     * ORC-11: "Verified By" at a specific index
564     *
565     * @param rep The repetition index (0-indexed)
566     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
567     */
568    public XCN insertVerifiedBy(int rep) throws HL7Exception { 
569        return (XCN) super.insertRepetition(11, rep);
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 insertOrc11_VerifiedBy(int rep) throws HL7Exception { 
581        return (XCN) super.insertRepetition(11, rep);
582    }
583
584
585    /**
586     * Removes 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 removeVerifiedBy(int rep) throws HL7Exception { 
593        return (XCN) super.removeRepetition(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 removeOrc11_VerifiedBy(int rep) throws HL7Exception { 
605        return (XCN) super.removeRepetition(11, rep);
606    }
607
608
609
610    /**
611     * Returns all repetitions of Ordering Provider (ORC-12).
612     */
613    public XCN[] getOrderingProvider() {
614        XCN[] retVal = this.getTypedField(12, new XCN[0]);
615        return retVal;
616    }
617
618
619    /**
620     * Returns all repetitions of Ordering Provider (ORC-12).
621     */
622    public XCN[] getOrc12_OrderingProvider() {
623        XCN[] retVal = this.getTypedField(12, new XCN[0]);
624        return retVal;
625    }
626
627
628    /**
629     * Returns a count of the current number of repetitions of Ordering Provider (ORC-12).
630     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
631     * it will return zero.
632     */
633    public int getOrderingProviderReps() {
634        return this.getReps(12);
635    }
636
637
638    /**
639     * Returns a specific repetition of
640     * ORC-12: "Ordering Provider" - creates it if necessary
641     *
642     * @param rep The repetition index (0-indexed)
643     */
644    public XCN getOrderingProvider(int rep) { 
645                XCN retVal = this.getTypedField(12, rep);
646                return retVal;
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 getOrc12_OrderingProvider(int rep) { 
656                XCN retVal = this.getTypedField(12, rep);
657                return retVal;
658    }
659
660    /**
661     * Returns a count of the current number of repetitions of Ordering Provider (ORC-12).
662     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
663     * it will return zero.
664     */
665    public int getOrc12_OrderingProviderReps() {
666        return this.getReps(12);
667    }
668
669
670    /**
671     * Inserts a repetition of
672     * ORC-12: "Ordering Provider" at a specific index
673     *
674     * @param rep The repetition index (0-indexed)
675     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
676     */
677    public XCN insertOrderingProvider(int rep) throws HL7Exception { 
678        return (XCN) super.insertRepetition(12, rep);
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 insertOrc12_OrderingProvider(int rep) throws HL7Exception { 
690        return (XCN) super.insertRepetition(12, rep);
691    }
692
693
694    /**
695     * Removes 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 removeOrderingProvider(int rep) throws HL7Exception { 
702        return (XCN) super.removeRepetition(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 removeOrc12_OrderingProvider(int rep) throws HL7Exception { 
714        return (XCN) super.removeRepetition(12, rep);
715    }
716
717
718
719
720    /**
721     * Returns
722     * ORC-13: "Enterer's Location" - creates it if necessary
723     */
724    public PL getEntererSLocation() { 
725                PL retVal = this.getTypedField(13, 0);
726                return retVal;
727    }
728    
729    /**
730     * Returns
731     * ORC-13: "Enterer's Location" - creates it if necessary
732     */
733    public PL getOrc13_EntererSLocation() { 
734                PL retVal = this.getTypedField(13, 0);
735                return retVal;
736    }
737
738
739    /**
740     * Returns all repetitions of Call Back Phone Number (ORC-14).
741     */
742    public XTN[] getCallBackPhoneNumber() {
743        XTN[] retVal = this.getTypedField(14, new XTN[0]);
744        return retVal;
745    }
746
747
748    /**
749     * Returns all repetitions of Call Back Phone Number (ORC-14).
750     */
751    public XTN[] getOrc14_CallBackPhoneNumber() {
752        XTN[] retVal = this.getTypedField(14, new XTN[0]);
753        return retVal;
754    }
755
756
757    /**
758     * Returns a count of the current number of repetitions of Call Back Phone Number (ORC-14).
759     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
760     * it will return zero.
761     */
762    public int getCallBackPhoneNumberReps() {
763        return this.getReps(14);
764    }
765
766
767    /**
768     * Returns a specific repetition of
769     * ORC-14: "Call Back Phone Number" - creates it if necessary
770     *
771     * @param rep The repetition index (0-indexed)
772     */
773    public XTN getCallBackPhoneNumber(int rep) { 
774                XTN retVal = this.getTypedField(14, rep);
775                return retVal;
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 getOrc14_CallBackPhoneNumber(int rep) { 
785                XTN retVal = this.getTypedField(14, rep);
786                return retVal;
787    }
788
789    /**
790     * Returns a count of the current number of repetitions of Call Back Phone Number (ORC-14).
791     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
792     * it will return zero.
793     */
794    public int getOrc14_CallBackPhoneNumberReps() {
795        return this.getReps(14);
796    }
797
798
799    /**
800     * Inserts a repetition of
801     * ORC-14: "Call Back Phone Number" at a specific index
802     *
803     * @param rep The repetition index (0-indexed)
804     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
805     */
806    public XTN insertCallBackPhoneNumber(int rep) throws HL7Exception { 
807        return (XTN) super.insertRepetition(14, rep);
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 insertOrc14_CallBackPhoneNumber(int rep) throws HL7Exception { 
819        return (XTN) super.insertRepetition(14, rep);
820    }
821
822
823    /**
824     * Removes 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 removeCallBackPhoneNumber(int rep) throws HL7Exception { 
831        return (XTN) super.removeRepetition(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 removeOrc14_CallBackPhoneNumber(int rep) throws HL7Exception { 
843        return (XTN) super.removeRepetition(14, rep);
844    }
845
846
847
848
849    /**
850     * Returns
851     * ORC-15: "Order Effective Date/Time" - creates it if necessary
852     */
853    public TS getOrderEffectiveDateTime() { 
854                TS retVal = this.getTypedField(15, 0);
855                return retVal;
856    }
857    
858    /**
859     * Returns
860     * ORC-15: "Order Effective Date/Time" - creates it if necessary
861     */
862    public TS getOrc15_OrderEffectiveDateTime() { 
863                TS retVal = this.getTypedField(15, 0);
864                return retVal;
865    }
866
867
868
869    /**
870     * Returns
871     * ORC-16: "Order Control Code Reason" - creates it if necessary
872     */
873    public CE getOrderControlCodeReason() { 
874                CE retVal = this.getTypedField(16, 0);
875                return retVal;
876    }
877    
878    /**
879     * Returns
880     * ORC-16: "Order Control Code Reason" - creates it if necessary
881     */
882    public CE getOrc16_OrderControlCodeReason() { 
883                CE retVal = this.getTypedField(16, 0);
884                return retVal;
885    }
886
887
888
889    /**
890     * Returns
891     * ORC-17: "Entering Organization" - creates it if necessary
892     */
893    public CE getEnteringOrganization() { 
894                CE retVal = this.getTypedField(17, 0);
895                return retVal;
896    }
897    
898    /**
899     * Returns
900     * ORC-17: "Entering Organization" - creates it if necessary
901     */
902    public CE getOrc17_EnteringOrganization() { 
903                CE retVal = this.getTypedField(17, 0);
904                return retVal;
905    }
906
907
908
909    /**
910     * Returns
911     * ORC-18: "Entering Device" - creates it if necessary
912     */
913    public CE getEnteringDevice() { 
914                CE retVal = this.getTypedField(18, 0);
915                return retVal;
916    }
917    
918    /**
919     * Returns
920     * ORC-18: "Entering Device" - creates it if necessary
921     */
922    public CE getOrc18_EnteringDevice() { 
923                CE retVal = this.getTypedField(18, 0);
924                return retVal;
925    }
926
927
928    /**
929     * Returns all repetitions of Action By (ORC-19).
930     */
931    public XCN[] getActionBy() {
932        XCN[] retVal = this.getTypedField(19, new XCN[0]);
933        return retVal;
934    }
935
936
937    /**
938     * Returns all repetitions of Action By (ORC-19).
939     */
940    public XCN[] getOrc19_ActionBy() {
941        XCN[] retVal = this.getTypedField(19, new XCN[0]);
942        return retVal;
943    }
944
945
946    /**
947     * Returns a count of the current number of repetitions of Action By (ORC-19).
948     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
949     * it will return zero.
950     */
951    public int getActionByReps() {
952        return this.getReps(19);
953    }
954
955
956    /**
957     * Returns a specific repetition of
958     * ORC-19: "Action By" - creates it if necessary
959     *
960     * @param rep The repetition index (0-indexed)
961     */
962    public XCN getActionBy(int rep) { 
963                XCN retVal = this.getTypedField(19, rep);
964                return retVal;
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 getOrc19_ActionBy(int rep) { 
974                XCN retVal = this.getTypedField(19, rep);
975                return retVal;
976    }
977
978    /**
979     * Returns a count of the current number of repetitions of Action By (ORC-19).
980     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
981     * it will return zero.
982     */
983    public int getOrc19_ActionByReps() {
984        return this.getReps(19);
985    }
986
987
988    /**
989     * Inserts a repetition of
990     * ORC-19: "Action By" at a specific index
991     *
992     * @param rep The repetition index (0-indexed)
993     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
994     */
995    public XCN insertActionBy(int rep) throws HL7Exception { 
996        return (XCN) super.insertRepetition(19, rep);
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 insertOrc19_ActionBy(int rep) throws HL7Exception { 
1008        return (XCN) super.insertRepetition(19, rep);
1009    }
1010
1011
1012    /**
1013     * Removes 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 removeActionBy(int rep) throws HL7Exception { 
1020        return (XCN) super.removeRepetition(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 removeOrc19_ActionBy(int rep) throws HL7Exception { 
1032        return (XCN) super.removeRepetition(19, rep);
1033    }
1034
1035
1036
1037
1038    /**
1039     * Returns
1040     * ORC-20: "Advanced Beneficiary Notice Code" - creates it if necessary
1041     */
1042    public CE getAdvancedBeneficiaryNoticeCode() { 
1043                CE retVal = this.getTypedField(20, 0);
1044                return retVal;
1045    }
1046    
1047    /**
1048     * Returns
1049     * ORC-20: "Advanced Beneficiary Notice Code" - creates it if necessary
1050     */
1051    public CE getOrc20_AdvancedBeneficiaryNoticeCode() { 
1052                CE retVal = this.getTypedField(20, 0);
1053                return retVal;
1054    }
1055
1056
1057    /**
1058     * Returns all repetitions of Ordering Facility Name (ORC-21).
1059     */
1060    public XON[] getOrderingFacilityName() {
1061        XON[] retVal = this.getTypedField(21, new XON[0]);
1062        return retVal;
1063    }
1064
1065
1066    /**
1067     * Returns all repetitions of Ordering Facility Name (ORC-21).
1068     */
1069    public XON[] getOrc21_OrderingFacilityName() {
1070        XON[] retVal = this.getTypedField(21, new XON[0]);
1071        return retVal;
1072    }
1073
1074
1075    /**
1076     * Returns a count of the current number of repetitions of Ordering Facility Name (ORC-21).
1077     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1078     * it will return zero.
1079     */
1080    public int getOrderingFacilityNameReps() {
1081        return this.getReps(21);
1082    }
1083
1084
1085    /**
1086     * Returns a specific repetition of
1087     * ORC-21: "Ordering Facility Name" - creates it if necessary
1088     *
1089     * @param rep The repetition index (0-indexed)
1090     */
1091    public XON getOrderingFacilityName(int rep) { 
1092                XON retVal = this.getTypedField(21, rep);
1093                return retVal;
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 getOrc21_OrderingFacilityName(int rep) { 
1103                XON retVal = this.getTypedField(21, rep);
1104                return retVal;
1105    }
1106
1107    /**
1108     * Returns a count of the current number of repetitions of Ordering Facility Name (ORC-21).
1109     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1110     * it will return zero.
1111     */
1112    public int getOrc21_OrderingFacilityNameReps() {
1113        return this.getReps(21);
1114    }
1115
1116
1117    /**
1118     * Inserts a repetition of
1119     * ORC-21: "Ordering Facility Name" at a specific index
1120     *
1121     * @param rep The repetition index (0-indexed)
1122     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1123     */
1124    public XON insertOrderingFacilityName(int rep) throws HL7Exception { 
1125        return (XON) super.insertRepetition(21, rep);
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 insertOrc21_OrderingFacilityName(int rep) throws HL7Exception { 
1137        return (XON) super.insertRepetition(21, rep);
1138    }
1139
1140
1141    /**
1142     * Removes 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 removeOrderingFacilityName(int rep) throws HL7Exception { 
1149        return (XON) super.removeRepetition(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 removeOrc21_OrderingFacilityName(int rep) throws HL7Exception { 
1161        return (XON) super.removeRepetition(21, rep);
1162    }
1163
1164
1165
1166    /**
1167     * Returns all repetitions of Ordering Facility Address (ORC-22).
1168     */
1169    public XAD[] getOrderingFacilityAddress() {
1170        XAD[] retVal = this.getTypedField(22, new XAD[0]);
1171        return retVal;
1172    }
1173
1174
1175    /**
1176     * Returns all repetitions of Ordering Facility Address (ORC-22).
1177     */
1178    public XAD[] getOrc22_OrderingFacilityAddress() {
1179        XAD[] retVal = this.getTypedField(22, new XAD[0]);
1180        return retVal;
1181    }
1182
1183
1184    /**
1185     * Returns a count of the current number of repetitions of Ordering Facility Address (ORC-22).
1186     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1187     * it will return zero.
1188     */
1189    public int getOrderingFacilityAddressReps() {
1190        return this.getReps(22);
1191    }
1192
1193
1194    /**
1195     * Returns a specific repetition of
1196     * ORC-22: "Ordering Facility Address" - creates it if necessary
1197     *
1198     * @param rep The repetition index (0-indexed)
1199     */
1200    public XAD getOrderingFacilityAddress(int rep) { 
1201                XAD retVal = this.getTypedField(22, rep);
1202                return retVal;
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 getOrc22_OrderingFacilityAddress(int rep) { 
1212                XAD retVal = this.getTypedField(22, rep);
1213                return retVal;
1214    }
1215
1216    /**
1217     * Returns a count of the current number of repetitions of Ordering Facility Address (ORC-22).
1218     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1219     * it will return zero.
1220     */
1221    public int getOrc22_OrderingFacilityAddressReps() {
1222        return this.getReps(22);
1223    }
1224
1225
1226    /**
1227     * Inserts a repetition of
1228     * ORC-22: "Ordering Facility Address" at a specific index
1229     *
1230     * @param rep The repetition index (0-indexed)
1231     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1232     */
1233    public XAD insertOrderingFacilityAddress(int rep) throws HL7Exception { 
1234        return (XAD) super.insertRepetition(22, rep);
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 insertOrc22_OrderingFacilityAddress(int rep) throws HL7Exception { 
1246        return (XAD) super.insertRepetition(22, rep);
1247    }
1248
1249
1250    /**
1251     * Removes 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 removeOrderingFacilityAddress(int rep) throws HL7Exception { 
1258        return (XAD) super.removeRepetition(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 removeOrc22_OrderingFacilityAddress(int rep) throws HL7Exception { 
1270        return (XAD) super.removeRepetition(22, rep);
1271    }
1272
1273
1274
1275    /**
1276     * Returns all repetitions of Ordering Facility Phone Number (ORC-23).
1277     */
1278    public XTN[] getOrderingFacilityPhoneNumber() {
1279        XTN[] retVal = this.getTypedField(23, new XTN[0]);
1280        return retVal;
1281    }
1282
1283
1284    /**
1285     * Returns all repetitions of Ordering Facility Phone Number (ORC-23).
1286     */
1287    public XTN[] getOrc23_OrderingFacilityPhoneNumber() {
1288        XTN[] retVal = this.getTypedField(23, new XTN[0]);
1289        return retVal;
1290    }
1291
1292
1293    /**
1294     * Returns a count of the current number of repetitions of Ordering Facility Phone Number (ORC-23).
1295     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1296     * it will return zero.
1297     */
1298    public int getOrderingFacilityPhoneNumberReps() {
1299        return this.getReps(23);
1300    }
1301
1302
1303    /**
1304     * Returns a specific repetition of
1305     * ORC-23: "Ordering Facility Phone Number" - creates it if necessary
1306     *
1307     * @param rep The repetition index (0-indexed)
1308     */
1309    public XTN getOrderingFacilityPhoneNumber(int rep) { 
1310                XTN retVal = this.getTypedField(23, rep);
1311                return retVal;
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 getOrc23_OrderingFacilityPhoneNumber(int rep) { 
1321                XTN retVal = this.getTypedField(23, rep);
1322                return retVal;
1323    }
1324
1325    /**
1326     * Returns a count of the current number of repetitions of Ordering Facility Phone Number (ORC-23).
1327     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1328     * it will return zero.
1329     */
1330    public int getOrc23_OrderingFacilityPhoneNumberReps() {
1331        return this.getReps(23);
1332    }
1333
1334
1335    /**
1336     * Inserts a repetition of
1337     * ORC-23: "Ordering Facility Phone Number" at a specific index
1338     *
1339     * @param rep The repetition index (0-indexed)
1340     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1341     */
1342    public XTN insertOrderingFacilityPhoneNumber(int rep) throws HL7Exception { 
1343        return (XTN) super.insertRepetition(23, rep);
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 insertOrc23_OrderingFacilityPhoneNumber(int rep) throws HL7Exception { 
1355        return (XTN) super.insertRepetition(23, rep);
1356    }
1357
1358
1359    /**
1360     * Removes 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 removeOrderingFacilityPhoneNumber(int rep) throws HL7Exception { 
1367        return (XTN) super.removeRepetition(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 removeOrc23_OrderingFacilityPhoneNumber(int rep) throws HL7Exception { 
1379        return (XTN) super.removeRepetition(23, rep);
1380    }
1381
1382
1383
1384    /**
1385     * Returns all repetitions of Ordering Provider Address (ORC-24).
1386     */
1387    public XAD[] getOrderingProviderAddress() {
1388        XAD[] retVal = this.getTypedField(24, new XAD[0]);
1389        return retVal;
1390    }
1391
1392
1393    /**
1394     * Returns all repetitions of Ordering Provider Address (ORC-24).
1395     */
1396    public XAD[] getOrc24_OrderingProviderAddress() {
1397        XAD[] retVal = this.getTypedField(24, new XAD[0]);
1398        return retVal;
1399    }
1400
1401
1402    /**
1403     * Returns a count of the current number of repetitions of Ordering Provider Address (ORC-24).
1404     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1405     * it will return zero.
1406     */
1407    public int getOrderingProviderAddressReps() {
1408        return this.getReps(24);
1409    }
1410
1411
1412    /**
1413     * Returns a specific repetition of
1414     * ORC-24: "Ordering Provider Address" - creates it if necessary
1415     *
1416     * @param rep The repetition index (0-indexed)
1417     */
1418    public XAD getOrderingProviderAddress(int rep) { 
1419                XAD retVal = this.getTypedField(24, rep);
1420                return retVal;
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 getOrc24_OrderingProviderAddress(int rep) { 
1430                XAD retVal = this.getTypedField(24, rep);
1431                return retVal;
1432    }
1433
1434    /**
1435     * Returns a count of the current number of repetitions of Ordering Provider Address (ORC-24).
1436     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1437     * it will return zero.
1438     */
1439    public int getOrc24_OrderingProviderAddressReps() {
1440        return this.getReps(24);
1441    }
1442
1443
1444    /**
1445     * Inserts a repetition of
1446     * ORC-24: "Ordering Provider Address" at a specific index
1447     *
1448     * @param rep The repetition index (0-indexed)
1449     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1450     */
1451    public XAD insertOrderingProviderAddress(int rep) throws HL7Exception { 
1452        return (XAD) super.insertRepetition(24, rep);
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 insertOrc24_OrderingProviderAddress(int rep) throws HL7Exception { 
1464        return (XAD) super.insertRepetition(24, rep);
1465    }
1466
1467
1468    /**
1469     * Removes 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 removeOrderingProviderAddress(int rep) throws HL7Exception { 
1476        return (XAD) super.removeRepetition(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 removeOrc24_OrderingProviderAddress(int rep) throws HL7Exception { 
1488        return (XAD) super.removeRepetition(24, rep);
1489    }
1490
1491
1492
1493
1494    /**
1495     * Returns
1496     * ORC-25: "Order Status Modifier" - creates it if necessary
1497     */
1498    public CWE getOrderStatusModifier() { 
1499                CWE retVal = this.getTypedField(25, 0);
1500                return retVal;
1501    }
1502    
1503    /**
1504     * Returns
1505     * ORC-25: "Order Status Modifier" - creates it if necessary
1506     */
1507    public CWE getOrc25_OrderStatusModifier() { 
1508                CWE retVal = this.getTypedField(25, 0);
1509                return retVal;
1510    }
1511
1512
1513
1514
1515
1516    /** {@inheritDoc} */   
1517    protected Type createNewTypeWithoutReflection(int field) {
1518       switch (field) {
1519          case 0: return new ID(getMessage(), new Integer( 119 ));
1520          case 1: return new EI(getMessage());
1521          case 2: return new EI(getMessage());
1522          case 3: return new EI(getMessage());
1523          case 4: return new ID(getMessage(), new Integer( 38 ));
1524          case 5: return new ID(getMessage(), new Integer( 121 ));
1525          case 6: return new TQ(getMessage());
1526          case 7: return new EIP(getMessage());
1527          case 8: return new TS(getMessage());
1528          case 9: return new XCN(getMessage());
1529          case 10: return new XCN(getMessage());
1530          case 11: return new XCN(getMessage());
1531          case 12: return new PL(getMessage());
1532          case 13: return new XTN(getMessage());
1533          case 14: return new TS(getMessage());
1534          case 15: return new CE(getMessage());
1535          case 16: return new CE(getMessage());
1536          case 17: return new CE(getMessage());
1537          case 18: return new XCN(getMessage());
1538          case 19: return new CE(getMessage());
1539          case 20: return new XON(getMessage());
1540          case 21: return new XAD(getMessage());
1541          case 22: return new XTN(getMessage());
1542          case 23: return new XAD(getMessage());
1543          case 24: return new CWE(getMessage());
1544          default: return null;
1545       }
1546   }
1547
1548
1549}
1550