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.v28.segment;
035
036// import ca.uhn.hl7v2.model.v28.group.*;
037import ca.uhn.hl7v2.model.v28.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 AUT message segment (Authorization Information). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>AUT-1: Authorizing Payor, Plan ID (CWE) <b>optional </b>
053     * <li>AUT-2: Authorizing Payor, Company ID (CWE) <b> </b>
054     * <li>AUT-3: Authorizing Payor, Company Name (ST) <b>optional </b>
055     * <li>AUT-4: Authorization Effective Date (DTM) <b>optional </b>
056     * <li>AUT-5: Authorization Expiration Date (DTM) <b>optional </b>
057     * <li>AUT-6: Authorization Identifier (EI) <b>optional </b>
058     * <li>AUT-7: Reimbursement Limit (CP) <b>optional </b>
059     * <li>AUT-8: Requested Number of Treatments (CQ) <b>optional </b>
060     * <li>AUT-9: Authorized Number of Treatments (CQ) <b>optional </b>
061     * <li>AUT-10: Process Date (DTM) <b>optional </b>
062     * <li>AUT-11: Requested Discipline(s) (CWE) <b>optional repeating</b>
063     * <li>AUT-12: Authorized Discipline(s) (CWE) <b>optional repeating</b>
064     * <li>AUT-13: Authorization Referral Type (CWE) <b> </b>
065     * <li>AUT-14: Approval Status (CWE) <b>optional </b>
066     * <li>AUT-15: Planned Treatment Stop Date (DTM) <b>optional </b>
067     * <li>AUT-16: Clinical Service (CWE) <b>optional </b>
068     * <li>AUT-17: Reason Text (ST) <b>optional </b>
069     * <li>AUT-18: Number of Authorized Treatments/Units (CQ) <b>optional </b>
070     * <li>AUT-19: Number of Used Treatments/Units (CQ) <b>optional </b>
071     * <li>AUT-20: Number of Schedule Treatments/Units (CQ) <b>optional </b>
072     * <li>AUT-21: Encounter Type (CWE) <b>optional </b>
073     * <li>AUT-22: Remaining Benefit Amount (MO) <b>optional </b>
074     * <li>AUT-23: Authorized Provider (XON) <b>optional </b>
075     * <li>AUT-24: Authorized Health Professional (XCN) <b>optional </b>
076     * <li>AUT-25: Source Text (ST) <b>optional </b>
077     * <li>AUT-26: Source Date (DTM) <b>optional </b>
078     * <li>AUT-27: Source Phone (XTN) <b>optional </b>
079     * <li>AUT-28: Comment (ST) <b>optional </b>
080     * <li>AUT-29: Action Code (ID) <b>optional </b>
081 * </ul>
082 */
083@SuppressWarnings("unused")
084public class AUT extends AbstractSegment {
085
086    /** 
087     * Creates a new AUT segment
088     */
089    public AUT(Group parent, ModelClassFactory factory) {
090       super(parent, factory);
091       init(factory);
092    }
093
094    private void init(ModelClassFactory factory) {
095       try {
096                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Plan ID");
097                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company ID");
098                                  this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company Name");
099                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Effective Date");
100                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Expiration Date");
101                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Identifier");
102                                  this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Reimbursement Limit");
103                                  this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Requested Number of Treatments");
104                                  this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Number of Treatments");
105                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Process Date");
106                                  this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Requested Discipline(s)");
107                                  this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Authorized Discipline(s)");
108                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Authorization Referral Type");
109                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Approval Status");
110                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Planned Treatment Stop Date");
111                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Clinical Service");
112                                  this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Reason Text");
113                                  this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Authorized Treatments/Units");
114                                  this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Used Treatments/Units");
115                                  this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Schedule Treatments/Units");
116                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Encounter Type");
117                                  this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Remaining Benefit Amount");
118                                  this.add(XON.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Provider");
119                                  this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Health Professional");
120                                  this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Source Text");
121                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Source Date");
122                                  this.add(XTN.class, false, 1, 0, new Object[]{ getMessage() }, "Source Phone");
123                                  this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Comment");
124                                              this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(206) }, "Action Code");
125       } catch(HL7Exception e) {
126          log.error("Unexpected error creating AUT - this is probably a bug in the source code generator.", e);
127       }
128    }
129
130
131
132    /**
133     * Returns
134     * AUT-1: "Authorizing Payor, Plan ID" - creates it if necessary
135     */
136    public CWE getAuthorizingPayorPlanID() { 
137                CWE retVal = this.getTypedField(1, 0);
138                return retVal;
139    }
140    
141    /**
142     * Returns
143     * AUT-1: "Authorizing Payor, Plan ID" - creates it if necessary
144     */
145    public CWE getAut1_AuthorizingPayorPlanID() { 
146                CWE retVal = this.getTypedField(1, 0);
147                return retVal;
148    }
149
150
151
152    /**
153     * Returns
154     * AUT-2: "Authorizing Payor, Company ID" - creates it if necessary
155     */
156    public CWE getAuthorizingPayorCompanyID() { 
157                CWE retVal = this.getTypedField(2, 0);
158                return retVal;
159    }
160    
161    /**
162     * Returns
163     * AUT-2: "Authorizing Payor, Company ID" - creates it if necessary
164     */
165    public CWE getAut2_AuthorizingPayorCompanyID() { 
166                CWE retVal = this.getTypedField(2, 0);
167                return retVal;
168    }
169
170
171
172    /**
173     * Returns
174     * AUT-3: "Authorizing Payor, Company Name" - creates it if necessary
175     */
176    public ST getAuthorizingPayorCompanyName() { 
177                ST retVal = this.getTypedField(3, 0);
178                return retVal;
179    }
180    
181    /**
182     * Returns
183     * AUT-3: "Authorizing Payor, Company Name" - creates it if necessary
184     */
185    public ST getAut3_AuthorizingPayorCompanyName() { 
186                ST retVal = this.getTypedField(3, 0);
187                return retVal;
188    }
189
190
191
192    /**
193     * Returns
194     * AUT-4: "Authorization Effective Date" - creates it if necessary
195     */
196    public DTM getAuthorizationEffectiveDate() { 
197                DTM retVal = this.getTypedField(4, 0);
198                return retVal;
199    }
200    
201    /**
202     * Returns
203     * AUT-4: "Authorization Effective Date" - creates it if necessary
204     */
205    public DTM getAut4_AuthorizationEffectiveDate() { 
206                DTM retVal = this.getTypedField(4, 0);
207                return retVal;
208    }
209
210
211
212    /**
213     * Returns
214     * AUT-5: "Authorization Expiration Date" - creates it if necessary
215     */
216    public DTM getAuthorizationExpirationDate() { 
217                DTM retVal = this.getTypedField(5, 0);
218                return retVal;
219    }
220    
221    /**
222     * Returns
223     * AUT-5: "Authorization Expiration Date" - creates it if necessary
224     */
225    public DTM getAut5_AuthorizationExpirationDate() { 
226                DTM retVal = this.getTypedField(5, 0);
227                return retVal;
228    }
229
230
231
232    /**
233     * Returns
234     * AUT-6: "Authorization Identifier" - creates it if necessary
235     */
236    public EI getAuthorizationIdentifier() { 
237                EI retVal = this.getTypedField(6, 0);
238                return retVal;
239    }
240    
241    /**
242     * Returns
243     * AUT-6: "Authorization Identifier" - creates it if necessary
244     */
245    public EI getAut6_AuthorizationIdentifier() { 
246                EI retVal = this.getTypedField(6, 0);
247                return retVal;
248    }
249
250
251
252    /**
253     * Returns
254     * AUT-7: "Reimbursement Limit" - creates it if necessary
255     */
256    public CP getReimbursementLimit() { 
257                CP retVal = this.getTypedField(7, 0);
258                return retVal;
259    }
260    
261    /**
262     * Returns
263     * AUT-7: "Reimbursement Limit" - creates it if necessary
264     */
265    public CP getAut7_ReimbursementLimit() { 
266                CP retVal = this.getTypedField(7, 0);
267                return retVal;
268    }
269
270
271
272    /**
273     * Returns
274     * AUT-8: "Requested Number of Treatments" - creates it if necessary
275     */
276    public CQ getRequestedNumberOfTreatments() { 
277                CQ retVal = this.getTypedField(8, 0);
278                return retVal;
279    }
280    
281    /**
282     * Returns
283     * AUT-8: "Requested Number of Treatments" - creates it if necessary
284     */
285    public CQ getAut8_RequestedNumberOfTreatments() { 
286                CQ retVal = this.getTypedField(8, 0);
287                return retVal;
288    }
289
290
291
292    /**
293     * Returns
294     * AUT-9: "Authorized Number of Treatments" - creates it if necessary
295     */
296    public CQ getAuthorizedNumberOfTreatments() { 
297                CQ retVal = this.getTypedField(9, 0);
298                return retVal;
299    }
300    
301    /**
302     * Returns
303     * AUT-9: "Authorized Number of Treatments" - creates it if necessary
304     */
305    public CQ getAut9_AuthorizedNumberOfTreatments() { 
306                CQ retVal = this.getTypedField(9, 0);
307                return retVal;
308    }
309
310
311
312    /**
313     * Returns
314     * AUT-10: "Process Date" - creates it if necessary
315     */
316    public DTM getProcessDate() { 
317                DTM retVal = this.getTypedField(10, 0);
318                return retVal;
319    }
320    
321    /**
322     * Returns
323     * AUT-10: "Process Date" - creates it if necessary
324     */
325    public DTM getAut10_ProcessDate() { 
326                DTM retVal = this.getTypedField(10, 0);
327                return retVal;
328    }
329
330
331    /**
332     * Returns all repetitions of Requested Discipline(s) (AUT-11).
333     */
334    public CWE[] getRequestedDisciplineS() {
335        CWE[] retVal = this.getTypedField(11, new CWE[0]);
336        return retVal;
337    }
338
339
340    /**
341     * Returns all repetitions of Requested Discipline(s) (AUT-11).
342     */
343    public CWE[] getAut11_RequestedDisciplineS() {
344        CWE[] retVal = this.getTypedField(11, new CWE[0]);
345        return retVal;
346    }
347
348
349    /**
350     * Returns a count of the current number of repetitions of Requested Discipline(s) (AUT-11).
351     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
352     * it will return zero.
353     */
354    public int getRequestedDisciplineSReps() {
355        return this.getReps(11);
356    }
357
358
359    /**
360     * Returns a specific repetition of
361     * AUT-11: "Requested Discipline(s)" - creates it if necessary
362     *
363     * @param rep The repetition index (0-indexed)
364     */
365    public CWE getRequestedDisciplineS(int rep) { 
366                CWE retVal = this.getTypedField(11, rep);
367                return retVal;
368    }
369
370    /**
371     * Returns a specific repetition of
372     * AUT-11: "Requested Discipline(s)" - creates it if necessary
373     *
374     * @param rep The repetition index (0-indexed)
375     */
376    public CWE getAut11_RequestedDisciplineS(int rep) { 
377                CWE retVal = this.getTypedField(11, rep);
378                return retVal;
379    }
380
381    /**
382     * Returns a count of the current number of repetitions of Requested Discipline(s) (AUT-11).
383     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
384     * it will return zero.
385     */
386    public int getAut11_RequestedDisciplineSReps() {
387        return this.getReps(11);
388    }
389
390
391    /**
392     * Inserts a repetition of
393     * AUT-11: "Requested Discipline(s)" at a specific index
394     *
395     * @param rep The repetition index (0-indexed)
396     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
397     */
398    public CWE insertRequestedDisciplineS(int rep) throws HL7Exception { 
399        return (CWE) super.insertRepetition(11, rep);
400    }
401
402
403    /**
404     * Inserts a repetition of
405     * AUT-11: "Requested Discipline(s)" at a specific index
406     *
407     * @param rep The repetition index (0-indexed)
408     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
409     */
410    public CWE insertAut11_RequestedDisciplineS(int rep) throws HL7Exception { 
411        return (CWE) super.insertRepetition(11, rep);
412    }
413
414
415    /**
416     * Removes a repetition of
417     * AUT-11: "Requested Discipline(s)" at a specific index
418     *
419     * @param rep The repetition index (0-indexed)
420     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
421     */
422    public CWE removeRequestedDisciplineS(int rep) throws HL7Exception { 
423        return (CWE) super.removeRepetition(11, rep);
424    }
425
426
427    /**
428     * Removes a repetition of
429     * AUT-11: "Requested Discipline(s)" at a specific index
430     *
431     * @param rep The repetition index (0-indexed)
432     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
433     */
434    public CWE removeAut11_RequestedDisciplineS(int rep) throws HL7Exception { 
435        return (CWE) super.removeRepetition(11, rep);
436    }
437
438
439
440    /**
441     * Returns all repetitions of Authorized Discipline(s) (AUT-12).
442     */
443    public CWE[] getAuthorizedDisciplineS() {
444        CWE[] retVal = this.getTypedField(12, new CWE[0]);
445        return retVal;
446    }
447
448
449    /**
450     * Returns all repetitions of Authorized Discipline(s) (AUT-12).
451     */
452    public CWE[] getAut12_AuthorizedDisciplineS() {
453        CWE[] retVal = this.getTypedField(12, new CWE[0]);
454        return retVal;
455    }
456
457
458    /**
459     * Returns a count of the current number of repetitions of Authorized Discipline(s) (AUT-12).
460     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
461     * it will return zero.
462     */
463    public int getAuthorizedDisciplineSReps() {
464        return this.getReps(12);
465    }
466
467
468    /**
469     * Returns a specific repetition of
470     * AUT-12: "Authorized Discipline(s)" - creates it if necessary
471     *
472     * @param rep The repetition index (0-indexed)
473     */
474    public CWE getAuthorizedDisciplineS(int rep) { 
475                CWE retVal = this.getTypedField(12, rep);
476                return retVal;
477    }
478
479    /**
480     * Returns a specific repetition of
481     * AUT-12: "Authorized Discipline(s)" - creates it if necessary
482     *
483     * @param rep The repetition index (0-indexed)
484     */
485    public CWE getAut12_AuthorizedDisciplineS(int rep) { 
486                CWE retVal = this.getTypedField(12, rep);
487                return retVal;
488    }
489
490    /**
491     * Returns a count of the current number of repetitions of Authorized Discipline(s) (AUT-12).
492     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
493     * it will return zero.
494     */
495    public int getAut12_AuthorizedDisciplineSReps() {
496        return this.getReps(12);
497    }
498
499
500    /**
501     * Inserts a repetition of
502     * AUT-12: "Authorized Discipline(s)" at a specific index
503     *
504     * @param rep The repetition index (0-indexed)
505     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
506     */
507    public CWE insertAuthorizedDisciplineS(int rep) throws HL7Exception { 
508        return (CWE) super.insertRepetition(12, rep);
509    }
510
511
512    /**
513     * Inserts a repetition of
514     * AUT-12: "Authorized Discipline(s)" at a specific index
515     *
516     * @param rep The repetition index (0-indexed)
517     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
518     */
519    public CWE insertAut12_AuthorizedDisciplineS(int rep) throws HL7Exception { 
520        return (CWE) super.insertRepetition(12, rep);
521    }
522
523
524    /**
525     * Removes a repetition of
526     * AUT-12: "Authorized Discipline(s)" at a specific index
527     *
528     * @param rep The repetition index (0-indexed)
529     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
530     */
531    public CWE removeAuthorizedDisciplineS(int rep) throws HL7Exception { 
532        return (CWE) super.removeRepetition(12, rep);
533    }
534
535
536    /**
537     * Removes a repetition of
538     * AUT-12: "Authorized Discipline(s)" 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 CWE removeAut12_AuthorizedDisciplineS(int rep) throws HL7Exception { 
544        return (CWE) super.removeRepetition(12, rep);
545    }
546
547
548
549
550    /**
551     * Returns
552     * AUT-13: "Authorization Referral Type" - creates it if necessary
553     */
554    public CWE getAuthorizationReferralType() { 
555                CWE retVal = this.getTypedField(13, 0);
556                return retVal;
557    }
558    
559    /**
560     * Returns
561     * AUT-13: "Authorization Referral Type" - creates it if necessary
562     */
563    public CWE getAut13_AuthorizationReferralType() { 
564                CWE retVal = this.getTypedField(13, 0);
565                return retVal;
566    }
567
568
569
570    /**
571     * Returns
572     * AUT-14: "Approval Status" - creates it if necessary
573     */
574    public CWE getApprovalStatus() { 
575                CWE retVal = this.getTypedField(14, 0);
576                return retVal;
577    }
578    
579    /**
580     * Returns
581     * AUT-14: "Approval Status" - creates it if necessary
582     */
583    public CWE getAut14_ApprovalStatus() { 
584                CWE retVal = this.getTypedField(14, 0);
585                return retVal;
586    }
587
588
589
590    /**
591     * Returns
592     * AUT-15: "Planned Treatment Stop Date" - creates it if necessary
593     */
594    public DTM getPlannedTreatmentStopDate() { 
595                DTM retVal = this.getTypedField(15, 0);
596                return retVal;
597    }
598    
599    /**
600     * Returns
601     * AUT-15: "Planned Treatment Stop Date" - creates it if necessary
602     */
603    public DTM getAut15_PlannedTreatmentStopDate() { 
604                DTM retVal = this.getTypedField(15, 0);
605                return retVal;
606    }
607
608
609
610    /**
611     * Returns
612     * AUT-16: "Clinical Service" - creates it if necessary
613     */
614    public CWE getClinicalService() { 
615                CWE retVal = this.getTypedField(16, 0);
616                return retVal;
617    }
618    
619    /**
620     * Returns
621     * AUT-16: "Clinical Service" - creates it if necessary
622     */
623    public CWE getAut16_ClinicalService() { 
624                CWE retVal = this.getTypedField(16, 0);
625                return retVal;
626    }
627
628
629
630    /**
631     * Returns
632     * AUT-17: "Reason Text" - creates it if necessary
633     */
634    public ST getReasonText() { 
635                ST retVal = this.getTypedField(17, 0);
636                return retVal;
637    }
638    
639    /**
640     * Returns
641     * AUT-17: "Reason Text" - creates it if necessary
642     */
643    public ST getAut17_ReasonText() { 
644                ST retVal = this.getTypedField(17, 0);
645                return retVal;
646    }
647
648
649
650    /**
651     * Returns
652     * AUT-18: "Number of Authorized Treatments/Units" - creates it if necessary
653     */
654    public CQ getNumberOfAuthorizedTreatmentsUnits() { 
655                CQ retVal = this.getTypedField(18, 0);
656                return retVal;
657    }
658    
659    /**
660     * Returns
661     * AUT-18: "Number of Authorized Treatments/Units" - creates it if necessary
662     */
663    public CQ getAut18_NumberOfAuthorizedTreatmentsUnits() { 
664                CQ retVal = this.getTypedField(18, 0);
665                return retVal;
666    }
667
668
669
670    /**
671     * Returns
672     * AUT-19: "Number of Used Treatments/Units" - creates it if necessary
673     */
674    public CQ getNumberOfUsedTreatmentsUnits() { 
675                CQ retVal = this.getTypedField(19, 0);
676                return retVal;
677    }
678    
679    /**
680     * Returns
681     * AUT-19: "Number of Used Treatments/Units" - creates it if necessary
682     */
683    public CQ getAut19_NumberOfUsedTreatmentsUnits() { 
684                CQ retVal = this.getTypedField(19, 0);
685                return retVal;
686    }
687
688
689
690    /**
691     * Returns
692     * AUT-20: "Number of Schedule Treatments/Units" - creates it if necessary
693     */
694    public CQ getNumberOfScheduleTreatmentsUnits() { 
695                CQ retVal = this.getTypedField(20, 0);
696                return retVal;
697    }
698    
699    /**
700     * Returns
701     * AUT-20: "Number of Schedule Treatments/Units" - creates it if necessary
702     */
703    public CQ getAut20_NumberOfScheduleTreatmentsUnits() { 
704                CQ retVal = this.getTypedField(20, 0);
705                return retVal;
706    }
707
708
709
710    /**
711     * Returns
712     * AUT-21: "Encounter Type" - creates it if necessary
713     */
714    public CWE getEncounterType() { 
715                CWE retVal = this.getTypedField(21, 0);
716                return retVal;
717    }
718    
719    /**
720     * Returns
721     * AUT-21: "Encounter Type" - creates it if necessary
722     */
723    public CWE getAut21_EncounterType() { 
724                CWE retVal = this.getTypedField(21, 0);
725                return retVal;
726    }
727
728
729
730    /**
731     * Returns
732     * AUT-22: "Remaining Benefit Amount" - creates it if necessary
733     */
734    public MO getRemainingBenefitAmount() { 
735                MO retVal = this.getTypedField(22, 0);
736                return retVal;
737    }
738    
739    /**
740     * Returns
741     * AUT-22: "Remaining Benefit Amount" - creates it if necessary
742     */
743    public MO getAut22_RemainingBenefitAmount() { 
744                MO retVal = this.getTypedField(22, 0);
745                return retVal;
746    }
747
748
749
750    /**
751     * Returns
752     * AUT-23: "Authorized Provider" - creates it if necessary
753     */
754    public XON getAuthorizedProvider() { 
755                XON retVal = this.getTypedField(23, 0);
756                return retVal;
757    }
758    
759    /**
760     * Returns
761     * AUT-23: "Authorized Provider" - creates it if necessary
762     */
763    public XON getAut23_AuthorizedProvider() { 
764                XON retVal = this.getTypedField(23, 0);
765                return retVal;
766    }
767
768
769
770    /**
771     * Returns
772     * AUT-24: "Authorized Health Professional" - creates it if necessary
773     */
774    public XCN getAuthorizedHealthProfessional() { 
775                XCN retVal = this.getTypedField(24, 0);
776                return retVal;
777    }
778    
779    /**
780     * Returns
781     * AUT-24: "Authorized Health Professional" - creates it if necessary
782     */
783    public XCN getAut24_AuthorizedHealthProfessional() { 
784                XCN retVal = this.getTypedField(24, 0);
785                return retVal;
786    }
787
788
789
790    /**
791     * Returns
792     * AUT-25: "Source Text" - creates it if necessary
793     */
794    public ST getSourceText() { 
795                ST retVal = this.getTypedField(25, 0);
796                return retVal;
797    }
798    
799    /**
800     * Returns
801     * AUT-25: "Source Text" - creates it if necessary
802     */
803    public ST getAut25_SourceText() { 
804                ST retVal = this.getTypedField(25, 0);
805                return retVal;
806    }
807
808
809
810    /**
811     * Returns
812     * AUT-26: "Source Date" - creates it if necessary
813     */
814    public DTM getSourceDate() { 
815                DTM retVal = this.getTypedField(26, 0);
816                return retVal;
817    }
818    
819    /**
820     * Returns
821     * AUT-26: "Source Date" - creates it if necessary
822     */
823    public DTM getAut26_SourceDate() { 
824                DTM retVal = this.getTypedField(26, 0);
825                return retVal;
826    }
827
828
829
830    /**
831     * Returns
832     * AUT-27: "Source Phone" - creates it if necessary
833     */
834    public XTN getSourcePhone() { 
835                XTN retVal = this.getTypedField(27, 0);
836                return retVal;
837    }
838    
839    /**
840     * Returns
841     * AUT-27: "Source Phone" - creates it if necessary
842     */
843    public XTN getAut27_SourcePhone() { 
844                XTN retVal = this.getTypedField(27, 0);
845                return retVal;
846    }
847
848
849
850    /**
851     * Returns
852     * AUT-28: "Comment" - creates it if necessary
853     */
854    public ST getComment() { 
855                ST retVal = this.getTypedField(28, 0);
856                return retVal;
857    }
858    
859    /**
860     * Returns
861     * AUT-28: "Comment" - creates it if necessary
862     */
863    public ST getAut28_Comment() { 
864                ST retVal = this.getTypedField(28, 0);
865                return retVal;
866    }
867
868
869
870    /**
871     * Returns
872     * AUT-29: "Action Code" - creates it if necessary
873     */
874    public ID getActionCode() { 
875                ID retVal = this.getTypedField(29, 0);
876                return retVal;
877    }
878    
879    /**
880     * Returns
881     * AUT-29: "Action Code" - creates it if necessary
882     */
883    public ID getAut29_ActionCode() { 
884                ID retVal = this.getTypedField(29, 0);
885                return retVal;
886    }
887
888
889
890
891
892    /** {@inheritDoc} */   
893    protected Type createNewTypeWithoutReflection(int field) {
894       switch (field) {
895          case 0: return new CWE(getMessage());
896          case 1: return new CWE(getMessage());
897          case 2: return new ST(getMessage());
898          case 3: return new DTM(getMessage());
899          case 4: return new DTM(getMessage());
900          case 5: return new EI(getMessage());
901          case 6: return new CP(getMessage());
902          case 7: return new CQ(getMessage());
903          case 8: return new CQ(getMessage());
904          case 9: return new DTM(getMessage());
905          case 10: return new CWE(getMessage());
906          case 11: return new CWE(getMessage());
907          case 12: return new CWE(getMessage());
908          case 13: return new CWE(getMessage());
909          case 14: return new DTM(getMessage());
910          case 15: return new CWE(getMessage());
911          case 16: return new ST(getMessage());
912          case 17: return new CQ(getMessage());
913          case 18: return new CQ(getMessage());
914          case 19: return new CQ(getMessage());
915          case 20: return new CWE(getMessage());
916          case 21: return new MO(getMessage());
917          case 22: return new XON(getMessage());
918          case 23: return new XCN(getMessage());
919          case 24: return new ST(getMessage());
920          case 25: return new DTM(getMessage());
921          case 26: return new XTN(getMessage());
922          case 27: return new ST(getMessage());
923          case 28: return new ID(getMessage(), new Integer( 206 ));
924          default: return null;
925       }
926   }
927
928
929}
930