001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v251.segment;
035
036// import ca.uhn.hl7v2.model.v251.group.*;
037import ca.uhn.hl7v2.model.v251.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047
048/**
049 *<p>Represents an HL7 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 (CE) <b>optional </b>
057     * <li>SCH-6: Event Reason (CE) <b> </b>
058     * <li>SCH-7: Appointment Reason (CE) <b>optional </b>
059     * <li>SCH-8: Appointment Type (CE) <b>optional </b>
060     * <li>SCH-9: Appointment Duration (NM) <b>optional </b>
061     * <li>SCH-10: Appointment Duration Units (CE) <b>optional </b>
062     * <li>SCH-11: Appointment Timing Quantity (TQ) <b>optional repeating</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 (CE) <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, 75, new Object[]{ getMessage() }, "Placer Appointment ID");
095                                  this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Appointment ID");
096                                  this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Occurrence Number");
097                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number");
098                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Schedule ID");
099                                  this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Event Reason");
100                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Reason");
101                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Type");
102                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Appointment Duration");
103                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Duration Units");
104                                  this.add(TQ.class, false, 0, 200, new Object[]{ getMessage() }, "Appointment Timing Quantity");
105                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Placer Contact Person");
106                                  this.add(XTN.class, false, 1, 250, new Object[]{ getMessage() }, "Placer Contact Phone Number");
107                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Placer Contact Address");
108                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Placer Contact Location");
109                                  this.add(XCN.class, true, 0, 250, new Object[]{ getMessage() }, "Filler Contact Person");
110                                  this.add(XTN.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Contact Phone Number");
111                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Filler Contact Address");
112                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Filler Contact Location");
113                                  this.add(XCN.class, true, 0, 250, new Object[]{ getMessage() }, "Entered By Person");
114                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Entered By Phone Number");
115                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Entered By Location");
116                                  this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Placer Appointment ID");
117                                  this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Filler Appointment ID");
118                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Status Code");
119                                  this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number");
120                                  this.add(EI.class, false, 0, 22, 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 CE getScheduleID() { 
213                CE 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 CE getSch5_ScheduleID() { 
222                CE 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 CE getEventReason() { 
233                CE 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 CE getSch6_EventReason() { 
242                CE 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 CE getAppointmentReason() { 
253                CE 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 CE getSch7_AppointmentReason() { 
262                CE 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 CE getAppointmentType() { 
273                CE 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 CE getSch8_AppointmentType() { 
282                CE 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 CE getAppointmentDurationUnits() { 
313                CE 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 CE getSch10_AppointmentDurationUnits() { 
322                CE retVal = this.getTypedField(10, 0);
323                return retVal;
324    }
325
326
327    /**
328     * Returns all repetitions of Appointment Timing Quantity (SCH-11).
329     */
330    public TQ[] getAppointmentTimingQuantity() {
331        TQ[] retVal = this.getTypedField(11, new TQ[0]);
332        return retVal;
333    }
334
335
336    /**
337     * Returns all repetitions of Appointment Timing Quantity (SCH-11).
338     */
339    public TQ[] getSch11_AppointmentTimingQuantity() {
340        TQ[] retVal = this.getTypedField(11, new TQ[0]);
341        return retVal;
342    }
343
344
345    /**
346     * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
347     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
348     * it will return zero.
349     */
350    public int getAppointmentTimingQuantityReps() {
351        return this.getReps(11);
352    }
353
354
355    /**
356     * Returns a specific repetition of
357     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
358     *
359     * @param rep The repetition index (0-indexed)
360     */
361    public TQ getAppointmentTimingQuantity(int rep) { 
362                TQ retVal = this.getTypedField(11, rep);
363                return retVal;
364    }
365
366    /**
367     * Returns a specific repetition of
368     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
369     *
370     * @param rep The repetition index (0-indexed)
371     */
372    public TQ getSch11_AppointmentTimingQuantity(int rep) { 
373                TQ retVal = this.getTypedField(11, rep);
374                return retVal;
375    }
376
377    /**
378     * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
379     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
380     * it will return zero.
381     */
382    public int getSch11_AppointmentTimingQuantityReps() {
383        return this.getReps(11);
384    }
385
386
387    /**
388     * Inserts a repetition of
389     * SCH-11: "Appointment Timing Quantity" at a specific index
390     *
391     * @param rep The repetition index (0-indexed)
392     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
393     */
394    public TQ insertAppointmentTimingQuantity(int rep) throws HL7Exception { 
395        return (TQ) super.insertRepetition(11, rep);
396    }
397
398
399    /**
400     * Inserts a repetition of
401     * SCH-11: "Appointment Timing Quantity" at a specific index
402     *
403     * @param rep The repetition index (0-indexed)
404     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
405     */
406    public TQ insertSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 
407        return (TQ) super.insertRepetition(11, rep);
408    }
409
410
411    /**
412     * Removes a repetition of
413     * SCH-11: "Appointment Timing Quantity" at a specific index
414     *
415     * @param rep The repetition index (0-indexed)
416     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
417     */
418    public TQ removeAppointmentTimingQuantity(int rep) throws HL7Exception { 
419        return (TQ) super.removeRepetition(11, rep);
420    }
421
422
423    /**
424     * Removes a repetition of
425     * SCH-11: "Appointment Timing Quantity" at a specific index
426     *
427     * @param rep The repetition index (0-indexed)
428     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
429     */
430    public TQ removeSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 
431        return (TQ) super.removeRepetition(11, rep);
432    }
433
434
435
436    /**
437     * Returns all repetitions of Placer Contact Person (SCH-12).
438     */
439    public XCN[] getPlacerContactPerson() {
440        XCN[] retVal = this.getTypedField(12, new XCN[0]);
441        return retVal;
442    }
443
444
445    /**
446     * Returns all repetitions of Placer Contact Person (SCH-12).
447     */
448    public XCN[] getSch12_PlacerContactPerson() {
449        XCN[] retVal = this.getTypedField(12, new XCN[0]);
450        return retVal;
451    }
452
453
454    /**
455     * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
456     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
457     * it will return zero.
458     */
459    public int getPlacerContactPersonReps() {
460        return this.getReps(12);
461    }
462
463
464    /**
465     * Returns a specific repetition of
466     * SCH-12: "Placer Contact Person" - creates it if necessary
467     *
468     * @param rep The repetition index (0-indexed)
469     */
470    public XCN getPlacerContactPerson(int rep) { 
471                XCN retVal = this.getTypedField(12, rep);
472                return retVal;
473    }
474
475    /**
476     * Returns a specific repetition of
477     * SCH-12: "Placer Contact Person" - creates it if necessary
478     *
479     * @param rep The repetition index (0-indexed)
480     */
481    public XCN getSch12_PlacerContactPerson(int rep) { 
482                XCN retVal = this.getTypedField(12, rep);
483                return retVal;
484    }
485
486    /**
487     * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
488     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
489     * it will return zero.
490     */
491    public int getSch12_PlacerContactPersonReps() {
492        return this.getReps(12);
493    }
494
495
496    /**
497     * Inserts a repetition of
498     * SCH-12: "Placer Contact Person" at a specific index
499     *
500     * @param rep The repetition index (0-indexed)
501     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
502     */
503    public XCN insertPlacerContactPerson(int rep) throws HL7Exception { 
504        return (XCN) super.insertRepetition(12, rep);
505    }
506
507
508    /**
509     * Inserts a repetition of
510     * SCH-12: "Placer Contact Person" at a specific index
511     *
512     * @param rep The repetition index (0-indexed)
513     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
514     */
515    public XCN insertSch12_PlacerContactPerson(int rep) throws HL7Exception { 
516        return (XCN) super.insertRepetition(12, rep);
517    }
518
519
520    /**
521     * Removes a repetition of
522     * SCH-12: "Placer Contact Person" at a specific index
523     *
524     * @param rep The repetition index (0-indexed)
525     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
526     */
527    public XCN removePlacerContactPerson(int rep) throws HL7Exception { 
528        return (XCN) super.removeRepetition(12, rep);
529    }
530
531
532    /**
533     * Removes a repetition of
534     * SCH-12: "Placer Contact Person" at a specific index
535     *
536     * @param rep The repetition index (0-indexed)
537     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
538     */
539    public XCN removeSch12_PlacerContactPerson(int rep) throws HL7Exception { 
540        return (XCN) super.removeRepetition(12, rep);
541    }
542
543
544
545
546    /**
547     * Returns
548     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
549     */
550    public XTN getPlacerContactPhoneNumber() { 
551                XTN retVal = this.getTypedField(13, 0);
552                return retVal;
553    }
554    
555    /**
556     * Returns
557     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
558     */
559    public XTN getSch13_PlacerContactPhoneNumber() { 
560                XTN retVal = this.getTypedField(13, 0);
561                return retVal;
562    }
563
564
565    /**
566     * Returns all repetitions of Placer Contact Address (SCH-14).
567     */
568    public XAD[] getPlacerContactAddress() {
569        XAD[] retVal = this.getTypedField(14, new XAD[0]);
570        return retVal;
571    }
572
573
574    /**
575     * Returns all repetitions of Placer Contact Address (SCH-14).
576     */
577    public XAD[] getSch14_PlacerContactAddress() {
578        XAD[] retVal = this.getTypedField(14, new XAD[0]);
579        return retVal;
580    }
581
582
583    /**
584     * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
585     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
586     * it will return zero.
587     */
588    public int getPlacerContactAddressReps() {
589        return this.getReps(14);
590    }
591
592
593    /**
594     * Returns a specific repetition of
595     * SCH-14: "Placer Contact Address" - creates it if necessary
596     *
597     * @param rep The repetition index (0-indexed)
598     */
599    public XAD getPlacerContactAddress(int rep) { 
600                XAD retVal = this.getTypedField(14, rep);
601                return retVal;
602    }
603
604    /**
605     * Returns a specific repetition of
606     * SCH-14: "Placer Contact Address" - creates it if necessary
607     *
608     * @param rep The repetition index (0-indexed)
609     */
610    public XAD getSch14_PlacerContactAddress(int rep) { 
611                XAD retVal = this.getTypedField(14, rep);
612                return retVal;
613    }
614
615    /**
616     * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
617     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
618     * it will return zero.
619     */
620    public int getSch14_PlacerContactAddressReps() {
621        return this.getReps(14);
622    }
623
624
625    /**
626     * Inserts a repetition of
627     * SCH-14: "Placer Contact Address" at a specific index
628     *
629     * @param rep The repetition index (0-indexed)
630     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
631     */
632    public XAD insertPlacerContactAddress(int rep) throws HL7Exception { 
633        return (XAD) super.insertRepetition(14, rep);
634    }
635
636
637    /**
638     * Inserts a repetition of
639     * SCH-14: "Placer Contact Address" at a specific index
640     *
641     * @param rep The repetition index (0-indexed)
642     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
643     */
644    public XAD insertSch14_PlacerContactAddress(int rep) throws HL7Exception { 
645        return (XAD) super.insertRepetition(14, rep);
646    }
647
648
649    /**
650     * Removes a repetition of
651     * SCH-14: "Placer Contact Address" at a specific index
652     *
653     * @param rep The repetition index (0-indexed)
654     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
655     */
656    public XAD removePlacerContactAddress(int rep) throws HL7Exception { 
657        return (XAD) super.removeRepetition(14, rep);
658    }
659
660
661    /**
662     * Removes a repetition of
663     * SCH-14: "Placer Contact Address" at a specific index
664     *
665     * @param rep The repetition index (0-indexed)
666     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
667     */
668    public XAD removeSch14_PlacerContactAddress(int rep) throws HL7Exception { 
669        return (XAD) super.removeRepetition(14, rep);
670    }
671
672
673
674
675    /**
676     * Returns
677     * SCH-15: "Placer Contact Location" - creates it if necessary
678     */
679    public PL getPlacerContactLocation() { 
680                PL retVal = this.getTypedField(15, 0);
681                return retVal;
682    }
683    
684    /**
685     * Returns
686     * SCH-15: "Placer Contact Location" - creates it if necessary
687     */
688    public PL getSch15_PlacerContactLocation() { 
689                PL retVal = this.getTypedField(15, 0);
690                return retVal;
691    }
692
693
694    /**
695     * Returns all repetitions of Filler Contact Person (SCH-16).
696     */
697    public XCN[] getFillerContactPerson() {
698        XCN[] retVal = this.getTypedField(16, new XCN[0]);
699        return retVal;
700    }
701
702
703    /**
704     * Returns all repetitions of Filler Contact Person (SCH-16).
705     */
706    public XCN[] getSch16_FillerContactPerson() {
707        XCN[] retVal = this.getTypedField(16, new XCN[0]);
708        return retVal;
709    }
710
711
712    /**
713     * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
714     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
715     * it will return zero.
716     */
717    public int getFillerContactPersonReps() {
718        return this.getReps(16);
719    }
720
721
722    /**
723     * Returns a specific repetition of
724     * SCH-16: "Filler Contact Person" - creates it if necessary
725     *
726     * @param rep The repetition index (0-indexed)
727     */
728    public XCN getFillerContactPerson(int rep) { 
729                XCN retVal = this.getTypedField(16, rep);
730                return retVal;
731    }
732
733    /**
734     * Returns a specific repetition of
735     * SCH-16: "Filler Contact Person" - creates it if necessary
736     *
737     * @param rep The repetition index (0-indexed)
738     */
739    public XCN getSch16_FillerContactPerson(int rep) { 
740                XCN retVal = this.getTypedField(16, rep);
741                return retVal;
742    }
743
744    /**
745     * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
746     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
747     * it will return zero.
748     */
749    public int getSch16_FillerContactPersonReps() {
750        return this.getReps(16);
751    }
752
753
754    /**
755     * Inserts a repetition of
756     * SCH-16: "Filler Contact Person" at a specific index
757     *
758     * @param rep The repetition index (0-indexed)
759     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
760     */
761    public XCN insertFillerContactPerson(int rep) throws HL7Exception { 
762        return (XCN) super.insertRepetition(16, rep);
763    }
764
765
766    /**
767     * Inserts a repetition of
768     * SCH-16: "Filler Contact Person" at a specific index
769     *
770     * @param rep The repetition index (0-indexed)
771     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
772     */
773    public XCN insertSch16_FillerContactPerson(int rep) throws HL7Exception { 
774        return (XCN) super.insertRepetition(16, rep);
775    }
776
777
778    /**
779     * Removes a repetition of
780     * SCH-16: "Filler Contact Person" at a specific index
781     *
782     * @param rep The repetition index (0-indexed)
783     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
784     */
785    public XCN removeFillerContactPerson(int rep) throws HL7Exception { 
786        return (XCN) super.removeRepetition(16, rep);
787    }
788
789
790    /**
791     * Removes a repetition of
792     * SCH-16: "Filler Contact Person" at a specific index
793     *
794     * @param rep The repetition index (0-indexed)
795     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
796     */
797    public XCN removeSch16_FillerContactPerson(int rep) throws HL7Exception { 
798        return (XCN) super.removeRepetition(16, rep);
799    }
800
801
802
803
804    /**
805     * Returns
806     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
807     */
808    public XTN getFillerContactPhoneNumber() { 
809                XTN retVal = this.getTypedField(17, 0);
810                return retVal;
811    }
812    
813    /**
814     * Returns
815     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
816     */
817    public XTN getSch17_FillerContactPhoneNumber() { 
818                XTN retVal = this.getTypedField(17, 0);
819                return retVal;
820    }
821
822
823    /**
824     * Returns all repetitions of Filler Contact Address (SCH-18).
825     */
826    public XAD[] getFillerContactAddress() {
827        XAD[] retVal = this.getTypedField(18, new XAD[0]);
828        return retVal;
829    }
830
831
832    /**
833     * Returns all repetitions of Filler Contact Address (SCH-18).
834     */
835    public XAD[] getSch18_FillerContactAddress() {
836        XAD[] retVal = this.getTypedField(18, new XAD[0]);
837        return retVal;
838    }
839
840
841    /**
842     * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
843     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
844     * it will return zero.
845     */
846    public int getFillerContactAddressReps() {
847        return this.getReps(18);
848    }
849
850
851    /**
852     * Returns a specific repetition of
853     * SCH-18: "Filler Contact Address" - creates it if necessary
854     *
855     * @param rep The repetition index (0-indexed)
856     */
857    public XAD getFillerContactAddress(int rep) { 
858                XAD retVal = this.getTypedField(18, rep);
859                return retVal;
860    }
861
862    /**
863     * Returns a specific repetition of
864     * SCH-18: "Filler Contact Address" - creates it if necessary
865     *
866     * @param rep The repetition index (0-indexed)
867     */
868    public XAD getSch18_FillerContactAddress(int rep) { 
869                XAD retVal = this.getTypedField(18, rep);
870                return retVal;
871    }
872
873    /**
874     * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
875     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
876     * it will return zero.
877     */
878    public int getSch18_FillerContactAddressReps() {
879        return this.getReps(18);
880    }
881
882
883    /**
884     * Inserts a repetition of
885     * SCH-18: "Filler Contact Address" at a specific index
886     *
887     * @param rep The repetition index (0-indexed)
888     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
889     */
890    public XAD insertFillerContactAddress(int rep) throws HL7Exception { 
891        return (XAD) super.insertRepetition(18, rep);
892    }
893
894
895    /**
896     * Inserts a repetition of
897     * SCH-18: "Filler Contact Address" at a specific index
898     *
899     * @param rep The repetition index (0-indexed)
900     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
901     */
902    public XAD insertSch18_FillerContactAddress(int rep) throws HL7Exception { 
903        return (XAD) super.insertRepetition(18, rep);
904    }
905
906
907    /**
908     * Removes a repetition of
909     * SCH-18: "Filler Contact Address" at a specific index
910     *
911     * @param rep The repetition index (0-indexed)
912     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
913     */
914    public XAD removeFillerContactAddress(int rep) throws HL7Exception { 
915        return (XAD) super.removeRepetition(18, rep);
916    }
917
918
919    /**
920     * Removes a repetition of
921     * SCH-18: "Filler Contact Address" at a specific index
922     *
923     * @param rep The repetition index (0-indexed)
924     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
925     */
926    public XAD removeSch18_FillerContactAddress(int rep) throws HL7Exception { 
927        return (XAD) super.removeRepetition(18, rep);
928    }
929
930
931
932
933    /**
934     * Returns
935     * SCH-19: "Filler Contact Location" - creates it if necessary
936     */
937    public PL getFillerContactLocation() { 
938                PL retVal = this.getTypedField(19, 0);
939                return retVal;
940    }
941    
942    /**
943     * Returns
944     * SCH-19: "Filler Contact Location" - creates it if necessary
945     */
946    public PL getSch19_FillerContactLocation() { 
947                PL retVal = this.getTypedField(19, 0);
948                return retVal;
949    }
950
951
952    /**
953     * Returns all repetitions of Entered By Person (SCH-20).
954     */
955    public XCN[] getEnteredByPerson() {
956        XCN[] retVal = this.getTypedField(20, new XCN[0]);
957        return retVal;
958    }
959
960
961    /**
962     * Returns all repetitions of Entered By Person (SCH-20).
963     */
964    public XCN[] getSch20_EnteredByPerson() {
965        XCN[] retVal = this.getTypedField(20, new XCN[0]);
966        return retVal;
967    }
968
969
970    /**
971     * Returns a count of the current number of repetitions of Entered By Person (SCH-20).
972     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
973     * it will return zero.
974     */
975    public int getEnteredByPersonReps() {
976        return this.getReps(20);
977    }
978
979
980    /**
981     * Returns a specific repetition of
982     * SCH-20: "Entered By Person" - creates it if necessary
983     *
984     * @param rep The repetition index (0-indexed)
985     */
986    public XCN getEnteredByPerson(int rep) { 
987                XCN retVal = this.getTypedField(20, rep);
988                return retVal;
989    }
990
991    /**
992     * Returns a specific repetition of
993     * SCH-20: "Entered By Person" - creates it if necessary
994     *
995     * @param rep The repetition index (0-indexed)
996     */
997    public XCN getSch20_EnteredByPerson(int rep) { 
998                XCN retVal = this.getTypedField(20, rep);
999                return retVal;
1000    }
1001
1002    /**
1003     * Returns a count of the current number of repetitions of Entered By Person (SCH-20).
1004     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1005     * it will return zero.
1006     */
1007    public int getSch20_EnteredByPersonReps() {
1008        return this.getReps(20);
1009    }
1010
1011
1012    /**
1013     * Inserts a repetition of
1014     * SCH-20: "Entered By Person" at a specific index
1015     *
1016     * @param rep The repetition index (0-indexed)
1017     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1018     */
1019    public XCN insertEnteredByPerson(int rep) throws HL7Exception { 
1020        return (XCN) super.insertRepetition(20, rep);
1021    }
1022
1023
1024    /**
1025     * Inserts a repetition of
1026     * SCH-20: "Entered By Person" at a specific index
1027     *
1028     * @param rep The repetition index (0-indexed)
1029     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1030     */
1031    public XCN insertSch20_EnteredByPerson(int rep) throws HL7Exception { 
1032        return (XCN) super.insertRepetition(20, rep);
1033    }
1034
1035
1036    /**
1037     * Removes a repetition of
1038     * SCH-20: "Entered By Person" at a specific index
1039     *
1040     * @param rep The repetition index (0-indexed)
1041     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1042     */
1043    public XCN removeEnteredByPerson(int rep) throws HL7Exception { 
1044        return (XCN) super.removeRepetition(20, rep);
1045    }
1046
1047
1048    /**
1049     * Removes a repetition of
1050     * SCH-20: "Entered By Person" at a specific index
1051     *
1052     * @param rep The repetition index (0-indexed)
1053     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1054     */
1055    public XCN removeSch20_EnteredByPerson(int rep) throws HL7Exception { 
1056        return (XCN) super.removeRepetition(20, rep);
1057    }
1058
1059
1060
1061    /**
1062     * Returns all repetitions of Entered By Phone Number (SCH-21).
1063     */
1064    public XTN[] getEnteredByPhoneNumber() {
1065        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1066        return retVal;
1067    }
1068
1069
1070    /**
1071     * Returns all repetitions of Entered By Phone Number (SCH-21).
1072     */
1073    public XTN[] getSch21_EnteredByPhoneNumber() {
1074        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1075        return retVal;
1076    }
1077
1078
1079    /**
1080     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
1081     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1082     * it will return zero.
1083     */
1084    public int getEnteredByPhoneNumberReps() {
1085        return this.getReps(21);
1086    }
1087
1088
1089    /**
1090     * Returns a specific repetition of
1091     * SCH-21: "Entered By Phone Number" - creates it if necessary
1092     *
1093     * @param rep The repetition index (0-indexed)
1094     */
1095    public XTN getEnteredByPhoneNumber(int rep) { 
1096                XTN retVal = this.getTypedField(21, rep);
1097                return retVal;
1098    }
1099
1100    /**
1101     * Returns a specific repetition of
1102     * SCH-21: "Entered By Phone Number" - creates it if necessary
1103     *
1104     * @param rep The repetition index (0-indexed)
1105     */
1106    public XTN getSch21_EnteredByPhoneNumber(int rep) { 
1107                XTN retVal = this.getTypedField(21, rep);
1108                return retVal;
1109    }
1110
1111    /**
1112     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
1113     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1114     * it will return zero.
1115     */
1116    public int getSch21_EnteredByPhoneNumberReps() {
1117        return this.getReps(21);
1118    }
1119
1120
1121    /**
1122     * Inserts a repetition of
1123     * SCH-21: "Entered By Phone Number" at a specific index
1124     *
1125     * @param rep The repetition index (0-indexed)
1126     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1127     */
1128    public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception { 
1129        return (XTN) super.insertRepetition(21, rep);
1130    }
1131
1132
1133    /**
1134     * Inserts a repetition of
1135     * SCH-21: "Entered By Phone Number" at a specific index
1136     *
1137     * @param rep The repetition index (0-indexed)
1138     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1139     */
1140    public XTN insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
1141        return (XTN) super.insertRepetition(21, rep);
1142    }
1143
1144
1145    /**
1146     * Removes a repetition of
1147     * SCH-21: "Entered By Phone Number" at a specific index
1148     *
1149     * @param rep The repetition index (0-indexed)
1150     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1151     */
1152    public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception { 
1153        return (XTN) super.removeRepetition(21, rep);
1154    }
1155
1156
1157    /**
1158     * Removes a repetition of
1159     * SCH-21: "Entered By Phone Number" at a specific index
1160     *
1161     * @param rep The repetition index (0-indexed)
1162     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1163     */
1164    public XTN removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
1165        return (XTN) super.removeRepetition(21, rep);
1166    }
1167
1168
1169
1170
1171    /**
1172     * Returns
1173     * SCH-22: "Entered By Location" - creates it if necessary
1174     */
1175    public PL getEnteredByLocation() { 
1176                PL retVal = this.getTypedField(22, 0);
1177                return retVal;
1178    }
1179    
1180    /**
1181     * Returns
1182     * SCH-22: "Entered By Location" - creates it if necessary
1183     */
1184    public PL getSch22_EnteredByLocation() { 
1185                PL retVal = this.getTypedField(22, 0);
1186                return retVal;
1187    }
1188
1189
1190
1191    /**
1192     * Returns
1193     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
1194     */
1195    public EI getParentPlacerAppointmentID() { 
1196                EI retVal = this.getTypedField(23, 0);
1197                return retVal;
1198    }
1199    
1200    /**
1201     * Returns
1202     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
1203     */
1204    public EI getSch23_ParentPlacerAppointmentID() { 
1205                EI retVal = this.getTypedField(23, 0);
1206                return retVal;
1207    }
1208
1209
1210
1211    /**
1212     * Returns
1213     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
1214     */
1215    public EI getParentFillerAppointmentID() { 
1216                EI retVal = this.getTypedField(24, 0);
1217                return retVal;
1218    }
1219    
1220    /**
1221     * Returns
1222     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
1223     */
1224    public EI getSch24_ParentFillerAppointmentID() { 
1225                EI retVal = this.getTypedField(24, 0);
1226                return retVal;
1227    }
1228
1229
1230
1231    /**
1232     * Returns
1233     * SCH-25: "Filler Status Code" - creates it if necessary
1234     */
1235    public CE getFillerStatusCode() { 
1236                CE retVal = this.getTypedField(25, 0);
1237                return retVal;
1238    }
1239    
1240    /**
1241     * Returns
1242     * SCH-25: "Filler Status Code" - creates it if necessary
1243     */
1244    public CE getSch25_FillerStatusCode() { 
1245                CE retVal = this.getTypedField(25, 0);
1246                return retVal;
1247    }
1248
1249
1250    /**
1251     * Returns all repetitions of Placer Order Number (SCH-26).
1252     */
1253    public EI[] getPlacerOrderNumber() {
1254        EI[] retVal = this.getTypedField(26, new EI[0]);
1255        return retVal;
1256    }
1257
1258
1259    /**
1260     * Returns all repetitions of Placer Order Number (SCH-26).
1261     */
1262    public EI[] getSch26_PlacerOrderNumber() {
1263        EI[] retVal = this.getTypedField(26, new EI[0]);
1264        return retVal;
1265    }
1266
1267
1268    /**
1269     * Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
1270     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1271     * it will return zero.
1272     */
1273    public int getPlacerOrderNumberReps() {
1274        return this.getReps(26);
1275    }
1276
1277
1278    /**
1279     * Returns a specific repetition of
1280     * SCH-26: "Placer Order Number" - creates it if necessary
1281     *
1282     * @param rep The repetition index (0-indexed)
1283     */
1284    public EI getPlacerOrderNumber(int rep) { 
1285                EI retVal = this.getTypedField(26, rep);
1286                return retVal;
1287    }
1288
1289    /**
1290     * Returns a specific repetition of
1291     * SCH-26: "Placer Order Number" - creates it if necessary
1292     *
1293     * @param rep The repetition index (0-indexed)
1294     */
1295    public EI getSch26_PlacerOrderNumber(int rep) { 
1296                EI retVal = this.getTypedField(26, rep);
1297                return retVal;
1298    }
1299
1300    /**
1301     * Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
1302     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1303     * it will return zero.
1304     */
1305    public int getSch26_PlacerOrderNumberReps() {
1306        return this.getReps(26);
1307    }
1308
1309
1310    /**
1311     * Inserts a repetition of
1312     * SCH-26: "Placer Order Number" at a specific index
1313     *
1314     * @param rep The repetition index (0-indexed)
1315     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1316     */
1317    public EI insertPlacerOrderNumber(int rep) throws HL7Exception { 
1318        return (EI) super.insertRepetition(26, rep);
1319    }
1320
1321
1322    /**
1323     * Inserts a repetition of
1324     * SCH-26: "Placer Order Number" at a specific index
1325     *
1326     * @param rep The repetition index (0-indexed)
1327     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1328     */
1329    public EI insertSch26_PlacerOrderNumber(int rep) throws HL7Exception { 
1330        return (EI) super.insertRepetition(26, rep);
1331    }
1332
1333
1334    /**
1335     * Removes a repetition of
1336     * SCH-26: "Placer Order 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 EI removePlacerOrderNumber(int rep) throws HL7Exception { 
1342        return (EI) super.removeRepetition(26, rep);
1343    }
1344
1345
1346    /**
1347     * Removes a repetition of
1348     * SCH-26: "Placer Order 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 EI removeSch26_PlacerOrderNumber(int rep) throws HL7Exception { 
1354        return (EI) super.removeRepetition(26, rep);
1355    }
1356
1357
1358
1359    /**
1360     * Returns all repetitions of Filler Order Number (SCH-27).
1361     */
1362    public EI[] getFillerOrderNumber() {
1363        EI[] retVal = this.getTypedField(27, new EI[0]);
1364        return retVal;
1365    }
1366
1367
1368    /**
1369     * Returns all repetitions of Filler Order Number (SCH-27).
1370     */
1371    public EI[] getSch27_FillerOrderNumber() {
1372        EI[] retVal = this.getTypedField(27, new EI[0]);
1373        return retVal;
1374    }
1375
1376
1377    /**
1378     * Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
1379     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1380     * it will return zero.
1381     */
1382    public int getFillerOrderNumberReps() {
1383        return this.getReps(27);
1384    }
1385
1386
1387    /**
1388     * Returns a specific repetition of
1389     * SCH-27: "Filler Order Number" - creates it if necessary
1390     *
1391     * @param rep The repetition index (0-indexed)
1392     */
1393    public EI getFillerOrderNumber(int rep) { 
1394                EI retVal = this.getTypedField(27, rep);
1395                return retVal;
1396    }
1397
1398    /**
1399     * Returns a specific repetition of
1400     * SCH-27: "Filler Order Number" - creates it if necessary
1401     *
1402     * @param rep The repetition index (0-indexed)
1403     */
1404    public EI getSch27_FillerOrderNumber(int rep) { 
1405                EI retVal = this.getTypedField(27, rep);
1406                return retVal;
1407    }
1408
1409    /**
1410     * Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
1411     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1412     * it will return zero.
1413     */
1414    public int getSch27_FillerOrderNumberReps() {
1415        return this.getReps(27);
1416    }
1417
1418
1419    /**
1420     * Inserts a repetition of
1421     * SCH-27: "Filler Order Number" at a specific index
1422     *
1423     * @param rep The repetition index (0-indexed)
1424     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1425     */
1426    public EI insertFillerOrderNumber(int rep) throws HL7Exception { 
1427        return (EI) super.insertRepetition(27, rep);
1428    }
1429
1430
1431    /**
1432     * Inserts a repetition of
1433     * SCH-27: "Filler Order Number" at a specific index
1434     *
1435     * @param rep The repetition index (0-indexed)
1436     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1437     */
1438    public EI insertSch27_FillerOrderNumber(int rep) throws HL7Exception { 
1439        return (EI) super.insertRepetition(27, rep);
1440    }
1441
1442
1443    /**
1444     * Removes a repetition of
1445     * SCH-27: "Filler Order Number" 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 EI removeFillerOrderNumber(int rep) throws HL7Exception { 
1451        return (EI) super.removeRepetition(27, rep);
1452    }
1453
1454
1455    /**
1456     * Removes a repetition of
1457     * SCH-27: "Filler Order Number" 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 EI removeSch27_FillerOrderNumber(int rep) throws HL7Exception { 
1463        return (EI) super.removeRepetition(27, rep);
1464    }
1465
1466
1467
1468
1469
1470
1471    /** {@inheritDoc} */   
1472    protected Type createNewTypeWithoutReflection(int field) {
1473       switch (field) {
1474          case 0: return new EI(getMessage());
1475          case 1: return new EI(getMessage());
1476          case 2: return new NM(getMessage());
1477          case 3: return new EI(getMessage());
1478          case 4: return new CE(getMessage());
1479          case 5: return new CE(getMessage());
1480          case 6: return new CE(getMessage());
1481          case 7: return new CE(getMessage());
1482          case 8: return new NM(getMessage());
1483          case 9: return new CE(getMessage());
1484          case 10: return new TQ(getMessage());
1485          case 11: return new XCN(getMessage());
1486          case 12: return new XTN(getMessage());
1487          case 13: return new XAD(getMessage());
1488          case 14: return new PL(getMessage());
1489          case 15: return new XCN(getMessage());
1490          case 16: return new XTN(getMessage());
1491          case 17: return new XAD(getMessage());
1492          case 18: return new PL(getMessage());
1493          case 19: return new XCN(getMessage());
1494          case 20: return new XTN(getMessage());
1495          case 21: return new PL(getMessage());
1496          case 22: return new EI(getMessage());
1497          case 23: return new EI(getMessage());
1498          case 24: return new CE(getMessage());
1499          case 25: return new EI(getMessage());
1500          case 26: return new EI(getMessage());
1501          default: return null;
1502       }
1503   }
1504
1505
1506}
1507