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.v23.segment;
035
036// import ca.uhn.hl7v2.model.v23.group.*;
037import ca.uhn.hl7v2.model.v23.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047/**
048 *<p>Represents an HL7 SCH message segment (Schedule Activity Information). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>SCH-1: Placer Appointment ID (EI) <b> </b>
052     * <li>SCH-2: Filler Appointment ID (EI) <b>optional </b>
053     * <li>SCH-3: Occurrence Number (NM) <b>optional </b>
054     * <li>SCH-4: Placer Group Number (EI) <b>optional </b>
055     * <li>SCH-5: Schedule ID (CE) <b>optional </b>
056     * <li>SCH-6: Event Reason (CE) <b> </b>
057     * <li>SCH-7: Appointment Reason (CE) <b>optional </b>
058     * <li>SCH-8: Appointment Type (CE) <b>optional </b>
059     * <li>SCH-9: Appointment Duration (NM) <b>optional </b>
060     * <li>SCH-10: Appointment Duration Units (CE) <b>optional </b>
061     * <li>SCH-11: Appointment Timing Quantity (TQ) <b> repeating</b>
062     * <li>SCH-12: Placer Contact Person (XCN) <b>optional </b>
063     * <li>SCH-13: Placer Contact Phone Number (XTN) <b>optional </b>
064     * <li>SCH-14: Placer Contact Address (XAD) <b>optional </b>
065     * <li>SCH-15: Placer Contact Location (PL) <b>optional </b>
066     * <li>SCH-16: Filler Contact Person (XCN) <b> </b>
067     * <li>SCH-17: Filler Contact Phone Number (XTN) <b>optional </b>
068     * <li>SCH-18: Filler Contact Address (XAD) <b>optional </b>
069     * <li>SCH-19: Filler Contact Location (PL) <b>optional </b>
070     * <li>SCH-20: Entered By Person (XCN) <b> </b>
071     * <li>SCH-21: Entered By Phone Number (XTN) <b>optional repeating</b>
072     * <li>SCH-22: Entered By Location (PL) <b>optional </b>
073     * <li>SCH-23: Parent Placer Appointment ID (EI) <b>optional </b>
074     * <li>SCH-24: Parent Filler Appointment ID (EI) <b>optional </b>
075     * <li>SCH-25: Filler Status Code (CE) <b>optional </b>
076 * </ul>
077 */
078@SuppressWarnings("unused")
079public class SCH extends AbstractSegment {
080
081    /** 
082     * Creates a new SCH segment
083     */
084    public SCH(Group parent, ModelClassFactory factory) {
085       super(parent, factory);
086       init(factory);
087    }
088
089    private void init(ModelClassFactory factory) {
090       try {
091                                  this.add(EI.class, true, 1, 22, new Object[]{ getMessage() }, "Placer Appointment ID");
092                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Appointment ID");
093                                  this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Occurrence Number");
094                                  this.add(EI.class, false, 1, 37, new Object[]{ getMessage() }, "Placer Group Number");
095                                  this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Schedule ID");
096                                  this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Event Reason");
097                                  this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Reason");
098                                  this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Type");
099                                  this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Appointment Duration");
100                                  this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Duration Units");
101                                  this.add(TQ.class, true, 0, 200, new Object[]{ getMessage() }, "Appointment Timing Quantity");
102                                  this.add(XCN.class, false, 1, 48, new Object[]{ getMessage() }, "Placer Contact Person");
103                                  this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Placer Contact Phone Number");
104                                  this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Placer Contact Address");
105                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Placer Contact Location");
106                                  this.add(XCN.class, true, 1, 38, new Object[]{ getMessage() }, "Filler Contact Person");
107                                  this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Filler Contact Phone Number");
108                                  this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Filler Contact Address");
109                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Filler Contact Location");
110                                  this.add(XCN.class, true, 1, 48, new Object[]{ getMessage() }, "Entered By Person");
111                                  this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Entered By Phone Number");
112                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Entered By Location");
113                                  this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Placer Appointment ID");
114                                  this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Filler Appointment ID");
115                                  this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Filler Status Code");
116       } catch(HL7Exception e) {
117          log.error("Unexpected error creating SCH - this is probably a bug in the source code generator.", e);
118       }
119    }
120
121
122
123    /**
124     * Returns
125     * SCH-1: "Placer Appointment ID" - creates it if necessary
126     */
127    public EI getPlacerAppointmentID() { 
128                EI retVal = this.getTypedField(1, 0);
129                return retVal;
130    }
131    
132    /**
133     * Returns
134     * SCH-1: "Placer Appointment ID" - creates it if necessary
135     */
136    public EI getSch1_PlacerAppointmentID() { 
137                EI retVal = this.getTypedField(1, 0);
138                return retVal;
139    }
140
141
142
143    /**
144     * Returns
145     * SCH-2: "Filler Appointment ID" - creates it if necessary
146     */
147    public EI getFillerAppointmentID() { 
148                EI retVal = this.getTypedField(2, 0);
149                return retVal;
150    }
151    
152    /**
153     * Returns
154     * SCH-2: "Filler Appointment ID" - creates it if necessary
155     */
156    public EI getSch2_FillerAppointmentID() { 
157                EI retVal = this.getTypedField(2, 0);
158                return retVal;
159    }
160
161
162
163    /**
164     * Returns
165     * SCH-3: "Occurrence Number" - creates it if necessary
166     */
167    public NM getOccurrenceNumber() { 
168                NM retVal = this.getTypedField(3, 0);
169                return retVal;
170    }
171    
172    /**
173     * Returns
174     * SCH-3: "Occurrence Number" - creates it if necessary
175     */
176    public NM getSch3_OccurrenceNumber() { 
177                NM retVal = this.getTypedField(3, 0);
178                return retVal;
179    }
180
181
182
183    /**
184     * Returns
185     * SCH-4: "Placer Group Number" - creates it if necessary
186     */
187    public EI getPlacerGroupNumber() { 
188                EI retVal = this.getTypedField(4, 0);
189                return retVal;
190    }
191    
192    /**
193     * Returns
194     * SCH-4: "Placer Group Number" - creates it if necessary
195     */
196    public EI getSch4_PlacerGroupNumber() { 
197                EI retVal = this.getTypedField(4, 0);
198                return retVal;
199    }
200
201
202
203    /**
204     * Returns
205     * SCH-5: "Schedule ID" - creates it if necessary
206     */
207    public CE getScheduleID() { 
208                CE retVal = this.getTypedField(5, 0);
209                return retVal;
210    }
211    
212    /**
213     * Returns
214     * SCH-5: "Schedule ID" - creates it if necessary
215     */
216    public CE getSch5_ScheduleID() { 
217                CE retVal = this.getTypedField(5, 0);
218                return retVal;
219    }
220
221
222
223    /**
224     * Returns
225     * SCH-6: "Event Reason" - creates it if necessary
226     */
227    public CE getEventReason() { 
228                CE retVal = this.getTypedField(6, 0);
229                return retVal;
230    }
231    
232    /**
233     * Returns
234     * SCH-6: "Event Reason" - creates it if necessary
235     */
236    public CE getSch6_EventReason() { 
237                CE retVal = this.getTypedField(6, 0);
238                return retVal;
239    }
240
241
242
243    /**
244     * Returns
245     * SCH-7: "Appointment Reason" - creates it if necessary
246     */
247    public CE getAppointmentReason() { 
248                CE retVal = this.getTypedField(7, 0);
249                return retVal;
250    }
251    
252    /**
253     * Returns
254     * SCH-7: "Appointment Reason" - creates it if necessary
255     */
256    public CE getSch7_AppointmentReason() { 
257                CE retVal = this.getTypedField(7, 0);
258                return retVal;
259    }
260
261
262
263    /**
264     * Returns
265     * SCH-8: "Appointment Type" - creates it if necessary
266     */
267    public CE getAppointmentType() { 
268                CE retVal = this.getTypedField(8, 0);
269                return retVal;
270    }
271    
272    /**
273     * Returns
274     * SCH-8: "Appointment Type" - creates it if necessary
275     */
276    public CE getSch8_AppointmentType() { 
277                CE retVal = this.getTypedField(8, 0);
278                return retVal;
279    }
280
281
282
283    /**
284     * Returns
285     * SCH-9: "Appointment Duration" - creates it if necessary
286     */
287    public NM getAppointmentDuration() { 
288                NM retVal = this.getTypedField(9, 0);
289                return retVal;
290    }
291    
292    /**
293     * Returns
294     * SCH-9: "Appointment Duration" - creates it if necessary
295     */
296    public NM getSch9_AppointmentDuration() { 
297                NM retVal = this.getTypedField(9, 0);
298                return retVal;
299    }
300
301
302
303    /**
304     * Returns
305     * SCH-10: "Appointment Duration Units" - creates it if necessary
306     */
307    public CE getAppointmentDurationUnits() { 
308                CE retVal = this.getTypedField(10, 0);
309                return retVal;
310    }
311    
312    /**
313     * Returns
314     * SCH-10: "Appointment Duration Units" - creates it if necessary
315     */
316    public CE getSch10_AppointmentDurationUnits() { 
317                CE retVal = this.getTypedField(10, 0);
318                return retVal;
319    }
320
321
322    /**
323     * Returns all repetitions of Appointment Timing Quantity (SCH-11).
324     */
325    public TQ[] getAppointmentTimingQuantity() {
326        TQ[] retVal = this.getTypedField(11, new TQ[0]);
327        return retVal;
328    }
329
330
331    /**
332     * Returns all repetitions of Appointment Timing Quantity (SCH-11).
333     */
334    public TQ[] getSch11_AppointmentTimingQuantity() {
335        TQ[] retVal = this.getTypedField(11, new TQ[0]);
336        return retVal;
337    }
338
339
340    /**
341     * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
342     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
343     * it will return zero.
344     */
345    public int getAppointmentTimingQuantityReps() {
346        return this.getReps(11);
347    }
348
349
350    /**
351     * Returns a specific repetition of
352     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
353     *
354     * @param rep The repetition index (0-indexed)
355     */
356    public TQ getAppointmentTimingQuantity(int rep) { 
357                TQ retVal = this.getTypedField(11, rep);
358                return retVal;
359    }
360
361    /**
362     * Returns a specific repetition of
363     * SCH-11: "Appointment Timing Quantity" - creates it if necessary
364     *
365     * @param rep The repetition index (0-indexed)
366     */
367    public TQ getSch11_AppointmentTimingQuantity(int rep) { 
368                TQ retVal = this.getTypedField(11, rep);
369                return retVal;
370    }
371
372    /**
373     * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
374     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
375     * it will return zero.
376     */
377    public int getSch11_AppointmentTimingQuantityReps() {
378        return this.getReps(11);
379    }
380
381
382    /**
383     * Inserts a repetition of
384     * SCH-11: "Appointment Timing Quantity" at a specific index
385     *
386     * @param rep The repetition index (0-indexed)
387     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
388     */
389    public TQ insertAppointmentTimingQuantity(int rep) throws HL7Exception { 
390        return (TQ) super.insertRepetition(11, rep);
391    }
392
393
394    /**
395     * Inserts a repetition of
396     * SCH-11: "Appointment Timing Quantity" at a specific index
397     *
398     * @param rep The repetition index (0-indexed)
399     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
400     */
401    public TQ insertSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 
402        return (TQ) super.insertRepetition(11, rep);
403    }
404
405
406    /**
407     * Removes a repetition of
408     * SCH-11: "Appointment Timing Quantity" at a specific index
409     *
410     * @param rep The repetition index (0-indexed)
411     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
412     */
413    public TQ removeAppointmentTimingQuantity(int rep) throws HL7Exception { 
414        return (TQ) super.removeRepetition(11, rep);
415    }
416
417
418    /**
419     * Removes a repetition of
420     * SCH-11: "Appointment Timing Quantity" at a specific index
421     *
422     * @param rep The repetition index (0-indexed)
423     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
424     */
425    public TQ removeSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 
426        return (TQ) super.removeRepetition(11, rep);
427    }
428
429
430
431
432    /**
433     * Returns
434     * SCH-12: "Placer Contact Person" - creates it if necessary
435     */
436    public XCN getPlacerContactPerson() { 
437                XCN retVal = this.getTypedField(12, 0);
438                return retVal;
439    }
440    
441    /**
442     * Returns
443     * SCH-12: "Placer Contact Person" - creates it if necessary
444     */
445    public XCN getSch12_PlacerContactPerson() { 
446                XCN retVal = this.getTypedField(12, 0);
447                return retVal;
448    }
449
450
451
452    /**
453     * Returns
454     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
455     */
456    public XTN getPlacerContactPhoneNumber() { 
457                XTN retVal = this.getTypedField(13, 0);
458                return retVal;
459    }
460    
461    /**
462     * Returns
463     * SCH-13: "Placer Contact Phone Number" - creates it if necessary
464     */
465    public XTN getSch13_PlacerContactPhoneNumber() { 
466                XTN retVal = this.getTypedField(13, 0);
467                return retVal;
468    }
469
470
471
472    /**
473     * Returns
474     * SCH-14: "Placer Contact Address" - creates it if necessary
475     */
476    public XAD getPlacerContactAddress() { 
477                XAD retVal = this.getTypedField(14, 0);
478                return retVal;
479    }
480    
481    /**
482     * Returns
483     * SCH-14: "Placer Contact Address" - creates it if necessary
484     */
485    public XAD getSch14_PlacerContactAddress() { 
486                XAD retVal = this.getTypedField(14, 0);
487                return retVal;
488    }
489
490
491
492    /**
493     * Returns
494     * SCH-15: "Placer Contact Location" - creates it if necessary
495     */
496    public PL getPlacerContactLocation() { 
497                PL retVal = this.getTypedField(15, 0);
498                return retVal;
499    }
500    
501    /**
502     * Returns
503     * SCH-15: "Placer Contact Location" - creates it if necessary
504     */
505    public PL getSch15_PlacerContactLocation() { 
506                PL retVal = this.getTypedField(15, 0);
507                return retVal;
508    }
509
510
511
512    /**
513     * Returns
514     * SCH-16: "Filler Contact Person" - creates it if necessary
515     */
516    public XCN getFillerContactPerson() { 
517                XCN retVal = this.getTypedField(16, 0);
518                return retVal;
519    }
520    
521    /**
522     * Returns
523     * SCH-16: "Filler Contact Person" - creates it if necessary
524     */
525    public XCN getSch16_FillerContactPerson() { 
526                XCN retVal = this.getTypedField(16, 0);
527                return retVal;
528    }
529
530
531
532    /**
533     * Returns
534     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
535     */
536    public XTN getFillerContactPhoneNumber() { 
537                XTN retVal = this.getTypedField(17, 0);
538                return retVal;
539    }
540    
541    /**
542     * Returns
543     * SCH-17: "Filler Contact Phone Number" - creates it if necessary
544     */
545    public XTN getSch17_FillerContactPhoneNumber() { 
546                XTN retVal = this.getTypedField(17, 0);
547                return retVal;
548    }
549
550
551
552    /**
553     * Returns
554     * SCH-18: "Filler Contact Address" - creates it if necessary
555     */
556    public XAD getFillerContactAddress() { 
557                XAD retVal = this.getTypedField(18, 0);
558                return retVal;
559    }
560    
561    /**
562     * Returns
563     * SCH-18: "Filler Contact Address" - creates it if necessary
564     */
565    public XAD getSch18_FillerContactAddress() { 
566                XAD retVal = this.getTypedField(18, 0);
567                return retVal;
568    }
569
570
571
572    /**
573     * Returns
574     * SCH-19: "Filler Contact Location" - creates it if necessary
575     */
576    public PL getFillerContactLocation() { 
577                PL retVal = this.getTypedField(19, 0);
578                return retVal;
579    }
580    
581    /**
582     * Returns
583     * SCH-19: "Filler Contact Location" - creates it if necessary
584     */
585    public PL getSch19_FillerContactLocation() { 
586                PL retVal = this.getTypedField(19, 0);
587                return retVal;
588    }
589
590
591
592    /**
593     * Returns
594     * SCH-20: "Entered By Person" - creates it if necessary
595     */
596    public XCN getEnteredByPerson() { 
597                XCN retVal = this.getTypedField(20, 0);
598                return retVal;
599    }
600    
601    /**
602     * Returns
603     * SCH-20: "Entered By Person" - creates it if necessary
604     */
605    public XCN getSch20_EnteredByPerson() { 
606                XCN retVal = this.getTypedField(20, 0);
607                return retVal;
608    }
609
610
611    /**
612     * Returns all repetitions of Entered By Phone Number (SCH-21).
613     */
614    public XTN[] getEnteredByPhoneNumber() {
615        XTN[] retVal = this.getTypedField(21, new XTN[0]);
616        return retVal;
617    }
618
619
620    /**
621     * Returns all repetitions of Entered By Phone Number (SCH-21).
622     */
623    public XTN[] getSch21_EnteredByPhoneNumber() {
624        XTN[] retVal = this.getTypedField(21, new XTN[0]);
625        return retVal;
626    }
627
628
629    /**
630     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
631     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
632     * it will return zero.
633     */
634    public int getEnteredByPhoneNumberReps() {
635        return this.getReps(21);
636    }
637
638
639    /**
640     * Returns a specific repetition of
641     * SCH-21: "Entered By Phone Number" - creates it if necessary
642     *
643     * @param rep The repetition index (0-indexed)
644     */
645    public XTN getEnteredByPhoneNumber(int rep) { 
646                XTN retVal = this.getTypedField(21, rep);
647                return retVal;
648    }
649
650    /**
651     * Returns a specific repetition of
652     * SCH-21: "Entered By Phone Number" - creates it if necessary
653     *
654     * @param rep The repetition index (0-indexed)
655     */
656    public XTN getSch21_EnteredByPhoneNumber(int rep) { 
657                XTN retVal = this.getTypedField(21, rep);
658                return retVal;
659    }
660
661    /**
662     * Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
663     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
664     * it will return zero.
665     */
666    public int getSch21_EnteredByPhoneNumberReps() {
667        return this.getReps(21);
668    }
669
670
671    /**
672     * Inserts a repetition of
673     * SCH-21: "Entered By Phone Number" at a specific index
674     *
675     * @param rep The repetition index (0-indexed)
676     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
677     */
678    public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception { 
679        return (XTN) super.insertRepetition(21, rep);
680    }
681
682
683    /**
684     * Inserts a repetition of
685     * SCH-21: "Entered By Phone Number" at a specific index
686     *
687     * @param rep The repetition index (0-indexed)
688     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
689     */
690    public XTN insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
691        return (XTN) super.insertRepetition(21, rep);
692    }
693
694
695    /**
696     * Removes a repetition of
697     * SCH-21: "Entered By Phone Number" at a specific index
698     *
699     * @param rep The repetition index (0-indexed)
700     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
701     */
702    public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception { 
703        return (XTN) super.removeRepetition(21, rep);
704    }
705
706
707    /**
708     * Removes a repetition of
709     * SCH-21: "Entered By Phone Number" at a specific index
710     *
711     * @param rep The repetition index (0-indexed)
712     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
713     */
714    public XTN removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 
715        return (XTN) super.removeRepetition(21, rep);
716    }
717
718
719
720
721    /**
722     * Returns
723     * SCH-22: "Entered By Location" - creates it if necessary
724     */
725    public PL getEnteredByLocation() { 
726                PL retVal = this.getTypedField(22, 0);
727                return retVal;
728    }
729    
730    /**
731     * Returns
732     * SCH-22: "Entered By Location" - creates it if necessary
733     */
734    public PL getSch22_EnteredByLocation() { 
735                PL retVal = this.getTypedField(22, 0);
736                return retVal;
737    }
738
739
740
741    /**
742     * Returns
743     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
744     */
745    public EI getParentPlacerAppointmentID() { 
746                EI retVal = this.getTypedField(23, 0);
747                return retVal;
748    }
749    
750    /**
751     * Returns
752     * SCH-23: "Parent Placer Appointment ID" - creates it if necessary
753     */
754    public EI getSch23_ParentPlacerAppointmentID() { 
755                EI retVal = this.getTypedField(23, 0);
756                return retVal;
757    }
758
759
760
761    /**
762     * Returns
763     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
764     */
765    public EI getParentFillerAppointmentID() { 
766                EI retVal = this.getTypedField(24, 0);
767                return retVal;
768    }
769    
770    /**
771     * Returns
772     * SCH-24: "Parent Filler Appointment ID" - creates it if necessary
773     */
774    public EI getSch24_ParentFillerAppointmentID() { 
775                EI retVal = this.getTypedField(24, 0);
776                return retVal;
777    }
778
779
780
781    /**
782     * Returns
783     * SCH-25: "Filler Status Code" - creates it if necessary
784     */
785    public CE getFillerStatusCode() { 
786                CE retVal = this.getTypedField(25, 0);
787                return retVal;
788    }
789    
790    /**
791     * Returns
792     * SCH-25: "Filler Status Code" - creates it if necessary
793     */
794    public CE getSch25_FillerStatusCode() { 
795                CE retVal = this.getTypedField(25, 0);
796                return retVal;
797    }
798
799
800
801
802
803    /** {@inheritDoc} */   
804    protected Type createNewTypeWithoutReflection(int field) {
805       switch (field) {
806          case 0: return new EI(getMessage());
807          case 1: return new EI(getMessage());
808          case 2: return new NM(getMessage());
809          case 3: return new EI(getMessage());
810          case 4: return new CE(getMessage());
811          case 5: return new CE(getMessage());
812          case 6: return new CE(getMessage());
813          case 7: return new CE(getMessage());
814          case 8: return new NM(getMessage());
815          case 9: return new CE(getMessage());
816          case 10: return new TQ(getMessage());
817          case 11: return new XCN(getMessage());
818          case 12: return new XTN(getMessage());
819          case 13: return new XAD(getMessage());
820          case 14: return new PL(getMessage());
821          case 15: return new XCN(getMessage());
822          case 16: return new XTN(getMessage());
823          case 17: return new XAD(getMessage());
824          case 18: return new PL(getMessage());
825          case 19: return new XCN(getMessage());
826          case 20: return new XTN(getMessage());
827          case 21: return new PL(getMessage());
828          case 22: return new EI(getMessage());
829          case 23: return new EI(getMessage());
830          case 24: return new CE(getMessage());
831          default: return null;
832       }
833   }
834
835
836}
837