View Javadoc
1   /*
2    * This class is an auto-generated source file for a HAPI
3    * HL7 v2.x standard structure class.
4    *
5    * For more information, visit: http://hl7api.sourceforge.net/
6    * 
7    * The contents of this file are subject to the Mozilla Public License Version 1.1 
8    * (the "License"); you may not use this file except in compliance with the License. 
9    * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
10   * Software distributed under the License is distributed on an "AS IS" basis, 
11   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
12   * specific language governing rights and limitations under the License. 
13   * 
14   * The Original Code is "[file_name]".  Description: 
15   * "[one_line_description]" 
16   * 
17   * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
18   * 2012.  All Rights Reserved. 
19   * 
20   * Contributor(s): ______________________________________. 
21   * 
22   * Alternatively, the contents of this file may be used under the terms of the 
23   * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
24   * applicable instead of those above.  If you wish to allow use of your version of this 
25   * file only under the terms of the GPL and not to allow others to use your version 
26   * of this file under the MPL, indicate your decision by deleting  the provisions above 
27   * and replace  them with the notice and other provisions required by the GPL License.  
28   * If you do not delete the provisions above, a recipient may use your version of 
29   * this file under either the MPL or the GPL. 
30   * 
31   */
32  
33  
34  package ca.uhn.hl7v2.model.v23.segment;
35  
36  // import ca.uhn.hl7v2.model.v23.group.*;
37  import ca.uhn.hl7v2.model.v23.datatype.*;
38  import ca.uhn.hl7v2.HL7Exception;
39  import ca.uhn.hl7v2.parser.ModelClassFactory;
40  import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
41  import ca.uhn.hl7v2.model.AbstractMessage;
42  import ca.uhn.hl7v2.model.Group;
43  import ca.uhn.hl7v2.model.Type;
44  import ca.uhn.hl7v2.model.AbstractSegment;
45  import ca.uhn.hl7v2.model.Varies;
46  
47  
48  /**
49   *<p>Represents an HL7 GT1 message segment (Guarantor). 
50   * This segment has the following fields:</p>
51   * <ul>
52       * <li>GT1-1: Set ID - Guarantor (SI) <b> </b>
53       * <li>GT1-2: Guarantor Number (CX) <b>optional repeating</b>
54       * <li>GT1-3: Guarantor Name (XPN) <b> repeating</b>
55       * <li>GT1-4: Guarantor Spouse Name (XPN) <b>optional repeating</b>
56       * <li>GT1-5: Guarantor Address (XAD) <b>optional repeating</b>
57       * <li>GT1-6: Guarantor Ph Num- Home (XTN) <b>optional repeating</b>
58       * <li>GT1-7: Guarantor Ph Num-Business (XTN) <b>optional repeating</b>
59       * <li>GT1-8: Guarantor Date/Time of Birth (TS) <b>optional </b>
60       * <li>GT1-9: Guarantor Sex (IS) <b>optional </b>
61       * <li>GT1-10: Guarantor Type (IS) <b>optional </b>
62       * <li>GT1-11: Guarantor Relationship (IS) <b>optional </b>
63       * <li>GT1-12: Guarantor SSN (ST) <b>optional </b>
64       * <li>GT1-13: Guarantor Date - Begin (DT) <b>optional </b>
65       * <li>GT1-14: Guarantor Date - End (DT) <b>optional </b>
66       * <li>GT1-15: Guarantor Priority (NM) <b>optional </b>
67       * <li>GT1-16: Guarantor Employer Name (XPN) <b>optional repeating</b>
68       * <li>GT1-17: Guarantor Employer Address (XAD) <b>optional repeating</b>
69       * <li>GT1-18: Guarantor Employ Phone Number (XTN) <b>optional repeating</b>
70       * <li>GT1-19: Guarantor Employee ID Number (CX) <b>optional repeating</b>
71       * <li>GT1-20: Guarantor Employment Status (IS) <b>optional </b>
72       * <li>GT1-21: Guarantor Organization (XON) <b>optional repeating</b>
73       * <li>GT1-22: Guarantor Billing Hold Flag (ID) <b>optional </b>
74       * <li>GT1-23: Guarantor Credit Rating Code (CE) <b>optional </b>
75       * <li>GT1-24: Guarantor Death Date And Time (TS) <b>optional </b>
76       * <li>GT1-25: Guarantor Death Flag (ID) <b>optional </b>
77       * <li>GT1-26: Guarantor Charge Adjustment Code (CE) <b>optional </b>
78       * <li>GT1-27: Guarantor Household Annual Income (CP) <b>optional </b>
79       * <li>GT1-28: Guarantor Household Size (NM) <b>optional </b>
80       * <li>GT1-29: Guarantor Employer ID Number (CX) <b>optional repeating</b>
81       * <li>GT1-30: Guarantor Marital Status Code (IS) <b>optional </b>
82       * <li>GT1-31: Guarantor Hire Effective Date (DT) <b>optional </b>
83       * <li>GT1-32: Employment Stop Date (DT) <b>optional </b>
84       * <li>GT1-33: Living Dependency (IS) <b>optional </b>
85       * <li>GT1-34: Ambulatory Status (IS) <b>optional </b>
86       * <li>GT1-35: Citizenship (IS) <b>optional </b>
87       * <li>GT1-36: Primary Language (CE) <b>optional </b>
88       * <li>GT1-37: Living Arrangement (IS) <b>optional </b>
89       * <li>GT1-38: Publicity Indicator (CE) <b>optional </b>
90       * <li>GT1-39: Protection Indicator (ID) <b>optional </b>
91       * <li>GT1-40: Student Indicator (IS) <b>optional </b>
92       * <li>GT1-41: Religion (IS) <b>optional </b>
93       * <li>GT1-42: Mother’s Maiden Name (XPN) <b>optional </b>
94       * <li>GT1-43: Nationality Code (CE) <b>optional </b>
95       * <li>GT1-44: Ethnic Group (IS) <b>optional </b>
96       * <li>GT1-45: Contact Person's Name (XPN) <b>optional repeating</b>
97       * <li>GT1-46: Contact Person’s Telephone Number (XTN) <b>optional repeating</b>
98       * <li>GT1-47: Contact Reason (CE) <b>optional </b>
99       * <li>GT1-48: Contact Relationship Code (IS) <b>optional </b>
100      * <li>GT1-49: Job Title (ST) <b>optional </b>
101      * <li>GT1-50: Job Code/Class (JCC) <b>optional </b>
102      * <li>GT1-51: Guarantor Employer's Organization Name (XON) <b>optional repeating</b>
103      * <li>GT1-52: Handicap (IS) <b>optional </b>
104      * <li>GT1-53: Job Status (IS) <b>optional </b>
105      * <li>GT1-54: Guarantor Financial Class (FC) <b>optional </b>
106      * <li>GT1-55: Guarantor Race (IS) <b>optional </b>
107  * </ul>
108  */
109 @SuppressWarnings("unused")
110 public class GT1 extends AbstractSegment {
111 
112     /** 
113      * Creates a new GT1 segment
114      */
115     public GT1(Group parent, ModelClassFactory factory) {
116        super(parent, factory);
117        init(factory);
118     }
119 
120     private void init(ModelClassFactory factory) {
121        try {
122                                   this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Guarantor");
123                                   this.add(CX.class, false, 0, 59, new Object[]{ getMessage() }, "Guarantor Number");
124                                   this.add(XPN.class, true, 0, 48, new Object[]{ getMessage() }, "Guarantor Name");
125                                   this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Guarantor Spouse Name");
126                                   this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Guarantor Address");
127                                   this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Ph Num- Home");
128                                   this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Ph Num-Business");
129                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Guarantor Date/Time of Birth");
130                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Guarantor Sex");
131                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(68) }, "Guarantor Type");
132                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Guarantor Relationship");
133                                   this.add(ST.class, false, 1, 11, new Object[]{ getMessage() }, "Guarantor SSN");
134                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - Begin");
135                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - End");
136                                   this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor Priority");
137                                   this.add(XPN.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Employer Name");
138                                   this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Guarantor Employer Address");
139                                   this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Employ Phone Number");
140                                   this.add(CX.class, false, 0, 20, new Object[]{ getMessage() }, "Guarantor Employee ID Number");
141                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(66) }, "Guarantor Employment Status");
142                                   this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Organization");
143                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Billing Hold Flag");
144                                   this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Guarantor Credit Rating Code");
145                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Guarantor Death Date And Time");
146                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Death Flag");
147                                   this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Guarantor Charge Adjustment Code");
148                                   this.add(CP.class, false, 1, 10, new Object[]{ getMessage() }, "Guarantor Household Annual Income");
149                                   this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Guarantor Household Size");
150                                   this.add(CX.class, false, 0, 20, new Object[]{ getMessage() }, "Guarantor Employer ID Number");
151                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "Guarantor Marital Status Code");
152                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Hire Effective Date");
153                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Employment Stop Date");
154                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(223) }, "Living Dependency");
155                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status");
156                                               this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(171) }, "Citizenship");
157                                   this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Primary Language");
158                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(220) }, "Living Arrangement");
159                                   this.add(CE.class, false, 1, 1, new Object[]{ getMessage() }, "Publicity Indicator");
160                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Protection Indicator");
161                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(231) }, "Student Indicator");
162                                               this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(6) }, "Religion");
163                                   this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Mother’s Maiden Name");
164                                   this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Nationality Code");
165                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group");
166                                   this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Contact Person's Name");
167                                   this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Contact Person’s Telephone Number");
168                                   this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Contact Reason");
169                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Contact Relationship Code");
170                                   this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Job Title");
171                                   this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Job Code/Class");
172                                   this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Employer's Organization Name");
173                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(310) }, "Handicap");
174                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(311) }, "Job Status");
175                                   this.add(FC.class, false, 1, 50, new Object[]{ getMessage() }, "Guarantor Financial Class");
176                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(5) }, "Guarantor Race");
177        } catch(HL7Exception e) {
178           log.error("Unexpected error creating GT1 - this is probably a bug in the source code generator.", e);
179        }
180     }
181 
182 
183 
184     /**
185      * Returns
186      * GT1-1: "Set ID - Guarantor" - creates it if necessary
187      */
188     public SI getSetIDGuarantor() { 
189 		SI retVal = this.getTypedField(1, 0);
190 		return retVal;
191     }
192     
193     /**
194      * Returns
195      * GT1-1: "Set ID - Guarantor" - creates it if necessary
196      */
197     public SI getGt11_SetIDGuarantor() { 
198 		SI retVal = this.getTypedField(1, 0);
199 		return retVal;
200     }
201 
202 
203     /**
204      * Returns all repetitions of Guarantor Number (GT1-2).
205      */
206     public CX[] getGuarantorNumber() {
207     	CX[] retVal = this.getTypedField(2, new CX[0]);
208     	return retVal;
209     }
210 
211 
212     /**
213      * Returns all repetitions of Guarantor Number (GT1-2).
214      */
215     public CX[] getGt12_GuarantorNumber() {
216     	CX[] retVal = this.getTypedField(2, new CX[0]);
217     	return retVal;
218     }
219 
220 
221     /**
222      * Returns a count of the current number of repetitions of Guarantor Number (GT1-2).
223      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
224      * it will return zero.
225      */
226     public int getGuarantorNumberReps() {
227     	return this.getReps(2);
228     }
229 
230 
231     /**
232      * Returns a specific repetition of
233      * GT1-2: "Guarantor Number" - creates it if necessary
234      *
235      * @param rep The repetition index (0-indexed)
236      */
237     public CX getGuarantorNumber(int rep) { 
238 		CX retVal = this.getTypedField(2, rep);
239 		return retVal;
240     }
241 
242     /**
243      * Returns a specific repetition of
244      * GT1-2: "Guarantor Number" - creates it if necessary
245      *
246      * @param rep The repetition index (0-indexed)
247      */
248     public CX getGt12_GuarantorNumber(int rep) { 
249 		CX retVal = this.getTypedField(2, rep);
250 		return retVal;
251     }
252 
253     /**
254      * Returns a count of the current number of repetitions of Guarantor Number (GT1-2).
255      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
256      * it will return zero.
257      */
258     public int getGt12_GuarantorNumberReps() {
259     	return this.getReps(2);
260     }
261 
262 
263     /**
264      * Inserts a repetition of
265      * GT1-2: "Guarantor Number" at a specific index
266      *
267      * @param rep The repetition index (0-indexed)
268      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
269      */
270     public CX insertGuarantorNumber(int rep) throws HL7Exception { 
271         return (CX) super.insertRepetition(2, rep);
272     }
273 
274 
275     /**
276      * Inserts a repetition of
277      * GT1-2: "Guarantor Number" at a specific index
278      *
279      * @param rep The repetition index (0-indexed)
280      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
281      */
282     public CX insertGt12_GuarantorNumber(int rep) throws HL7Exception { 
283         return (CX) super.insertRepetition(2, rep);
284     }
285 
286 
287     /**
288      * Removes a repetition of
289      * GT1-2: "Guarantor Number" at a specific index
290      *
291      * @param rep The repetition index (0-indexed)
292      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
293      */
294     public CX removeGuarantorNumber(int rep) throws HL7Exception { 
295         return (CX) super.removeRepetition(2, rep);
296     }
297 
298 
299     /**
300      * Removes a repetition of
301      * GT1-2: "Guarantor Number" at a specific index
302      *
303      * @param rep The repetition index (0-indexed)
304      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
305      */
306     public CX removeGt12_GuarantorNumber(int rep) throws HL7Exception { 
307         return (CX) super.removeRepetition(2, rep);
308     }
309 
310 
311 
312     /**
313      * Returns all repetitions of Guarantor Name (GT1-3).
314      */
315     public XPN[] getGuarantorName() {
316     	XPN[] retVal = this.getTypedField(3, new XPN[0]);
317     	return retVal;
318     }
319 
320 
321     /**
322      * Returns all repetitions of Guarantor Name (GT1-3).
323      */
324     public XPN[] getGt13_GuarantorName() {
325     	XPN[] retVal = this.getTypedField(3, new XPN[0]);
326     	return retVal;
327     }
328 
329 
330     /**
331      * Returns a count of the current number of repetitions of Guarantor Name (GT1-3).
332      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
333      * it will return zero.
334      */
335     public int getGuarantorNameReps() {
336     	return this.getReps(3);
337     }
338 
339 
340     /**
341      * Returns a specific repetition of
342      * GT1-3: "Guarantor Name" - creates it if necessary
343      *
344      * @param rep The repetition index (0-indexed)
345      */
346     public XPN getGuarantorName(int rep) { 
347 		XPN retVal = this.getTypedField(3, rep);
348 		return retVal;
349     }
350 
351     /**
352      * Returns a specific repetition of
353      * GT1-3: "Guarantor Name" - creates it if necessary
354      *
355      * @param rep The repetition index (0-indexed)
356      */
357     public XPN getGt13_GuarantorName(int rep) { 
358 		XPN retVal = this.getTypedField(3, rep);
359 		return retVal;
360     }
361 
362     /**
363      * Returns a count of the current number of repetitions of Guarantor Name (GT1-3).
364      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
365      * it will return zero.
366      */
367     public int getGt13_GuarantorNameReps() {
368     	return this.getReps(3);
369     }
370 
371 
372     /**
373      * Inserts a repetition of
374      * GT1-3: "Guarantor Name" at a specific index
375      *
376      * @param rep The repetition index (0-indexed)
377      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
378      */
379     public XPN insertGuarantorName(int rep) throws HL7Exception { 
380         return (XPN) super.insertRepetition(3, rep);
381     }
382 
383 
384     /**
385      * Inserts a repetition of
386      * GT1-3: "Guarantor Name" at a specific index
387      *
388      * @param rep The repetition index (0-indexed)
389      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
390      */
391     public XPN insertGt13_GuarantorName(int rep) throws HL7Exception { 
392         return (XPN) super.insertRepetition(3, rep);
393     }
394 
395 
396     /**
397      * Removes a repetition of
398      * GT1-3: "Guarantor Name" at a specific index
399      *
400      * @param rep The repetition index (0-indexed)
401      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
402      */
403     public XPN removeGuarantorName(int rep) throws HL7Exception { 
404         return (XPN) super.removeRepetition(3, rep);
405     }
406 
407 
408     /**
409      * Removes a repetition of
410      * GT1-3: "Guarantor Name" at a specific index
411      *
412      * @param rep The repetition index (0-indexed)
413      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
414      */
415     public XPN removeGt13_GuarantorName(int rep) throws HL7Exception { 
416         return (XPN) super.removeRepetition(3, rep);
417     }
418 
419 
420 
421     /**
422      * Returns all repetitions of Guarantor Spouse Name (GT1-4).
423      */
424     public XPN[] getGuarantorSpouseName() {
425     	XPN[] retVal = this.getTypedField(4, new XPN[0]);
426     	return retVal;
427     }
428 
429 
430     /**
431      * Returns all repetitions of Guarantor Spouse Name (GT1-4).
432      */
433     public XPN[] getGt14_GuarantorSpouseName() {
434     	XPN[] retVal = this.getTypedField(4, new XPN[0]);
435     	return retVal;
436     }
437 
438 
439     /**
440      * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4).
441      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
442      * it will return zero.
443      */
444     public int getGuarantorSpouseNameReps() {
445     	return this.getReps(4);
446     }
447 
448 
449     /**
450      * Returns a specific repetition of
451      * GT1-4: "Guarantor Spouse Name" - creates it if necessary
452      *
453      * @param rep The repetition index (0-indexed)
454      */
455     public XPN getGuarantorSpouseName(int rep) { 
456 		XPN retVal = this.getTypedField(4, rep);
457 		return retVal;
458     }
459 
460     /**
461      * Returns a specific repetition of
462      * GT1-4: "Guarantor Spouse Name" - creates it if necessary
463      *
464      * @param rep The repetition index (0-indexed)
465      */
466     public XPN getGt14_GuarantorSpouseName(int rep) { 
467 		XPN retVal = this.getTypedField(4, rep);
468 		return retVal;
469     }
470 
471     /**
472      * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4).
473      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
474      * it will return zero.
475      */
476     public int getGt14_GuarantorSpouseNameReps() {
477     	return this.getReps(4);
478     }
479 
480 
481     /**
482      * Inserts a repetition of
483      * GT1-4: "Guarantor Spouse Name" at a specific index
484      *
485      * @param rep The repetition index (0-indexed)
486      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
487      */
488     public XPN insertGuarantorSpouseName(int rep) throws HL7Exception { 
489         return (XPN) super.insertRepetition(4, rep);
490     }
491 
492 
493     /**
494      * Inserts a repetition of
495      * GT1-4: "Guarantor Spouse Name" at a specific index
496      *
497      * @param rep The repetition index (0-indexed)
498      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
499      */
500     public XPN insertGt14_GuarantorSpouseName(int rep) throws HL7Exception { 
501         return (XPN) super.insertRepetition(4, rep);
502     }
503 
504 
505     /**
506      * Removes a repetition of
507      * GT1-4: "Guarantor Spouse Name" at a specific index
508      *
509      * @param rep The repetition index (0-indexed)
510      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
511      */
512     public XPN removeGuarantorSpouseName(int rep) throws HL7Exception { 
513         return (XPN) super.removeRepetition(4, rep);
514     }
515 
516 
517     /**
518      * Removes a repetition of
519      * GT1-4: "Guarantor Spouse Name" at a specific index
520      *
521      * @param rep The repetition index (0-indexed)
522      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
523      */
524     public XPN removeGt14_GuarantorSpouseName(int rep) throws HL7Exception { 
525         return (XPN) super.removeRepetition(4, rep);
526     }
527 
528 
529 
530     /**
531      * Returns all repetitions of Guarantor Address (GT1-5).
532      */
533     public XAD[] getGuarantorAddress() {
534     	XAD[] retVal = this.getTypedField(5, new XAD[0]);
535     	return retVal;
536     }
537 
538 
539     /**
540      * Returns all repetitions of Guarantor Address (GT1-5).
541      */
542     public XAD[] getGt15_GuarantorAddress() {
543     	XAD[] retVal = this.getTypedField(5, new XAD[0]);
544     	return retVal;
545     }
546 
547 
548     /**
549      * Returns a count of the current number of repetitions of Guarantor Address (GT1-5).
550      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
551      * it will return zero.
552      */
553     public int getGuarantorAddressReps() {
554     	return this.getReps(5);
555     }
556 
557 
558     /**
559      * Returns a specific repetition of
560      * GT1-5: "Guarantor Address" - creates it if necessary
561      *
562      * @param rep The repetition index (0-indexed)
563      */
564     public XAD getGuarantorAddress(int rep) { 
565 		XAD retVal = this.getTypedField(5, rep);
566 		return retVal;
567     }
568 
569     /**
570      * Returns a specific repetition of
571      * GT1-5: "Guarantor Address" - creates it if necessary
572      *
573      * @param rep The repetition index (0-indexed)
574      */
575     public XAD getGt15_GuarantorAddress(int rep) { 
576 		XAD retVal = this.getTypedField(5, rep);
577 		return retVal;
578     }
579 
580     /**
581      * Returns a count of the current number of repetitions of Guarantor Address (GT1-5).
582      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
583      * it will return zero.
584      */
585     public int getGt15_GuarantorAddressReps() {
586     	return this.getReps(5);
587     }
588 
589 
590     /**
591      * Inserts a repetition of
592      * GT1-5: "Guarantor Address" at a specific index
593      *
594      * @param rep The repetition index (0-indexed)
595      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
596      */
597     public XAD insertGuarantorAddress(int rep) throws HL7Exception { 
598         return (XAD) super.insertRepetition(5, rep);
599     }
600 
601 
602     /**
603      * Inserts a repetition of
604      * GT1-5: "Guarantor Address" at a specific index
605      *
606      * @param rep The repetition index (0-indexed)
607      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
608      */
609     public XAD insertGt15_GuarantorAddress(int rep) throws HL7Exception { 
610         return (XAD) super.insertRepetition(5, rep);
611     }
612 
613 
614     /**
615      * Removes a repetition of
616      * GT1-5: "Guarantor Address" at a specific index
617      *
618      * @param rep The repetition index (0-indexed)
619      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
620      */
621     public XAD removeGuarantorAddress(int rep) throws HL7Exception { 
622         return (XAD) super.removeRepetition(5, rep);
623     }
624 
625 
626     /**
627      * Removes a repetition of
628      * GT1-5: "Guarantor Address" at a specific index
629      *
630      * @param rep The repetition index (0-indexed)
631      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
632      */
633     public XAD removeGt15_GuarantorAddress(int rep) throws HL7Exception { 
634         return (XAD) super.removeRepetition(5, rep);
635     }
636 
637 
638 
639     /**
640      * Returns all repetitions of Guarantor Ph Num- Home (GT1-6).
641      */
642     public XTN[] getGuarantorPhNumHome() {
643     	XTN[] retVal = this.getTypedField(6, new XTN[0]);
644     	return retVal;
645     }
646 
647 
648     /**
649      * Returns all repetitions of Guarantor Ph Num- Home (GT1-6).
650      */
651     public XTN[] getGt16_GuarantorPhNumHome() {
652     	XTN[] retVal = this.getTypedField(6, new XTN[0]);
653     	return retVal;
654     }
655 
656 
657     /**
658      * Returns a count of the current number of repetitions of Guarantor Ph Num- Home (GT1-6).
659      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
660      * it will return zero.
661      */
662     public int getGuarantorPhNumHomeReps() {
663     	return this.getReps(6);
664     }
665 
666 
667     /**
668      * Returns a specific repetition of
669      * GT1-6: "Guarantor Ph Num- Home" - creates it if necessary
670      *
671      * @param rep The repetition index (0-indexed)
672      */
673     public XTN getGuarantorPhNumHome(int rep) { 
674 		XTN retVal = this.getTypedField(6, rep);
675 		return retVal;
676     }
677 
678     /**
679      * Returns a specific repetition of
680      * GT1-6: "Guarantor Ph Num- Home" - creates it if necessary
681      *
682      * @param rep The repetition index (0-indexed)
683      */
684     public XTN getGt16_GuarantorPhNumHome(int rep) { 
685 		XTN retVal = this.getTypedField(6, rep);
686 		return retVal;
687     }
688 
689     /**
690      * Returns a count of the current number of repetitions of Guarantor Ph Num- Home (GT1-6).
691      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
692      * it will return zero.
693      */
694     public int getGt16_GuarantorPhNumHomeReps() {
695     	return this.getReps(6);
696     }
697 
698 
699     /**
700      * Inserts a repetition of
701      * GT1-6: "Guarantor Ph Num- Home" at a specific index
702      *
703      * @param rep The repetition index (0-indexed)
704      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
705      */
706     public XTN insertGuarantorPhNumHome(int rep) throws HL7Exception { 
707         return (XTN) super.insertRepetition(6, rep);
708     }
709 
710 
711     /**
712      * Inserts a repetition of
713      * GT1-6: "Guarantor Ph Num- Home" at a specific index
714      *
715      * @param rep The repetition index (0-indexed)
716      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
717      */
718     public XTN insertGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 
719         return (XTN) super.insertRepetition(6, rep);
720     }
721 
722 
723     /**
724      * Removes a repetition of
725      * GT1-6: "Guarantor Ph Num- Home" at a specific index
726      *
727      * @param rep The repetition index (0-indexed)
728      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
729      */
730     public XTN removeGuarantorPhNumHome(int rep) throws HL7Exception { 
731         return (XTN) super.removeRepetition(6, rep);
732     }
733 
734 
735     /**
736      * Removes a repetition of
737      * GT1-6: "Guarantor Ph Num- Home" at a specific index
738      *
739      * @param rep The repetition index (0-indexed)
740      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
741      */
742     public XTN removeGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 
743         return (XTN) super.removeRepetition(6, rep);
744     }
745 
746 
747 
748     /**
749      * Returns all repetitions of Guarantor Ph Num-Business (GT1-7).
750      */
751     public XTN[] getGuarantorPhNumBusiness() {
752     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
753     	return retVal;
754     }
755 
756 
757     /**
758      * Returns all repetitions of Guarantor Ph Num-Business (GT1-7).
759      */
760     public XTN[] getGt17_GuarantorPhNumBusiness() {
761     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
762     	return retVal;
763     }
764 
765 
766     /**
767      * Returns a count of the current number of repetitions of Guarantor Ph Num-Business (GT1-7).
768      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
769      * it will return zero.
770      */
771     public int getGuarantorPhNumBusinessReps() {
772     	return this.getReps(7);
773     }
774 
775 
776     /**
777      * Returns a specific repetition of
778      * GT1-7: "Guarantor Ph Num-Business" - creates it if necessary
779      *
780      * @param rep The repetition index (0-indexed)
781      */
782     public XTN getGuarantorPhNumBusiness(int rep) { 
783 		XTN retVal = this.getTypedField(7, rep);
784 		return retVal;
785     }
786 
787     /**
788      * Returns a specific repetition of
789      * GT1-7: "Guarantor Ph Num-Business" - creates it if necessary
790      *
791      * @param rep The repetition index (0-indexed)
792      */
793     public XTN getGt17_GuarantorPhNumBusiness(int rep) { 
794 		XTN retVal = this.getTypedField(7, rep);
795 		return retVal;
796     }
797 
798     /**
799      * Returns a count of the current number of repetitions of Guarantor Ph Num-Business (GT1-7).
800      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
801      * it will return zero.
802      */
803     public int getGt17_GuarantorPhNumBusinessReps() {
804     	return this.getReps(7);
805     }
806 
807 
808     /**
809      * Inserts a repetition of
810      * GT1-7: "Guarantor Ph Num-Business" at a specific index
811      *
812      * @param rep The repetition index (0-indexed)
813      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
814      */
815     public XTN insertGuarantorPhNumBusiness(int rep) throws HL7Exception { 
816         return (XTN) super.insertRepetition(7, rep);
817     }
818 
819 
820     /**
821      * Inserts a repetition of
822      * GT1-7: "Guarantor Ph Num-Business" at a specific index
823      *
824      * @param rep The repetition index (0-indexed)
825      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
826      */
827     public XTN insertGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 
828         return (XTN) super.insertRepetition(7, rep);
829     }
830 
831 
832     /**
833      * Removes a repetition of
834      * GT1-7: "Guarantor Ph Num-Business" at a specific index
835      *
836      * @param rep The repetition index (0-indexed)
837      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
838      */
839     public XTN removeGuarantorPhNumBusiness(int rep) throws HL7Exception { 
840         return (XTN) super.removeRepetition(7, rep);
841     }
842 
843 
844     /**
845      * Removes a repetition of
846      * GT1-7: "Guarantor Ph Num-Business" at a specific index
847      *
848      * @param rep The repetition index (0-indexed)
849      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
850      */
851     public XTN removeGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 
852         return (XTN) super.removeRepetition(7, rep);
853     }
854 
855 
856 
857 
858     /**
859      * Returns
860      * GT1-8: "Guarantor Date/Time of Birth" - creates it if necessary
861      */
862     public TS getGuarantorDateTimeOfBirth() { 
863 		TS retVal = this.getTypedField(8, 0);
864 		return retVal;
865     }
866     
867     /**
868      * Returns
869      * GT1-8: "Guarantor Date/Time of Birth" - creates it if necessary
870      */
871     public TS getGt18_GuarantorDateTimeOfBirth() { 
872 		TS retVal = this.getTypedField(8, 0);
873 		return retVal;
874     }
875 
876 
877 
878     /**
879      * Returns
880      * GT1-9: "Guarantor Sex" - creates it if necessary
881      */
882     public IS getGuarantorSex() { 
883 		IS retVal = this.getTypedField(9, 0);
884 		return retVal;
885     }
886     
887     /**
888      * Returns
889      * GT1-9: "Guarantor Sex" - creates it if necessary
890      */
891     public IS getGt19_GuarantorSex() { 
892 		IS retVal = this.getTypedField(9, 0);
893 		return retVal;
894     }
895 
896 
897 
898     /**
899      * Returns
900      * GT1-10: "Guarantor Type" - creates it if necessary
901      */
902     public IS getGuarantorType() { 
903 		IS retVal = this.getTypedField(10, 0);
904 		return retVal;
905     }
906     
907     /**
908      * Returns
909      * GT1-10: "Guarantor Type" - creates it if necessary
910      */
911     public IS getGt110_GuarantorType() { 
912 		IS retVal = this.getTypedField(10, 0);
913 		return retVal;
914     }
915 
916 
917 
918     /**
919      * Returns
920      * GT1-11: "Guarantor Relationship" - creates it if necessary
921      */
922     public IS getGuarantorRelationship() { 
923 		IS retVal = this.getTypedField(11, 0);
924 		return retVal;
925     }
926     
927     /**
928      * Returns
929      * GT1-11: "Guarantor Relationship" - creates it if necessary
930      */
931     public IS getGt111_GuarantorRelationship() { 
932 		IS retVal = this.getTypedField(11, 0);
933 		return retVal;
934     }
935 
936 
937 
938     /**
939      * Returns
940      * GT1-12: "Guarantor SSN" - creates it if necessary
941      */
942     public ST getGuarantorSSN() { 
943 		ST retVal = this.getTypedField(12, 0);
944 		return retVal;
945     }
946     
947     /**
948      * Returns
949      * GT1-12: "Guarantor SSN" - creates it if necessary
950      */
951     public ST getGt112_GuarantorSSN() { 
952 		ST retVal = this.getTypedField(12, 0);
953 		return retVal;
954     }
955 
956 
957 
958     /**
959      * Returns
960      * GT1-13: "Guarantor Date - Begin" - creates it if necessary
961      */
962     public DT getGuarantorDateBegin() { 
963 		DT retVal = this.getTypedField(13, 0);
964 		return retVal;
965     }
966     
967     /**
968      * Returns
969      * GT1-13: "Guarantor Date - Begin" - creates it if necessary
970      */
971     public DT getGt113_GuarantorDateBegin() { 
972 		DT retVal = this.getTypedField(13, 0);
973 		return retVal;
974     }
975 
976 
977 
978     /**
979      * Returns
980      * GT1-14: "Guarantor Date - End" - creates it if necessary
981      */
982     public DT getGuarantorDateEnd() { 
983 		DT retVal = this.getTypedField(14, 0);
984 		return retVal;
985     }
986     
987     /**
988      * Returns
989      * GT1-14: "Guarantor Date - End" - creates it if necessary
990      */
991     public DT getGt114_GuarantorDateEnd() { 
992 		DT retVal = this.getTypedField(14, 0);
993 		return retVal;
994     }
995 
996 
997 
998     /**
999      * Returns
1000      * GT1-15: "Guarantor Priority" - creates it if necessary
1001      */
1002     public NM getGuarantorPriority() { 
1003 		NM retVal = this.getTypedField(15, 0);
1004 		return retVal;
1005     }
1006     
1007     /**
1008      * Returns
1009      * GT1-15: "Guarantor Priority" - creates it if necessary
1010      */
1011     public NM getGt115_GuarantorPriority() { 
1012 		NM retVal = this.getTypedField(15, 0);
1013 		return retVal;
1014     }
1015 
1016 
1017     /**
1018      * Returns all repetitions of Guarantor Employer Name (GT1-16).
1019      */
1020     public XPN[] getGuarantorEmployerName() {
1021     	XPN[] retVal = this.getTypedField(16, new XPN[0]);
1022     	return retVal;
1023     }
1024 
1025 
1026     /**
1027      * Returns all repetitions of Guarantor Employer Name (GT1-16).
1028      */
1029     public XPN[] getGt116_GuarantorEmployerName() {
1030     	XPN[] retVal = this.getTypedField(16, new XPN[0]);
1031     	return retVal;
1032     }
1033 
1034 
1035     /**
1036      * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16).
1037      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1038      * it will return zero.
1039      */
1040     public int getGuarantorEmployerNameReps() {
1041     	return this.getReps(16);
1042     }
1043 
1044 
1045     /**
1046      * Returns a specific repetition of
1047      * GT1-16: "Guarantor Employer Name" - creates it if necessary
1048      *
1049      * @param rep The repetition index (0-indexed)
1050      */
1051     public XPN getGuarantorEmployerName(int rep) { 
1052 		XPN retVal = this.getTypedField(16, rep);
1053 		return retVal;
1054     }
1055 
1056     /**
1057      * Returns a specific repetition of
1058      * GT1-16: "Guarantor Employer Name" - creates it if necessary
1059      *
1060      * @param rep The repetition index (0-indexed)
1061      */
1062     public XPN getGt116_GuarantorEmployerName(int rep) { 
1063 		XPN retVal = this.getTypedField(16, rep);
1064 		return retVal;
1065     }
1066 
1067     /**
1068      * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16).
1069      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1070      * it will return zero.
1071      */
1072     public int getGt116_GuarantorEmployerNameReps() {
1073     	return this.getReps(16);
1074     }
1075 
1076 
1077     /**
1078      * Inserts a repetition of
1079      * GT1-16: "Guarantor Employer Name" at a specific index
1080      *
1081      * @param rep The repetition index (0-indexed)
1082      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1083      */
1084     public XPN insertGuarantorEmployerName(int rep) throws HL7Exception { 
1085         return (XPN) super.insertRepetition(16, rep);
1086     }
1087 
1088 
1089     /**
1090      * Inserts a repetition of
1091      * GT1-16: "Guarantor Employer Name" at a specific index
1092      *
1093      * @param rep The repetition index (0-indexed)
1094      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1095      */
1096     public XPN insertGt116_GuarantorEmployerName(int rep) throws HL7Exception { 
1097         return (XPN) super.insertRepetition(16, rep);
1098     }
1099 
1100 
1101     /**
1102      * Removes a repetition of
1103      * GT1-16: "Guarantor Employer Name" at a specific index
1104      *
1105      * @param rep The repetition index (0-indexed)
1106      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1107      */
1108     public XPN removeGuarantorEmployerName(int rep) throws HL7Exception { 
1109         return (XPN) super.removeRepetition(16, rep);
1110     }
1111 
1112 
1113     /**
1114      * Removes a repetition of
1115      * GT1-16: "Guarantor Employer Name" at a specific index
1116      *
1117      * @param rep The repetition index (0-indexed)
1118      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1119      */
1120     public XPN removeGt116_GuarantorEmployerName(int rep) throws HL7Exception { 
1121         return (XPN) super.removeRepetition(16, rep);
1122     }
1123 
1124 
1125 
1126     /**
1127      * Returns all repetitions of Guarantor Employer Address (GT1-17).
1128      */
1129     public XAD[] getGuarantorEmployerAddress() {
1130     	XAD[] retVal = this.getTypedField(17, new XAD[0]);
1131     	return retVal;
1132     }
1133 
1134 
1135     /**
1136      * Returns all repetitions of Guarantor Employer Address (GT1-17).
1137      */
1138     public XAD[] getGt117_GuarantorEmployerAddress() {
1139     	XAD[] retVal = this.getTypedField(17, new XAD[0]);
1140     	return retVal;
1141     }
1142 
1143 
1144     /**
1145      * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17).
1146      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1147      * it will return zero.
1148      */
1149     public int getGuarantorEmployerAddressReps() {
1150     	return this.getReps(17);
1151     }
1152 
1153 
1154     /**
1155      * Returns a specific repetition of
1156      * GT1-17: "Guarantor Employer Address" - creates it if necessary
1157      *
1158      * @param rep The repetition index (0-indexed)
1159      */
1160     public XAD getGuarantorEmployerAddress(int rep) { 
1161 		XAD retVal = this.getTypedField(17, rep);
1162 		return retVal;
1163     }
1164 
1165     /**
1166      * Returns a specific repetition of
1167      * GT1-17: "Guarantor Employer Address" - creates it if necessary
1168      *
1169      * @param rep The repetition index (0-indexed)
1170      */
1171     public XAD getGt117_GuarantorEmployerAddress(int rep) { 
1172 		XAD retVal = this.getTypedField(17, rep);
1173 		return retVal;
1174     }
1175 
1176     /**
1177      * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17).
1178      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1179      * it will return zero.
1180      */
1181     public int getGt117_GuarantorEmployerAddressReps() {
1182     	return this.getReps(17);
1183     }
1184 
1185 
1186     /**
1187      * Inserts a repetition of
1188      * GT1-17: "Guarantor Employer Address" at a specific index
1189      *
1190      * @param rep The repetition index (0-indexed)
1191      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1192      */
1193     public XAD insertGuarantorEmployerAddress(int rep) throws HL7Exception { 
1194         return (XAD) super.insertRepetition(17, rep);
1195     }
1196 
1197 
1198     /**
1199      * Inserts a repetition of
1200      * GT1-17: "Guarantor Employer Address" at a specific index
1201      *
1202      * @param rep The repetition index (0-indexed)
1203      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1204      */
1205     public XAD insertGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 
1206         return (XAD) super.insertRepetition(17, rep);
1207     }
1208 
1209 
1210     /**
1211      * Removes a repetition of
1212      * GT1-17: "Guarantor Employer Address" at a specific index
1213      *
1214      * @param rep The repetition index (0-indexed)
1215      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1216      */
1217     public XAD removeGuarantorEmployerAddress(int rep) throws HL7Exception { 
1218         return (XAD) super.removeRepetition(17, rep);
1219     }
1220 
1221 
1222     /**
1223      * Removes a repetition of
1224      * GT1-17: "Guarantor Employer Address" at a specific index
1225      *
1226      * @param rep The repetition index (0-indexed)
1227      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1228      */
1229     public XAD removeGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 
1230         return (XAD) super.removeRepetition(17, rep);
1231     }
1232 
1233 
1234 
1235     /**
1236      * Returns all repetitions of Guarantor Employ Phone Number (GT1-18).
1237      */
1238     public XTN[] getGuarantorEmployPhoneNumber() {
1239     	XTN[] retVal = this.getTypedField(18, new XTN[0]);
1240     	return retVal;
1241     }
1242 
1243 
1244     /**
1245      * Returns all repetitions of Guarantor Employ Phone Number (GT1-18).
1246      */
1247     public XTN[] getGt118_GuarantorEmployPhoneNumber() {
1248     	XTN[] retVal = this.getTypedField(18, new XTN[0]);
1249     	return retVal;
1250     }
1251 
1252 
1253     /**
1254      * Returns a count of the current number of repetitions of Guarantor Employ Phone Number (GT1-18).
1255      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1256      * it will return zero.
1257      */
1258     public int getGuarantorEmployPhoneNumberReps() {
1259     	return this.getReps(18);
1260     }
1261 
1262 
1263     /**
1264      * Returns a specific repetition of
1265      * GT1-18: "Guarantor Employ Phone Number" - creates it if necessary
1266      *
1267      * @param rep The repetition index (0-indexed)
1268      */
1269     public XTN getGuarantorEmployPhoneNumber(int rep) { 
1270 		XTN retVal = this.getTypedField(18, rep);
1271 		return retVal;
1272     }
1273 
1274     /**
1275      * Returns a specific repetition of
1276      * GT1-18: "Guarantor Employ Phone Number" - creates it if necessary
1277      *
1278      * @param rep The repetition index (0-indexed)
1279      */
1280     public XTN getGt118_GuarantorEmployPhoneNumber(int rep) { 
1281 		XTN retVal = this.getTypedField(18, rep);
1282 		return retVal;
1283     }
1284 
1285     /**
1286      * Returns a count of the current number of repetitions of Guarantor Employ Phone Number (GT1-18).
1287      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1288      * it will return zero.
1289      */
1290     public int getGt118_GuarantorEmployPhoneNumberReps() {
1291     	return this.getReps(18);
1292     }
1293 
1294 
1295     /**
1296      * Inserts a repetition of
1297      * GT1-18: "Guarantor Employ Phone Number" at a specific index
1298      *
1299      * @param rep The repetition index (0-indexed)
1300      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1301      */
1302     public XTN insertGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 
1303         return (XTN) super.insertRepetition(18, rep);
1304     }
1305 
1306 
1307     /**
1308      * Inserts a repetition of
1309      * GT1-18: "Guarantor Employ Phone Number" at a specific index
1310      *
1311      * @param rep The repetition index (0-indexed)
1312      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1313      */
1314     public XTN insertGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 
1315         return (XTN) super.insertRepetition(18, rep);
1316     }
1317 
1318 
1319     /**
1320      * Removes a repetition of
1321      * GT1-18: "Guarantor Employ Phone Number" at a specific index
1322      *
1323      * @param rep The repetition index (0-indexed)
1324      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1325      */
1326     public XTN removeGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 
1327         return (XTN) super.removeRepetition(18, rep);
1328     }
1329 
1330 
1331     /**
1332      * Removes a repetition of
1333      * GT1-18: "Guarantor Employ Phone Number" at a specific index
1334      *
1335      * @param rep The repetition index (0-indexed)
1336      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1337      */
1338     public XTN removeGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 
1339         return (XTN) super.removeRepetition(18, rep);
1340     }
1341 
1342 
1343 
1344     /**
1345      * Returns all repetitions of Guarantor Employee ID Number (GT1-19).
1346      */
1347     public CX[] getGuarantorEmployeeIDNumber() {
1348     	CX[] retVal = this.getTypedField(19, new CX[0]);
1349     	return retVal;
1350     }
1351 
1352 
1353     /**
1354      * Returns all repetitions of Guarantor Employee ID Number (GT1-19).
1355      */
1356     public CX[] getGt119_GuarantorEmployeeIDNumber() {
1357     	CX[] retVal = this.getTypedField(19, new CX[0]);
1358     	return retVal;
1359     }
1360 
1361 
1362     /**
1363      * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19).
1364      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1365      * it will return zero.
1366      */
1367     public int getGuarantorEmployeeIDNumberReps() {
1368     	return this.getReps(19);
1369     }
1370 
1371 
1372     /**
1373      * Returns a specific repetition of
1374      * GT1-19: "Guarantor Employee ID Number" - creates it if necessary
1375      *
1376      * @param rep The repetition index (0-indexed)
1377      */
1378     public CX getGuarantorEmployeeIDNumber(int rep) { 
1379 		CX retVal = this.getTypedField(19, rep);
1380 		return retVal;
1381     }
1382 
1383     /**
1384      * Returns a specific repetition of
1385      * GT1-19: "Guarantor Employee ID Number" - creates it if necessary
1386      *
1387      * @param rep The repetition index (0-indexed)
1388      */
1389     public CX getGt119_GuarantorEmployeeIDNumber(int rep) { 
1390 		CX retVal = this.getTypedField(19, rep);
1391 		return retVal;
1392     }
1393 
1394     /**
1395      * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19).
1396      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1397      * it will return zero.
1398      */
1399     public int getGt119_GuarantorEmployeeIDNumberReps() {
1400     	return this.getReps(19);
1401     }
1402 
1403 
1404     /**
1405      * Inserts a repetition of
1406      * GT1-19: "Guarantor Employee ID Number" at a specific index
1407      *
1408      * @param rep The repetition index (0-indexed)
1409      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1410      */
1411     public CX insertGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1412         return (CX) super.insertRepetition(19, rep);
1413     }
1414 
1415 
1416     /**
1417      * Inserts a repetition of
1418      * GT1-19: "Guarantor Employee ID Number" at a specific index
1419      *
1420      * @param rep The repetition index (0-indexed)
1421      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1422      */
1423     public CX insertGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1424         return (CX) super.insertRepetition(19, rep);
1425     }
1426 
1427 
1428     /**
1429      * Removes a repetition of
1430      * GT1-19: "Guarantor Employee ID Number" at a specific index
1431      *
1432      * @param rep The repetition index (0-indexed)
1433      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1434      */
1435     public CX removeGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1436         return (CX) super.removeRepetition(19, rep);
1437     }
1438 
1439 
1440     /**
1441      * Removes a repetition of
1442      * GT1-19: "Guarantor Employee ID Number" at a specific index
1443      *
1444      * @param rep The repetition index (0-indexed)
1445      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1446      */
1447     public CX removeGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 
1448         return (CX) super.removeRepetition(19, rep);
1449     }
1450 
1451 
1452 
1453 
1454     /**
1455      * Returns
1456      * GT1-20: "Guarantor Employment Status" - creates it if necessary
1457      */
1458     public IS getGuarantorEmploymentStatus() { 
1459 		IS retVal = this.getTypedField(20, 0);
1460 		return retVal;
1461     }
1462     
1463     /**
1464      * Returns
1465      * GT1-20: "Guarantor Employment Status" - creates it if necessary
1466      */
1467     public IS getGt120_GuarantorEmploymentStatus() { 
1468 		IS retVal = this.getTypedField(20, 0);
1469 		return retVal;
1470     }
1471 
1472 
1473     /**
1474      * Returns all repetitions of Guarantor Organization (GT1-21).
1475      */
1476     public XON[] getGuarantorOrganization() {
1477     	XON[] retVal = this.getTypedField(21, new XON[0]);
1478     	return retVal;
1479     }
1480 
1481 
1482     /**
1483      * Returns all repetitions of Guarantor Organization (GT1-21).
1484      */
1485     public XON[] getGt121_GuarantorOrganization() {
1486     	XON[] retVal = this.getTypedField(21, new XON[0]);
1487     	return retVal;
1488     }
1489 
1490 
1491     /**
1492      * Returns a count of the current number of repetitions of Guarantor Organization (GT1-21).
1493      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1494      * it will return zero.
1495      */
1496     public int getGuarantorOrganizationReps() {
1497     	return this.getReps(21);
1498     }
1499 
1500 
1501     /**
1502      * Returns a specific repetition of
1503      * GT1-21: "Guarantor Organization" - creates it if necessary
1504      *
1505      * @param rep The repetition index (0-indexed)
1506      */
1507     public XON getGuarantorOrganization(int rep) { 
1508 		XON retVal = this.getTypedField(21, rep);
1509 		return retVal;
1510     }
1511 
1512     /**
1513      * Returns a specific repetition of
1514      * GT1-21: "Guarantor Organization" - creates it if necessary
1515      *
1516      * @param rep The repetition index (0-indexed)
1517      */
1518     public XON getGt121_GuarantorOrganization(int rep) { 
1519 		XON retVal = this.getTypedField(21, rep);
1520 		return retVal;
1521     }
1522 
1523     /**
1524      * Returns a count of the current number of repetitions of Guarantor Organization (GT1-21).
1525      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1526      * it will return zero.
1527      */
1528     public int getGt121_GuarantorOrganizationReps() {
1529     	return this.getReps(21);
1530     }
1531 
1532 
1533     /**
1534      * Inserts a repetition of
1535      * GT1-21: "Guarantor Organization" at a specific index
1536      *
1537      * @param rep The repetition index (0-indexed)
1538      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1539      */
1540     public XON insertGuarantorOrganization(int rep) throws HL7Exception { 
1541         return (XON) super.insertRepetition(21, rep);
1542     }
1543 
1544 
1545     /**
1546      * Inserts a repetition of
1547      * GT1-21: "Guarantor Organization" at a specific index
1548      *
1549      * @param rep The repetition index (0-indexed)
1550      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1551      */
1552     public XON insertGt121_GuarantorOrganization(int rep) throws HL7Exception { 
1553         return (XON) super.insertRepetition(21, rep);
1554     }
1555 
1556 
1557     /**
1558      * Removes a repetition of
1559      * GT1-21: "Guarantor Organization" at a specific index
1560      *
1561      * @param rep The repetition index (0-indexed)
1562      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1563      */
1564     public XON removeGuarantorOrganization(int rep) throws HL7Exception { 
1565         return (XON) super.removeRepetition(21, rep);
1566     }
1567 
1568 
1569     /**
1570      * Removes a repetition of
1571      * GT1-21: "Guarantor Organization" at a specific index
1572      *
1573      * @param rep The repetition index (0-indexed)
1574      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1575      */
1576     public XON removeGt121_GuarantorOrganization(int rep) throws HL7Exception { 
1577         return (XON) super.removeRepetition(21, rep);
1578     }
1579 
1580 
1581 
1582 
1583     /**
1584      * Returns
1585      * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary
1586      */
1587     public ID getGuarantorBillingHoldFlag() { 
1588 		ID retVal = this.getTypedField(22, 0);
1589 		return retVal;
1590     }
1591     
1592     /**
1593      * Returns
1594      * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary
1595      */
1596     public ID getGt122_GuarantorBillingHoldFlag() { 
1597 		ID retVal = this.getTypedField(22, 0);
1598 		return retVal;
1599     }
1600 
1601 
1602 
1603     /**
1604      * Returns
1605      * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary
1606      */
1607     public CE getGuarantorCreditRatingCode() { 
1608 		CE retVal = this.getTypedField(23, 0);
1609 		return retVal;
1610     }
1611     
1612     /**
1613      * Returns
1614      * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary
1615      */
1616     public CE getGt123_GuarantorCreditRatingCode() { 
1617 		CE retVal = this.getTypedField(23, 0);
1618 		return retVal;
1619     }
1620 
1621 
1622 
1623     /**
1624      * Returns
1625      * GT1-24: "Guarantor Death Date And Time" - creates it if necessary
1626      */
1627     public TS getGuarantorDeathDateAndTime() { 
1628 		TS retVal = this.getTypedField(24, 0);
1629 		return retVal;
1630     }
1631     
1632     /**
1633      * Returns
1634      * GT1-24: "Guarantor Death Date And Time" - creates it if necessary
1635      */
1636     public TS getGt124_GuarantorDeathDateAndTime() { 
1637 		TS retVal = this.getTypedField(24, 0);
1638 		return retVal;
1639     }
1640 
1641 
1642 
1643     /**
1644      * Returns
1645      * GT1-25: "Guarantor Death Flag" - creates it if necessary
1646      */
1647     public ID getGuarantorDeathFlag() { 
1648 		ID retVal = this.getTypedField(25, 0);
1649 		return retVal;
1650     }
1651     
1652     /**
1653      * Returns
1654      * GT1-25: "Guarantor Death Flag" - creates it if necessary
1655      */
1656     public ID getGt125_GuarantorDeathFlag() { 
1657 		ID retVal = this.getTypedField(25, 0);
1658 		return retVal;
1659     }
1660 
1661 
1662 
1663     /**
1664      * Returns
1665      * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary
1666      */
1667     public CE getGuarantorChargeAdjustmentCode() { 
1668 		CE retVal = this.getTypedField(26, 0);
1669 		return retVal;
1670     }
1671     
1672     /**
1673      * Returns
1674      * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary
1675      */
1676     public CE getGt126_GuarantorChargeAdjustmentCode() { 
1677 		CE retVal = this.getTypedField(26, 0);
1678 		return retVal;
1679     }
1680 
1681 
1682 
1683     /**
1684      * Returns
1685      * GT1-27: "Guarantor Household Annual Income" - creates it if necessary
1686      */
1687     public CP getGuarantorHouseholdAnnualIncome() { 
1688 		CP retVal = this.getTypedField(27, 0);
1689 		return retVal;
1690     }
1691     
1692     /**
1693      * Returns
1694      * GT1-27: "Guarantor Household Annual Income" - creates it if necessary
1695      */
1696     public CP getGt127_GuarantorHouseholdAnnualIncome() { 
1697 		CP retVal = this.getTypedField(27, 0);
1698 		return retVal;
1699     }
1700 
1701 
1702 
1703     /**
1704      * Returns
1705      * GT1-28: "Guarantor Household Size" - creates it if necessary
1706      */
1707     public NM getGuarantorHouseholdSize() { 
1708 		NM retVal = this.getTypedField(28, 0);
1709 		return retVal;
1710     }
1711     
1712     /**
1713      * Returns
1714      * GT1-28: "Guarantor Household Size" - creates it if necessary
1715      */
1716     public NM getGt128_GuarantorHouseholdSize() { 
1717 		NM retVal = this.getTypedField(28, 0);
1718 		return retVal;
1719     }
1720 
1721 
1722     /**
1723      * Returns all repetitions of Guarantor Employer ID Number (GT1-29).
1724      */
1725     public CX[] getGuarantorEmployerIDNumber() {
1726     	CX[] retVal = this.getTypedField(29, new CX[0]);
1727     	return retVal;
1728     }
1729 
1730 
1731     /**
1732      * Returns all repetitions of Guarantor Employer ID Number (GT1-29).
1733      */
1734     public CX[] getGt129_GuarantorEmployerIDNumber() {
1735     	CX[] retVal = this.getTypedField(29, new CX[0]);
1736     	return retVal;
1737     }
1738 
1739 
1740     /**
1741      * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29).
1742      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1743      * it will return zero.
1744      */
1745     public int getGuarantorEmployerIDNumberReps() {
1746     	return this.getReps(29);
1747     }
1748 
1749 
1750     /**
1751      * Returns a specific repetition of
1752      * GT1-29: "Guarantor Employer ID Number" - creates it if necessary
1753      *
1754      * @param rep The repetition index (0-indexed)
1755      */
1756     public CX getGuarantorEmployerIDNumber(int rep) { 
1757 		CX retVal = this.getTypedField(29, rep);
1758 		return retVal;
1759     }
1760 
1761     /**
1762      * Returns a specific repetition of
1763      * GT1-29: "Guarantor Employer ID Number" - creates it if necessary
1764      *
1765      * @param rep The repetition index (0-indexed)
1766      */
1767     public CX getGt129_GuarantorEmployerIDNumber(int rep) { 
1768 		CX retVal = this.getTypedField(29, rep);
1769 		return retVal;
1770     }
1771 
1772     /**
1773      * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29).
1774      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1775      * it will return zero.
1776      */
1777     public int getGt129_GuarantorEmployerIDNumberReps() {
1778     	return this.getReps(29);
1779     }
1780 
1781 
1782     /**
1783      * Inserts a repetition of
1784      * GT1-29: "Guarantor Employer ID Number" at a specific index
1785      *
1786      * @param rep The repetition index (0-indexed)
1787      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1788      */
1789     public CX insertGuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1790         return (CX) super.insertRepetition(29, rep);
1791     }
1792 
1793 
1794     /**
1795      * Inserts a repetition of
1796      * GT1-29: "Guarantor Employer ID Number" at a specific index
1797      *
1798      * @param rep The repetition index (0-indexed)
1799      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1800      */
1801     public CX insertGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1802         return (CX) super.insertRepetition(29, rep);
1803     }
1804 
1805 
1806     /**
1807      * Removes a repetition of
1808      * GT1-29: "Guarantor Employer ID Number" at a specific index
1809      *
1810      * @param rep The repetition index (0-indexed)
1811      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1812      */
1813     public CX removeGuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1814         return (CX) super.removeRepetition(29, rep);
1815     }
1816 
1817 
1818     /**
1819      * Removes a repetition of
1820      * GT1-29: "Guarantor Employer ID Number" at a specific index
1821      *
1822      * @param rep The repetition index (0-indexed)
1823      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1824      */
1825     public CX removeGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 
1826         return (CX) super.removeRepetition(29, rep);
1827     }
1828 
1829 
1830 
1831 
1832     /**
1833      * Returns
1834      * GT1-30: "Guarantor Marital Status Code" - creates it if necessary
1835      */
1836     public IS getGuarantorMaritalStatusCode() { 
1837 		IS retVal = this.getTypedField(30, 0);
1838 		return retVal;
1839     }
1840     
1841     /**
1842      * Returns
1843      * GT1-30: "Guarantor Marital Status Code" - creates it if necessary
1844      */
1845     public IS getGt130_GuarantorMaritalStatusCode() { 
1846 		IS retVal = this.getTypedField(30, 0);
1847 		return retVal;
1848     }
1849 
1850 
1851 
1852     /**
1853      * Returns
1854      * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary
1855      */
1856     public DT getGuarantorHireEffectiveDate() { 
1857 		DT retVal = this.getTypedField(31, 0);
1858 		return retVal;
1859     }
1860     
1861     /**
1862      * Returns
1863      * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary
1864      */
1865     public DT getGt131_GuarantorHireEffectiveDate() { 
1866 		DT retVal = this.getTypedField(31, 0);
1867 		return retVal;
1868     }
1869 
1870 
1871 
1872     /**
1873      * Returns
1874      * GT1-32: "Employment Stop Date" - creates it if necessary
1875      */
1876     public DT getEmploymentStopDate() { 
1877 		DT retVal = this.getTypedField(32, 0);
1878 		return retVal;
1879     }
1880     
1881     /**
1882      * Returns
1883      * GT1-32: "Employment Stop Date" - creates it if necessary
1884      */
1885     public DT getGt132_EmploymentStopDate() { 
1886 		DT retVal = this.getTypedField(32, 0);
1887 		return retVal;
1888     }
1889 
1890 
1891 
1892     /**
1893      * Returns
1894      * GT1-33: "Living Dependency" - creates it if necessary
1895      */
1896     public IS getLivingDependency() { 
1897 		IS retVal = this.getTypedField(33, 0);
1898 		return retVal;
1899     }
1900     
1901     /**
1902      * Returns
1903      * GT1-33: "Living Dependency" - creates it if necessary
1904      */
1905     public IS getGt133_LivingDependency() { 
1906 		IS retVal = this.getTypedField(33, 0);
1907 		return retVal;
1908     }
1909 
1910 
1911 
1912     /**
1913      * Returns
1914      * GT1-34: "Ambulatory Status" - creates it if necessary
1915      */
1916     public IS getAmbulatoryStatus() { 
1917 		IS retVal = this.getTypedField(34, 0);
1918 		return retVal;
1919     }
1920     
1921     /**
1922      * Returns
1923      * GT1-34: "Ambulatory Status" - creates it if necessary
1924      */
1925     public IS getGt134_AmbulatoryStatus() { 
1926 		IS retVal = this.getTypedField(34, 0);
1927 		return retVal;
1928     }
1929 
1930 
1931 
1932     /**
1933      * Returns
1934      * GT1-35: "Citizenship" - creates it if necessary
1935      */
1936     public IS getCitizenship() { 
1937 		IS retVal = this.getTypedField(35, 0);
1938 		return retVal;
1939     }
1940     
1941     /**
1942      * Returns
1943      * GT1-35: "Citizenship" - creates it if necessary
1944      */
1945     public IS getGt135_Citizenship() { 
1946 		IS retVal = this.getTypedField(35, 0);
1947 		return retVal;
1948     }
1949 
1950 
1951 
1952     /**
1953      * Returns
1954      * GT1-36: "Primary Language" - creates it if necessary
1955      */
1956     public CE getPrimaryLanguage() { 
1957 		CE retVal = this.getTypedField(36, 0);
1958 		return retVal;
1959     }
1960     
1961     /**
1962      * Returns
1963      * GT1-36: "Primary Language" - creates it if necessary
1964      */
1965     public CE getGt136_PrimaryLanguage() { 
1966 		CE retVal = this.getTypedField(36, 0);
1967 		return retVal;
1968     }
1969 
1970 
1971 
1972     /**
1973      * Returns
1974      * GT1-37: "Living Arrangement" - creates it if necessary
1975      */
1976     public IS getLivingArrangement() { 
1977 		IS retVal = this.getTypedField(37, 0);
1978 		return retVal;
1979     }
1980     
1981     /**
1982      * Returns
1983      * GT1-37: "Living Arrangement" - creates it if necessary
1984      */
1985     public IS getGt137_LivingArrangement() { 
1986 		IS retVal = this.getTypedField(37, 0);
1987 		return retVal;
1988     }
1989 
1990 
1991 
1992     /**
1993      * Returns
1994      * GT1-38: "Publicity Indicator" - creates it if necessary
1995      */
1996     public CE getPublicityIndicator() { 
1997 		CE retVal = this.getTypedField(38, 0);
1998 		return retVal;
1999     }
2000     
2001     /**
2002      * Returns
2003      * GT1-38: "Publicity Indicator" - creates it if necessary
2004      */
2005     public CE getGt138_PublicityIndicator() { 
2006 		CE retVal = this.getTypedField(38, 0);
2007 		return retVal;
2008     }
2009 
2010 
2011 
2012     /**
2013      * Returns
2014      * GT1-39: "Protection Indicator" - creates it if necessary
2015      */
2016     public ID getProtectionIndicator() { 
2017 		ID retVal = this.getTypedField(39, 0);
2018 		return retVal;
2019     }
2020     
2021     /**
2022      * Returns
2023      * GT1-39: "Protection Indicator" - creates it if necessary
2024      */
2025     public ID getGt139_ProtectionIndicator() { 
2026 		ID retVal = this.getTypedField(39, 0);
2027 		return retVal;
2028     }
2029 
2030 
2031 
2032     /**
2033      * Returns
2034      * GT1-40: "Student Indicator" - creates it if necessary
2035      */
2036     public IS getStudentIndicator() { 
2037 		IS retVal = this.getTypedField(40, 0);
2038 		return retVal;
2039     }
2040     
2041     /**
2042      * Returns
2043      * GT1-40: "Student Indicator" - creates it if necessary
2044      */
2045     public IS getGt140_StudentIndicator() { 
2046 		IS retVal = this.getTypedField(40, 0);
2047 		return retVal;
2048     }
2049 
2050 
2051 
2052     /**
2053      * Returns
2054      * GT1-41: "Religion" - creates it if necessary
2055      */
2056     public IS getReligion() { 
2057 		IS retVal = this.getTypedField(41, 0);
2058 		return retVal;
2059     }
2060     
2061     /**
2062      * Returns
2063      * GT1-41: "Religion" - creates it if necessary
2064      */
2065     public IS getGt141_Religion() { 
2066 		IS retVal = this.getTypedField(41, 0);
2067 		return retVal;
2068     }
2069 
2070 
2071 
2072     /**
2073      * Returns
2074      * GT1-42: "Mother’s Maiden Name" - creates it if necessary
2075      */
2076     public XPN getMotherSMaidenName() { 
2077 		XPN retVal = this.getTypedField(42, 0);
2078 		return retVal;
2079     }
2080     
2081     /**
2082      * Returns
2083      * GT1-42: "Mother’s Maiden Name" - creates it if necessary
2084      */
2085     public XPN getGt142_MotherSMaidenName() { 
2086 		XPN retVal = this.getTypedField(42, 0);
2087 		return retVal;
2088     }
2089 
2090 
2091 
2092     /**
2093      * Returns
2094      * GT1-43: "Nationality Code" - creates it if necessary
2095      */
2096     public CE getNationalityCode() { 
2097 		CE retVal = this.getTypedField(43, 0);
2098 		return retVal;
2099     }
2100     
2101     /**
2102      * Returns
2103      * GT1-43: "Nationality Code" - creates it if necessary
2104      */
2105     public CE getGt143_NationalityCode() { 
2106 		CE retVal = this.getTypedField(43, 0);
2107 		return retVal;
2108     }
2109 
2110 
2111 
2112     /**
2113      * Returns
2114      * GT1-44: "Ethnic Group" - creates it if necessary
2115      */
2116     public IS getEthnicGroup() { 
2117 		IS retVal = this.getTypedField(44, 0);
2118 		return retVal;
2119     }
2120     
2121     /**
2122      * Returns
2123      * GT1-44: "Ethnic Group" - creates it if necessary
2124      */
2125     public IS getGt144_EthnicGroup() { 
2126 		IS retVal = this.getTypedField(44, 0);
2127 		return retVal;
2128     }
2129 
2130 
2131     /**
2132      * Returns all repetitions of Contact Person's Name (GT1-45).
2133      */
2134     public XPN[] getContactPersonSName() {
2135     	XPN[] retVal = this.getTypedField(45, new XPN[0]);
2136     	return retVal;
2137     }
2138 
2139 
2140     /**
2141      * Returns all repetitions of Contact Person's Name (GT1-45).
2142      */
2143     public XPN[] getGt145_ContactPersonSName() {
2144     	XPN[] retVal = this.getTypedField(45, new XPN[0]);
2145     	return retVal;
2146     }
2147 
2148 
2149     /**
2150      * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45).
2151      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2152      * it will return zero.
2153      */
2154     public int getContactPersonSNameReps() {
2155     	return this.getReps(45);
2156     }
2157 
2158 
2159     /**
2160      * Returns a specific repetition of
2161      * GT1-45: "Contact Person's Name" - creates it if necessary
2162      *
2163      * @param rep The repetition index (0-indexed)
2164      */
2165     public XPN getContactPersonSName(int rep) { 
2166 		XPN retVal = this.getTypedField(45, rep);
2167 		return retVal;
2168     }
2169 
2170     /**
2171      * Returns a specific repetition of
2172      * GT1-45: "Contact Person's Name" - creates it if necessary
2173      *
2174      * @param rep The repetition index (0-indexed)
2175      */
2176     public XPN getGt145_ContactPersonSName(int rep) { 
2177 		XPN retVal = this.getTypedField(45, rep);
2178 		return retVal;
2179     }
2180 
2181     /**
2182      * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45).
2183      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2184      * it will return zero.
2185      */
2186     public int getGt145_ContactPersonSNameReps() {
2187     	return this.getReps(45);
2188     }
2189 
2190 
2191     /**
2192      * Inserts a repetition of
2193      * GT1-45: "Contact Person's Name" at a specific index
2194      *
2195      * @param rep The repetition index (0-indexed)
2196      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2197      */
2198     public XPN insertContactPersonSName(int rep) throws HL7Exception { 
2199         return (XPN) super.insertRepetition(45, rep);
2200     }
2201 
2202 
2203     /**
2204      * Inserts a repetition of
2205      * GT1-45: "Contact Person's Name" at a specific index
2206      *
2207      * @param rep The repetition index (0-indexed)
2208      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2209      */
2210     public XPN insertGt145_ContactPersonSName(int rep) throws HL7Exception { 
2211         return (XPN) super.insertRepetition(45, rep);
2212     }
2213 
2214 
2215     /**
2216      * Removes a repetition of
2217      * GT1-45: "Contact Person's Name" at a specific index
2218      *
2219      * @param rep The repetition index (0-indexed)
2220      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2221      */
2222     public XPN removeContactPersonSName(int rep) throws HL7Exception { 
2223         return (XPN) super.removeRepetition(45, rep);
2224     }
2225 
2226 
2227     /**
2228      * Removes a repetition of
2229      * GT1-45: "Contact Person's Name" at a specific index
2230      *
2231      * @param rep The repetition index (0-indexed)
2232      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2233      */
2234     public XPN removeGt145_ContactPersonSName(int rep) throws HL7Exception { 
2235         return (XPN) super.removeRepetition(45, rep);
2236     }
2237 
2238 
2239 
2240     /**
2241      * Returns all repetitions of Contact Person’s Telephone Number (GT1-46).
2242      */
2243     public XTN[] getContactPersonSTelephoneNumber() {
2244     	XTN[] retVal = this.getTypedField(46, new XTN[0]);
2245     	return retVal;
2246     }
2247 
2248 
2249     /**
2250      * Returns all repetitions of Contact Person’s Telephone Number (GT1-46).
2251      */
2252     public XTN[] getGt146_ContactPersonSTelephoneNumber() {
2253     	XTN[] retVal = this.getTypedField(46, new XTN[0]);
2254     	return retVal;
2255     }
2256 
2257 
2258     /**
2259      * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (GT1-46).
2260      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2261      * it will return zero.
2262      */
2263     public int getContactPersonSTelephoneNumberReps() {
2264     	return this.getReps(46);
2265     }
2266 
2267 
2268     /**
2269      * Returns a specific repetition of
2270      * GT1-46: "Contact Person’s Telephone Number" - creates it if necessary
2271      *
2272      * @param rep The repetition index (0-indexed)
2273      */
2274     public XTN getContactPersonSTelephoneNumber(int rep) { 
2275 		XTN retVal = this.getTypedField(46, rep);
2276 		return retVal;
2277     }
2278 
2279     /**
2280      * Returns a specific repetition of
2281      * GT1-46: "Contact Person’s Telephone Number" - creates it if necessary
2282      *
2283      * @param rep The repetition index (0-indexed)
2284      */
2285     public XTN getGt146_ContactPersonSTelephoneNumber(int rep) { 
2286 		XTN retVal = this.getTypedField(46, rep);
2287 		return retVal;
2288     }
2289 
2290     /**
2291      * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (GT1-46).
2292      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2293      * it will return zero.
2294      */
2295     public int getGt146_ContactPersonSTelephoneNumberReps() {
2296     	return this.getReps(46);
2297     }
2298 
2299 
2300     /**
2301      * Inserts a repetition of
2302      * GT1-46: "Contact Person’s Telephone Number" at a specific index
2303      *
2304      * @param rep The repetition index (0-indexed)
2305      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2306      */
2307     public XTN insertContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2308         return (XTN) super.insertRepetition(46, rep);
2309     }
2310 
2311 
2312     /**
2313      * Inserts a repetition of
2314      * GT1-46: "Contact Person’s Telephone Number" 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 XTN insertGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2320         return (XTN) super.insertRepetition(46, rep);
2321     }
2322 
2323 
2324     /**
2325      * Removes a repetition of
2326      * GT1-46: "Contact Person’s Telephone Number" 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 XTN removeContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2332         return (XTN) super.removeRepetition(46, rep);
2333     }
2334 
2335 
2336     /**
2337      * Removes a repetition of
2338      * GT1-46: "Contact Person’s Telephone Number" 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 XTN removeGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 
2344         return (XTN) super.removeRepetition(46, rep);
2345     }
2346 
2347 
2348 
2349 
2350     /**
2351      * Returns
2352      * GT1-47: "Contact Reason" - creates it if necessary
2353      */
2354     public CE getContactReason() { 
2355 		CE retVal = this.getTypedField(47, 0);
2356 		return retVal;
2357     }
2358     
2359     /**
2360      * Returns
2361      * GT1-47: "Contact Reason" - creates it if necessary
2362      */
2363     public CE getGt147_ContactReason() { 
2364 		CE retVal = this.getTypedField(47, 0);
2365 		return retVal;
2366     }
2367 
2368 
2369 
2370     /**
2371      * Returns
2372      * GT1-48: "Contact Relationship Code" - creates it if necessary
2373      */
2374     public IS getContactRelationshipCode() { 
2375 		IS retVal = this.getTypedField(48, 0);
2376 		return retVal;
2377     }
2378     
2379     /**
2380      * Returns
2381      * GT1-48: "Contact Relationship Code" - creates it if necessary
2382      */
2383     public IS getGt148_ContactRelationshipCode() { 
2384 		IS retVal = this.getTypedField(48, 0);
2385 		return retVal;
2386     }
2387 
2388 
2389 
2390     /**
2391      * Returns
2392      * GT1-49: "Job Title" - creates it if necessary
2393      */
2394     public ST getJobTitle() { 
2395 		ST retVal = this.getTypedField(49, 0);
2396 		return retVal;
2397     }
2398     
2399     /**
2400      * Returns
2401      * GT1-49: "Job Title" - creates it if necessary
2402      */
2403     public ST getGt149_JobTitle() { 
2404 		ST retVal = this.getTypedField(49, 0);
2405 		return retVal;
2406     }
2407 
2408 
2409 
2410     /**
2411      * Returns
2412      * GT1-50: "Job Code/Class" - creates it if necessary
2413      */
2414     public JCC getJobCodeClass() { 
2415 		JCC retVal = this.getTypedField(50, 0);
2416 		return retVal;
2417     }
2418     
2419     /**
2420      * Returns
2421      * GT1-50: "Job Code/Class" - creates it if necessary
2422      */
2423     public JCC getGt150_JobCodeClass() { 
2424 		JCC retVal = this.getTypedField(50, 0);
2425 		return retVal;
2426     }
2427 
2428 
2429     /**
2430      * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51).
2431      */
2432     public XON[] getGuarantorEmployerSOrganizationName() {
2433     	XON[] retVal = this.getTypedField(51, new XON[0]);
2434     	return retVal;
2435     }
2436 
2437 
2438     /**
2439      * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51).
2440      */
2441     public XON[] getGt151_GuarantorEmployerSOrganizationName() {
2442     	XON[] retVal = this.getTypedField(51, new XON[0]);
2443     	return retVal;
2444     }
2445 
2446 
2447     /**
2448      * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51).
2449      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2450      * it will return zero.
2451      */
2452     public int getGuarantorEmployerSOrganizationNameReps() {
2453     	return this.getReps(51);
2454     }
2455 
2456 
2457     /**
2458      * Returns a specific repetition of
2459      * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary
2460      *
2461      * @param rep The repetition index (0-indexed)
2462      */
2463     public XON getGuarantorEmployerSOrganizationName(int rep) { 
2464 		XON retVal = this.getTypedField(51, rep);
2465 		return retVal;
2466     }
2467 
2468     /**
2469      * Returns a specific repetition of
2470      * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary
2471      *
2472      * @param rep The repetition index (0-indexed)
2473      */
2474     public XON getGt151_GuarantorEmployerSOrganizationName(int rep) { 
2475 		XON retVal = this.getTypedField(51, rep);
2476 		return retVal;
2477     }
2478 
2479     /**
2480      * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51).
2481      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2482      * it will return zero.
2483      */
2484     public int getGt151_GuarantorEmployerSOrganizationNameReps() {
2485     	return this.getReps(51);
2486     }
2487 
2488 
2489     /**
2490      * Inserts a repetition of
2491      * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2492      *
2493      * @param rep The repetition index (0-indexed)
2494      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2495      */
2496     public XON insertGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2497         return (XON) super.insertRepetition(51, rep);
2498     }
2499 
2500 
2501     /**
2502      * Inserts a repetition of
2503      * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2504      *
2505      * @param rep The repetition index (0-indexed)
2506      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2507      */
2508     public XON insertGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2509         return (XON) super.insertRepetition(51, rep);
2510     }
2511 
2512 
2513     /**
2514      * Removes a repetition of
2515      * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2516      *
2517      * @param rep The repetition index (0-indexed)
2518      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2519      */
2520     public XON removeGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2521         return (XON) super.removeRepetition(51, rep);
2522     }
2523 
2524 
2525     /**
2526      * Removes a repetition of
2527      * GT1-51: "Guarantor Employer's Organization Name" at a specific index
2528      *
2529      * @param rep The repetition index (0-indexed)
2530      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2531      */
2532     public XON removeGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 
2533         return (XON) super.removeRepetition(51, rep);
2534     }
2535 
2536 
2537 
2538 
2539     /**
2540      * Returns
2541      * GT1-52: "Handicap" - creates it if necessary
2542      */
2543     public IS getHandicap() { 
2544 		IS retVal = this.getTypedField(52, 0);
2545 		return retVal;
2546     }
2547     
2548     /**
2549      * Returns
2550      * GT1-52: "Handicap" - creates it if necessary
2551      */
2552     public IS getGt152_Handicap() { 
2553 		IS retVal = this.getTypedField(52, 0);
2554 		return retVal;
2555     }
2556 
2557 
2558 
2559     /**
2560      * Returns
2561      * GT1-53: "Job Status" - creates it if necessary
2562      */
2563     public IS getJobStatus() { 
2564 		IS retVal = this.getTypedField(53, 0);
2565 		return retVal;
2566     }
2567     
2568     /**
2569      * Returns
2570      * GT1-53: "Job Status" - creates it if necessary
2571      */
2572     public IS getGt153_JobStatus() { 
2573 		IS retVal = this.getTypedField(53, 0);
2574 		return retVal;
2575     }
2576 
2577 
2578 
2579     /**
2580      * Returns
2581      * GT1-54: "Guarantor Financial Class" - creates it if necessary
2582      */
2583     public FC getGuarantorFinancialClass() { 
2584 		FC retVal = this.getTypedField(54, 0);
2585 		return retVal;
2586     }
2587     
2588     /**
2589      * Returns
2590      * GT1-54: "Guarantor Financial Class" - creates it if necessary
2591      */
2592     public FC getGt154_GuarantorFinancialClass() { 
2593 		FC retVal = this.getTypedField(54, 0);
2594 		return retVal;
2595     }
2596 
2597 
2598 
2599     /**
2600      * Returns
2601      * GT1-55: "Guarantor Race" - creates it if necessary
2602      */
2603     public IS getGuarantorRace() { 
2604 		IS retVal = this.getTypedField(55, 0);
2605 		return retVal;
2606     }
2607     
2608     /**
2609      * Returns
2610      * GT1-55: "Guarantor Race" - creates it if necessary
2611      */
2612     public IS getGt155_GuarantorRace() { 
2613 		IS retVal = this.getTypedField(55, 0);
2614 		return retVal;
2615     }
2616 
2617 
2618 
2619 
2620 
2621     /** {@inheritDoc} */   
2622     protected Type createNewTypeWithoutReflection(int field) {
2623        switch (field) {
2624           case 0: return new SI(getMessage());
2625           case 1: return new CX(getMessage());
2626           case 2: return new XPN(getMessage());
2627           case 3: return new XPN(getMessage());
2628           case 4: return new XAD(getMessage());
2629           case 5: return new XTN(getMessage());
2630           case 6: return new XTN(getMessage());
2631           case 7: return new TS(getMessage());
2632           case 8: return new IS(getMessage(), new Integer( 1 ));
2633           case 9: return new IS(getMessage(), new Integer( 68 ));
2634           case 10: return new IS(getMessage(), new Integer( 63 ));
2635           case 11: return new ST(getMessage());
2636           case 12: return new DT(getMessage());
2637           case 13: return new DT(getMessage());
2638           case 14: return new NM(getMessage());
2639           case 15: return new XPN(getMessage());
2640           case 16: return new XAD(getMessage());
2641           case 17: return new XTN(getMessage());
2642           case 18: return new CX(getMessage());
2643           case 19: return new IS(getMessage(), new Integer( 66 ));
2644           case 20: return new XON(getMessage());
2645           case 21: return new ID(getMessage(), new Integer( 136 ));
2646           case 22: return new CE(getMessage());
2647           case 23: return new TS(getMessage());
2648           case 24: return new ID(getMessage(), new Integer( 136 ));
2649           case 25: return new CE(getMessage());
2650           case 26: return new CP(getMessage());
2651           case 27: return new NM(getMessage());
2652           case 28: return new CX(getMessage());
2653           case 29: return new IS(getMessage(), new Integer( 0 ));
2654           case 30: return new DT(getMessage());
2655           case 31: return new DT(getMessage());
2656           case 32: return new IS(getMessage(), new Integer( 223 ));
2657           case 33: return new IS(getMessage(), new Integer( 9 ));
2658           case 34: return new IS(getMessage(), new Integer( 171 ));
2659           case 35: return new CE(getMessage());
2660           case 36: return new IS(getMessage(), new Integer( 220 ));
2661           case 37: return new CE(getMessage());
2662           case 38: return new ID(getMessage(), new Integer( 136 ));
2663           case 39: return new IS(getMessage(), new Integer( 231 ));
2664           case 40: return new IS(getMessage(), new Integer( 6 ));
2665           case 41: return new XPN(getMessage());
2666           case 42: return new CE(getMessage());
2667           case 43: return new IS(getMessage(), new Integer( 189 ));
2668           case 44: return new XPN(getMessage());
2669           case 45: return new XTN(getMessage());
2670           case 46: return new CE(getMessage());
2671           case 47: return new IS(getMessage(), new Integer( 63 ));
2672           case 48: return new ST(getMessage());
2673           case 49: return new JCC(getMessage());
2674           case 50: return new XON(getMessage());
2675           case 51: return new IS(getMessage(), new Integer( 310 ));
2676           case 52: return new IS(getMessage(), new Integer( 311 ));
2677           case 53: return new FC(getMessage());
2678           case 54: return new IS(getMessage(), new Integer( 5 ));
2679           default: return null;
2680        }
2681    }
2682 
2683 
2684 }
2685