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.v26.segment;
035
036// import ca.uhn.hl7v2.model.v26.group.*;
037import ca.uhn.hl7v2.model.v26.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 GT1 message segment (Guarantor). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>GT1-1: Set ID - GT1 (SI) <b> </b>
052     * <li>GT1-2: Guarantor Number (CX) <b>optional repeating</b>
053     * <li>GT1-3: Guarantor Name (XPN) <b> repeating</b>
054     * <li>GT1-4: Guarantor Spouse Name (XPN) <b>optional repeating</b>
055     * <li>GT1-5: Guarantor Address (XAD) <b>optional repeating</b>
056     * <li>GT1-6: Guarantor Ph Num - Home (XTN) <b>optional repeating</b>
057     * <li>GT1-7: Guarantor Ph Num - Business (XTN) <b>optional repeating</b>
058     * <li>GT1-8: Guarantor Date/Time Of Birth (DTM) <b>optional </b>
059     * <li>GT1-9: Guarantor Administrative Sex (IS) <b>optional </b>
060     * <li>GT1-10: Guarantor Type (IS) <b>optional </b>
061     * <li>GT1-11: Guarantor Relationship (CWE) <b>optional </b>
062     * <li>GT1-12: Guarantor SSN (ST) <b>optional </b>
063     * <li>GT1-13: Guarantor Date - Begin (DT) <b>optional </b>
064     * <li>GT1-14: Guarantor Date - End (DT) <b>optional </b>
065     * <li>GT1-15: Guarantor Priority (NM) <b>optional </b>
066     * <li>GT1-16: Guarantor Employer Name (XPN) <b>optional repeating</b>
067     * <li>GT1-17: Guarantor Employer Address (XAD) <b>optional repeating</b>
068     * <li>GT1-18: Guarantor Employer Phone Number (XTN) <b>optional repeating</b>
069     * <li>GT1-19: Guarantor Employee ID Number (CX) <b>optional repeating</b>
070     * <li>GT1-20: Guarantor Employment Status (IS) <b>optional </b>
071     * <li>GT1-21: Guarantor Organization Name (XON) <b>optional repeating</b>
072     * <li>GT1-22: Guarantor Billing Hold Flag (ID) <b>optional </b>
073     * <li>GT1-23: Guarantor Credit Rating Code (CWE) <b>optional </b>
074     * <li>GT1-24: Guarantor Death Date And Time (DTM) <b>optional </b>
075     * <li>GT1-25: Guarantor Death Flag (ID) <b>optional </b>
076     * <li>GT1-26: Guarantor Charge Adjustment Code (CWE) <b>optional </b>
077     * <li>GT1-27: Guarantor Household Annual Income (CP) <b>optional </b>
078     * <li>GT1-28: Guarantor Household Size (NM) <b>optional </b>
079     * <li>GT1-29: Guarantor Employer ID Number (CX) <b>optional repeating</b>
080     * <li>GT1-30: Guarantor Marital Status Code (CWE) <b>optional </b>
081     * <li>GT1-31: Guarantor Hire Effective Date (DT) <b>optional </b>
082     * <li>GT1-32: Employment Stop Date (DT) <b>optional </b>
083     * <li>GT1-33: Living Dependency (IS) <b>optional </b>
084     * <li>GT1-34: Ambulatory Status (IS) <b>optional repeating</b>
085     * <li>GT1-35: Citizenship (CWE) <b>optional repeating</b>
086     * <li>GT1-36: Primary Language (CWE) <b>optional </b>
087     * <li>GT1-37: Living Arrangement (IS) <b>optional </b>
088     * <li>GT1-38: Publicity Code (CWE) <b>optional </b>
089     * <li>GT1-39: Protection Indicator (ID) <b>optional </b>
090     * <li>GT1-40: Student Indicator (IS) <b>optional </b>
091     * <li>GT1-41: Religion (CWE) <b>optional </b>
092     * <li>GT1-42: Mother's Maiden Name (XPN) <b>optional repeating</b>
093     * <li>GT1-43: Nationality (CWE) <b>optional </b>
094     * <li>GT1-44: Ethnic Group (CWE) <b>optional repeating</b>
095     * <li>GT1-45: Contact Person's Name (XPN) <b>optional repeating</b>
096     * <li>GT1-46: Contact Person's Telephone Number (XTN) <b>optional repeating</b>
097     * <li>GT1-47: Contact Reason (CWE) <b>optional </b>
098     * <li>GT1-48: Contact Relationship (IS) <b>optional </b>
099     * <li>GT1-49: Job Title (ST) <b>optional </b>
100     * <li>GT1-50: Job Code/Class (JCC) <b>optional </b>
101     * <li>GT1-51: Guarantor Employer's Organization Name (XON) <b>optional repeating</b>
102     * <li>GT1-52: Handicap (IS) <b>optional </b>
103     * <li>GT1-53: Job Status (IS) <b>optional </b>
104     * <li>GT1-54: Guarantor Financial Class (FC) <b>optional </b>
105     * <li>GT1-55: Guarantor Race (CWE) <b>optional repeating</b>
106     * <li>GT1-56: Guarantor Birth Place (ST) <b>optional </b>
107     * <li>GT1-57: VIP Indicator (IS) <b>optional </b>
108 * </ul>
109 */
110@SuppressWarnings("unused")
111public class GT1 extends AbstractSegment {
112
113    /** 
114     * Creates a new GT1 segment
115     */
116    public GT1(Group parent, ModelClassFactory factory) {
117       super(parent, factory);
118       init(factory);
119    }
120
121    private void init(ModelClassFactory factory) {
122       try {
123                                  this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - GT1");
124                                  this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Number");
125                                  this.add(XPN.class, true, 0, 250, new Object[]{ getMessage() }, "Guarantor Name");
126                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Spouse Name");
127                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Address");
128                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Ph Num - Home");
129                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Ph Num - Business");
130                                  this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Guarantor Date/Time Of Birth");
131                                              this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Guarantor Administrative Sex");
132                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(68) }, "Guarantor Type");
133                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Guarantor Relationship");
134                                  this.add(ST.class, false, 1, 11, new Object[]{ getMessage() }, "Guarantor SSN");
135                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - Begin");
136                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - End");
137                                  this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor Priority");
138                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employer Name");
139                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employer Address");
140                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employer Phone Number");
141                                  this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employee ID Number");
142                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(66) }, "Guarantor Employment Status");
143                                  this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Organization Name");
144                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Billing Hold Flag");
145                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Guarantor Credit Rating Code");
146                                  this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Guarantor Death Date And Time");
147                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Death Flag");
148                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Guarantor Charge Adjustment Code");
149                                  this.add(CP.class, false, 1, 10, new Object[]{ getMessage() }, "Guarantor Household Annual Income");
150                                  this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Guarantor Household Size");
151                                  this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employer ID Number");
152                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Guarantor Marital Status Code");
153                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Hire Effective Date");
154                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Employment Stop Date");
155                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(223) }, "Living Dependency");
156                                              this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status");
157                                  this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Citizenship");
158                                  this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Primary Language");
159                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(220) }, "Living Arrangement");
160                                  this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Publicity Code");
161                                              this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(136) }, "Protection Indicator");
162                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(231) }, "Student Indicator");
163                                  this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Religion");
164                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Mother's Maiden Name");
165                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Nationality");
166                                  this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Ethnic Group");
167                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Contact Person's Name");
168                                  this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Contact Person's Telephone Number");
169                                  this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Contact Reason");
170                                              this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(63) }, "Contact Relationship");
171                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Job Title");
172                                  this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Job Code/Class");
173                                  this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Employer's Organization Name");
174                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(295) }, "Handicap");
175                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(311) }, "Job Status");
176                                  this.add(FC.class, false, 1, 50, new Object[]{ getMessage() }, "Guarantor Financial Class");
177                                  this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Guarantor Race");
178                                  this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Guarantor Birth Place");
179                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(99) }, "VIP Indicator");
180       } catch(HL7Exception e) {
181          log.error("Unexpected error creating GT1 - this is probably a bug in the source code generator.", e);
182       }
183    }
184
185
186
187    /**
188     * Returns
189     * GT1-1: "Set ID - GT1" - creates it if necessary
190     */
191    public SI getSetIDGT1() { 
192                SI retVal = this.getTypedField(1, 0);
193                return retVal;
194    }
195    
196    /**
197     * Returns
198     * GT1-1: "Set ID - GT1" - creates it if necessary
199     */
200    public SI getGt11_SetIDGT1() { 
201                SI retVal = this.getTypedField(1, 0);
202                return retVal;
203    }
204
205
206    /**
207     * Returns all repetitions of Guarantor Number (GT1-2).
208     */
209    public CX[] getGuarantorNumber() {
210        CX[] retVal = this.getTypedField(2, new CX[0]);
211        return retVal;
212    }
213
214
215    /**
216     * Returns all repetitions of Guarantor Number (GT1-2).
217     */
218    public CX[] getGt12_GuarantorNumber() {
219        CX[] retVal = this.getTypedField(2, new CX[0]);
220        return retVal;
221    }
222
223
224    /**
225     * Returns a count of the current number of repetitions of Guarantor Number (GT1-2).
226     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
227     * it will return zero.
228     */
229    public int getGuarantorNumberReps() {
230        return this.getReps(2);
231    }
232
233
234    /**
235     * Returns a specific repetition of
236     * GT1-2: "Guarantor Number" - creates it if necessary
237     *
238     * @param rep The repetition index (0-indexed)
239     */
240    public CX getGuarantorNumber(int rep) { 
241                CX retVal = this.getTypedField(2, rep);
242                return retVal;
243    }
244
245    /**
246     * Returns a specific repetition of
247     * GT1-2: "Guarantor Number" - creates it if necessary
248     *
249     * @param rep The repetition index (0-indexed)
250     */
251    public CX getGt12_GuarantorNumber(int rep) { 
252                CX retVal = this.getTypedField(2, rep);
253                return retVal;
254    }
255
256    /**
257     * Returns a count of the current number of repetitions of Guarantor Number (GT1-2).
258     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
259     * it will return zero.
260     */
261    public int getGt12_GuarantorNumberReps() {
262        return this.getReps(2);
263    }
264
265
266    /**
267     * Inserts a repetition of
268     * GT1-2: "Guarantor Number" at a specific index
269     *
270     * @param rep The repetition index (0-indexed)
271     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
272     */
273    public CX insertGuarantorNumber(int rep) throws HL7Exception { 
274        return (CX) super.insertRepetition(2, rep);
275    }
276
277
278    /**
279     * Inserts a repetition of
280     * GT1-2: "Guarantor Number" at a specific index
281     *
282     * @param rep The repetition index (0-indexed)
283     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
284     */
285    public CX insertGt12_GuarantorNumber(int rep) throws HL7Exception { 
286        return (CX) super.insertRepetition(2, rep);
287    }
288
289
290    /**
291     * Removes a repetition of
292     * GT1-2: "Guarantor Number" at a specific index
293     *
294     * @param rep The repetition index (0-indexed)
295     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
296     */
297    public CX removeGuarantorNumber(int rep) throws HL7Exception { 
298        return (CX) super.removeRepetition(2, rep);
299    }
300
301
302    /**
303     * Removes a repetition of
304     * GT1-2: "Guarantor Number" at a specific index
305     *
306     * @param rep The repetition index (0-indexed)
307     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
308     */
309    public CX removeGt12_GuarantorNumber(int rep) throws HL7Exception { 
310        return (CX) super.removeRepetition(2, rep);
311    }
312
313
314
315    /**
316     * Returns all repetitions of Guarantor Name (GT1-3).
317     */
318    public XPN[] getGuarantorName() {
319        XPN[] retVal = this.getTypedField(3, new XPN[0]);
320        return retVal;
321    }
322
323
324    /**
325     * Returns all repetitions of Guarantor Name (GT1-3).
326     */
327    public XPN[] getGt13_GuarantorName() {
328        XPN[] retVal = this.getTypedField(3, new XPN[0]);
329        return retVal;
330    }
331
332
333    /**
334     * Returns a count of the current number of repetitions of Guarantor Name (GT1-3).
335     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
336     * it will return zero.
337     */
338    public int getGuarantorNameReps() {
339        return this.getReps(3);
340    }
341
342
343    /**
344     * Returns a specific repetition of
345     * GT1-3: "Guarantor Name" - creates it if necessary
346     *
347     * @param rep The repetition index (0-indexed)
348     */
349    public XPN getGuarantorName(int rep) { 
350                XPN retVal = this.getTypedField(3, rep);
351                return retVal;
352    }
353
354    /**
355     * Returns a specific repetition of
356     * GT1-3: "Guarantor Name" - creates it if necessary
357     *
358     * @param rep The repetition index (0-indexed)
359     */
360    public XPN getGt13_GuarantorName(int rep) { 
361                XPN retVal = this.getTypedField(3, rep);
362                return retVal;
363    }
364
365    /**
366     * Returns a count of the current number of repetitions of Guarantor Name (GT1-3).
367     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
368     * it will return zero.
369     */
370    public int getGt13_GuarantorNameReps() {
371        return this.getReps(3);
372    }
373
374
375    /**
376     * Inserts a repetition of
377     * GT1-3: "Guarantor Name" at a specific index
378     *
379     * @param rep The repetition index (0-indexed)
380     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
381     */
382    public XPN insertGuarantorName(int rep) throws HL7Exception { 
383        return (XPN) super.insertRepetition(3, rep);
384    }
385
386
387    /**
388     * Inserts a repetition of
389     * GT1-3: "Guarantor Name" at a specific index
390     *
391     * @param rep The repetition index (0-indexed)
392     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
393     */
394    public XPN insertGt13_GuarantorName(int rep) throws HL7Exception { 
395        return (XPN) super.insertRepetition(3, rep);
396    }
397
398
399    /**
400     * Removes a repetition of
401     * GT1-3: "Guarantor Name" at a specific index
402     *
403     * @param rep The repetition index (0-indexed)
404     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
405     */
406    public XPN removeGuarantorName(int rep) throws HL7Exception { 
407        return (XPN) super.removeRepetition(3, rep);
408    }
409
410
411    /**
412     * Removes a repetition of
413     * GT1-3: "Guarantor Name" at a specific index
414     *
415     * @param rep The repetition index (0-indexed)
416     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
417     */
418    public XPN removeGt13_GuarantorName(int rep) throws HL7Exception { 
419        return (XPN) super.removeRepetition(3, rep);
420    }
421
422
423
424    /**
425     * Returns all repetitions of Guarantor Spouse Name (GT1-4).
426     */
427    public XPN[] getGuarantorSpouseName() {
428        XPN[] retVal = this.getTypedField(4, new XPN[0]);
429        return retVal;
430    }
431
432
433    /**
434     * Returns all repetitions of Guarantor Spouse Name (GT1-4).
435     */
436    public XPN[] getGt14_GuarantorSpouseName() {
437        XPN[] retVal = this.getTypedField(4, new XPN[0]);
438        return retVal;
439    }
440
441
442    /**
443     * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4).
444     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
445     * it will return zero.
446     */
447    public int getGuarantorSpouseNameReps() {
448        return this.getReps(4);
449    }
450
451
452    /**
453     * Returns a specific repetition of
454     * GT1-4: "Guarantor Spouse Name" - creates it if necessary
455     *
456     * @param rep The repetition index (0-indexed)
457     */
458    public XPN getGuarantorSpouseName(int rep) { 
459                XPN retVal = this.getTypedField(4, rep);
460                return retVal;
461    }
462
463    /**
464     * Returns a specific repetition of
465     * GT1-4: "Guarantor Spouse Name" - creates it if necessary
466     *
467     * @param rep The repetition index (0-indexed)
468     */
469    public XPN getGt14_GuarantorSpouseName(int rep) { 
470                XPN retVal = this.getTypedField(4, rep);
471                return retVal;
472    }
473
474    /**
475     * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4).
476     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
477     * it will return zero.
478     */
479    public int getGt14_GuarantorSpouseNameReps() {
480        return this.getReps(4);
481    }
482
483
484    /**
485     * Inserts a repetition of
486     * GT1-4: "Guarantor Spouse Name" at a specific index
487     *
488     * @param rep The repetition index (0-indexed)
489     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
490     */
491    public XPN insertGuarantorSpouseName(int rep) throws HL7Exception { 
492        return (XPN) super.insertRepetition(4, rep);
493    }
494
495
496    /**
497     * Inserts a repetition of
498     * GT1-4: "Guarantor Spouse Name" at a specific index
499     *
500     * @param rep The repetition index (0-indexed)
501     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
502     */
503    public XPN insertGt14_GuarantorSpouseName(int rep) throws HL7Exception { 
504        return (XPN) super.insertRepetition(4, rep);
505    }
506
507
508    /**
509     * Removes a repetition of
510     * GT1-4: "Guarantor Spouse Name" at a specific index
511     *
512     * @param rep The repetition index (0-indexed)
513     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
514     */
515    public XPN removeGuarantorSpouseName(int rep) throws HL7Exception { 
516        return (XPN) super.removeRepetition(4, rep);
517    }
518
519
520    /**
521     * Removes a repetition of
522     * GT1-4: "Guarantor Spouse Name" at a specific index
523     *
524     * @param rep The repetition index (0-indexed)
525     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
526     */
527    public XPN removeGt14_GuarantorSpouseName(int rep) throws HL7Exception { 
528        return (XPN) super.removeRepetition(4, rep);
529    }
530
531
532
533    /**
534     * Returns all repetitions of Guarantor Address (GT1-5).
535     */
536    public XAD[] getGuarantorAddress() {
537        XAD[] retVal = this.getTypedField(5, new XAD[0]);
538        return retVal;
539    }
540
541
542    /**
543     * Returns all repetitions of Guarantor Address (GT1-5).
544     */
545    public XAD[] getGt15_GuarantorAddress() {
546        XAD[] retVal = this.getTypedField(5, new XAD[0]);
547        return retVal;
548    }
549
550
551    /**
552     * Returns a count of the current number of repetitions of Guarantor Address (GT1-5).
553     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
554     * it will return zero.
555     */
556    public int getGuarantorAddressReps() {
557        return this.getReps(5);
558    }
559
560
561    /**
562     * Returns a specific repetition of
563     * GT1-5: "Guarantor Address" - creates it if necessary
564     *
565     * @param rep The repetition index (0-indexed)
566     */
567    public XAD getGuarantorAddress(int rep) { 
568                XAD retVal = this.getTypedField(5, rep);
569                return retVal;
570    }
571
572    /**
573     * Returns a specific repetition of
574     * GT1-5: "Guarantor Address" - creates it if necessary
575     *
576     * @param rep The repetition index (0-indexed)
577     */
578    public XAD getGt15_GuarantorAddress(int rep) { 
579                XAD retVal = this.getTypedField(5, rep);
580                return retVal;
581    }
582
583    /**
584     * Returns a count of the current number of repetitions of Guarantor Address (GT1-5).
585     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
586     * it will return zero.
587     */
588    public int getGt15_GuarantorAddressReps() {
589        return this.getReps(5);
590    }
591
592
593    /**
594     * Inserts a repetition of
595     * GT1-5: "Guarantor Address" at a specific index
596     *
597     * @param rep The repetition index (0-indexed)
598     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
599     */
600    public XAD insertGuarantorAddress(int rep) throws HL7Exception { 
601        return (XAD) super.insertRepetition(5, rep);
602    }
603
604
605    /**
606     * Inserts a repetition of
607     * GT1-5: "Guarantor Address" at a specific index
608     *
609     * @param rep The repetition index (0-indexed)
610     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
611     */
612    public XAD insertGt15_GuarantorAddress(int rep) throws HL7Exception { 
613        return (XAD) super.insertRepetition(5, rep);
614    }
615
616
617    /**
618     * Removes a repetition of
619     * GT1-5: "Guarantor Address" at a specific index
620     *
621     * @param rep The repetition index (0-indexed)
622     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
623     */
624    public XAD removeGuarantorAddress(int rep) throws HL7Exception { 
625        return (XAD) super.removeRepetition(5, rep);
626    }
627
628
629    /**
630     * Removes a repetition of
631     * GT1-5: "Guarantor Address" at a specific index
632     *
633     * @param rep The repetition index (0-indexed)
634     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
635     */
636    public XAD removeGt15_GuarantorAddress(int rep) throws HL7Exception { 
637        return (XAD) super.removeRepetition(5, rep);
638    }
639
640
641
642    /**
643     * Returns all repetitions of Guarantor Ph Num - Home (GT1-6).
644     */
645    public XTN[] getGuarantorPhNumHome() {
646        XTN[] retVal = this.getTypedField(6, new XTN[0]);
647        return retVal;
648    }
649
650
651    /**
652     * Returns all repetitions of Guarantor Ph Num - Home (GT1-6).
653     */
654    public XTN[] getGt16_GuarantorPhNumHome() {
655        XTN[] retVal = this.getTypedField(6, new XTN[0]);
656        return retVal;
657    }
658
659
660    /**
661     * Returns a count of the current number of repetitions of Guarantor Ph Num - Home (GT1-6).
662     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
663     * it will return zero.
664     */
665    public int getGuarantorPhNumHomeReps() {
666        return this.getReps(6);
667    }
668
669
670    /**
671     * Returns a specific repetition of
672     * GT1-6: "Guarantor Ph Num - Home" - creates it if necessary
673     *
674     * @param rep The repetition index (0-indexed)
675     */
676    public XTN getGuarantorPhNumHome(int rep) { 
677                XTN retVal = this.getTypedField(6, rep);
678                return retVal;
679    }
680
681    /**
682     * Returns a specific repetition of
683     * GT1-6: "Guarantor Ph Num - Home" - creates it if necessary
684     *
685     * @param rep The repetition index (0-indexed)
686     */
687    public XTN getGt16_GuarantorPhNumHome(int rep) { 
688                XTN retVal = this.getTypedField(6, rep);
689                return retVal;
690    }
691
692    /**
693     * Returns a count of the current number of repetitions of Guarantor Ph Num - Home (GT1-6).
694     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
695     * it will return zero.
696     */
697    public int getGt16_GuarantorPhNumHomeReps() {
698        return this.getReps(6);
699    }
700
701
702    /**
703     * Inserts a repetition of
704     * GT1-6: "Guarantor Ph Num - Home" at a specific index
705     *
706     * @param rep The repetition index (0-indexed)
707     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
708     */
709    public XTN insertGuarantorPhNumHome(int rep) throws HL7Exception { 
710        return (XTN) super.insertRepetition(6, rep);
711    }
712
713
714    /**
715     * Inserts a repetition of
716     * GT1-6: "Guarantor Ph Num - Home" at a specific index
717     *
718     * @param rep The repetition index (0-indexed)
719     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
720     */
721    public XTN insertGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 
722        return (XTN) super.insertRepetition(6, rep);
723    }
724
725
726    /**
727     * Removes a repetition of
728     * GT1-6: "Guarantor Ph Num - Home" at a specific index
729     *
730     * @param rep The repetition index (0-indexed)
731     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
732     */
733    public XTN removeGuarantorPhNumHome(int rep) throws HL7Exception { 
734        return (XTN) super.removeRepetition(6, rep);
735    }
736
737
738    /**
739     * Removes a repetition of
740     * GT1-6: "Guarantor Ph Num - Home" at a specific index
741     *
742     * @param rep The repetition index (0-indexed)
743     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
744     */
745    public XTN removeGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 
746        return (XTN) super.removeRepetition(6, rep);
747    }
748
749
750
751    /**
752     * Returns all repetitions of Guarantor Ph Num - Business (GT1-7).
753     */
754    public XTN[] getGuarantorPhNumBusiness() {
755        XTN[] retVal = this.getTypedField(7, new XTN[0]);
756        return retVal;
757    }
758
759
760    /**
761     * Returns all repetitions of Guarantor Ph Num - Business (GT1-7).
762     */
763    public XTN[] getGt17_GuarantorPhNumBusiness() {
764        XTN[] retVal = this.getTypedField(7, new XTN[0]);
765        return retVal;
766    }
767
768
769    /**
770     * Returns a count of the current number of repetitions of Guarantor Ph Num - Business (GT1-7).
771     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
772     * it will return zero.
773     */
774    public int getGuarantorPhNumBusinessReps() {
775        return this.getReps(7);
776    }
777
778
779    /**
780     * Returns a specific repetition of
781     * GT1-7: "Guarantor Ph Num - Business" - creates it if necessary
782     *
783     * @param rep The repetition index (0-indexed)
784     */
785    public XTN getGuarantorPhNumBusiness(int rep) { 
786                XTN retVal = this.getTypedField(7, rep);
787                return retVal;
788    }
789
790    /**
791     * Returns a specific repetition of
792     * GT1-7: "Guarantor Ph Num - Business" - creates it if necessary
793     *
794     * @param rep The repetition index (0-indexed)
795     */
796    public XTN getGt17_GuarantorPhNumBusiness(int rep) { 
797                XTN retVal = this.getTypedField(7, rep);
798                return retVal;
799    }
800
801    /**
802     * Returns a count of the current number of repetitions of Guarantor Ph Num - Business (GT1-7).
803     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
804     * it will return zero.
805     */
806    public int getGt17_GuarantorPhNumBusinessReps() {
807        return this.getReps(7);
808    }
809
810
811    /**
812     * Inserts a repetition of
813     * GT1-7: "Guarantor Ph Num - Business" at a specific index
814     *
815     * @param rep The repetition index (0-indexed)
816     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
817     */
818    public XTN insertGuarantorPhNumBusiness(int rep) throws HL7Exception { 
819        return (XTN) super.insertRepetition(7, rep);
820    }
821
822
823    /**
824     * Inserts a repetition of
825     * GT1-7: "Guarantor Ph Num - Business" at a specific index
826     *
827     * @param rep The repetition index (0-indexed)
828     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
829     */
830    public XTN insertGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 
831        return (XTN) super.insertRepetition(7, rep);
832    }
833
834
835    /**
836     * Removes a repetition of
837     * GT1-7: "Guarantor Ph Num - Business" at a specific index
838     *
839     * @param rep The repetition index (0-indexed)
840     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
841     */
842    public XTN removeGuarantorPhNumBusiness(int rep) throws HL7Exception { 
843        return (XTN) super.removeRepetition(7, rep);
844    }
845
846
847    /**
848     * Removes a repetition of
849     * GT1-7: "Guarantor Ph Num - Business" at a specific index
850     *
851     * @param rep The repetition index (0-indexed)
852     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
853     */
854    public XTN removeGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 
855        return (XTN) super.removeRepetition(7, rep);
856    }
857
858
859
860
861    /**
862     * Returns
863     * GT1-8: "Guarantor Date/Time Of Birth" - creates it if necessary
864     */
865    public DTM getGuarantorDateTimeOfBirth() { 
866                DTM retVal = this.getTypedField(8, 0);
867                return retVal;
868    }
869    
870    /**
871     * Returns
872     * GT1-8: "Guarantor Date/Time Of Birth" - creates it if necessary
873     */
874    public DTM getGt18_GuarantorDateTimeOfBirth() { 
875                DTM retVal = this.getTypedField(8, 0);
876                return retVal;
877    }
878
879
880
881    /**
882     * Returns
883     * GT1-9: "Guarantor Administrative Sex" - creates it if necessary
884     */
885    public IS getGuarantorAdministrativeSex() { 
886                IS retVal = this.getTypedField(9, 0);
887                return retVal;
888    }
889    
890    /**
891     * Returns
892     * GT1-9: "Guarantor Administrative Sex" - creates it if necessary
893     */
894    public IS getGt19_GuarantorAdministrativeSex() { 
895                IS retVal = this.getTypedField(9, 0);
896                return retVal;
897    }
898
899
900
901    /**
902     * Returns
903     * GT1-10: "Guarantor Type" - creates it if necessary
904     */
905    public IS getGuarantorType() { 
906                IS retVal = this.getTypedField(10, 0);
907                return retVal;
908    }
909    
910    /**
911     * Returns
912     * GT1-10: "Guarantor Type" - creates it if necessary
913     */
914    public IS getGt110_GuarantorType() { 
915                IS retVal = this.getTypedField(10, 0);
916                return retVal;
917    }
918
919
920
921    /**
922     * Returns
923     * GT1-11: "Guarantor Relationship" - creates it if necessary
924     */
925    public CWE getGuarantorRelationship() { 
926                CWE retVal = this.getTypedField(11, 0);
927                return retVal;
928    }
929    
930    /**
931     * Returns
932     * GT1-11: "Guarantor Relationship" - creates it if necessary
933     */
934    public CWE getGt111_GuarantorRelationship() { 
935                CWE retVal = this.getTypedField(11, 0);
936                return retVal;
937    }
938
939
940
941    /**
942     * Returns
943     * GT1-12: "Guarantor SSN" - creates it if necessary
944     */
945    public ST getGuarantorSSN() { 
946                ST retVal = this.getTypedField(12, 0);
947                return retVal;
948    }
949    
950    /**
951     * Returns
952     * GT1-12: "Guarantor SSN" - creates it if necessary
953     */
954    public ST getGt112_GuarantorSSN() { 
955                ST retVal = this.getTypedField(12, 0);
956                return retVal;
957    }
958
959
960
961    /**
962     * Returns
963     * GT1-13: "Guarantor Date - Begin" - creates it if necessary
964     */
965    public DT getGuarantorDateBegin() { 
966                DT retVal = this.getTypedField(13, 0);
967                return retVal;
968    }
969    
970    /**
971     * Returns
972     * GT1-13: "Guarantor Date - Begin" - creates it if necessary
973     */
974    public DT getGt113_GuarantorDateBegin() { 
975                DT retVal = this.getTypedField(13, 0);
976                return retVal;
977    }
978
979
980
981    /**
982     * Returns
983     * GT1-14: "Guarantor Date - End" - creates it if necessary
984     */
985    public DT getGuarantorDateEnd() { 
986                DT retVal = this.getTypedField(14, 0);
987                return retVal;
988    }
989    
990    /**
991     * Returns
992     * GT1-14: "Guarantor Date - End" - creates it if necessary
993     */
994    public DT getGt114_GuarantorDateEnd() { 
995                DT retVal = this.getTypedField(14, 0);
996                return retVal;
997    }
998
999
1000
1001    /**
1002     * Returns
1003     * GT1-15: "Guarantor Priority" - creates it if necessary
1004     */
1005    public NM getGuarantorPriority() { 
1006                NM retVal = this.getTypedField(15, 0);
1007                return retVal;
1008    }
1009    
1010    /**
1011     * Returns
1012     * GT1-15: "Guarantor Priority" - creates it if necessary
1013     */
1014    public NM getGt115_GuarantorPriority() { 
1015                NM retVal = this.getTypedField(15, 0);
1016                return retVal;
1017    }
1018
1019
1020    /**
1021     * Returns all repetitions of Guarantor Employer Name (GT1-16).
1022     */
1023    public XPN[] getGuarantorEmployerName() {
1024        XPN[] retVal = this.getTypedField(16, new XPN[0]);
1025        return retVal;
1026    }
1027
1028
1029    /**
1030     * Returns all repetitions of Guarantor Employer Name (GT1-16).
1031     */
1032    public XPN[] getGt116_GuarantorEmployerName() {
1033        XPN[] retVal = this.getTypedField(16, new XPN[0]);
1034        return retVal;
1035    }
1036
1037
1038    /**
1039     * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16).
1040     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1041     * it will return zero.
1042     */
1043    public int getGuarantorEmployerNameReps() {
1044        return this.getReps(16);
1045    }
1046
1047
1048    /**
1049     * Returns a specific repetition of
1050     * GT1-16: "Guarantor Employer Name" - creates it if necessary
1051     *
1052     * @param rep The repetition index (0-indexed)
1053     */
1054    public XPN getGuarantorEmployerName(int rep) { 
1055                XPN retVal = this.getTypedField(16, rep);
1056                return retVal;
1057    }
1058
1059    /**
1060     * Returns a specific repetition of
1061     * GT1-16: "Guarantor Employer Name" - creates it if necessary
1062     *
1063     * @param rep The repetition index (0-indexed)
1064     */
1065    public XPN getGt116_GuarantorEmployerName(int rep) { 
1066                XPN retVal = this.getTypedField(16, rep);
1067                return retVal;
1068    }
1069
1070    /**
1071     * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16).
1072     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1073     * it will return zero.
1074     */
1075    public int getGt116_GuarantorEmployerNameReps() {
1076        return this.getReps(16);
1077    }
1078
1079
1080    /**
1081     * Inserts a repetition of
1082     * GT1-16: "Guarantor Employer Name" at a specific index
1083     *
1084     * @param rep The repetition index (0-indexed)
1085     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1086     */
1087    public XPN insertGuarantorEmployerName(int rep) throws HL7Exception { 
1088        return (XPN) super.insertRepetition(16, rep);
1089    }
1090
1091
1092    /**
1093     * Inserts a repetition of
1094     * GT1-16: "Guarantor Employer Name" at a specific index
1095     *
1096     * @param rep The repetition index (0-indexed)
1097     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1098     */
1099    public XPN insertGt116_GuarantorEmployerName(int rep) throws HL7Exception { 
1100        return (XPN) super.insertRepetition(16, rep);
1101    }
1102
1103
1104    /**
1105     * Removes a repetition of
1106     * GT1-16: "Guarantor Employer Name" at a specific index
1107     *
1108     * @param rep The repetition index (0-indexed)
1109     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1110     */
1111    public XPN removeGuarantorEmployerName(int rep) throws HL7Exception { 
1112        return (XPN) super.removeRepetition(16, rep);
1113    }
1114
1115
1116    /**
1117     * Removes a repetition of
1118     * GT1-16: "Guarantor Employer Name" at a specific index
1119     *
1120     * @param rep The repetition index (0-indexed)
1121     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1122     */
1123    public XPN removeGt116_GuarantorEmployerName(int rep) throws HL7Exception { 
1124        return (XPN) super.removeRepetition(16, rep);
1125    }
1126
1127
1128
1129    /**
1130     * Returns all repetitions of Guarantor Employer Address (GT1-17).
1131     */
1132    public XAD[] getGuarantorEmployerAddress() {
1133        XAD[] retVal = this.getTypedField(17, new XAD[0]);
1134        return retVal;
1135    }
1136
1137
1138    /**
1139     * Returns all repetitions of Guarantor Employer Address (GT1-17).
1140     */
1141    public XAD[] getGt117_GuarantorEmployerAddress() {
1142        XAD[] retVal = this.getTypedField(17, new XAD[0]);
1143        return retVal;
1144    }
1145
1146
1147    /**
1148     * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17).
1149     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1150     * it will return zero.
1151     */
1152    public int getGuarantorEmployerAddressReps() {
1153        return this.getReps(17);
1154    }
1155
1156
1157    /**
1158     * Returns a specific repetition of
1159     * GT1-17: "Guarantor Employer Address" - creates it if necessary
1160     *
1161     * @param rep The repetition index (0-indexed)
1162     */
1163    public XAD getGuarantorEmployerAddress(int rep) { 
1164                XAD retVal = this.getTypedField(17, rep);
1165                return retVal;
1166    }
1167
1168    /**
1169     * Returns a specific repetition of
1170     * GT1-17: "Guarantor Employer Address" - creates it if necessary
1171     *
1172     * @param rep The repetition index (0-indexed)
1173     */
1174    public XAD getGt117_GuarantorEmployerAddress(int rep) { 
1175                XAD retVal = this.getTypedField(17, rep);
1176                return retVal;
1177    }
1178
1179    /**
1180     * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17).
1181     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1182     * it will return zero.
1183     */
1184    public int getGt117_GuarantorEmployerAddressReps() {
1185        return this.getReps(17);
1186    }
1187
1188
1189    /**
1190     * Inserts a repetition of
1191     * GT1-17: "Guarantor Employer Address" at a specific index
1192     *
1193     * @param rep The repetition index (0-indexed)
1194     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1195     */
1196    public XAD insertGuarantorEmployerAddress(int rep) throws HL7Exception { 
1197        return (XAD) super.insertRepetition(17, rep);
1198    }
1199
1200
1201    /**
1202     * Inserts a repetition of
1203     * GT1-17: "Guarantor Employer Address" at a specific index
1204     *
1205     * @param rep The repetition index (0-indexed)
1206     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1207     */
1208    public XAD insertGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 
1209        return (XAD) super.insertRepetition(17, rep);
1210    }
1211
1212
1213    /**
1214     * Removes a repetition of
1215     * GT1-17: "Guarantor Employer Address" at a specific index
1216     *
1217     * @param rep The repetition index (0-indexed)
1218     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1219     */
1220    public XAD removeGuarantorEmployerAddress(int rep) throws HL7Exception { 
1221        return (XAD) super.removeRepetition(17, rep);
1222    }
1223
1224
1225    /**
1226     * Removes a repetition of
1227     * GT1-17: "Guarantor Employer Address" at a specific index
1228     *
1229     * @param rep The repetition index (0-indexed)
1230     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1231     */
1232    public XAD removeGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 
1233        return (XAD) super.removeRepetition(17, rep);
1234    }
1235
1236
1237
1238    /**
1239     * Returns all repetitions of Guarantor Employer Phone Number (GT1-18).
1240     */
1241    public XTN[] getGuarantorEmployerPhoneNumber() {
1242        XTN[] retVal = this.getTypedField(18, new XTN[0]);
1243        return retVal;
1244    }
1245
1246
1247    /**
1248     * Returns all repetitions of Guarantor Employer Phone Number (GT1-18).
1249     */
1250    public XTN[] getGt118_GuarantorEmployerPhoneNumber() {
1251        XTN[] retVal = this.getTypedField(18, new XTN[0]);
1252        return retVal;
1253    }
1254
1255
1256    /**
1257     * Returns a count of the current number of repetitions of Guarantor Employer Phone Number (GT1-18).
1258     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1259     * it will return zero.
1260     */
1261    public int getGuarantorEmployerPhoneNumberReps() {
1262        return this.getReps(18);
1263    }
1264
1265
1266    /**
1267     * Returns a specific repetition of
1268     * GT1-18: "Guarantor Employer Phone Number" - creates it if necessary
1269     *
1270     * @param rep The repetition index (0-indexed)
1271     */
1272    public XTN getGuarantorEmployerPhoneNumber(int rep) { 
1273                XTN retVal = this.getTypedField(18, rep);
1274                return retVal;
1275    }
1276
1277    /**
1278     * Returns a specific repetition of
1279     * GT1-18: "Guarantor Employer Phone Number" - creates it if necessary
1280     *
1281     * @param rep The repetition index (0-indexed)
1282     */
1283    public XTN getGt118_GuarantorEmployerPhoneNumber(int rep) { 
1284                XTN retVal = this.getTypedField(18, rep);
1285                return retVal;
1286    }
1287
1288    /**
1289     * Returns a count of the current number of repetitions of Guarantor Employer Phone Number (GT1-18).
1290     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1291     * it will return zero.
1292     */
1293    public int getGt118_GuarantorEmployerPhoneNumberReps() {
1294        return this.getReps(18);
1295    }
1296
1297
1298    /**
1299     * Inserts a repetition of
1300     * GT1-18: "Guarantor Employer Phone Number" at a specific index
1301     *
1302     * @param rep The repetition index (0-indexed)
1303     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1304     */
1305    public XTN insertGuarantorEmployerPhoneNumber(int rep) throws HL7Exception { 
1306        return (XTN) super.insertRepetition(18, rep);
1307    }
1308
1309
1310    /**
1311     * Inserts a repetition of
1312     * GT1-18: "Guarantor Employer Phone Number" at a specific index
1313     *
1314     * @param rep The repetition index (0-indexed)
1315     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1316     */
1317    public XTN insertGt118_GuarantorEmployerPhoneNumber(int rep) throws HL7Exception { 
1318        return (XTN) super.insertRepetition(18, rep);
1319    }
1320
1321
1322    /**
1323     * Removes a repetition of
1324     * GT1-18: "Guarantor Employer Phone Number" at a specific index
1325     *
1326     * @param rep The repetition index (0-indexed)
1327     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1328     */
1329    public XTN removeGuarantorEmployerPhoneNumber(int rep) throws HL7Exception { 
1330        return (XTN) super.removeRepetition(18, rep);
1331    }
1332
1333
1334    /**
1335     * Removes a repetition of
1336     * GT1-18: "Guarantor Employer Phone Number" at a specific index
1337     *
1338     * @param rep The repetition index (0-indexed)
1339     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1340     */
1341    public XTN removeGt118_GuarantorEmployerPhoneNumber(int rep) throws HL7Exception { 
1342        return (XTN) super.removeRepetition(18, rep);
1343    }
1344
1345
1346
1347    /**
1348     * Returns all repetitions of Guarantor Employee ID Number (GT1-19).
1349     */
1350    public CX[] getGuarantorEmployeeIDNumber() {
1351        CX[] retVal = this.getTypedField(19, new CX[0]);
1352        return retVal;
1353    }
1354
1355
1356    /**
1357     * Returns all repetitions of Guarantor Employee ID Number (GT1-19).
1358     */
1359    public CX[] getGt119_GuarantorEmployeeIDNumber() {
1360        CX[] retVal = this.getTypedField(19, new CX[0]);
1361        return retVal;
1362    }
1363
1364
1365    /**
1366     * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19).
1367     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1368     * it will return zero.
1369     */
1370    public int getGuarantorEmployeeIDNumberReps() {
1371        return this.getReps(19);
1372    }
1373
1374
1375    /**
1376     * Returns a specific repetition of
1377     * GT1-19: "Guarantor Employee ID Number" - creates it if necessary
1378     *
1379     * @param rep The repetition index (0-indexed)
1380     */
1381    public CX getGuarantorEmployeeIDNumber(int rep) { 
1382                CX retVal = this.getTypedField(19, rep);
1383                return retVal;
1384    }
1385
1386    /**
1387     * Returns a specific repetition of
1388     * GT1-19: "Guarantor Employee ID Number" - creates it if necessary
1389     *
1390     * @param rep The repetition index (0-indexed)
1391     */
1392    public CX getGt119_GuarantorEmployeeIDNumber(int rep) { 
1393                CX retVal = this.getTypedField(19, rep);
1394                return retVal;
1395    }
1396
1397    /**
1398     * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19).
1399     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1400     * it will return zero.
1401     */
1402    public int getGt119_GuarantorEmployeeIDNumberReps() {
1403        return this.getReps(19);
1404    }
1405
1406
1407    /**
1408     * Inserts a repetition of
1409     * GT1-19: "Guarantor Employee ID Number" at a specific index
1410     *
1411     * @param rep The repetition index (0-indexed)
1412     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1413     */
1414    public CX insertGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1415        return (CX) super.insertRepetition(19, rep);
1416    }
1417
1418
1419    /**
1420     * Inserts a repetition of
1421     * GT1-19: "Guarantor Employee ID Number" at a specific index
1422     *
1423     * @param rep The repetition index (0-indexed)
1424     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1425     */
1426    public CX insertGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1427        return (CX) super.insertRepetition(19, rep);
1428    }
1429
1430
1431    /**
1432     * Removes a repetition of
1433     * GT1-19: "Guarantor Employee ID Number" at a specific index
1434     *
1435     * @param rep The repetition index (0-indexed)
1436     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1437     */
1438    public CX removeGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1439        return (CX) super.removeRepetition(19, rep);
1440    }
1441
1442
1443    /**
1444     * Removes a repetition of
1445     * GT1-19: "Guarantor Employee ID Number" at a specific index
1446     *
1447     * @param rep The repetition index (0-indexed)
1448     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1449     */
1450    public CX removeGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1451        return (CX) super.removeRepetition(19, rep);
1452    }
1453
1454
1455
1456
1457    /**
1458     * Returns
1459     * GT1-20: "Guarantor Employment Status" - creates it if necessary
1460     */
1461    public IS getGuarantorEmploymentStatus() { 
1462                IS retVal = this.getTypedField(20, 0);
1463                return retVal;
1464    }
1465    
1466    /**
1467     * Returns
1468     * GT1-20: "Guarantor Employment Status" - creates it if necessary
1469     */
1470    public IS getGt120_GuarantorEmploymentStatus() { 
1471                IS retVal = this.getTypedField(20, 0);
1472                return retVal;
1473    }
1474
1475
1476    /**
1477     * Returns all repetitions of Guarantor Organization Name (GT1-21).
1478     */
1479    public XON[] getGuarantorOrganizationName() {
1480        XON[] retVal = this.getTypedField(21, new XON[0]);
1481        return retVal;
1482    }
1483
1484
1485    /**
1486     * Returns all repetitions of Guarantor Organization Name (GT1-21).
1487     */
1488    public XON[] getGt121_GuarantorOrganizationName() {
1489        XON[] retVal = this.getTypedField(21, new XON[0]);
1490        return retVal;
1491    }
1492
1493
1494    /**
1495     * Returns a count of the current number of repetitions of Guarantor Organization Name (GT1-21).
1496     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1497     * it will return zero.
1498     */
1499    public int getGuarantorOrganizationNameReps() {
1500        return this.getReps(21);
1501    }
1502
1503
1504    /**
1505     * Returns a specific repetition of
1506     * GT1-21: "Guarantor Organization Name" - creates it if necessary
1507     *
1508     * @param rep The repetition index (0-indexed)
1509     */
1510    public XON getGuarantorOrganizationName(int rep) { 
1511                XON retVal = this.getTypedField(21, rep);
1512                return retVal;
1513    }
1514
1515    /**
1516     * Returns a specific repetition of
1517     * GT1-21: "Guarantor Organization Name" - creates it if necessary
1518     *
1519     * @param rep The repetition index (0-indexed)
1520     */
1521    public XON getGt121_GuarantorOrganizationName(int rep) { 
1522                XON retVal = this.getTypedField(21, rep);
1523                return retVal;
1524    }
1525
1526    /**
1527     * Returns a count of the current number of repetitions of Guarantor Organization Name (GT1-21).
1528     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1529     * it will return zero.
1530     */
1531    public int getGt121_GuarantorOrganizationNameReps() {
1532        return this.getReps(21);
1533    }
1534
1535
1536    /**
1537     * Inserts a repetition of
1538     * GT1-21: "Guarantor Organization Name" at a specific index
1539     *
1540     * @param rep The repetition index (0-indexed)
1541     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1542     */
1543    public XON insertGuarantorOrganizationName(int rep) throws HL7Exception { 
1544        return (XON) super.insertRepetition(21, rep);
1545    }
1546
1547
1548    /**
1549     * Inserts a repetition of
1550     * GT1-21: "Guarantor Organization Name" at a specific index
1551     *
1552     * @param rep The repetition index (0-indexed)
1553     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1554     */
1555    public XON insertGt121_GuarantorOrganizationName(int rep) throws HL7Exception { 
1556        return (XON) super.insertRepetition(21, rep);
1557    }
1558
1559
1560    /**
1561     * Removes a repetition of
1562     * GT1-21: "Guarantor Organization Name" at a specific index
1563     *
1564     * @param rep The repetition index (0-indexed)
1565     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1566     */
1567    public XON removeGuarantorOrganizationName(int rep) throws HL7Exception { 
1568        return (XON) super.removeRepetition(21, rep);
1569    }
1570
1571
1572    /**
1573     * Removes a repetition of
1574     * GT1-21: "Guarantor Organization Name" at a specific index
1575     *
1576     * @param rep The repetition index (0-indexed)
1577     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1578     */
1579    public XON removeGt121_GuarantorOrganizationName(int rep) throws HL7Exception { 
1580        return (XON) super.removeRepetition(21, rep);
1581    }
1582
1583
1584
1585
1586    /**
1587     * Returns
1588     * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary
1589     */
1590    public ID getGuarantorBillingHoldFlag() { 
1591                ID retVal = this.getTypedField(22, 0);
1592                return retVal;
1593    }
1594    
1595    /**
1596     * Returns
1597     * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary
1598     */
1599    public ID getGt122_GuarantorBillingHoldFlag() { 
1600                ID retVal = this.getTypedField(22, 0);
1601                return retVal;
1602    }
1603
1604
1605
1606    /**
1607     * Returns
1608     * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary
1609     */
1610    public CWE getGuarantorCreditRatingCode() { 
1611                CWE retVal = this.getTypedField(23, 0);
1612                return retVal;
1613    }
1614    
1615    /**
1616     * Returns
1617     * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary
1618     */
1619    public CWE getGt123_GuarantorCreditRatingCode() { 
1620                CWE retVal = this.getTypedField(23, 0);
1621                return retVal;
1622    }
1623
1624
1625
1626    /**
1627     * Returns
1628     * GT1-24: "Guarantor Death Date And Time" - creates it if necessary
1629     */
1630    public DTM getGuarantorDeathDateAndTime() { 
1631                DTM retVal = this.getTypedField(24, 0);
1632                return retVal;
1633    }
1634    
1635    /**
1636     * Returns
1637     * GT1-24: "Guarantor Death Date And Time" - creates it if necessary
1638     */
1639    public DTM getGt124_GuarantorDeathDateAndTime() { 
1640                DTM retVal = this.getTypedField(24, 0);
1641                return retVal;
1642    }
1643
1644
1645
1646    /**
1647     * Returns
1648     * GT1-25: "Guarantor Death Flag" - creates it if necessary
1649     */
1650    public ID getGuarantorDeathFlag() { 
1651                ID retVal = this.getTypedField(25, 0);
1652                return retVal;
1653    }
1654    
1655    /**
1656     * Returns
1657     * GT1-25: "Guarantor Death Flag" - creates it if necessary
1658     */
1659    public ID getGt125_GuarantorDeathFlag() { 
1660                ID retVal = this.getTypedField(25, 0);
1661                return retVal;
1662    }
1663
1664
1665
1666    /**
1667     * Returns
1668     * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary
1669     */
1670    public CWE getGuarantorChargeAdjustmentCode() { 
1671                CWE retVal = this.getTypedField(26, 0);
1672                return retVal;
1673    }
1674    
1675    /**
1676     * Returns
1677     * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary
1678     */
1679    public CWE getGt126_GuarantorChargeAdjustmentCode() { 
1680                CWE retVal = this.getTypedField(26, 0);
1681                return retVal;
1682    }
1683
1684
1685
1686    /**
1687     * Returns
1688     * GT1-27: "Guarantor Household Annual Income" - creates it if necessary
1689     */
1690    public CP getGuarantorHouseholdAnnualIncome() { 
1691                CP retVal = this.getTypedField(27, 0);
1692                return retVal;
1693    }
1694    
1695    /**
1696     * Returns
1697     * GT1-27: "Guarantor Household Annual Income" - creates it if necessary
1698     */
1699    public CP getGt127_GuarantorHouseholdAnnualIncome() { 
1700                CP retVal = this.getTypedField(27, 0);
1701                return retVal;
1702    }
1703
1704
1705
1706    /**
1707     * Returns
1708     * GT1-28: "Guarantor Household Size" - creates it if necessary
1709     */
1710    public NM getGuarantorHouseholdSize() { 
1711                NM retVal = this.getTypedField(28, 0);
1712                return retVal;
1713    }
1714    
1715    /**
1716     * Returns
1717     * GT1-28: "Guarantor Household Size" - creates it if necessary
1718     */
1719    public NM getGt128_GuarantorHouseholdSize() { 
1720                NM retVal = this.getTypedField(28, 0);
1721                return retVal;
1722    }
1723
1724
1725    /**
1726     * Returns all repetitions of Guarantor Employer ID Number (GT1-29).
1727     */
1728    public CX[] getGuarantorEmployerIDNumber() {
1729        CX[] retVal = this.getTypedField(29, new CX[0]);
1730        return retVal;
1731    }
1732
1733
1734    /**
1735     * Returns all repetitions of Guarantor Employer ID Number (GT1-29).
1736     */
1737    public CX[] getGt129_GuarantorEmployerIDNumber() {
1738        CX[] retVal = this.getTypedField(29, new CX[0]);
1739        return retVal;
1740    }
1741
1742
1743    /**
1744     * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29).
1745     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1746     * it will return zero.
1747     */
1748    public int getGuarantorEmployerIDNumberReps() {
1749        return this.getReps(29);
1750    }
1751
1752
1753    /**
1754     * Returns a specific repetition of
1755     * GT1-29: "Guarantor Employer ID Number" - creates it if necessary
1756     *
1757     * @param rep The repetition index (0-indexed)
1758     */
1759    public CX getGuarantorEmployerIDNumber(int rep) { 
1760                CX retVal = this.getTypedField(29, rep);
1761                return retVal;
1762    }
1763
1764    /**
1765     * Returns a specific repetition of
1766     * GT1-29: "Guarantor Employer ID Number" - creates it if necessary
1767     *
1768     * @param rep The repetition index (0-indexed)
1769     */
1770    public CX getGt129_GuarantorEmployerIDNumber(int rep) { 
1771                CX retVal = this.getTypedField(29, rep);
1772                return retVal;
1773    }
1774
1775    /**
1776     * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29).
1777     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1778     * it will return zero.
1779     */
1780    public int getGt129_GuarantorEmployerIDNumberReps() {
1781        return this.getReps(29);
1782    }
1783
1784
1785    /**
1786     * Inserts a repetition of
1787     * GT1-29: "Guarantor Employer ID Number" at a specific index
1788     *
1789     * @param rep The repetition index (0-indexed)
1790     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1791     */
1792    public CX insertGuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1793        return (CX) super.insertRepetition(29, rep);
1794    }
1795
1796
1797    /**
1798     * Inserts a repetition of
1799     * GT1-29: "Guarantor Employer ID Number" at a specific index
1800     *
1801     * @param rep The repetition index (0-indexed)
1802     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1803     */
1804    public CX insertGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1805        return (CX) super.insertRepetition(29, rep);
1806    }
1807
1808
1809    /**
1810     * Removes a repetition of
1811     * GT1-29: "Guarantor Employer ID Number" at a specific index
1812     *
1813     * @param rep The repetition index (0-indexed)
1814     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1815     */
1816    public CX removeGuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1817        return (CX) super.removeRepetition(29, rep);
1818    }
1819
1820
1821    /**
1822     * Removes a repetition of
1823     * GT1-29: "Guarantor Employer ID Number" at a specific index
1824     *
1825     * @param rep The repetition index (0-indexed)
1826     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1827     */
1828    public CX removeGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1829        return (CX) super.removeRepetition(29, rep);
1830    }
1831
1832
1833
1834
1835    /**
1836     * Returns
1837     * GT1-30: "Guarantor Marital Status Code" - creates it if necessary
1838     */
1839    public CWE getGuarantorMaritalStatusCode() { 
1840                CWE retVal = this.getTypedField(30, 0);
1841                return retVal;
1842    }
1843    
1844    /**
1845     * Returns
1846     * GT1-30: "Guarantor Marital Status Code" - creates it if necessary
1847     */
1848    public CWE getGt130_GuarantorMaritalStatusCode() { 
1849                CWE retVal = this.getTypedField(30, 0);
1850                return retVal;
1851    }
1852
1853
1854
1855    /**
1856     * Returns
1857     * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary
1858     */
1859    public DT getGuarantorHireEffectiveDate() { 
1860                DT retVal = this.getTypedField(31, 0);
1861                return retVal;
1862    }
1863    
1864    /**
1865     * Returns
1866     * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary
1867     */
1868    public DT getGt131_GuarantorHireEffectiveDate() { 
1869                DT retVal = this.getTypedField(31, 0);
1870                return retVal;
1871    }
1872
1873
1874
1875    /**
1876     * Returns
1877     * GT1-32: "Employment Stop Date" - creates it if necessary
1878     */
1879    public DT getEmploymentStopDate() { 
1880                DT retVal = this.getTypedField(32, 0);
1881                return retVal;
1882    }
1883    
1884    /**
1885     * Returns
1886     * GT1-32: "Employment Stop Date" - creates it if necessary
1887     */
1888    public DT getGt132_EmploymentStopDate() { 
1889                DT retVal = this.getTypedField(32, 0);
1890                return retVal;
1891    }
1892
1893
1894
1895    /**
1896     * Returns
1897     * GT1-33: "Living Dependency" - creates it if necessary
1898     */
1899    public IS getLivingDependency() { 
1900                IS retVal = this.getTypedField(33, 0);
1901                return retVal;
1902    }
1903    
1904    /**
1905     * Returns
1906     * GT1-33: "Living Dependency" - creates it if necessary
1907     */
1908    public IS getGt133_LivingDependency() { 
1909                IS retVal = this.getTypedField(33, 0);
1910                return retVal;
1911    }
1912
1913
1914    /**
1915     * Returns all repetitions of Ambulatory Status (GT1-34).
1916     */
1917    public IS[] getAmbulatoryStatus() {
1918        IS[] retVal = this.getTypedField(34, new IS[0]);
1919        return retVal;
1920    }
1921
1922
1923    /**
1924     * Returns all repetitions of Ambulatory Status (GT1-34).
1925     */
1926    public IS[] getGt134_AmbulatoryStatus() {
1927        IS[] retVal = this.getTypedField(34, new IS[0]);
1928        return retVal;
1929    }
1930
1931
1932    /**
1933     * Returns a count of the current number of repetitions of Ambulatory Status (GT1-34).
1934     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1935     * it will return zero.
1936     */
1937    public int getAmbulatoryStatusReps() {
1938        return this.getReps(34);
1939    }
1940
1941
1942    /**
1943     * Returns a specific repetition of
1944     * GT1-34: "Ambulatory Status" - creates it if necessary
1945     *
1946     * @param rep The repetition index (0-indexed)
1947     */
1948    public IS getAmbulatoryStatus(int rep) { 
1949                IS retVal = this.getTypedField(34, rep);
1950                return retVal;
1951    }
1952
1953    /**
1954     * Returns a specific repetition of
1955     * GT1-34: "Ambulatory Status" - creates it if necessary
1956     *
1957     * @param rep The repetition index (0-indexed)
1958     */
1959    public IS getGt134_AmbulatoryStatus(int rep) { 
1960                IS retVal = this.getTypedField(34, rep);
1961                return retVal;
1962    }
1963
1964    /**
1965     * Returns a count of the current number of repetitions of Ambulatory Status (GT1-34).
1966     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1967     * it will return zero.
1968     */
1969    public int getGt134_AmbulatoryStatusReps() {
1970        return this.getReps(34);
1971    }
1972
1973
1974    /**
1975     * Inserts a repetition of
1976     * GT1-34: "Ambulatory Status" at a specific index
1977     *
1978     * @param rep The repetition index (0-indexed)
1979     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1980     */
1981    public IS insertAmbulatoryStatus(int rep) throws HL7Exception { 
1982        return (IS) super.insertRepetition(34, rep);
1983    }
1984
1985
1986    /**
1987     * Inserts a repetition of
1988     * GT1-34: "Ambulatory Status" at a specific index
1989     *
1990     * @param rep The repetition index (0-indexed)
1991     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1992     */
1993    public IS insertGt134_AmbulatoryStatus(int rep) throws HL7Exception { 
1994        return (IS) super.insertRepetition(34, rep);
1995    }
1996
1997
1998    /**
1999     * Removes a repetition of
2000     * GT1-34: "Ambulatory Status" at a specific index
2001     *
2002     * @param rep The repetition index (0-indexed)
2003     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2004     */
2005    public IS removeAmbulatoryStatus(int rep) throws HL7Exception { 
2006        return (IS) super.removeRepetition(34, rep);
2007    }
2008
2009
2010    /**
2011     * Removes a repetition of
2012     * GT1-34: "Ambulatory Status" at a specific index
2013     *
2014     * @param rep The repetition index (0-indexed)
2015     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2016     */
2017    public IS removeGt134_AmbulatoryStatus(int rep) throws HL7Exception { 
2018        return (IS) super.removeRepetition(34, rep);
2019    }
2020
2021
2022
2023    /**
2024     * Returns all repetitions of Citizenship (GT1-35).
2025     */
2026    public CWE[] getCitizenship() {
2027        CWE[] retVal = this.getTypedField(35, new CWE[0]);
2028        return retVal;
2029    }
2030
2031
2032    /**
2033     * Returns all repetitions of Citizenship (GT1-35).
2034     */
2035    public CWE[] getGt135_Citizenship() {
2036        CWE[] retVal = this.getTypedField(35, new CWE[0]);
2037        return retVal;
2038    }
2039
2040
2041    /**
2042     * Returns a count of the current number of repetitions of Citizenship (GT1-35).
2043     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2044     * it will return zero.
2045     */
2046    public int getCitizenshipReps() {
2047        return this.getReps(35);
2048    }
2049
2050
2051    /**
2052     * Returns a specific repetition of
2053     * GT1-35: "Citizenship" - creates it if necessary
2054     *
2055     * @param rep The repetition index (0-indexed)
2056     */
2057    public CWE getCitizenship(int rep) { 
2058                CWE retVal = this.getTypedField(35, rep);
2059                return retVal;
2060    }
2061
2062    /**
2063     * Returns a specific repetition of
2064     * GT1-35: "Citizenship" - creates it if necessary
2065     *
2066     * @param rep The repetition index (0-indexed)
2067     */
2068    public CWE getGt135_Citizenship(int rep) { 
2069                CWE retVal = this.getTypedField(35, rep);
2070                return retVal;
2071    }
2072
2073    /**
2074     * Returns a count of the current number of repetitions of Citizenship (GT1-35).
2075     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2076     * it will return zero.
2077     */
2078    public int getGt135_CitizenshipReps() {
2079        return this.getReps(35);
2080    }
2081
2082
2083    /**
2084     * Inserts a repetition of
2085     * GT1-35: "Citizenship" at a specific index
2086     *
2087     * @param rep The repetition index (0-indexed)
2088     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2089     */
2090    public CWE insertCitizenship(int rep) throws HL7Exception { 
2091        return (CWE) super.insertRepetition(35, rep);
2092    }
2093
2094
2095    /**
2096     * Inserts a repetition of
2097     * GT1-35: "Citizenship" at a specific index
2098     *
2099     * @param rep The repetition index (0-indexed)
2100     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2101     */
2102    public CWE insertGt135_Citizenship(int rep) throws HL7Exception { 
2103        return (CWE) super.insertRepetition(35, rep);
2104    }
2105
2106
2107    /**
2108     * Removes a repetition of
2109     * GT1-35: "Citizenship" at a specific index
2110     *
2111     * @param rep The repetition index (0-indexed)
2112     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2113     */
2114    public CWE removeCitizenship(int rep) throws HL7Exception { 
2115        return (CWE) super.removeRepetition(35, rep);
2116    }
2117
2118
2119    /**
2120     * Removes a repetition of
2121     * GT1-35: "Citizenship" at a specific index
2122     *
2123     * @param rep The repetition index (0-indexed)
2124     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2125     */
2126    public CWE removeGt135_Citizenship(int rep) throws HL7Exception { 
2127        return (CWE) super.removeRepetition(35, rep);
2128    }
2129
2130
2131
2132
2133    /**
2134     * Returns
2135     * GT1-36: "Primary Language" - creates it if necessary
2136     */
2137    public CWE getPrimaryLanguage() { 
2138                CWE retVal = this.getTypedField(36, 0);
2139                return retVal;
2140    }
2141    
2142    /**
2143     * Returns
2144     * GT1-36: "Primary Language" - creates it if necessary
2145     */
2146    public CWE getGt136_PrimaryLanguage() { 
2147                CWE retVal = this.getTypedField(36, 0);
2148                return retVal;
2149    }
2150
2151
2152
2153    /**
2154     * Returns
2155     * GT1-37: "Living Arrangement" - creates it if necessary
2156     */
2157    public IS getLivingArrangement() { 
2158                IS retVal = this.getTypedField(37, 0);
2159                return retVal;
2160    }
2161    
2162    /**
2163     * Returns
2164     * GT1-37: "Living Arrangement" - creates it if necessary
2165     */
2166    public IS getGt137_LivingArrangement() { 
2167                IS retVal = this.getTypedField(37, 0);
2168                return retVal;
2169    }
2170
2171
2172
2173    /**
2174     * Returns
2175     * GT1-38: "Publicity Code" - creates it if necessary
2176     */
2177    public CWE getPublicityCode() { 
2178                CWE retVal = this.getTypedField(38, 0);
2179                return retVal;
2180    }
2181    
2182    /**
2183     * Returns
2184     * GT1-38: "Publicity Code" - creates it if necessary
2185     */
2186    public CWE getGt138_PublicityCode() { 
2187                CWE retVal = this.getTypedField(38, 0);
2188                return retVal;
2189    }
2190
2191
2192
2193    /**
2194     * Returns
2195     * GT1-39: "Protection Indicator" - creates it if necessary
2196     */
2197    public ID getProtectionIndicator() { 
2198                ID retVal = this.getTypedField(39, 0);
2199                return retVal;
2200    }
2201    
2202    /**
2203     * Returns
2204     * GT1-39: "Protection Indicator" - creates it if necessary
2205     */
2206    public ID getGt139_ProtectionIndicator() { 
2207                ID retVal = this.getTypedField(39, 0);
2208                return retVal;
2209    }
2210
2211
2212
2213    /**
2214     * Returns
2215     * GT1-40: "Student Indicator" - creates it if necessary
2216     */
2217    public IS getStudentIndicator() { 
2218                IS retVal = this.getTypedField(40, 0);
2219                return retVal;
2220    }
2221    
2222    /**
2223     * Returns
2224     * GT1-40: "Student Indicator" - creates it if necessary
2225     */
2226    public IS getGt140_StudentIndicator() { 
2227                IS retVal = this.getTypedField(40, 0);
2228                return retVal;
2229    }
2230
2231
2232
2233    /**
2234     * Returns
2235     * GT1-41: "Religion" - creates it if necessary
2236     */
2237    public CWE getReligion() { 
2238                CWE retVal = this.getTypedField(41, 0);
2239                return retVal;
2240    }
2241    
2242    /**
2243     * Returns
2244     * GT1-41: "Religion" - creates it if necessary
2245     */
2246    public CWE getGt141_Religion() { 
2247                CWE retVal = this.getTypedField(41, 0);
2248                return retVal;
2249    }
2250
2251
2252    /**
2253     * Returns all repetitions of Mother's Maiden Name (GT1-42).
2254     */
2255    public XPN[] getMotherSMaidenName() {
2256        XPN[] retVal = this.getTypedField(42, new XPN[0]);
2257        return retVal;
2258    }
2259
2260
2261    /**
2262     * Returns all repetitions of Mother's Maiden Name (GT1-42).
2263     */
2264    public XPN[] getGt142_MotherSMaidenName() {
2265        XPN[] retVal = this.getTypedField(42, new XPN[0]);
2266        return retVal;
2267    }
2268
2269
2270    /**
2271     * Returns a count of the current number of repetitions of Mother's Maiden Name (GT1-42).
2272     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2273     * it will return zero.
2274     */
2275    public int getMotherSMaidenNameReps() {
2276        return this.getReps(42);
2277    }
2278
2279
2280    /**
2281     * Returns a specific repetition of
2282     * GT1-42: "Mother's Maiden Name" - creates it if necessary
2283     *
2284     * @param rep The repetition index (0-indexed)
2285     */
2286    public XPN getMotherSMaidenName(int rep) { 
2287                XPN retVal = this.getTypedField(42, rep);
2288                return retVal;
2289    }
2290
2291    /**
2292     * Returns a specific repetition of
2293     * GT1-42: "Mother's Maiden Name" - creates it if necessary
2294     *
2295     * @param rep The repetition index (0-indexed)
2296     */
2297    public XPN getGt142_MotherSMaidenName(int rep) { 
2298                XPN retVal = this.getTypedField(42, rep);
2299                return retVal;
2300    }
2301
2302    /**
2303     * Returns a count of the current number of repetitions of Mother's Maiden Name (GT1-42).
2304     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2305     * it will return zero.
2306     */
2307    public int getGt142_MotherSMaidenNameReps() {
2308        return this.getReps(42);
2309    }
2310
2311
2312    /**
2313     * Inserts a repetition of
2314     * GT1-42: "Mother's Maiden Name" at a specific index
2315     *
2316     * @param rep The repetition index (0-indexed)
2317     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2318     */
2319    public XPN insertMotherSMaidenName(int rep) throws HL7Exception { 
2320        return (XPN) super.insertRepetition(42, rep);
2321    }
2322
2323
2324    /**
2325     * Inserts a repetition of
2326     * GT1-42: "Mother's Maiden Name" at a specific index
2327     *
2328     * @param rep The repetition index (0-indexed)
2329     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2330     */
2331    public XPN insertGt142_MotherSMaidenName(int rep) throws HL7Exception { 
2332        return (XPN) super.insertRepetition(42, rep);
2333    }
2334
2335
2336    /**
2337     * Removes a repetition of
2338     * GT1-42: "Mother's Maiden Name" at a specific index
2339     *
2340     * @param rep The repetition index (0-indexed)
2341     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2342     */
2343    public XPN removeMotherSMaidenName(int rep) throws HL7Exception { 
2344        return (XPN) super.removeRepetition(42, rep);
2345    }
2346
2347
2348    /**
2349     * Removes a repetition of
2350     * GT1-42: "Mother's Maiden Name" at a specific index
2351     *
2352     * @param rep The repetition index (0-indexed)
2353     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2354     */
2355    public XPN removeGt142_MotherSMaidenName(int rep) throws HL7Exception { 
2356        return (XPN) super.removeRepetition(42, rep);
2357    }
2358
2359
2360
2361
2362    /**
2363     * Returns
2364     * GT1-43: "Nationality" - creates it if necessary
2365     */
2366    public CWE getNationality() { 
2367                CWE retVal = this.getTypedField(43, 0);
2368                return retVal;
2369    }
2370    
2371    /**
2372     * Returns
2373     * GT1-43: "Nationality" - creates it if necessary
2374     */
2375    public CWE getGt143_Nationality() { 
2376                CWE retVal = this.getTypedField(43, 0);
2377                return retVal;
2378    }
2379
2380
2381    /**
2382     * Returns all repetitions of Ethnic Group (GT1-44).
2383     */
2384    public CWE[] getEthnicGroup() {
2385        CWE[] retVal = this.getTypedField(44, new CWE[0]);
2386        return retVal;
2387    }
2388
2389
2390    /**
2391     * Returns all repetitions of Ethnic Group (GT1-44).
2392     */
2393    public CWE[] getGt144_EthnicGroup() {
2394        CWE[] retVal = this.getTypedField(44, new CWE[0]);
2395        return retVal;
2396    }
2397
2398
2399    /**
2400     * Returns a count of the current number of repetitions of Ethnic Group (GT1-44).
2401     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2402     * it will return zero.
2403     */
2404    public int getEthnicGroupReps() {
2405        return this.getReps(44);
2406    }
2407
2408
2409    /**
2410     * Returns a specific repetition of
2411     * GT1-44: "Ethnic Group" - creates it if necessary
2412     *
2413     * @param rep The repetition index (0-indexed)
2414     */
2415    public CWE getEthnicGroup(int rep) { 
2416                CWE retVal = this.getTypedField(44, rep);
2417                return retVal;
2418    }
2419
2420    /**
2421     * Returns a specific repetition of
2422     * GT1-44: "Ethnic Group" - creates it if necessary
2423     *
2424     * @param rep The repetition index (0-indexed)
2425     */
2426    public CWE getGt144_EthnicGroup(int rep) { 
2427                CWE retVal = this.getTypedField(44, rep);
2428                return retVal;
2429    }
2430
2431    /**
2432     * Returns a count of the current number of repetitions of Ethnic Group (GT1-44).
2433     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2434     * it will return zero.
2435     */
2436    public int getGt144_EthnicGroupReps() {
2437        return this.getReps(44);
2438    }
2439
2440
2441    /**
2442     * Inserts a repetition of
2443     * GT1-44: "Ethnic Group" at a specific index
2444     *
2445     * @param rep The repetition index (0-indexed)
2446     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2447     */
2448    public CWE insertEthnicGroup(int rep) throws HL7Exception { 
2449        return (CWE) super.insertRepetition(44, rep);
2450    }
2451
2452
2453    /**
2454     * Inserts a repetition of
2455     * GT1-44: "Ethnic Group" at a specific index
2456     *
2457     * @param rep The repetition index (0-indexed)
2458     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2459     */
2460    public CWE insertGt144_EthnicGroup(int rep) throws HL7Exception { 
2461        return (CWE) super.insertRepetition(44, rep);
2462    }
2463
2464
2465    /**
2466     * Removes a repetition of
2467     * GT1-44: "Ethnic Group" at a specific index
2468     *
2469     * @param rep The repetition index (0-indexed)
2470     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2471     */
2472    public CWE removeEthnicGroup(int rep) throws HL7Exception { 
2473        return (CWE) super.removeRepetition(44, rep);
2474    }
2475
2476
2477    /**
2478     * Removes a repetition of
2479     * GT1-44: "Ethnic Group" at a specific index
2480     *
2481     * @param rep The repetition index (0-indexed)
2482     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2483     */
2484    public CWE removeGt144_EthnicGroup(int rep) throws HL7Exception { 
2485        return (CWE) super.removeRepetition(44, rep);
2486    }
2487
2488
2489
2490    /**
2491     * Returns all repetitions of Contact Person's Name (GT1-45).
2492     */
2493    public XPN[] getContactPersonSName() {
2494        XPN[] retVal = this.getTypedField(45, new XPN[0]);
2495        return retVal;
2496    }
2497
2498
2499    /**
2500     * Returns all repetitions of Contact Person's Name (GT1-45).
2501     */
2502    public XPN[] getGt145_ContactPersonSName() {
2503        XPN[] retVal = this.getTypedField(45, new XPN[0]);
2504        return retVal;
2505    }
2506
2507
2508    /**
2509     * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45).
2510     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2511     * it will return zero.
2512     */
2513    public int getContactPersonSNameReps() {
2514        return this.getReps(45);
2515    }
2516
2517
2518    /**
2519     * Returns a specific repetition of
2520     * GT1-45: "Contact Person's Name" - creates it if necessary
2521     *
2522     * @param rep The repetition index (0-indexed)
2523     */
2524    public XPN getContactPersonSName(int rep) { 
2525                XPN retVal = this.getTypedField(45, rep);
2526                return retVal;
2527    }
2528
2529    /**
2530     * Returns a specific repetition of
2531     * GT1-45: "Contact Person's Name" - creates it if necessary
2532     *
2533     * @param rep The repetition index (0-indexed)
2534     */
2535    public XPN getGt145_ContactPersonSName(int rep) { 
2536                XPN retVal = this.getTypedField(45, rep);
2537                return retVal;
2538    }
2539
2540    /**
2541     * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45).
2542     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2543     * it will return zero.
2544     */
2545    public int getGt145_ContactPersonSNameReps() {
2546        return this.getReps(45);
2547    }
2548
2549
2550    /**
2551     * Inserts a repetition of
2552     * GT1-45: "Contact Person's Name" at a specific index
2553     *
2554     * @param rep The repetition index (0-indexed)
2555     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2556     */
2557    public XPN insertContactPersonSName(int rep) throws HL7Exception { 
2558        return (XPN) super.insertRepetition(45, rep);
2559    }
2560
2561
2562    /**
2563     * Inserts a repetition of
2564     * GT1-45: "Contact Person's Name" at a specific index
2565     *
2566     * @param rep The repetition index (0-indexed)
2567     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2568     */
2569    public XPN insertGt145_ContactPersonSName(int rep) throws HL7Exception { 
2570        return (XPN) super.insertRepetition(45, rep);
2571    }
2572
2573
2574    /**
2575     * Removes a repetition of
2576     * GT1-45: "Contact Person's Name" at a specific index
2577     *
2578     * @param rep The repetition index (0-indexed)
2579     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2580     */
2581    public XPN removeContactPersonSName(int rep) throws HL7Exception { 
2582        return (XPN) super.removeRepetition(45, rep);
2583    }
2584
2585
2586    /**
2587     * Removes a repetition of
2588     * GT1-45: "Contact Person's Name" at a specific index
2589     *
2590     * @param rep The repetition index (0-indexed)
2591     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2592     */
2593    public XPN removeGt145_ContactPersonSName(int rep) throws HL7Exception { 
2594        return (XPN) super.removeRepetition(45, rep);
2595    }
2596
2597
2598
2599    /**
2600     * Returns all repetitions of Contact Person's Telephone Number (GT1-46).
2601     */
2602    public XTN[] getContactPersonSTelephoneNumber() {
2603        XTN[] retVal = this.getTypedField(46, new XTN[0]);
2604        return retVal;
2605    }
2606
2607
2608    /**
2609     * Returns all repetitions of Contact Person's Telephone Number (GT1-46).
2610     */
2611    public XTN[] getGt146_ContactPersonSTelephoneNumber() {
2612        XTN[] retVal = this.getTypedField(46, new XTN[0]);
2613        return retVal;
2614    }
2615
2616
2617    /**
2618     * Returns a count of the current number of repetitions of Contact Person's Telephone Number (GT1-46).
2619     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2620     * it will return zero.
2621     */
2622    public int getContactPersonSTelephoneNumberReps() {
2623        return this.getReps(46);
2624    }
2625
2626
2627    /**
2628     * Returns a specific repetition of
2629     * GT1-46: "Contact Person's Telephone Number" - creates it if necessary
2630     *
2631     * @param rep The repetition index (0-indexed)
2632     */
2633    public XTN getContactPersonSTelephoneNumber(int rep) { 
2634                XTN retVal = this.getTypedField(46, rep);
2635                return retVal;
2636    }
2637
2638    /**
2639     * Returns a specific repetition of
2640     * GT1-46: "Contact Person's Telephone Number" - creates it if necessary
2641     *
2642     * @param rep The repetition index (0-indexed)
2643     */
2644    public XTN getGt146_ContactPersonSTelephoneNumber(int rep) { 
2645                XTN retVal = this.getTypedField(46, rep);
2646                return retVal;
2647    }
2648
2649    /**
2650     * Returns a count of the current number of repetitions of Contact Person's Telephone Number (GT1-46).
2651     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2652     * it will return zero.
2653     */
2654    public int getGt146_ContactPersonSTelephoneNumberReps() {
2655        return this.getReps(46);
2656    }
2657
2658
2659    /**
2660     * Inserts a repetition of
2661     * GT1-46: "Contact Person's Telephone Number" at a specific index
2662     *
2663     * @param rep The repetition index (0-indexed)
2664     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2665     */
2666    public XTN insertContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2667        return (XTN) super.insertRepetition(46, rep);
2668    }
2669
2670
2671    /**
2672     * Inserts a repetition of
2673     * GT1-46: "Contact Person's Telephone Number" at a specific index
2674     *
2675     * @param rep The repetition index (0-indexed)
2676     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2677     */
2678    public XTN insertGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2679        return (XTN) super.insertRepetition(46, rep);
2680    }
2681
2682
2683    /**
2684     * Removes a repetition of
2685     * GT1-46: "Contact Person's Telephone Number" at a specific index
2686     *
2687     * @param rep The repetition index (0-indexed)
2688     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2689     */
2690    public XTN removeContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2691        return (XTN) super.removeRepetition(46, rep);
2692    }
2693
2694
2695    /**
2696     * Removes a repetition of
2697     * GT1-46: "Contact Person's Telephone Number" at a specific index
2698     *
2699     * @param rep The repetition index (0-indexed)
2700     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2701     */
2702    public XTN removeGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2703        return (XTN) super.removeRepetition(46, rep);
2704    }
2705
2706
2707
2708
2709    /**
2710     * Returns
2711     * GT1-47: "Contact Reason" - creates it if necessary
2712     */
2713    public CWE getContactReason() { 
2714                CWE retVal = this.getTypedField(47, 0);
2715                return retVal;
2716    }
2717    
2718    /**
2719     * Returns
2720     * GT1-47: "Contact Reason" - creates it if necessary
2721     */
2722    public CWE getGt147_ContactReason() { 
2723                CWE retVal = this.getTypedField(47, 0);
2724                return retVal;
2725    }
2726
2727
2728
2729    /**
2730     * Returns
2731     * GT1-48: "Contact Relationship" - creates it if necessary
2732     */
2733    public IS getContactRelationship() { 
2734                IS retVal = this.getTypedField(48, 0);
2735                return retVal;
2736    }
2737    
2738    /**
2739     * Returns
2740     * GT1-48: "Contact Relationship" - creates it if necessary
2741     */
2742    public IS getGt148_ContactRelationship() { 
2743                IS retVal = this.getTypedField(48, 0);
2744                return retVal;
2745    }
2746
2747
2748
2749    /**
2750     * Returns
2751     * GT1-49: "Job Title" - creates it if necessary
2752     */
2753    public ST getJobTitle() { 
2754                ST retVal = this.getTypedField(49, 0);
2755                return retVal;
2756    }
2757    
2758    /**
2759     * Returns
2760     * GT1-49: "Job Title" - creates it if necessary
2761     */
2762    public ST getGt149_JobTitle() { 
2763                ST retVal = this.getTypedField(49, 0);
2764                return retVal;
2765    }
2766
2767
2768
2769    /**
2770     * Returns
2771     * GT1-50: "Job Code/Class" - creates it if necessary
2772     */
2773    public JCC getJobCodeClass() { 
2774                JCC retVal = this.getTypedField(50, 0);
2775                return retVal;
2776    }
2777    
2778    /**
2779     * Returns
2780     * GT1-50: "Job Code/Class" - creates it if necessary
2781     */
2782    public JCC getGt150_JobCodeClass() { 
2783                JCC retVal = this.getTypedField(50, 0);
2784                return retVal;
2785    }
2786
2787
2788    /**
2789     * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51).
2790     */
2791    public XON[] getGuarantorEmployerSOrganizationName() {
2792        XON[] retVal = this.getTypedField(51, new XON[0]);
2793        return retVal;
2794    }
2795
2796
2797    /**
2798     * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51).
2799     */
2800    public XON[] getGt151_GuarantorEmployerSOrganizationName() {
2801        XON[] retVal = this.getTypedField(51, new XON[0]);
2802        return retVal;
2803    }
2804
2805
2806    /**
2807     * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51).
2808     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2809     * it will return zero.
2810     */
2811    public int getGuarantorEmployerSOrganizationNameReps() {
2812        return this.getReps(51);
2813    }
2814
2815
2816    /**
2817     * Returns a specific repetition of
2818     * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary
2819     *
2820     * @param rep The repetition index (0-indexed)
2821     */
2822    public XON getGuarantorEmployerSOrganizationName(int rep) { 
2823                XON retVal = this.getTypedField(51, rep);
2824                return retVal;
2825    }
2826
2827    /**
2828     * Returns a specific repetition of
2829     * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary
2830     *
2831     * @param rep The repetition index (0-indexed)
2832     */
2833    public XON getGt151_GuarantorEmployerSOrganizationName(int rep) { 
2834                XON retVal = this.getTypedField(51, rep);
2835                return retVal;
2836    }
2837
2838    /**
2839     * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51).
2840     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2841     * it will return zero.
2842     */
2843    public int getGt151_GuarantorEmployerSOrganizationNameReps() {
2844        return this.getReps(51);
2845    }
2846
2847
2848    /**
2849     * Inserts a repetition of
2850     * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2851     *
2852     * @param rep The repetition index (0-indexed)
2853     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2854     */
2855    public XON insertGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2856        return (XON) super.insertRepetition(51, rep);
2857    }
2858
2859
2860    /**
2861     * Inserts a repetition of
2862     * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2863     *
2864     * @param rep The repetition index (0-indexed)
2865     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2866     */
2867    public XON insertGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2868        return (XON) super.insertRepetition(51, rep);
2869    }
2870
2871
2872    /**
2873     * Removes a repetition of
2874     * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2875     *
2876     * @param rep The repetition index (0-indexed)
2877     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2878     */
2879    public XON removeGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2880        return (XON) super.removeRepetition(51, rep);
2881    }
2882
2883
2884    /**
2885     * Removes a repetition of
2886     * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2887     *
2888     * @param rep The repetition index (0-indexed)
2889     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2890     */
2891    public XON removeGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2892        return (XON) super.removeRepetition(51, rep);
2893    }
2894
2895
2896
2897
2898    /**
2899     * Returns
2900     * GT1-52: "Handicap" - creates it if necessary
2901     */
2902    public IS getHandicap() { 
2903                IS retVal = this.getTypedField(52, 0);
2904                return retVal;
2905    }
2906    
2907    /**
2908     * Returns
2909     * GT1-52: "Handicap" - creates it if necessary
2910     */
2911    public IS getGt152_Handicap() { 
2912                IS retVal = this.getTypedField(52, 0);
2913                return retVal;
2914    }
2915
2916
2917
2918    /**
2919     * Returns
2920     * GT1-53: "Job Status" - creates it if necessary
2921     */
2922    public IS getJobStatus() { 
2923                IS retVal = this.getTypedField(53, 0);
2924                return retVal;
2925    }
2926    
2927    /**
2928     * Returns
2929     * GT1-53: "Job Status" - creates it if necessary
2930     */
2931    public IS getGt153_JobStatus() { 
2932                IS retVal = this.getTypedField(53, 0);
2933                return retVal;
2934    }
2935
2936
2937
2938    /**
2939     * Returns
2940     * GT1-54: "Guarantor Financial Class" - creates it if necessary
2941     */
2942    public FC getGuarantorFinancialClass() { 
2943                FC retVal = this.getTypedField(54, 0);
2944                return retVal;
2945    }
2946    
2947    /**
2948     * Returns
2949     * GT1-54: "Guarantor Financial Class" - creates it if necessary
2950     */
2951    public FC getGt154_GuarantorFinancialClass() { 
2952                FC retVal = this.getTypedField(54, 0);
2953                return retVal;
2954    }
2955
2956
2957    /**
2958     * Returns all repetitions of Guarantor Race (GT1-55).
2959     */
2960    public CWE[] getGuarantorRace() {
2961        CWE[] retVal = this.getTypedField(55, new CWE[0]);
2962        return retVal;
2963    }
2964
2965
2966    /**
2967     * Returns all repetitions of Guarantor Race (GT1-55).
2968     */
2969    public CWE[] getGt155_GuarantorRace() {
2970        CWE[] retVal = this.getTypedField(55, new CWE[0]);
2971        return retVal;
2972    }
2973
2974
2975    /**
2976     * Returns a count of the current number of repetitions of Guarantor Race (GT1-55).
2977     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2978     * it will return zero.
2979     */
2980    public int getGuarantorRaceReps() {
2981        return this.getReps(55);
2982    }
2983
2984
2985    /**
2986     * Returns a specific repetition of
2987     * GT1-55: "Guarantor Race" - creates it if necessary
2988     *
2989     * @param rep The repetition index (0-indexed)
2990     */
2991    public CWE getGuarantorRace(int rep) { 
2992                CWE retVal = this.getTypedField(55, rep);
2993                return retVal;
2994    }
2995
2996    /**
2997     * Returns a specific repetition of
2998     * GT1-55: "Guarantor Race" - creates it if necessary
2999     *
3000     * @param rep The repetition index (0-indexed)
3001     */
3002    public CWE getGt155_GuarantorRace(int rep) { 
3003                CWE retVal = this.getTypedField(55, rep);
3004                return retVal;
3005    }
3006
3007    /**
3008     * Returns a count of the current number of repetitions of Guarantor Race (GT1-55).
3009     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
3010     * it will return zero.
3011     */
3012    public int getGt155_GuarantorRaceReps() {
3013        return this.getReps(55);
3014    }
3015
3016
3017    /**
3018     * Inserts a repetition of
3019     * GT1-55: "Guarantor Race" at a specific index
3020     *
3021     * @param rep The repetition index (0-indexed)
3022     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3023     */
3024    public CWE insertGuarantorRace(int rep) throws HL7Exception { 
3025        return (CWE) super.insertRepetition(55, rep);
3026    }
3027
3028
3029    /**
3030     * Inserts a repetition of
3031     * GT1-55: "Guarantor Race" at a specific index
3032     *
3033     * @param rep The repetition index (0-indexed)
3034     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3035     */
3036    public CWE insertGt155_GuarantorRace(int rep) throws HL7Exception { 
3037        return (CWE) super.insertRepetition(55, rep);
3038    }
3039
3040
3041    /**
3042     * Removes a repetition of
3043     * GT1-55: "Guarantor Race" at a specific index
3044     *
3045     * @param rep The repetition index (0-indexed)
3046     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3047     */
3048    public CWE removeGuarantorRace(int rep) throws HL7Exception { 
3049        return (CWE) super.removeRepetition(55, rep);
3050    }
3051
3052
3053    /**
3054     * Removes a repetition of
3055     * GT1-55: "Guarantor Race" at a specific index
3056     *
3057     * @param rep The repetition index (0-indexed)
3058     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3059     */
3060    public CWE removeGt155_GuarantorRace(int rep) throws HL7Exception { 
3061        return (CWE) super.removeRepetition(55, rep);
3062    }
3063
3064
3065
3066
3067    /**
3068     * Returns
3069     * GT1-56: "Guarantor Birth Place" - creates it if necessary
3070     */
3071    public ST getGuarantorBirthPlace() { 
3072                ST retVal = this.getTypedField(56, 0);
3073                return retVal;
3074    }
3075    
3076    /**
3077     * Returns
3078     * GT1-56: "Guarantor Birth Place" - creates it if necessary
3079     */
3080    public ST getGt156_GuarantorBirthPlace() { 
3081                ST retVal = this.getTypedField(56, 0);
3082                return retVal;
3083    }
3084
3085
3086
3087    /**
3088     * Returns
3089     * GT1-57: "VIP Indicator" - creates it if necessary
3090     */
3091    public IS getVIPIndicator() { 
3092                IS retVal = this.getTypedField(57, 0);
3093                return retVal;
3094    }
3095    
3096    /**
3097     * Returns
3098     * GT1-57: "VIP Indicator" - creates it if necessary
3099     */
3100    public IS getGt157_VIPIndicator() { 
3101                IS retVal = this.getTypedField(57, 0);
3102                return retVal;
3103    }
3104
3105
3106
3107
3108
3109    /** {@inheritDoc} */   
3110    protected Type createNewTypeWithoutReflection(int field) {
3111       switch (field) {
3112          case 0: return new SI(getMessage());
3113          case 1: return new CX(getMessage());
3114          case 2: return new XPN(getMessage());
3115          case 3: return new XPN(getMessage());
3116          case 4: return new XAD(getMessage());
3117          case 5: return new XTN(getMessage());
3118          case 6: return new XTN(getMessage());
3119          case 7: return new DTM(getMessage());
3120          case 8: return new IS(getMessage(), new Integer( 1 ));
3121          case 9: return new IS(getMessage(), new Integer( 68 ));
3122          case 10: return new CWE(getMessage());
3123          case 11: return new ST(getMessage());
3124          case 12: return new DT(getMessage());
3125          case 13: return new DT(getMessage());
3126          case 14: return new NM(getMessage());
3127          case 15: return new XPN(getMessage());
3128          case 16: return new XAD(getMessage());
3129          case 17: return new XTN(getMessage());
3130          case 18: return new CX(getMessage());
3131          case 19: return new IS(getMessage(), new Integer( 66 ));
3132          case 20: return new XON(getMessage());
3133          case 21: return new ID(getMessage(), new Integer( 136 ));
3134          case 22: return new CWE(getMessage());
3135          case 23: return new DTM(getMessage());
3136          case 24: return new ID(getMessage(), new Integer( 136 ));
3137          case 25: return new CWE(getMessage());
3138          case 26: return new CP(getMessage());
3139          case 27: return new NM(getMessage());
3140          case 28: return new CX(getMessage());
3141          case 29: return new CWE(getMessage());
3142          case 30: return new DT(getMessage());
3143          case 31: return new DT(getMessage());
3144          case 32: return new IS(getMessage(), new Integer( 223 ));
3145          case 33: return new IS(getMessage(), new Integer( 9 ));
3146          case 34: return new CWE(getMessage());
3147          case 35: return new CWE(getMessage());
3148          case 36: return new IS(getMessage(), new Integer( 220 ));
3149          case 37: return new CWE(getMessage());
3150          case 38: return new ID(getMessage(), new Integer( 136 ));
3151          case 39: return new IS(getMessage(), new Integer( 231 ));
3152          case 40: return new CWE(getMessage());
3153          case 41: return new XPN(getMessage());
3154          case 42: return new CWE(getMessage());
3155          case 43: return new CWE(getMessage());
3156          case 44: return new XPN(getMessage());
3157          case 45: return new XTN(getMessage());
3158          case 46: return new CWE(getMessage());
3159          case 47: return new IS(getMessage(), new Integer( 63 ));
3160          case 48: return new ST(getMessage());
3161          case 49: return new JCC(getMessage());
3162          case 50: return new XON(getMessage());
3163          case 51: return new IS(getMessage(), new Integer( 295 ));
3164          case 52: return new IS(getMessage(), new Integer( 311 ));
3165          case 53: return new FC(getMessage());
3166          case 54: return new CWE(getMessage());
3167          case 55: return new ST(getMessage());
3168          case 56: return new IS(getMessage(), new Integer( 99 ));
3169          default: return null;
3170       }
3171   }
3172
3173
3174}
3175