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