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.v27.segment;
035
036// import ca.uhn.hl7v2.model.v27.group.*;
037import ca.uhn.hl7v2.model.v27.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 SCH message segment (Scheduling Activity Information). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>SCH-1: Placer Appointment ID (EI) <b>optional </b>
053     * <li>SCH-2: Filler Appointment ID (EI) <b>optional </b>
054     * <li>SCH-3: Occurrence Number (NM) <b>optional </b>
055     * <li>SCH-4: Placer Group Number (EI) <b>optional </b>
056     * <li>SCH-5: Schedule ID (CWE) <b>optional </b>
057     * <li>SCH-6: Event Reason (CWE) <b> </b>
058     * <li>SCH-7: Appointment Reason (CWE) <b>optional </b>
059     * <li>SCH-8: Appointment Type (CWE) <b>optional </b>
060     * <li>SCH-9: Appointment Duration (NM) <b>optional </b>
061     * <li>SCH-10: Appointment Duration Units (CNE) <b>optional </b>
062     * <li>SCH-11: Appointment Timing Quantity (NULLDT) <b>optional </b>
063     * <li>SCH-12: Placer Contact Person (XCN) <b>optional repeating</b>
064     * <li>SCH-13: Placer Contact Phone Number (XTN) <b>optional </b>
065     * <li>SCH-14: Placer Contact Address (XAD) <b>optional repeating</b>
066     * <li>SCH-15: Placer Contact Location (PL) <b>optional </b>
067     * <li>SCH-16: Filler Contact Person (XCN) <b> repeating</b>
068     * <li>SCH-17: Filler Contact Phone Number (XTN) <b>optional </b>
069     * <li>SCH-18: Filler Contact Address (XAD) <b>optional repeating</b>
070     * <li>SCH-19: Filler Contact Location (PL) <b>optional </b>
071     * <li>SCH-20: Entered By Person (XCN) <b> repeating</b>
072     * <li>SCH-21: Entered By Phone Number (XTN) <b>optional repeating</b>
073     * <li>SCH-22: Entered By Location (PL) <b>optional </b>
074     * <li>SCH-23: Parent Placer Appointment ID (EI) <b>optional </b>
075     * <li>SCH-24: Parent Filler Appointment ID (EI) <b>optional </b>
076     * <li>SCH-25: Filler Status Code (CWE) <b>optional </b>
077     * <li>SCH-26: Placer Order Number (EI) <b>optional repeating</b>
078     * <li>SCH-27: Filler Order Number (EI) <b>optional repeating</b>
079 * </ul>
080 */
081@SuppressWarnings("unused")
082public class SCH extends AbstractSegment {
083
084    /** 
085     * Creates a new SCH segment
086     */
087    public SCH(Group parent, ModelClassFactory factory) {
088       super(parent, factory);
089       init(factory);
090    }
091
092    private void init(ModelClassFactory factory) {
093       try {
094                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Appointment ID");
095                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Filler Appointment ID");
096                                  this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Occurrence Number");
097                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Group Number");
098                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Schedule ID");
099                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Event Reason");
100                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Appointment Reason");
101                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Appointment Type");
102                                  this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Appointment Duration");
103                                  this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Appointment Duration Units");
104                                  this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Appointment Timing Quantity");
105                                  this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Placer Contact Person");
106                                  this.add(XTN.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Contact Phone Number");
107                                  this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Placer Contact Address");
108                                  this.add(PL.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Contact Location");
109                                  this.add(XCN.class, true, 0, 0, new Object[]{ getMessage() }, "Filler Contact Person");
110                                  this.add(XTN.class, false, 1, 0, new Object[]{ getMessage() }, "Filler Contact Phone Number");
111                                  this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Filler Contact Address");
112                                  this.add(PL.class, false, 1, 0, new Object[]{ getMessage() }, "Filler Contact Location");
113                                  this.add(XCN.class, true, 0, 0, new Object[]{ getMessage() }, "Entered By Person");
114                                  this.add(XTN.class, false, 0, 0, new Object[]{ getMessage() }, "Entered By Phone Number");
115                                  this.add(PL.class, false, 1, 0, new Object[]{ getMessage() }, "Entered By Location");
116                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Parent Placer Appointment ID");
117                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Parent Filler Appointment ID");
118                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Filler Status Code");
119                                  this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "Placer Order Number");
120                                  this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "Filler Order Number");
121       } catch(HL7Exception e) {
122          log.error("Unexpected error creating SCH - this is probably a bug in the source code generator.", e);
123       }
124    }
125
126
127
128    /**
129     * Returns
130     * SCH-1: "Placer Appointment ID" - creates it if necessary
131     */
132    public EI getPlacerAppointmentID() { 
133                EI retVal = this.getTypedField(1, 0);
134                return retVal;
135    }
136    
137    /**
138     * Returns
139     * SCH-1: "Placer Appointment ID" - creates it if necessary
140     */
141    public EI getSch1_PlacerAppointmentID() { 
142                EI retVal = this.getTypedField(1, 0);
143                return retVal;
144    }
145
146
147
148    /**
149     * Returns
150     * SCH-2: "Filler Appointment ID" - creates it if necessary
151     */
152    public EI getFillerAppointmentID() { 
153                EI retVal = this.getTypedField(2, 0);
154                return retVal;
155    }
156    
157    /**
158     * Returns
159     * SCH-2: "Filler Appointment ID" - creates it if necessary
160     */
161    public EI getSch2_FillerAppointmentID() { 
162                EI retVal = this.getTypedField(2, 0);
163                return retVal;
164    }
165
166
167
168    /**
169     * Returns
170     * SCH-3: "Occurrence Number" - creates it if necessary
171     */
172    public NM getOccurrenceNumber() { 
173                NM retVal = this.getTypedField(3, 0);
174                return retVal;
175    }
176    
177    /**
178     * Returns
179     * SCH-3: "Occurrence Number" - creates it if necessary
180     */
181    public NM getSch3_OccurrenceNumber() { 
182                NM retVal = this.getTypedField(3, 0);
183                return retVal;
184    }
185
186
187
188    /**
189     * Returns
190     * SCH-4: "Placer Group Number" - creates it if necessary
191     */
192    public EI getPlacerGroupNumber() { 
193                EI retVal = this.getTypedField(4, 0);
194                return retVal;
195    }
196    
197    /**
198     * Returns
199     * SCH-4: "Placer Group Number" - creates it if necessary
200     */
201    public EI getSch4_PlacerGroupNumber() { 
202                EI retVal = this.getTypedField(4, 0);
203                return retVal;
204    }
205
206
207
208    /**
209     * Returns
210     * SCH-5: "Schedule ID" - creates it if necessary
211     */
212    public CWE getScheduleID() { 
213                CWE retVal = this.getTypedField(5, 0);
214                return retVal;
215    }
216    
217    /**
218     * Returns
219     * SCH-5: "Schedule ID" - creates it if necessary
220     */
221    public CWE getSch5_ScheduleID() { 
222                CWE retVal = this.getTypedField(5, 0);
223                return retVal;
224    }
225
226
227
228    /**
229     * Returns
230     * SCH-6: "Event Reason" - creates it if necessary
231     */
232    public CWE getEventReason() { 
233                CWE retVal = this.getTypedField(6, 0);
234                return retVal;
235    }
236    
237    /**
238     * Returns
239     * SCH-6: "Event Reason" - creates it if necessary
240     */
241    public CWE getSch6_EventReason() { 
242                CWE retVal = this.getTypedField(6, 0);
243                return retVal;
244    }
245
246
247
248    /**
249     * Returns
250     * SCH-7: "Appointment Reason" - creates it if necessary
251     */
252    public CWE getAppointmentReason() { 
253                CWE retVal = this.getTypedField(7, 0);
254                return retVal;
255    }
256    
257    /**
258     * Returns
259     * SCH-7: "Appointment Reason" - creates it if necessary
260     */
261    public CWE getSch7_AppointmentReason() { 
262                CWE retVal = this.getTypedField(7, 0);
263                return retVal;
264    }
265
266
267
268    /**
269     * Returns
270     * SCH-8: "Appointment Type" - creates it if necessary
271     */
272    public CWE getAppointmentType() { 
273                CWE retVal = this.getTypedField(8, 0);
274                return retVal;
275    }
276    
277    /**
278     * Returns
279     * SCH-8: "Appointment Type" - creates it if necessary
280     */
281    public CWE getSch8_AppointmentType() { 
282                CWE retVal = this.getTypedField(8, 0);
283                return retVal;
284    }
285
286
287
288    /**
289     * Returns
290     * SCH-9: "Appointment Duration" - creates it if necessary
291     */
292    public NM getAppointmentDuration() { 
293                NM retVal = this.getTypedField(9, 0);
294                return retVal;
295    }
296    
297    /**
298     * Returns
299     * SCH-9: "Appointment Duration" - creates it if necessary
300     */
301    public NM getSch9_AppointmentDuration() { 
302                NM retVal = this.getTypedField(9, 0);
303                return retVal;
304    }
305
306
307
308    /**
309     * Returns
310     * SCH-10: "Appointment Duration Units" - creates it if necessary
311     */
312    public CNE getAppointmentDurationUnits() { 
313                CNE retVal = this.getTypedField(10, 0);
314                return retVal;
315    }
316    
317    /**
318     * Returns
319     * SCH-10: "Appointment Duration Units" - creates it if necessary
320     */
321    public CNE getSch10_AppointmentDurationUnits() { 
322                CNE retVal = this.getTypedField(10, 0);
323                return retVal;
324    }
325
326
327
328    /**
329     * Returns
330     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
331     */
332    public NULLDT getAppointmentTimingQuantity() { 
333                NULLDT retVal = this.getTypedField(11, 0);
334                return retVal;
335    }
336    
337    /**
338     * Returns
339     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
340     */
341    public NULLDT getSch11_AppointmentTimingQuantity() { 
342                NULLDT retVal = this.getTypedField(11, 0);
343                return retVal;
344    }
345
346
347    /**
348     * Returns all repetitions of Placer Contact Person (SCH-12).
349     */
350    public XCN[] getPlacerContactPerson() {
351        XCN[] retVal = this.getTypedField(12, new XCN[0]);
352        return retVal;
353    }
354
355
356    /**
357     * Returns all repetitions of Placer Contact Person (SCH-12).
358     */
359    public XCN[] getSch12_PlacerContactPerson() {
360        XCN[] retVal = this.getTypedField(12, new XCN[0]);
361        return retVal;
362    }
363
364
365    /**
366     * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
367     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
368     * it will return zero.
369     */
370    public int getPlacerContactPersonReps() {
371        return this.getReps(12);
372    }
373
374
375    /**
376     * Returns a specific repetition of
377     * SCH-12: "Placer Contact Person" - creates it if necessary
378     *
379     * @param rep The repetition index (0-indexed)
380     */
381    public XCN getPlacerContactPerson(int rep) { 
382                XCN retVal = this.getTypedField(12, rep);
383                return retVal;
384    }
385
386    /**
387     * Returns a specific repetition of
388     * SCH-12: "Placer Contact Person" - creates it if necessary
389     *
390     * @param rep The repetition index (0-indexed)
391     */
392    public XCN getSch12_PlacerContactPerson(int rep) { 
393                XCN retVal = this.getTypedField(12, rep);
394                return retVal;
395    }
396
397    /**
398     * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
399     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
400     * it will return zero.
401     */
402    public int getSch12_PlacerContactPersonReps() {
403        return this.getReps(12);
404    }
405
406
407    /**
408     * Inserts a repetition of
409     * SCH-12: "Placer Contact Person" at a specific index
410     *
411     * @param rep The repetition index (0-indexed)
412     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
413     */
414    public XCN insertPlacerContactPerson(int rep) throws HL7Exception { 
415        return (XCN) super.insertRepetition(12, rep);
416    }
417
418
419    /**
420     * Inserts a repetition of
421     * SCH-12: "Placer Contact Person" at a specific index
422     *
423     * @param rep The repetition index (0-indexed)
424     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
425     */
426    public XCN insertSch12_PlacerContactPerson(int rep) throws HL7Exception { 
427        return (XCN) super.insertRepetition(12, rep);
428    }
429
430
431    /**
432     * Removes a repetition of
433     * SCH-12: "Placer Contact Person" at a specific index
434     *
435     * @param rep The repetition index (0-indexed)
436     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
437     */
438    public XCN removePlacerContactPerson(int rep) throws HL7Exception { 
439        return (XCN) super.removeRepetition(12, rep);
440    }
441
442
443    /**
444     * Removes a repetition of
445     * SCH-12: "Placer Contact Person" at a specific index
446     *
447     * @param rep The repetition index (0-indexed)
448     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
449     */
450    public XCN removeSch12_PlacerContactPerson(int rep) throws HL7Exception { 
451        return (XCN) super.removeRepetition(12, rep);
452    }
453
454
455
456
457    /**
458     * Returns
459     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
460     */
461    public XTN getPlacerContactPhoneNumber() { 
462                XTN retVal = this.getTypedField(13, 0);
463                return retVal;
464    }
465    
466    /**
467     * Returns
468     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
469     */
470    public XTN getSch13_PlacerContactPhoneNumber() { 
471                XTN retVal = this.getTypedField(13, 0);
472                return retVal;
473    }
474
475
476    /**
477     * Returns all repetitions of Placer Contact Address (SCH-14).
478     */
479    public XAD[] getPlacerContactAddress() {
480        XAD[] retVal = this.getTypedField(14, new XAD[0]);
481        return retVal;
482    }
483
484
485    /**
486     * Returns all repetitions of Placer Contact Address (SCH-14).
487     */
488    public XAD[] getSch14_PlacerContactAddress() {
489        XAD[] retVal = this.getTypedField(14, new XAD[0]);
490        return retVal;
491    }
492
493
494    /**
495     * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
496     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
497     * it will return zero.
498     */
499    public int getPlacerContactAddressReps() {
500        return this.getReps(14);
501    }
502
503
504    /**
505     * Returns a specific repetition of
506     * SCH-14: "Placer Contact Address" - creates it if necessary
507     *
508     * @param rep The repetition index (0-indexed)
509     */
510    public XAD getPlacerContactAddress(int rep) { 
511                XAD retVal = this.getTypedField(14, rep);
512                return retVal;
513    }
514
515    /**
516     * Returns a specific repetition of
517     * SCH-14: "Placer Contact Address" - creates it if necessary
518     *
519     * @param rep The repetition index (0-indexed)
520     */
521    public XAD getSch14_PlacerContactAddress(int rep) { 
522                XAD retVal = this.getTypedField(14, rep);
523                return retVal;
524    }
525
526    /**
527     * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
528     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
529     * it will return zero.
530     */
531    public int getSch14_PlacerContactAddressReps() {
532        return this.getReps(14);
533    }
534
535
536    /**
537     * Inserts a repetition of
538     * SCH-14: "Placer Contact Address" at a specific index
539     *
540     * @param rep The repetition index (0-indexed)
541     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
542     */
543    public XAD insertPlacerContactAddress(int rep) throws HL7Exception { 
544        return (XAD) super.insertRepetition(14, rep);
545    }
546
547
548    /**
549     * Inserts a repetition of
550     * SCH-14: "Placer Contact Address" at a specific index
551     *
552     * @param rep The repetition index (0-indexed)
553     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
554     */
555    public XAD insertSch14_PlacerContactAddress(int rep) throws HL7Exception { 
556        return (XAD) super.insertRepetition(14, rep);
557    }
558
559
560    /**
561     * Removes a repetition of
562     * SCH-14: "Placer Contact Address" 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 XAD removePlacerContactAddress(int rep) throws HL7Exception { 
568        return (XAD) super.removeRepetition(14, rep);
569    }
570
571
572    /**
573     * Removes a repetition of
574     * SCH-14: "Placer Contact Address" 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 XAD removeSch14_PlacerContactAddress(int rep) throws HL7Exception { 
580        return (XAD) super.removeRepetition(14, rep);
581    }
582
583
584
585
586    /**
587     * Returns
588     * SCH-15: "Placer Contact Location" - creates it if necessary
589     */
590    public PL getPlacerContactLocation() { 
591                PL retVal = this.getTypedField(15, 0);
592                return retVal;
593    }
594    
595    /**
596     * Returns
597     * SCH-15: "Placer Contact Location" - creates it if necessary
598     */
599    public PL getSch15_PlacerContactLocation() { 
600                PL retVal = this.getTypedField(15, 0);
601                return retVal;
602    }
603
604
605    /**
606     * Returns all repetitions of Filler Contact Person (SCH-16).
607     */
608    public XCN[] getFillerContactPerson() {
609        XCN[] retVal = this.getTypedField(16, new XCN[0]);
610        return retVal;
611    }
612
613
614    /**
615     * Returns all repetitions of Filler Contact Person (SCH-16).
616     */
617    public XCN[] getSch16_FillerContactPerson() {
618        XCN[] retVal = this.getTypedField(16, new XCN[0]);
619        return retVal;
620    }
621
622
623    /**
624     * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
625     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
626     * it will return zero.
627     */
628    public int getFillerContactPersonReps() {
629        return this.getReps(16);
630    }
631
632
633    /**
634     * Returns a specific repetition of
635     * SCH-16: "Filler Contact Person" - creates it if necessary
636     *
637     * @param rep The repetition index (0-indexed)
638     */
639    public XCN getFillerContactPerson(int rep) { 
640                XCN retVal = this.getTypedField(16, rep);
641                return retVal;
642    }
643
644    /**
645     * Returns a specific repetition of
646     * SCH-16: "Filler Contact Person" - creates it if necessary
647     *
648     * @param rep The repetition index (0-indexed)
649     */
650    public XCN getSch16_FillerContactPerson(int rep) { 
651                XCN retVal = this.getTypedField(16, rep);
652                return retVal;
653    }
654
655    /**
656     * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
657     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
658     * it will return zero.
659     */
660    public int getSch16_FillerContactPersonReps() {
661        return this.getReps(16);
662    }
663
664
665    /**
666     * Inserts a repetition of
667     * SCH-16: "Filler Contact Person" at a specific index
668     *
669     * @param rep The repetition index (0-indexed)
670     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
671     */
672    public XCN insertFillerContactPerson(int rep) throws HL7Exception { 
673        return (XCN) super.insertRepetition(16, rep);
674    }
675
676
677    /**
678     * Inserts a repetition of
679     * SCH-16: "Filler Contact Person" at a specific index
680     *
681     * @param rep The repetition index (0-indexed)
682     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
683     */
684    public XCN insertSch16_FillerContactPerson(int rep) throws HL7Exception { 
685        return (XCN) super.insertRepetition(16, rep);
686    }
687
688
689    /**
690     * Removes a repetition of
691     * SCH-16: "Filler Contact Person" at a specific index
692     *
693     * @param rep The repetition index (0-indexed)
694     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
695     */
696    public XCN removeFillerContactPerson(int rep) throws HL7Exception { 
697        return (XCN) super.removeRepetition(16, rep);
698    }
699
700
701    /**
702     * Removes a repetition of
703     * SCH-16: "Filler Contact Person" at a specific index
704     *
705     * @param rep The repetition index (0-indexed)
706     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
707     */
708    public XCN removeSch16_FillerContactPerson(int rep) throws HL7Exception { 
709        return (XCN) super.removeRepetition(16, rep);
710    }
711
712
713
714
715    /**
716     * Returns
717     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
718     */
719    public XTN getFillerContactPhoneNumber() { 
720                XTN retVal = this.getTypedField(17, 0);
721                return retVal;
722    }
723    
724    /**
725     * Returns
726     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
727     */
728    public XTN getSch17_FillerContactPhoneNumber() { 
729                XTN retVal = this.getTypedField(17, 0);
730                return retVal;
731    }
732
733
734    /**
735     * Returns all repetitions of Filler Contact Address (SCH-18).
736     */
737    public XAD[] getFillerContactAddress() {
738        XAD[] retVal = this.getTypedField(18, new XAD[0]);
739        return retVal;
740    }
741
742
743    /**
744     * Returns all repetitions of Filler Contact Address (SCH-18).
745     */
746    public XAD[] getSch18_FillerContactAddress() {
747        XAD[] retVal = this.getTypedField(18, new XAD[0]);
748        return retVal;
749    }
750
751
752    /**
753     * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
754     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
755     * it will return zero.
756     */
757    public int getFillerContactAddressReps() {
758        return this.getReps(18);
759    }
760
761
762    /**
763     * Returns a specific repetition of
764     * SCH-18: "Filler Contact Address" - creates it if necessary
765     *
766     * @param rep The repetition index (0-indexed)
767     */
768    public XAD getFillerContactAddress(int rep) { 
769                XAD retVal = this.getTypedField(18, rep);
770                return retVal;
771    }
772
773    /**
774     * Returns a specific repetition of
775     * SCH-18: "Filler Contact Address" - creates it if necessary
776     *
777     * @param rep The repetition index (0-indexed)
778     */
779    public XAD getSch18_FillerContactAddress(int rep) { 
780                XAD retVal = this.getTypedField(18, rep);
781                return retVal;
782    }
783
784    /**
785     * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
786     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
787     * it will return zero.
788     */
789    public int getSch18_FillerContactAddressReps() {
790        return this.getReps(18);
791    }
792
793
794    /**
795     * Inserts a repetition of
796     * SCH-18: "Filler Contact Address" at a specific index
797     *
798     * @param rep The repetition index (0-indexed)
799     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
800     */
801    public XAD insertFillerContactAddress(int rep) throws HL7Exception { 
802        return (XAD) super.insertRepetition(18, rep);
803    }
804
805
806    /**
807     * Inserts a repetition of
808     * SCH-18: "Filler Contact Address" at a specific index
809     *
810     * @param rep The repetition index (0-indexed)
811     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
812     */
813    public XAD insertSch18_FillerContactAddress(int rep) throws HL7Exception { 
814        return (XAD) super.insertRepetition(18, rep);
815    }
816
817
818    /**
819     * Removes a repetition of
820     * SCH-18: "Filler Contact Address" at a specific index
821     *
822     * @param rep The repetition index (0-indexed)
823     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
824     */
825    public XAD removeFillerContactAddress(int rep) throws HL7Exception { 
826        return (XAD) super.removeRepetition(18, rep);
827    }
828
829
830    /**
831     * Removes a repetition of
832     * SCH-18: "Filler Contact Address" at a specific index
833     *
834     * @param rep The repetition index (0-indexed)
835     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
836     */
837    public XAD removeSch18_FillerContactAddress(int rep) throws HL7Exception { 
838        return (XAD) super.removeRepetition(18, rep);
839    }
840
841
842
843
844    /**
845     * Returns
846     * SCH-19: "Filler Contact Location" - creates it if necessary
847     */
848    public PL getFillerContactLocation() { 
849                PL retVal = this.getTypedField(19, 0);
850                return retVal;
851    }
852    
853    /**
854     * Returns
855     * SCH-19: "Filler Contact Location" - creates it if necessary
856     */
857    public PL getSch19_FillerContactLocation() { 
858                PL retVal = this.getTypedField(19, 0);
859                return retVal;
860    }
861
862
863    /**
864     * Returns all repetitions of Entered By Person (SCH-20).
865     */
866    public XCN[] getEnteredByPerson() {
867        XCN[] retVal = this.getTypedField(20, new XCN[0]);
868        return retVal;
869    }
870
871
872    /**
873     * Returns all repetitions of Entered By Person (SCH-20).
874     */
875    public XCN[] getSch20_EnteredByPerson() {
876        XCN[] retVal = this.getTypedField(20, new XCN[0]);
877        return retVal;
878    }
879
880
881    /**
882     * Returns a count of the current number of repetitions of Entered By Person (SCH-20).
883     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
884     * it will return zero.
885     */
886    public int getEnteredByPersonReps() {
887        return this.getReps(20);
888    }
889
890
891    /**
892     * Returns a specific repetition of
893     * SCH-20: "Entered By Person" - creates it if necessary
894     *
895     * @param rep The repetition index (0-indexed)
896     */
897    public XCN getEnteredByPerson(int rep) { 
898                XCN retVal = this.getTypedField(20, rep);
899                return retVal;
900    }
901
902    /**
903     * Returns a specific repetition of
904     * SCH-20: "Entered By Person" - creates it if necessary
905     *
906     * @param rep The repetition index (0-indexed)
907     */
908    public XCN getSch20_EnteredByPerson(int rep) { 
909                XCN retVal = this.getTypedField(20, rep);
910                return retVal;
911    }
912
913    /**
914     * Returns a count of the current number of repetitions of Entered By Person (SCH-20).
915     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
916     * it will return zero.
917     */
918    public int getSch20_EnteredByPersonReps() {
919        return this.getReps(20);
920    }
921
922
923    /**
924     * Inserts a repetition of
925     * SCH-20: "Entered By Person" at a specific index
926     *
927     * @param rep The repetition index (0-indexed)
928     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
929     */
930    public XCN insertEnteredByPerson(int rep) throws HL7Exception { 
931        return (XCN) super.insertRepetition(20, rep);
932    }
933
934
935    /**
936     * Inserts a repetition of
937     * SCH-20: "Entered By Person" at a specific index
938     *
939     * @param rep The repetition index (0-indexed)
940     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
941     */
942    public XCN insertSch20_EnteredByPerson(int rep) throws HL7Exception { 
943        return (XCN) super.insertRepetition(20, rep);
944    }
945
946
947    /**
948     * Removes a repetition of
949     * SCH-20: "Entered By Person" at a specific index
950     *
951     * @param rep The repetition index (0-indexed)
952     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
953     */
954    public XCN removeEnteredByPerson(int rep) throws HL7Exception { 
955        return (XCN) super.removeRepetition(20, rep);
956    }
957
958
959    /**
960     * Removes a repetition of
961     * SCH-20: "Entered By Person" at a specific index
962     *
963     * @param rep The repetition index (0-indexed)
964     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
965     */
966    public XCN removeSch20_EnteredByPerson(int rep) throws HL7Exception { 
967        return (XCN) super.removeRepetition(20, rep);
968    }
969
970
971
972    /**
973     * Returns all repetitions of Entered By Phone Number (SCH-21).
974     */
975    public XTN[] getEnteredByPhoneNumber() {
976        XTN[] retVal = this.getTypedField(21, new XTN[0]);
977        return retVal;
978    }
979
980
981    /**
982     * Returns all repetitions of Entered By Phone Number (SCH-21).
983     */
984    public XTN[] getSch21_EnteredByPhoneNumber() {
985        XTN[] retVal = this.getTypedField(21, new XTN[0]);
986        return retVal;
987    }
988
989
990    /**
991     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
992     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
993     * it will return zero.
994     */
995    public int getEnteredByPhoneNumberReps() {
996        return this.getReps(21);
997    }
998
999
1000    /**
1001     * Returns a specific repetition of
1002     * SCH-21: "Entered By Phone Number" - creates it if necessary
1003     *
1004     * @param rep The repetition index (0-indexed)
1005     */
1006    public XTN getEnteredByPhoneNumber(int rep) { 
1007                XTN retVal = this.getTypedField(21, rep);
1008                return retVal;
1009    }
1010
1011    /**
1012     * Returns a specific repetition of
1013     * SCH-21: "Entered By Phone Number" - creates it if necessary
1014     *
1015     * @param rep The repetition index (0-indexed)
1016     */
1017    public XTN getSch21_EnteredByPhoneNumber(int rep) { 
1018                XTN retVal = this.getTypedField(21, rep);
1019                return retVal;
1020    }
1021
1022    /**
1023     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
1024     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1025     * it will return zero.
1026     */
1027    public int getSch21_EnteredByPhoneNumberReps() {
1028        return this.getReps(21);
1029    }
1030
1031
1032    /**
1033     * Inserts a repetition of
1034     * SCH-21: "Entered By Phone Number" at a specific index
1035     *
1036     * @param rep The repetition index (0-indexed)
1037     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1038     */
1039    public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception { 
1040        return (XTN) super.insertRepetition(21, rep);
1041    }
1042
1043
1044    /**
1045     * Inserts a repetition of
1046     * SCH-21: "Entered By Phone Number" at a specific index
1047     *
1048     * @param rep The repetition index (0-indexed)
1049     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1050     */
1051    public XTN insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
1052        return (XTN) super.insertRepetition(21, rep);
1053    }
1054
1055
1056    /**
1057     * Removes a repetition of
1058     * SCH-21: "Entered By Phone Number" at a specific index
1059     *
1060     * @param rep The repetition index (0-indexed)
1061     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1062     */
1063    public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception { 
1064        return (XTN) super.removeRepetition(21, rep);
1065    }
1066
1067
1068    /**
1069     * Removes a repetition of
1070     * SCH-21: "Entered By Phone Number" at a specific index
1071     *
1072     * @param rep The repetition index (0-indexed)
1073     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1074     */
1075    public XTN removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
1076        return (XTN) super.removeRepetition(21, rep);
1077    }
1078
1079
1080
1081
1082    /**
1083     * Returns
1084     * SCH-22: "Entered By Location" - creates it if necessary
1085     */
1086    public PL getEnteredByLocation() { 
1087                PL retVal = this.getTypedField(22, 0);
1088                return retVal;
1089    }
1090    
1091    /**
1092     * Returns
1093     * SCH-22: "Entered By Location" - creates it if necessary
1094     */
1095    public PL getSch22_EnteredByLocation() { 
1096                PL retVal = this.getTypedField(22, 0);
1097                return retVal;
1098    }
1099
1100
1101
1102    /**
1103     * Returns
1104     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
1105     */
1106    public EI getParentPlacerAppointmentID() { 
1107                EI retVal = this.getTypedField(23, 0);
1108                return retVal;
1109    }
1110    
1111    /**
1112     * Returns
1113     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
1114     */
1115    public EI getSch23_ParentPlacerAppointmentID() { 
1116                EI retVal = this.getTypedField(23, 0);
1117                return retVal;
1118    }
1119
1120
1121
1122    /**
1123     * Returns
1124     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
1125     */
1126    public EI getParentFillerAppointmentID() { 
1127                EI retVal = this.getTypedField(24, 0);
1128                return retVal;
1129    }
1130    
1131    /**
1132     * Returns
1133     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
1134     */
1135    public EI getSch24_ParentFillerAppointmentID() { 
1136                EI retVal = this.getTypedField(24, 0);
1137                return retVal;
1138    }
1139
1140
1141
1142    /**
1143     * Returns
1144     * SCH-25: "Filler Status Code" - creates it if necessary
1145     */
1146    public CWE getFillerStatusCode() { 
1147                CWE retVal = this.getTypedField(25, 0);
1148                return retVal;
1149    }
1150    
1151    /**
1152     * Returns
1153     * SCH-25: "Filler Status Code" - creates it if necessary
1154     */
1155    public CWE getSch25_FillerStatusCode() { 
1156                CWE retVal = this.getTypedField(25, 0);
1157                return retVal;
1158    }
1159
1160
1161    /**
1162     * Returns all repetitions of Placer Order Number (SCH-26).
1163     */
1164    public EI[] getPlacerOrderNumber() {
1165        EI[] retVal = this.getTypedField(26, new EI[0]);
1166        return retVal;
1167    }
1168
1169
1170    /**
1171     * Returns all repetitions of Placer Order Number (SCH-26).
1172     */
1173    public EI[] getSch26_PlacerOrderNumber() {
1174        EI[] retVal = this.getTypedField(26, new EI[0]);
1175        return retVal;
1176    }
1177
1178
1179    /**
1180     * Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
1181     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1182     * it will return zero.
1183     */
1184    public int getPlacerOrderNumberReps() {
1185        return this.getReps(26);
1186    }
1187
1188
1189    /**
1190     * Returns a specific repetition of
1191     * SCH-26: "Placer Order Number" - creates it if necessary
1192     *
1193     * @param rep The repetition index (0-indexed)
1194     */
1195    public EI getPlacerOrderNumber(int rep) { 
1196                EI retVal = this.getTypedField(26, rep);
1197                return retVal;
1198    }
1199
1200    /**
1201     * Returns a specific repetition of
1202     * SCH-26: "Placer Order Number" - creates it if necessary
1203     *
1204     * @param rep The repetition index (0-indexed)
1205     */
1206    public EI getSch26_PlacerOrderNumber(int rep) { 
1207                EI retVal = this.getTypedField(26, rep);
1208                return retVal;
1209    }
1210
1211    /**
1212     * Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
1213     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1214     * it will return zero.
1215     */
1216    public int getSch26_PlacerOrderNumberReps() {
1217        return this.getReps(26);
1218    }
1219
1220
1221    /**
1222     * Inserts a repetition of
1223     * SCH-26: "Placer Order Number" at a specific index
1224     *
1225     * @param rep The repetition index (0-indexed)
1226     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1227     */
1228    public EI insertPlacerOrderNumber(int rep) throws HL7Exception { 
1229        return (EI) super.insertRepetition(26, rep);
1230    }
1231
1232
1233    /**
1234     * Inserts a repetition of
1235     * SCH-26: "Placer Order Number" at a specific index
1236     *
1237     * @param rep The repetition index (0-indexed)
1238     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1239     */
1240    public EI insertSch26_PlacerOrderNumber(int rep) throws HL7Exception { 
1241        return (EI) super.insertRepetition(26, rep);
1242    }
1243
1244
1245    /**
1246     * Removes a repetition of
1247     * SCH-26: "Placer Order Number" at a specific index
1248     *
1249     * @param rep The repetition index (0-indexed)
1250     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1251     */
1252    public EI removePlacerOrderNumber(int rep) throws HL7Exception { 
1253        return (EI) super.removeRepetition(26, rep);
1254    }
1255
1256
1257    /**
1258     * Removes a repetition of
1259     * SCH-26: "Placer Order Number" at a specific index
1260     *
1261     * @param rep The repetition index (0-indexed)
1262     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1263     */
1264    public EI removeSch26_PlacerOrderNumber(int rep) throws HL7Exception { 
1265        return (EI) super.removeRepetition(26, rep);
1266    }
1267
1268
1269
1270    /**
1271     * Returns all repetitions of Filler Order Number (SCH-27).
1272     */
1273    public EI[] getFillerOrderNumber() {
1274        EI[] retVal = this.getTypedField(27, new EI[0]);
1275        return retVal;
1276    }
1277
1278
1279    /**
1280     * Returns all repetitions of Filler Order Number (SCH-27).
1281     */
1282    public EI[] getSch27_FillerOrderNumber() {
1283        EI[] retVal = this.getTypedField(27, new EI[0]);
1284        return retVal;
1285    }
1286
1287
1288    /**
1289     * Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
1290     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1291     * it will return zero.
1292     */
1293    public int getFillerOrderNumberReps() {
1294        return this.getReps(27);
1295    }
1296
1297
1298    /**
1299     * Returns a specific repetition of
1300     * SCH-27: "Filler Order Number" - creates it if necessary
1301     *
1302     * @param rep The repetition index (0-indexed)
1303     */
1304    public EI getFillerOrderNumber(int rep) { 
1305                EI retVal = this.getTypedField(27, rep);
1306                return retVal;
1307    }
1308
1309    /**
1310     * Returns a specific repetition of
1311     * SCH-27: "Filler Order Number" - creates it if necessary
1312     *
1313     * @param rep The repetition index (0-indexed)
1314     */
1315    public EI getSch27_FillerOrderNumber(int rep) { 
1316                EI retVal = this.getTypedField(27, rep);
1317                return retVal;
1318    }
1319
1320    /**
1321     * Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
1322     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1323     * it will return zero.
1324     */
1325    public int getSch27_FillerOrderNumberReps() {
1326        return this.getReps(27);
1327    }
1328
1329
1330    /**
1331     * Inserts a repetition of
1332     * SCH-27: "Filler Order Number" at a specific index
1333     *
1334     * @param rep The repetition index (0-indexed)
1335     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1336     */
1337    public EI insertFillerOrderNumber(int rep) throws HL7Exception { 
1338        return (EI) super.insertRepetition(27, rep);
1339    }
1340
1341
1342    /**
1343     * Inserts a repetition of
1344     * SCH-27: "Filler Order Number" at a specific index
1345     *
1346     * @param rep The repetition index (0-indexed)
1347     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1348     */
1349    public EI insertSch27_FillerOrderNumber(int rep) throws HL7Exception { 
1350        return (EI) super.insertRepetition(27, rep);
1351    }
1352
1353
1354    /**
1355     * Removes a repetition of
1356     * SCH-27: "Filler Order Number" at a specific index
1357     *
1358     * @param rep The repetition index (0-indexed)
1359     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1360     */
1361    public EI removeFillerOrderNumber(int rep) throws HL7Exception { 
1362        return (EI) super.removeRepetition(27, rep);
1363    }
1364
1365
1366    /**
1367     * Removes a repetition of
1368     * SCH-27: "Filler Order Number" at a specific index
1369     *
1370     * @param rep The repetition index (0-indexed)
1371     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1372     */
1373    public EI removeSch27_FillerOrderNumber(int rep) throws HL7Exception { 
1374        return (EI) super.removeRepetition(27, rep);
1375    }
1376
1377
1378
1379
1380
1381
1382    /** {@inheritDoc} */   
1383    protected Type createNewTypeWithoutReflection(int field) {
1384       switch (field) {
1385          case 0: return new EI(getMessage());
1386          case 1: return new EI(getMessage());
1387          case 2: return new NM(getMessage());
1388          case 3: return new EI(getMessage());
1389          case 4: return new CWE(getMessage());
1390          case 5: return new CWE(getMessage());
1391          case 6: return new CWE(getMessage());
1392          case 7: return new CWE(getMessage());
1393          case 8: return new NM(getMessage());
1394          case 9: return new CNE(getMessage());
1395          case 10: return new NULLDT(getMessage());
1396          case 11: return new XCN(getMessage());
1397          case 12: return new XTN(getMessage());
1398          case 13: return new XAD(getMessage());
1399          case 14: return new PL(getMessage());
1400          case 15: return new XCN(getMessage());
1401          case 16: return new XTN(getMessage());
1402          case 17: return new XAD(getMessage());
1403          case 18: return new PL(getMessage());
1404          case 19: return new XCN(getMessage());
1405          case 20: return new XTN(getMessage());
1406          case 21: return new PL(getMessage());
1407          case 22: return new EI(getMessage());
1408          case 23: return new EI(getMessage());
1409          case 24: return new CWE(getMessage());
1410          case 25: return new EI(getMessage());
1411          case 26: return new EI(getMessage());
1412          default: return null;
1413       }
1414   }
1415
1416
1417}
1418