001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v24.segment;
035
036// import ca.uhn.hl7v2.model.v24.group.*;
037import ca.uhn.hl7v2.model.v24.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047/**
048 *<p>Represents an HL7 STF message segment (Staff Identification). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>STF-1: Primary Key Value - STF (CE) <b>optional </b>
052     * <li>STF-2: Staff ID Code (CX) <b>optional repeating</b>
053     * <li>STF-3: Staff Name (XPN) <b>optional repeating</b>
054     * <li>STF-4: Staff Type (IS) <b>optional repeating</b>
055     * <li>STF-5: Administrative Sex (IS) <b>optional </b>
056     * <li>STF-6: Date/Time Of Birth (TS) <b>optional </b>
057     * <li>STF-7: Active/Inactive Flag (ID) <b>optional </b>
058     * <li>STF-8: Department (CE) <b>optional repeating</b>
059     * <li>STF-9: Hospital Service (CE) <b>optional repeating</b>
060     * <li>STF-10: Phone (XTN) <b>optional repeating</b>
061     * <li>STF-11: Office/Home Address (XAD) <b>optional repeating</b>
062     * <li>STF-12: Institution Activation Date (DIN) <b>optional repeating</b>
063     * <li>STF-13: Institution Inactivation Date (DIN) <b>optional repeating</b>
064     * <li>STF-14: Backup Person ID (CE) <b>optional repeating</b>
065     * <li>STF-15: E-Mail Address (ST) <b>optional repeating</b>
066     * <li>STF-16: Preferred Method of Contact (CE) <b>optional </b>
067     * <li>STF-17: Marital Status (CE) <b>optional </b>
068     * <li>STF-18: Job Title (ST) <b>optional </b>
069     * <li>STF-19: Job Code/Class (JCC) <b>optional </b>
070     * <li>STF-20: Employment Status Code (CE) <b>optional </b>
071     * <li>STF-21: Additional Insured on  Auto (ID) <b>optional </b>
072     * <li>STF-22: Driver's License Number - Staff (DLN) <b>optional </b>
073     * <li>STF-23: Copy  Auto Ins (ID) <b>optional </b>
074     * <li>STF-24: Auto Ins. Expires (DT) <b>optional </b>
075     * <li>STF-25: Date Last DMV Review (DT) <b>optional </b>
076     * <li>STF-26: Date Next DMV Review (DT) <b>optional </b>
077     * <li>STF-27: Race (CE) <b>optional </b>
078     * <li>STF-28: Ethnic Group (CE) <b>optional </b>
079     * <li>STF-29: Re-activation Approval Indicator (ID) <b>optional </b>
080 * </ul>
081 */
082@SuppressWarnings("unused")
083public class STF extends AbstractSegment {
084
085    /** 
086     * Creates a new STF segment
087     */
088    public STF(Group parent, ModelClassFactory factory) {
089       super(parent, factory);
090       init(factory);
091    }
092
093    private void init(ModelClassFactory factory) {
094       try {
095                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Primary Key Value - STF");
096                                  this.add(CX.class, false, 0, 60, new Object[]{ getMessage() }, "Staff ID Code");
097                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Staff Name");
098                                              this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(182) }, "Staff Type");
099                                              this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Administrative Sex");
100                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time Of Birth");
101                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag");
102                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Department");
103                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Hospital Service");
104                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Phone");
105                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Office/Home Address");
106                                  this.add(DIN.class, false, 0, 26, new Object[]{ getMessage() }, "Institution Activation Date");
107                                  this.add(DIN.class, false, 0, 26, new Object[]{ getMessage() }, "Institution Inactivation Date");
108                                  this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Backup Person ID");
109                                  this.add(ST.class, false, 0, 40, new Object[]{ getMessage() }, "E-Mail Address");
110                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Preferred Method of Contact");
111                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Marital Status");
112                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Job Title");
113                                  this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Job Code/Class");
114                                  this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Employment Status Code");
115                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Additional Insured on  Auto");
116                                  this.add(DLN.class, false, 1, 25, new Object[]{ getMessage() }, "Driver's License Number - Staff");
117                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Copy  Auto Ins");
118                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Auto Ins. Expires");
119                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Date Last DMV Review");
120                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Date Next DMV Review");
121                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Race");
122                                  this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Ethnic Group");
123                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Re-activation Approval Indicator");
124       } catch(HL7Exception e) {
125          log.error("Unexpected error creating STF - this is probably a bug in the source code generator.", e);
126       }
127    }
128
129
130
131    /**
132     * Returns
133     * STF-1: "Primary Key Value - STF" - creates it if necessary
134     */
135    public CE getPrimaryKeyValueSTF() { 
136                CE retVal = this.getTypedField(1, 0);
137                return retVal;
138    }
139    
140    /**
141     * Returns
142     * STF-1: "Primary Key Value - STF" - creates it if necessary
143     */
144    public CE getStf1_PrimaryKeyValueSTF() { 
145                CE retVal = this.getTypedField(1, 0);
146                return retVal;
147    }
148
149
150    /**
151     * Returns all repetitions of Staff ID Code (STF-2).
152     */
153    public CX[] getStaffIDCode() {
154        CX[] retVal = this.getTypedField(2, new CX[0]);
155        return retVal;
156    }
157
158
159    /**
160     * Returns all repetitions of Staff ID Code (STF-2).
161     */
162    public CX[] getStf2_StaffIDCode() {
163        CX[] retVal = this.getTypedField(2, new CX[0]);
164        return retVal;
165    }
166
167
168    /**
169     * Returns a count of the current number of repetitions of Staff ID Code (STF-2).
170     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
171     * it will return zero.
172     */
173    public int getStaffIDCodeReps() {
174        return this.getReps(2);
175    }
176
177
178    /**
179     * Returns a specific repetition of
180     * STF-2: "Staff ID Code" - creates it if necessary
181     *
182     * @param rep The repetition index (0-indexed)
183     */
184    public CX getStaffIDCode(int rep) { 
185                CX retVal = this.getTypedField(2, rep);
186                return retVal;
187    }
188
189    /**
190     * Returns a specific repetition of
191     * STF-2: "Staff ID Code" - creates it if necessary
192     *
193     * @param rep The repetition index (0-indexed)
194     */
195    public CX getStf2_StaffIDCode(int rep) { 
196                CX retVal = this.getTypedField(2, rep);
197                return retVal;
198    }
199
200    /**
201     * Returns a count of the current number of repetitions of Staff ID Code (STF-2).
202     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
203     * it will return zero.
204     */
205    public int getStf2_StaffIDCodeReps() {
206        return this.getReps(2);
207    }
208
209
210    /**
211     * Inserts a repetition of
212     * STF-2: "Staff ID Code" at a specific index
213     *
214     * @param rep The repetition index (0-indexed)
215     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
216     */
217    public CX insertStaffIDCode(int rep) throws HL7Exception { 
218        return (CX) super.insertRepetition(2, rep);
219    }
220
221
222    /**
223     * Inserts a repetition of
224     * STF-2: "Staff ID Code" at a specific index
225     *
226     * @param rep The repetition index (0-indexed)
227     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
228     */
229    public CX insertStf2_StaffIDCode(int rep) throws HL7Exception { 
230        return (CX) super.insertRepetition(2, rep);
231    }
232
233
234    /**
235     * Removes a repetition of
236     * STF-2: "Staff ID Code" at a specific index
237     *
238     * @param rep The repetition index (0-indexed)
239     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
240     */
241    public CX removeStaffIDCode(int rep) throws HL7Exception { 
242        return (CX) super.removeRepetition(2, rep);
243    }
244
245
246    /**
247     * Removes a repetition of
248     * STF-2: "Staff ID Code" at a specific index
249     *
250     * @param rep The repetition index (0-indexed)
251     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
252     */
253    public CX removeStf2_StaffIDCode(int rep) throws HL7Exception { 
254        return (CX) super.removeRepetition(2, rep);
255    }
256
257
258
259    /**
260     * Returns all repetitions of Staff Name (STF-3).
261     */
262    public XPN[] getStaffName() {
263        XPN[] retVal = this.getTypedField(3, new XPN[0]);
264        return retVal;
265    }
266
267
268    /**
269     * Returns all repetitions of Staff Name (STF-3).
270     */
271    public XPN[] getStf3_StaffName() {
272        XPN[] retVal = this.getTypedField(3, new XPN[0]);
273        return retVal;
274    }
275
276
277    /**
278     * Returns a count of the current number of repetitions of Staff Name (STF-3).
279     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
280     * it will return zero.
281     */
282    public int getStaffNameReps() {
283        return this.getReps(3);
284    }
285
286
287    /**
288     * Returns a specific repetition of
289     * STF-3: "Staff Name" - creates it if necessary
290     *
291     * @param rep The repetition index (0-indexed)
292     */
293    public XPN getStaffName(int rep) { 
294                XPN retVal = this.getTypedField(3, rep);
295                return retVal;
296    }
297
298    /**
299     * Returns a specific repetition of
300     * STF-3: "Staff Name" - creates it if necessary
301     *
302     * @param rep The repetition index (0-indexed)
303     */
304    public XPN getStf3_StaffName(int rep) { 
305                XPN retVal = this.getTypedField(3, rep);
306                return retVal;
307    }
308
309    /**
310     * Returns a count of the current number of repetitions of Staff Name (STF-3).
311     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
312     * it will return zero.
313     */
314    public int getStf3_StaffNameReps() {
315        return this.getReps(3);
316    }
317
318
319    /**
320     * Inserts a repetition of
321     * STF-3: "Staff Name" at a specific index
322     *
323     * @param rep The repetition index (0-indexed)
324     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
325     */
326    public XPN insertStaffName(int rep) throws HL7Exception { 
327        return (XPN) super.insertRepetition(3, rep);
328    }
329
330
331    /**
332     * Inserts a repetition of
333     * STF-3: "Staff Name" at a specific index
334     *
335     * @param rep The repetition index (0-indexed)
336     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
337     */
338    public XPN insertStf3_StaffName(int rep) throws HL7Exception { 
339        return (XPN) super.insertRepetition(3, rep);
340    }
341
342
343    /**
344     * Removes a repetition of
345     * STF-3: "Staff Name" at a specific index
346     *
347     * @param rep The repetition index (0-indexed)
348     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
349     */
350    public XPN removeStaffName(int rep) throws HL7Exception { 
351        return (XPN) super.removeRepetition(3, rep);
352    }
353
354
355    /**
356     * Removes a repetition of
357     * STF-3: "Staff Name" at a specific index
358     *
359     * @param rep The repetition index (0-indexed)
360     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
361     */
362    public XPN removeStf3_StaffName(int rep) throws HL7Exception { 
363        return (XPN) super.removeRepetition(3, rep);
364    }
365
366
367
368    /**
369     * Returns all repetitions of Staff Type (STF-4).
370     */
371    public IS[] getStaffType() {
372        IS[] retVal = this.getTypedField(4, new IS[0]);
373        return retVal;
374    }
375
376
377    /**
378     * Returns all repetitions of Staff Type (STF-4).
379     */
380    public IS[] getStf4_StaffType() {
381        IS[] retVal = this.getTypedField(4, new IS[0]);
382        return retVal;
383    }
384
385
386    /**
387     * Returns a count of the current number of repetitions of Staff Type (STF-4).
388     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
389     * it will return zero.
390     */
391    public int getStaffTypeReps() {
392        return this.getReps(4);
393    }
394
395
396    /**
397     * Returns a specific repetition of
398     * STF-4: "Staff Type" - creates it if necessary
399     *
400     * @param rep The repetition index (0-indexed)
401     */
402    public IS getStaffType(int rep) { 
403                IS retVal = this.getTypedField(4, rep);
404                return retVal;
405    }
406
407    /**
408     * Returns a specific repetition of
409     * STF-4: "Staff Type" - creates it if necessary
410     *
411     * @param rep The repetition index (0-indexed)
412     */
413    public IS getStf4_StaffType(int rep) { 
414                IS retVal = this.getTypedField(4, rep);
415                return retVal;
416    }
417
418    /**
419     * Returns a count of the current number of repetitions of Staff Type (STF-4).
420     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
421     * it will return zero.
422     */
423    public int getStf4_StaffTypeReps() {
424        return this.getReps(4);
425    }
426
427
428    /**
429     * Inserts a repetition of
430     * STF-4: "Staff Type" at a specific index
431     *
432     * @param rep The repetition index (0-indexed)
433     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
434     */
435    public IS insertStaffType(int rep) throws HL7Exception { 
436        return (IS) super.insertRepetition(4, rep);
437    }
438
439
440    /**
441     * Inserts a repetition of
442     * STF-4: "Staff Type" at a specific index
443     *
444     * @param rep The repetition index (0-indexed)
445     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
446     */
447    public IS insertStf4_StaffType(int rep) throws HL7Exception { 
448        return (IS) super.insertRepetition(4, rep);
449    }
450
451
452    /**
453     * Removes a repetition of
454     * STF-4: "Staff Type" at a specific index
455     *
456     * @param rep The repetition index (0-indexed)
457     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
458     */
459    public IS removeStaffType(int rep) throws HL7Exception { 
460        return (IS) super.removeRepetition(4, rep);
461    }
462
463
464    /**
465     * Removes a repetition of
466     * STF-4: "Staff Type" at a specific index
467     *
468     * @param rep The repetition index (0-indexed)
469     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
470     */
471    public IS removeStf4_StaffType(int rep) throws HL7Exception { 
472        return (IS) super.removeRepetition(4, rep);
473    }
474
475
476
477
478    /**
479     * Returns
480     * STF-5: "Administrative Sex" - creates it if necessary
481     */
482    public IS getAdministrativeSex() { 
483                IS retVal = this.getTypedField(5, 0);
484                return retVal;
485    }
486    
487    /**
488     * Returns
489     * STF-5: "Administrative Sex" - creates it if necessary
490     */
491    public IS getStf5_AdministrativeSex() { 
492                IS retVal = this.getTypedField(5, 0);
493                return retVal;
494    }
495
496
497
498    /**
499     * Returns
500     * STF-6: "Date/Time Of Birth" - creates it if necessary
501     */
502    public TS getDateTimeOfBirth() { 
503                TS retVal = this.getTypedField(6, 0);
504                return retVal;
505    }
506    
507    /**
508     * Returns
509     * STF-6: "Date/Time Of Birth" - creates it if necessary
510     */
511    public TS getStf6_DateTimeOfBirth() { 
512                TS retVal = this.getTypedField(6, 0);
513                return retVal;
514    }
515
516
517
518    /**
519     * Returns
520     * STF-7: "Active/Inactive Flag" - creates it if necessary
521     */
522    public ID getActiveInactiveFlag() { 
523                ID retVal = this.getTypedField(7, 0);
524                return retVal;
525    }
526    
527    /**
528     * Returns
529     * STF-7: "Active/Inactive Flag" - creates it if necessary
530     */
531    public ID getStf7_ActiveInactiveFlag() { 
532                ID retVal = this.getTypedField(7, 0);
533                return retVal;
534    }
535
536
537    /**
538     * Returns all repetitions of Department (STF-8).
539     */
540    public CE[] getDepartment() {
541        CE[] retVal = this.getTypedField(8, new CE[0]);
542        return retVal;
543    }
544
545
546    /**
547     * Returns all repetitions of Department (STF-8).
548     */
549    public CE[] getStf8_Department() {
550        CE[] retVal = this.getTypedField(8, new CE[0]);
551        return retVal;
552    }
553
554
555    /**
556     * Returns a count of the current number of repetitions of Department (STF-8).
557     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
558     * it will return zero.
559     */
560    public int getDepartmentReps() {
561        return this.getReps(8);
562    }
563
564
565    /**
566     * Returns a specific repetition of
567     * STF-8: "Department" - creates it if necessary
568     *
569     * @param rep The repetition index (0-indexed)
570     */
571    public CE getDepartment(int rep) { 
572                CE retVal = this.getTypedField(8, rep);
573                return retVal;
574    }
575
576    /**
577     * Returns a specific repetition of
578     * STF-8: "Department" - creates it if necessary
579     *
580     * @param rep The repetition index (0-indexed)
581     */
582    public CE getStf8_Department(int rep) { 
583                CE retVal = this.getTypedField(8, rep);
584                return retVal;
585    }
586
587    /**
588     * Returns a count of the current number of repetitions of Department (STF-8).
589     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
590     * it will return zero.
591     */
592    public int getStf8_DepartmentReps() {
593        return this.getReps(8);
594    }
595
596
597    /**
598     * Inserts a repetition of
599     * STF-8: "Department" at a specific index
600     *
601     * @param rep The repetition index (0-indexed)
602     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
603     */
604    public CE insertDepartment(int rep) throws HL7Exception { 
605        return (CE) super.insertRepetition(8, rep);
606    }
607
608
609    /**
610     * Inserts a repetition of
611     * STF-8: "Department" at a specific index
612     *
613     * @param rep The repetition index (0-indexed)
614     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
615     */
616    public CE insertStf8_Department(int rep) throws HL7Exception { 
617        return (CE) super.insertRepetition(8, rep);
618    }
619
620
621    /**
622     * Removes a repetition of
623     * STF-8: "Department" at a specific index
624     *
625     * @param rep The repetition index (0-indexed)
626     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
627     */
628    public CE removeDepartment(int rep) throws HL7Exception { 
629        return (CE) super.removeRepetition(8, rep);
630    }
631
632
633    /**
634     * Removes a repetition of
635     * STF-8: "Department" at a specific index
636     *
637     * @param rep The repetition index (0-indexed)
638     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
639     */
640    public CE removeStf8_Department(int rep) throws HL7Exception { 
641        return (CE) super.removeRepetition(8, rep);
642    }
643
644
645
646    /**
647     * Returns all repetitions of Hospital Service (STF-9).
648     */
649    public CE[] getHospitalService() {
650        CE[] retVal = this.getTypedField(9, new CE[0]);
651        return retVal;
652    }
653
654
655    /**
656     * Returns all repetitions of Hospital Service (STF-9).
657     */
658    public CE[] getStf9_HospitalService() {
659        CE[] retVal = this.getTypedField(9, new CE[0]);
660        return retVal;
661    }
662
663
664    /**
665     * Returns a count of the current number of repetitions of Hospital Service (STF-9).
666     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
667     * it will return zero.
668     */
669    public int getHospitalServiceReps() {
670        return this.getReps(9);
671    }
672
673
674    /**
675     * Returns a specific repetition of
676     * STF-9: "Hospital Service" - creates it if necessary
677     *
678     * @param rep The repetition index (0-indexed)
679     */
680    public CE getHospitalService(int rep) { 
681                CE retVal = this.getTypedField(9, rep);
682                return retVal;
683    }
684
685    /**
686     * Returns a specific repetition of
687     * STF-9: "Hospital Service" - creates it if necessary
688     *
689     * @param rep The repetition index (0-indexed)
690     */
691    public CE getStf9_HospitalService(int rep) { 
692                CE retVal = this.getTypedField(9, rep);
693                return retVal;
694    }
695
696    /**
697     * Returns a count of the current number of repetitions of Hospital Service (STF-9).
698     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
699     * it will return zero.
700     */
701    public int getStf9_HospitalServiceReps() {
702        return this.getReps(9);
703    }
704
705
706    /**
707     * Inserts a repetition of
708     * STF-9: "Hospital Service" at a specific index
709     *
710     * @param rep The repetition index (0-indexed)
711     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
712     */
713    public CE insertHospitalService(int rep) throws HL7Exception { 
714        return (CE) super.insertRepetition(9, rep);
715    }
716
717
718    /**
719     * Inserts a repetition of
720     * STF-9: "Hospital Service" at a specific index
721     *
722     * @param rep The repetition index (0-indexed)
723     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
724     */
725    public CE insertStf9_HospitalService(int rep) throws HL7Exception { 
726        return (CE) super.insertRepetition(9, rep);
727    }
728
729
730    /**
731     * Removes a repetition of
732     * STF-9: "Hospital Service" at a specific index
733     *
734     * @param rep The repetition index (0-indexed)
735     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
736     */
737    public CE removeHospitalService(int rep) throws HL7Exception { 
738        return (CE) super.removeRepetition(9, rep);
739    }
740
741
742    /**
743     * Removes a repetition of
744     * STF-9: "Hospital Service" at a specific index
745     *
746     * @param rep The repetition index (0-indexed)
747     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
748     */
749    public CE removeStf9_HospitalService(int rep) throws HL7Exception { 
750        return (CE) super.removeRepetition(9, rep);
751    }
752
753
754
755    /**
756     * Returns all repetitions of Phone (STF-10).
757     */
758    public XTN[] getPhone() {
759        XTN[] retVal = this.getTypedField(10, new XTN[0]);
760        return retVal;
761    }
762
763
764    /**
765     * Returns all repetitions of Phone (STF-10).
766     */
767    public XTN[] getStf10_Phone() {
768        XTN[] retVal = this.getTypedField(10, new XTN[0]);
769        return retVal;
770    }
771
772
773    /**
774     * Returns a count of the current number of repetitions of Phone (STF-10).
775     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
776     * it will return zero.
777     */
778    public int getPhoneReps() {
779        return this.getReps(10);
780    }
781
782
783    /**
784     * Returns a specific repetition of
785     * STF-10: "Phone" - creates it if necessary
786     *
787     * @param rep The repetition index (0-indexed)
788     */
789    public XTN getPhone(int rep) { 
790                XTN retVal = this.getTypedField(10, rep);
791                return retVal;
792    }
793
794    /**
795     * Returns a specific repetition of
796     * STF-10: "Phone" - creates it if necessary
797     *
798     * @param rep The repetition index (0-indexed)
799     */
800    public XTN getStf10_Phone(int rep) { 
801                XTN retVal = this.getTypedField(10, rep);
802                return retVal;
803    }
804
805    /**
806     * Returns a count of the current number of repetitions of Phone (STF-10).
807     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
808     * it will return zero.
809     */
810    public int getStf10_PhoneReps() {
811        return this.getReps(10);
812    }
813
814
815    /**
816     * Inserts a repetition of
817     * STF-10: "Phone" at a specific index
818     *
819     * @param rep The repetition index (0-indexed)
820     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
821     */
822    public XTN insertPhone(int rep) throws HL7Exception { 
823        return (XTN) super.insertRepetition(10, rep);
824    }
825
826
827    /**
828     * Inserts a repetition of
829     * STF-10: "Phone" at a specific index
830     *
831     * @param rep The repetition index (0-indexed)
832     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
833     */
834    public XTN insertStf10_Phone(int rep) throws HL7Exception { 
835        return (XTN) super.insertRepetition(10, rep);
836    }
837
838
839    /**
840     * Removes a repetition of
841     * STF-10: "Phone" at a specific index
842     *
843     * @param rep The repetition index (0-indexed)
844     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
845     */
846    public XTN removePhone(int rep) throws HL7Exception { 
847        return (XTN) super.removeRepetition(10, rep);
848    }
849
850
851    /**
852     * Removes a repetition of
853     * STF-10: "Phone" at a specific index
854     *
855     * @param rep The repetition index (0-indexed)
856     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
857     */
858    public XTN removeStf10_Phone(int rep) throws HL7Exception { 
859        return (XTN) super.removeRepetition(10, rep);
860    }
861
862
863
864    /**
865     * Returns all repetitions of Office/Home Address (STF-11).
866     */
867    public XAD[] getOfficeHomeAddress() {
868        XAD[] retVal = this.getTypedField(11, new XAD[0]);
869        return retVal;
870    }
871
872
873    /**
874     * Returns all repetitions of Office/Home Address (STF-11).
875     */
876    public XAD[] getStf11_OfficeHomeAddress() {
877        XAD[] retVal = this.getTypedField(11, new XAD[0]);
878        return retVal;
879    }
880
881
882    /**
883     * Returns a count of the current number of repetitions of Office/Home Address (STF-11).
884     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
885     * it will return zero.
886     */
887    public int getOfficeHomeAddressReps() {
888        return this.getReps(11);
889    }
890
891
892    /**
893     * Returns a specific repetition of
894     * STF-11: "Office/Home Address" - creates it if necessary
895     *
896     * @param rep The repetition index (0-indexed)
897     */
898    public XAD getOfficeHomeAddress(int rep) { 
899                XAD retVal = this.getTypedField(11, rep);
900                return retVal;
901    }
902
903    /**
904     * Returns a specific repetition of
905     * STF-11: "Office/Home Address" - creates it if necessary
906     *
907     * @param rep The repetition index (0-indexed)
908     */
909    public XAD getStf11_OfficeHomeAddress(int rep) { 
910                XAD retVal = this.getTypedField(11, rep);
911                return retVal;
912    }
913
914    /**
915     * Returns a count of the current number of repetitions of Office/Home Address (STF-11).
916     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
917     * it will return zero.
918     */
919    public int getStf11_OfficeHomeAddressReps() {
920        return this.getReps(11);
921    }
922
923
924    /**
925     * Inserts a repetition of
926     * STF-11: "Office/Home Address" at a specific index
927     *
928     * @param rep The repetition index (0-indexed)
929     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
930     */
931    public XAD insertOfficeHomeAddress(int rep) throws HL7Exception { 
932        return (XAD) super.insertRepetition(11, rep);
933    }
934
935
936    /**
937     * Inserts a repetition of
938     * STF-11: "Office/Home Address" at a specific index
939     *
940     * @param rep The repetition index (0-indexed)
941     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
942     */
943    public XAD insertStf11_OfficeHomeAddress(int rep) throws HL7Exception { 
944        return (XAD) super.insertRepetition(11, rep);
945    }
946
947
948    /**
949     * Removes a repetition of
950     * STF-11: "Office/Home Address" at a specific index
951     *
952     * @param rep The repetition index (0-indexed)
953     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
954     */
955    public XAD removeOfficeHomeAddress(int rep) throws HL7Exception { 
956        return (XAD) super.removeRepetition(11, rep);
957    }
958
959
960    /**
961     * Removes a repetition of
962     * STF-11: "Office/Home Address" at a specific index
963     *
964     * @param rep The repetition index (0-indexed)
965     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
966     */
967    public XAD removeStf11_OfficeHomeAddress(int rep) throws HL7Exception { 
968        return (XAD) super.removeRepetition(11, rep);
969    }
970
971
972
973    /**
974     * Returns all repetitions of Institution Activation Date (STF-12).
975     */
976    public DIN[] getInstitutionActivationDate() {
977        DIN[] retVal = this.getTypedField(12, new DIN[0]);
978        return retVal;
979    }
980
981
982    /**
983     * Returns all repetitions of Institution Activation Date (STF-12).
984     */
985    public DIN[] getStf12_InstitutionActivationDate() {
986        DIN[] retVal = this.getTypedField(12, new DIN[0]);
987        return retVal;
988    }
989
990
991    /**
992     * Returns a count of the current number of repetitions of Institution Activation Date (STF-12).
993     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
994     * it will return zero.
995     */
996    public int getInstitutionActivationDateReps() {
997        return this.getReps(12);
998    }
999
1000
1001    /**
1002     * Returns a specific repetition of
1003     * STF-12: "Institution Activation Date" - creates it if necessary
1004     *
1005     * @param rep The repetition index (0-indexed)
1006     */
1007    public DIN getInstitutionActivationDate(int rep) { 
1008                DIN retVal = this.getTypedField(12, rep);
1009                return retVal;
1010    }
1011
1012    /**
1013     * Returns a specific repetition of
1014     * STF-12: "Institution Activation Date" - creates it if necessary
1015     *
1016     * @param rep The repetition index (0-indexed)
1017     */
1018    public DIN getStf12_InstitutionActivationDate(int rep) { 
1019                DIN retVal = this.getTypedField(12, rep);
1020                return retVal;
1021    }
1022
1023    /**
1024     * Returns a count of the current number of repetitions of Institution Activation Date (STF-12).
1025     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1026     * it will return zero.
1027     */
1028    public int getStf12_InstitutionActivationDateReps() {
1029        return this.getReps(12);
1030    }
1031
1032
1033    /**
1034     * Inserts a repetition of
1035     * STF-12: "Institution Activation Date" at a specific index
1036     *
1037     * @param rep The repetition index (0-indexed)
1038     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1039     */
1040    public DIN insertInstitutionActivationDate(int rep) throws HL7Exception { 
1041        return (DIN) super.insertRepetition(12, rep);
1042    }
1043
1044
1045    /**
1046     * Inserts a repetition of
1047     * STF-12: "Institution Activation Date" at a specific index
1048     *
1049     * @param rep The repetition index (0-indexed)
1050     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1051     */
1052    public DIN insertStf12_InstitutionActivationDate(int rep) throws HL7Exception { 
1053        return (DIN) super.insertRepetition(12, rep);
1054    }
1055
1056
1057    /**
1058     * Removes a repetition of
1059     * STF-12: "Institution Activation Date" at a specific index
1060     *
1061     * @param rep The repetition index (0-indexed)
1062     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1063     */
1064    public DIN removeInstitutionActivationDate(int rep) throws HL7Exception { 
1065        return (DIN) super.removeRepetition(12, rep);
1066    }
1067
1068
1069    /**
1070     * Removes a repetition of
1071     * STF-12: "Institution Activation Date" at a specific index
1072     *
1073     * @param rep The repetition index (0-indexed)
1074     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1075     */
1076    public DIN removeStf12_InstitutionActivationDate(int rep) throws HL7Exception { 
1077        return (DIN) super.removeRepetition(12, rep);
1078    }
1079
1080
1081
1082    /**
1083     * Returns all repetitions of Institution Inactivation Date (STF-13).
1084     */
1085    public DIN[] getInstitutionInactivationDate() {
1086        DIN[] retVal = this.getTypedField(13, new DIN[0]);
1087        return retVal;
1088    }
1089
1090
1091    /**
1092     * Returns all repetitions of Institution Inactivation Date (STF-13).
1093     */
1094    public DIN[] getStf13_InstitutionInactivationDate() {
1095        DIN[] retVal = this.getTypedField(13, new DIN[0]);
1096        return retVal;
1097    }
1098
1099
1100    /**
1101     * Returns a count of the current number of repetitions of Institution Inactivation Date (STF-13).
1102     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1103     * it will return zero.
1104     */
1105    public int getInstitutionInactivationDateReps() {
1106        return this.getReps(13);
1107    }
1108
1109
1110    /**
1111     * Returns a specific repetition of
1112     * STF-13: "Institution Inactivation Date" - creates it if necessary
1113     *
1114     * @param rep The repetition index (0-indexed)
1115     */
1116    public DIN getInstitutionInactivationDate(int rep) { 
1117                DIN retVal = this.getTypedField(13, rep);
1118                return retVal;
1119    }
1120
1121    /**
1122     * Returns a specific repetition of
1123     * STF-13: "Institution Inactivation Date" - creates it if necessary
1124     *
1125     * @param rep The repetition index (0-indexed)
1126     */
1127    public DIN getStf13_InstitutionInactivationDate(int rep) { 
1128                DIN retVal = this.getTypedField(13, rep);
1129                return retVal;
1130    }
1131
1132    /**
1133     * Returns a count of the current number of repetitions of Institution Inactivation Date (STF-13).
1134     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1135     * it will return zero.
1136     */
1137    public int getStf13_InstitutionInactivationDateReps() {
1138        return this.getReps(13);
1139    }
1140
1141
1142    /**
1143     * Inserts a repetition of
1144     * STF-13: "Institution Inactivation Date" at a specific index
1145     *
1146     * @param rep The repetition index (0-indexed)
1147     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1148     */
1149    public DIN insertInstitutionInactivationDate(int rep) throws HL7Exception { 
1150        return (DIN) super.insertRepetition(13, rep);
1151    }
1152
1153
1154    /**
1155     * Inserts a repetition of
1156     * STF-13: "Institution Inactivation Date" at a specific index
1157     *
1158     * @param rep The repetition index (0-indexed)
1159     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1160     */
1161    public DIN insertStf13_InstitutionInactivationDate(int rep) throws HL7Exception { 
1162        return (DIN) super.insertRepetition(13, rep);
1163    }
1164
1165
1166    /**
1167     * Removes a repetition of
1168     * STF-13: "Institution Inactivation Date" at a specific index
1169     *
1170     * @param rep The repetition index (0-indexed)
1171     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1172     */
1173    public DIN removeInstitutionInactivationDate(int rep) throws HL7Exception { 
1174        return (DIN) super.removeRepetition(13, rep);
1175    }
1176
1177
1178    /**
1179     * Removes a repetition of
1180     * STF-13: "Institution Inactivation Date" at a specific index
1181     *
1182     * @param rep The repetition index (0-indexed)
1183     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1184     */
1185    public DIN removeStf13_InstitutionInactivationDate(int rep) throws HL7Exception { 
1186        return (DIN) super.removeRepetition(13, rep);
1187    }
1188
1189
1190
1191    /**
1192     * Returns all repetitions of Backup Person ID (STF-14).
1193     */
1194    public CE[] getBackupPersonID() {
1195        CE[] retVal = this.getTypedField(14, new CE[0]);
1196        return retVal;
1197    }
1198
1199
1200    /**
1201     * Returns all repetitions of Backup Person ID (STF-14).
1202     */
1203    public CE[] getStf14_BackupPersonID() {
1204        CE[] retVal = this.getTypedField(14, new CE[0]);
1205        return retVal;
1206    }
1207
1208
1209    /**
1210     * Returns a count of the current number of repetitions of Backup Person ID (STF-14).
1211     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1212     * it will return zero.
1213     */
1214    public int getBackupPersonIDReps() {
1215        return this.getReps(14);
1216    }
1217
1218
1219    /**
1220     * Returns a specific repetition of
1221     * STF-14: "Backup Person ID" - creates it if necessary
1222     *
1223     * @param rep The repetition index (0-indexed)
1224     */
1225    public CE getBackupPersonID(int rep) { 
1226                CE retVal = this.getTypedField(14, rep);
1227                return retVal;
1228    }
1229
1230    /**
1231     * Returns a specific repetition of
1232     * STF-14: "Backup Person ID" - creates it if necessary
1233     *
1234     * @param rep The repetition index (0-indexed)
1235     */
1236    public CE getStf14_BackupPersonID(int rep) { 
1237                CE retVal = this.getTypedField(14, rep);
1238                return retVal;
1239    }
1240
1241    /**
1242     * Returns a count of the current number of repetitions of Backup Person ID (STF-14).
1243     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1244     * it will return zero.
1245     */
1246    public int getStf14_BackupPersonIDReps() {
1247        return this.getReps(14);
1248    }
1249
1250
1251    /**
1252     * Inserts a repetition of
1253     * STF-14: "Backup Person ID" at a specific index
1254     *
1255     * @param rep The repetition index (0-indexed)
1256     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1257     */
1258    public CE insertBackupPersonID(int rep) throws HL7Exception { 
1259        return (CE) super.insertRepetition(14, rep);
1260    }
1261
1262
1263    /**
1264     * Inserts a repetition of
1265     * STF-14: "Backup Person ID" at a specific index
1266     *
1267     * @param rep The repetition index (0-indexed)
1268     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1269     */
1270    public CE insertStf14_BackupPersonID(int rep) throws HL7Exception { 
1271        return (CE) super.insertRepetition(14, rep);
1272    }
1273
1274
1275    /**
1276     * Removes a repetition of
1277     * STF-14: "Backup Person ID" at a specific index
1278     *
1279     * @param rep The repetition index (0-indexed)
1280     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1281     */
1282    public CE removeBackupPersonID(int rep) throws HL7Exception { 
1283        return (CE) super.removeRepetition(14, rep);
1284    }
1285
1286
1287    /**
1288     * Removes a repetition of
1289     * STF-14: "Backup Person ID" at a specific index
1290     *
1291     * @param rep The repetition index (0-indexed)
1292     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1293     */
1294    public CE removeStf14_BackupPersonID(int rep) throws HL7Exception { 
1295        return (CE) super.removeRepetition(14, rep);
1296    }
1297
1298
1299
1300    /**
1301     * Returns all repetitions of E-Mail Address (STF-15).
1302     */
1303    public ST[] getEMailAddress() {
1304        ST[] retVal = this.getTypedField(15, new ST[0]);
1305        return retVal;
1306    }
1307
1308
1309    /**
1310     * Returns all repetitions of E-Mail Address (STF-15).
1311     */
1312    public ST[] getStf15_EMailAddress() {
1313        ST[] retVal = this.getTypedField(15, new ST[0]);
1314        return retVal;
1315    }
1316
1317
1318    /**
1319     * Returns a count of the current number of repetitions of E-Mail Address (STF-15).
1320     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1321     * it will return zero.
1322     */
1323    public int getEMailAddressReps() {
1324        return this.getReps(15);
1325    }
1326
1327
1328    /**
1329     * Returns a specific repetition of
1330     * STF-15: "E-Mail Address" - creates it if necessary
1331     *
1332     * @param rep The repetition index (0-indexed)
1333     */
1334    public ST getEMailAddress(int rep) { 
1335                ST retVal = this.getTypedField(15, rep);
1336                return retVal;
1337    }
1338
1339    /**
1340     * Returns a specific repetition of
1341     * STF-15: "E-Mail Address" - creates it if necessary
1342     *
1343     * @param rep The repetition index (0-indexed)
1344     */
1345    public ST getStf15_EMailAddress(int rep) { 
1346                ST retVal = this.getTypedField(15, rep);
1347                return retVal;
1348    }
1349
1350    /**
1351     * Returns a count of the current number of repetitions of E-Mail Address (STF-15).
1352     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1353     * it will return zero.
1354     */
1355    public int getStf15_EMailAddressReps() {
1356        return this.getReps(15);
1357    }
1358
1359
1360    /**
1361     * Inserts a repetition of
1362     * STF-15: "E-Mail Address" at a specific index
1363     *
1364     * @param rep The repetition index (0-indexed)
1365     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1366     */
1367    public ST insertEMailAddress(int rep) throws HL7Exception { 
1368        return (ST) super.insertRepetition(15, rep);
1369    }
1370
1371
1372    /**
1373     * Inserts a repetition of
1374     * STF-15: "E-Mail Address" at a specific index
1375     *
1376     * @param rep The repetition index (0-indexed)
1377     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1378     */
1379    public ST insertStf15_EMailAddress(int rep) throws HL7Exception { 
1380        return (ST) super.insertRepetition(15, rep);
1381    }
1382
1383
1384    /**
1385     * Removes a repetition of
1386     * STF-15: "E-Mail Address" at a specific index
1387     *
1388     * @param rep The repetition index (0-indexed)
1389     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1390     */
1391    public ST removeEMailAddress(int rep) throws HL7Exception { 
1392        return (ST) super.removeRepetition(15, rep);
1393    }
1394
1395
1396    /**
1397     * Removes a repetition of
1398     * STF-15: "E-Mail Address" at a specific index
1399     *
1400     * @param rep The repetition index (0-indexed)
1401     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1402     */
1403    public ST removeStf15_EMailAddress(int rep) throws HL7Exception { 
1404        return (ST) super.removeRepetition(15, rep);
1405    }
1406
1407
1408
1409
1410    /**
1411     * Returns
1412     * STF-16: "Preferred Method of Contact" - creates it if necessary
1413     */
1414    public CE getPreferredMethodOfContact() { 
1415                CE retVal = this.getTypedField(16, 0);
1416                return retVal;
1417    }
1418    
1419    /**
1420     * Returns
1421     * STF-16: "Preferred Method of Contact" - creates it if necessary
1422     */
1423    public CE getStf16_PreferredMethodOfContact() { 
1424                CE retVal = this.getTypedField(16, 0);
1425                return retVal;
1426    }
1427
1428
1429
1430    /**
1431     * Returns
1432     * STF-17: "Marital Status" - creates it if necessary
1433     */
1434    public CE getMaritalStatus() { 
1435                CE retVal = this.getTypedField(17, 0);
1436                return retVal;
1437    }
1438    
1439    /**
1440     * Returns
1441     * STF-17: "Marital Status" - creates it if necessary
1442     */
1443    public CE getStf17_MaritalStatus() { 
1444                CE retVal = this.getTypedField(17, 0);
1445                return retVal;
1446    }
1447
1448
1449
1450    /**
1451     * Returns
1452     * STF-18: "Job Title" - creates it if necessary
1453     */
1454    public ST getJobTitle() { 
1455                ST retVal = this.getTypedField(18, 0);
1456                return retVal;
1457    }
1458    
1459    /**
1460     * Returns
1461     * STF-18: "Job Title" - creates it if necessary
1462     */
1463    public ST getStf18_JobTitle() { 
1464                ST retVal = this.getTypedField(18, 0);
1465                return retVal;
1466    }
1467
1468
1469
1470    /**
1471     * Returns
1472     * STF-19: "Job Code/Class" - creates it if necessary
1473     */
1474    public JCC getJobCodeClass() { 
1475                JCC retVal = this.getTypedField(19, 0);
1476                return retVal;
1477    }
1478    
1479    /**
1480     * Returns
1481     * STF-19: "Job Code/Class" - creates it if necessary
1482     */
1483    public JCC getStf19_JobCodeClass() { 
1484                JCC retVal = this.getTypedField(19, 0);
1485                return retVal;
1486    }
1487
1488
1489
1490    /**
1491     * Returns
1492     * STF-20: "Employment Status Code" - creates it if necessary
1493     */
1494    public CE getEmploymentStatusCode() { 
1495                CE retVal = this.getTypedField(20, 0);
1496                return retVal;
1497    }
1498    
1499    /**
1500     * Returns
1501     * STF-20: "Employment Status Code" - creates it if necessary
1502     */
1503    public CE getStf20_EmploymentStatusCode() { 
1504                CE retVal = this.getTypedField(20, 0);
1505                return retVal;
1506    }
1507
1508
1509
1510    /**
1511     * Returns
1512     * STF-21: "Additional Insured on  Auto" - creates it if necessary
1513     */
1514    public ID getAdditionalInsuredOnAuto() { 
1515                ID retVal = this.getTypedField(21, 0);
1516                return retVal;
1517    }
1518    
1519    /**
1520     * Returns
1521     * STF-21: "Additional Insured on  Auto" - creates it if necessary
1522     */
1523    public ID getStf21_AdditionalInsuredOnAuto() { 
1524                ID retVal = this.getTypedField(21, 0);
1525                return retVal;
1526    }
1527
1528
1529
1530    /**
1531     * Returns
1532     * STF-22: "Driver's License Number - Staff" - creates it if necessary
1533     */
1534    public DLN getDriverSLicenseNumberStaff() { 
1535                DLN retVal = this.getTypedField(22, 0);
1536                return retVal;
1537    }
1538    
1539    /**
1540     * Returns
1541     * STF-22: "Driver's License Number - Staff" - creates it if necessary
1542     */
1543    public DLN getStf22_DriverSLicenseNumberStaff() { 
1544                DLN retVal = this.getTypedField(22, 0);
1545                return retVal;
1546    }
1547
1548
1549
1550    /**
1551     * Returns
1552     * STF-23: "Copy  Auto Ins" - creates it if necessary
1553     */
1554    public ID getCopyAutoIns() { 
1555                ID retVal = this.getTypedField(23, 0);
1556                return retVal;
1557    }
1558    
1559    /**
1560     * Returns
1561     * STF-23: "Copy  Auto Ins" - creates it if necessary
1562     */
1563    public ID getStf23_CopyAutoIns() { 
1564                ID retVal = this.getTypedField(23, 0);
1565                return retVal;
1566    }
1567
1568
1569
1570    /**
1571     * Returns
1572     * STF-24: "Auto Ins. Expires" - creates it if necessary
1573     */
1574    public DT getAutoInsExpires() { 
1575                DT retVal = this.getTypedField(24, 0);
1576                return retVal;
1577    }
1578    
1579    /**
1580     * Returns
1581     * STF-24: "Auto Ins. Expires" - creates it if necessary
1582     */
1583    public DT getStf24_AutoInsExpires() { 
1584                DT retVal = this.getTypedField(24, 0);
1585                return retVal;
1586    }
1587
1588
1589
1590    /**
1591     * Returns
1592     * STF-25: "Date Last DMV Review" - creates it if necessary
1593     */
1594    public DT getDateLastDMVReview() { 
1595                DT retVal = this.getTypedField(25, 0);
1596                return retVal;
1597    }
1598    
1599    /**
1600     * Returns
1601     * STF-25: "Date Last DMV Review" - creates it if necessary
1602     */
1603    public DT getStf25_DateLastDMVReview() { 
1604                DT retVal = this.getTypedField(25, 0);
1605                return retVal;
1606    }
1607
1608
1609
1610    /**
1611     * Returns
1612     * STF-26: "Date Next DMV Review" - creates it if necessary
1613     */
1614    public DT getDateNextDMVReview() { 
1615                DT retVal = this.getTypedField(26, 0);
1616                return retVal;
1617    }
1618    
1619    /**
1620     * Returns
1621     * STF-26: "Date Next DMV Review" - creates it if necessary
1622     */
1623    public DT getStf26_DateNextDMVReview() { 
1624                DT retVal = this.getTypedField(26, 0);
1625                return retVal;
1626    }
1627
1628
1629
1630    /**
1631     * Returns
1632     * STF-27: "Race" - creates it if necessary
1633     */
1634    public CE getRace() { 
1635                CE retVal = this.getTypedField(27, 0);
1636                return retVal;
1637    }
1638    
1639    /**
1640     * Returns
1641     * STF-27: "Race" - creates it if necessary
1642     */
1643    public CE getStf27_Race() { 
1644                CE retVal = this.getTypedField(27, 0);
1645                return retVal;
1646    }
1647
1648
1649
1650    /**
1651     * Returns
1652     * STF-28: "Ethnic Group" - creates it if necessary
1653     */
1654    public CE getEthnicGroup() { 
1655                CE retVal = this.getTypedField(28, 0);
1656                return retVal;
1657    }
1658    
1659    /**
1660     * Returns
1661     * STF-28: "Ethnic Group" - creates it if necessary
1662     */
1663    public CE getStf28_EthnicGroup() { 
1664                CE retVal = this.getTypedField(28, 0);
1665                return retVal;
1666    }
1667
1668
1669
1670    /**
1671     * Returns
1672     * STF-29: "Re-activation Approval Indicator" - creates it if necessary
1673     */
1674    public ID getReActivationApprovalIndicator() { 
1675                ID retVal = this.getTypedField(29, 0);
1676                return retVal;
1677    }
1678    
1679    /**
1680     * Returns
1681     * STF-29: "Re-activation Approval Indicator" - creates it if necessary
1682     */
1683    public ID getStf29_ReActivationApprovalIndicator() { 
1684                ID retVal = this.getTypedField(29, 0);
1685                return retVal;
1686    }
1687
1688
1689
1690
1691
1692    /** {@inheritDoc} */   
1693    protected Type createNewTypeWithoutReflection(int field) {
1694       switch (field) {
1695          case 0: return new CE(getMessage());
1696          case 1: return new CX(getMessage());
1697          case 2: return new XPN(getMessage());
1698          case 3: return new IS(getMessage(), new Integer( 182 ));
1699          case 4: return new IS(getMessage(), new Integer( 1 ));
1700          case 5: return new TS(getMessage());
1701          case 6: return new ID(getMessage(), new Integer( 183 ));
1702          case 7: return new CE(getMessage());
1703          case 8: return new CE(getMessage());
1704          case 9: return new XTN(getMessage());
1705          case 10: return new XAD(getMessage());
1706          case 11: return new DIN(getMessage());
1707          case 12: return new DIN(getMessage());
1708          case 13: return new CE(getMessage());
1709          case 14: return new ST(getMessage());
1710          case 15: return new CE(getMessage());
1711          case 16: return new CE(getMessage());
1712          case 17: return new ST(getMessage());
1713          case 18: return new JCC(getMessage());
1714          case 19: return new CE(getMessage());
1715          case 20: return new ID(getMessage(), new Integer( 136 ));
1716          case 21: return new DLN(getMessage());
1717          case 22: return new ID(getMessage(), new Integer( 136 ));
1718          case 23: return new DT(getMessage());
1719          case 24: return new DT(getMessage());
1720          case 25: return new DT(getMessage());
1721          case 26: return new CE(getMessage());
1722          case 27: return new CE(getMessage());
1723          case 28: return new ID(getMessage(), new Integer( 136 ));
1724          default: return null;
1725       }
1726   }
1727
1728
1729}
1730