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.v28.segment;
35  
36  // import ca.uhn.hl7v2.model.v28.group.*;
37  import ca.uhn.hl7v2.model.v28.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 IN1 message segment (Insurance). 
50   * This segment has the following fields:</p>
51   * <ul>
52       * <li>IN1-1: Set ID - IN1 (SI) <b> </b>
53       * <li>IN1-2: Health Plan ID (CWE) <b> </b>
54       * <li>IN1-3: Insurance Company ID (CX) <b> repeating</b>
55       * <li>IN1-4: Insurance Company Name (XON) <b>optional repeating</b>
56       * <li>IN1-5: Insurance Company Address (XAD) <b>optional repeating</b>
57       * <li>IN1-6: Insurance Co Contact Person (XPN) <b>optional repeating</b>
58       * <li>IN1-7: Insurance Co Phone Number (XTN) <b>optional repeating</b>
59       * <li>IN1-8: Group Number (ST) <b>optional </b>
60       * <li>IN1-9: Group Name (XON) <b>optional repeating</b>
61       * <li>IN1-10: Insured's Group Emp ID (CX) <b>optional repeating</b>
62       * <li>IN1-11: Insured's Group Emp Name (XON) <b>optional repeating</b>
63       * <li>IN1-12: Plan Effective Date (DT) <b>optional </b>
64       * <li>IN1-13: Plan Expiration Date (DT) <b>optional </b>
65       * <li>IN1-14: Authorization Information (AUI) <b>optional </b>
66       * <li>IN1-15: Plan Type (CWE) <b>optional </b>
67       * <li>IN1-16: Name Of Insured (XPN) <b>optional repeating</b>
68       * <li>IN1-17: Insured's Relationship To Patient (CWE) <b>optional </b>
69       * <li>IN1-18: Insured's Date Of Birth (DTM) <b>optional </b>
70       * <li>IN1-19: Insured's Address (XAD) <b>optional repeating</b>
71       * <li>IN1-20: Assignment Of Benefits (CWE) <b>optional </b>
72       * <li>IN1-21: Coordination Of Benefits (CWE) <b>optional </b>
73       * <li>IN1-22: Coord Of Ben. Priority (ST) <b>optional </b>
74       * <li>IN1-23: Notice Of Admission Flag (ID) <b>optional </b>
75       * <li>IN1-24: Notice Of Admission Date (DT) <b>optional </b>
76       * <li>IN1-25: Report Of Eligibility Flag (ID) <b>optional </b>
77       * <li>IN1-26: Report Of Eligibility Date (DT) <b>optional </b>
78       * <li>IN1-27: Release Information Code (CWE) <b>optional </b>
79       * <li>IN1-28: Pre-Admit Cert (PAC) (ST) <b>optional </b>
80       * <li>IN1-29: Verification Date/Time (DTM) <b>optional </b>
81       * <li>IN1-30: Verification By (XCN) <b>optional repeating</b>
82       * <li>IN1-31: Type Of Agreement Code (CWE) <b>optional </b>
83       * <li>IN1-32: Billing Status (CWE) <b>optional </b>
84       * <li>IN1-33: Lifetime Reserve Days (NM) <b>optional </b>
85       * <li>IN1-34: Delay Before L.R. Day (NM) <b>optional </b>
86       * <li>IN1-35: Company Plan Code (CWE) <b>optional </b>
87       * <li>IN1-36: Policy Number (ST) <b>optional </b>
88       * <li>IN1-37: Policy Deductible (CP) <b>optional </b>
89       * <li>IN1-38: Policy Limit - Amount (NULLDT) <b>optional </b>
90       * <li>IN1-39: Policy Limit - Days (NM) <b>optional </b>
91       * <li>IN1-40: Room Rate - Semi-Private (NULLDT) <b>optional </b>
92       * <li>IN1-41: Room Rate - Private (NULLDT) <b>optional </b>
93       * <li>IN1-42: Insured's Employment Status (CWE) <b>optional </b>
94       * <li>IN1-43: Insured's Administrative Sex (CWE) <b>optional </b>
95       * <li>IN1-44: Insured's Employer's Address (XAD) <b>optional repeating</b>
96       * <li>IN1-45: Verification Status (ST) <b>optional </b>
97       * <li>IN1-46: Prior Insurance Plan ID (CWE) <b>optional </b>
98       * <li>IN1-47: Coverage Type (CWE) <b>optional </b>
99       * <li>IN1-48: Handicap (CWE) <b>optional </b>
100      * <li>IN1-49: Insured's ID Number (CX) <b>optional repeating</b>
101      * <li>IN1-50: Signature Code (CWE) <b>optional </b>
102      * <li>IN1-51: Signature Code Date (DT) <b>optional </b>
103      * <li>IN1-52: Insured's Birth Place (ST) <b>optional </b>
104      * <li>IN1-53: VIP Indicator (CWE) <b>optional </b>
105      * <li>IN1-54: External Health Plan Identifiers (CX) <b>optional repeating</b>
106      * <li>IN1-55: Insurance Action Code (ID) <b>optional </b>
107  * </ul>
108  */
109 @SuppressWarnings("unused")
110 public class IN1 extends AbstractSegment {
111 
112     /** 
113      * Creates a new IN1 segment
114      */
115     public IN1(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 - IN1");
123                                   this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Health Plan ID");
124                                   this.add(CX.class, true, 0, 0, new Object[]{ getMessage() }, "Insurance Company ID");
125                                   this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Insurance Company Name");
126                                   this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Insurance Company Address");
127                                   this.add(XPN.class, false, 0, 0, new Object[]{ getMessage() }, "Insurance Co Contact Person");
128                                   this.add(XTN.class, false, 0, 0, new Object[]{ getMessage() }, "Insurance Co Phone Number");
129                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Group Number");
130                                   this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Group Name");
131                                   this.add(CX.class, false, 0, 0, new Object[]{ getMessage() }, "Insured's Group Emp ID");
132                                   this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Insured's Group Emp Name");
133                                   this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Plan Effective Date");
134                                   this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Plan Expiration Date");
135                                   this.add(AUI.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Information");
136                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Plan Type");
137                                   this.add(XPN.class, false, 0, 0, new Object[]{ getMessage() }, "Name Of Insured");
138                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Insured's Relationship To Patient");
139                                   this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Insured's Date Of Birth");
140                                   this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Insured's Address");
141                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Assignment Of Benefits");
142                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Coordination Of Benefits");
143                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Coord Of Ben. Priority");
144                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Notice Of Admission Flag");
145                                   this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Notice Of Admission Date");
146                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Report Of Eligibility Flag");
147                                   this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Report Of Eligibility Date");
148                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Release Information Code");
149                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Pre-Admit Cert (PAC)");
150                                   this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Verification Date/Time");
151                                   this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Verification By");
152                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Type Of Agreement Code");
153                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Billing Status");
154                                   this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Lifetime Reserve Days");
155                                   this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Delay Before L.R. Day");
156                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Company Plan Code");
157                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Policy Number");
158                                   this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Policy Deductible");
159                                   this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Policy Limit - Amount");
160                                   this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Policy Limit - Days");
161                                   this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Room Rate - Semi-Private");
162                                   this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Room Rate - Private");
163                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Insured's Employment Status");
164                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Insured's Administrative Sex");
165                                   this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Insured's Employer's Address");
166                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Verification Status");
167                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Prior Insurance Plan ID");
168                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Coverage Type");
169                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Handicap");
170                                   this.add(CX.class, false, 0, 0, new Object[]{ getMessage() }, "Insured's ID Number");
171                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Signature Code");
172                                   this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Signature Code Date");
173                                   this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Insured's Birth Place");
174                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "VIP Indicator");
175                                   this.add(CX.class, false, 0, 0, new Object[]{ getMessage() }, "External Health Plan Identifiers");
176                                               this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(206) }, "Insurance Action Code");
177        } catch(HL7Exception e) {
178           log.error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e);
179        }
180     }
181 
182 
183 
184     /**
185      * Returns
186      * IN1-1: "Set ID - IN1" - creates it if necessary
187      */
188     public SI getSetIDIN1() { 
189 		SI retVal = this.getTypedField(1, 0);
190 		return retVal;
191     }
192     
193     /**
194      * Returns
195      * IN1-1: "Set ID - IN1" - creates it if necessary
196      */
197     public SI getIn11_SetIDIN1() { 
198 		SI retVal = this.getTypedField(1, 0);
199 		return retVal;
200     }
201 
202 
203 
204     /**
205      * Returns
206      * IN1-2: "Health Plan ID" - creates it if necessary
207      */
208     public CWE getHealthPlanID() { 
209 		CWE retVal = this.getTypedField(2, 0);
210 		return retVal;
211     }
212     
213     /**
214      * Returns
215      * IN1-2: "Health Plan ID" - creates it if necessary
216      */
217     public CWE getIn12_HealthPlanID() { 
218 		CWE retVal = this.getTypedField(2, 0);
219 		return retVal;
220     }
221 
222 
223     /**
224      * Returns all repetitions of Insurance Company ID (IN1-3).
225      */
226     public CX[] getInsuranceCompanyID() {
227     	CX[] retVal = this.getTypedField(3, new CX[0]);
228     	return retVal;
229     }
230 
231 
232     /**
233      * Returns all repetitions of Insurance Company ID (IN1-3).
234      */
235     public CX[] getIn13_InsuranceCompanyID() {
236     	CX[] retVal = this.getTypedField(3, new CX[0]);
237     	return retVal;
238     }
239 
240 
241     /**
242      * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3).
243      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
244      * it will return zero.
245      */
246     public int getInsuranceCompanyIDReps() {
247     	return this.getReps(3);
248     }
249 
250 
251     /**
252      * Returns a specific repetition of
253      * IN1-3: "Insurance Company ID" - creates it if necessary
254      *
255      * @param rep The repetition index (0-indexed)
256      */
257     public CX getInsuranceCompanyID(int rep) { 
258 		CX retVal = this.getTypedField(3, rep);
259 		return retVal;
260     }
261 
262     /**
263      * Returns a specific repetition of
264      * IN1-3: "Insurance Company ID" - creates it if necessary
265      *
266      * @param rep The repetition index (0-indexed)
267      */
268     public CX getIn13_InsuranceCompanyID(int rep) { 
269 		CX retVal = this.getTypedField(3, rep);
270 		return retVal;
271     }
272 
273     /**
274      * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3).
275      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
276      * it will return zero.
277      */
278     public int getIn13_InsuranceCompanyIDReps() {
279     	return this.getReps(3);
280     }
281 
282 
283     /**
284      * Inserts a repetition of
285      * IN1-3: "Insurance Company ID" at a specific index
286      *
287      * @param rep The repetition index (0-indexed)
288      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
289      */
290     public CX insertInsuranceCompanyID(int rep) throws HL7Exception { 
291         return (CX) super.insertRepetition(3, rep);
292     }
293 
294 
295     /**
296      * Inserts a repetition of
297      * IN1-3: "Insurance Company ID" at a specific index
298      *
299      * @param rep The repetition index (0-indexed)
300      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
301      */
302     public CX insertIn13_InsuranceCompanyID(int rep) throws HL7Exception { 
303         return (CX) super.insertRepetition(3, rep);
304     }
305 
306 
307     /**
308      * Removes a repetition of
309      * IN1-3: "Insurance Company ID" at a specific index
310      *
311      * @param rep The repetition index (0-indexed)
312      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
313      */
314     public CX removeInsuranceCompanyID(int rep) throws HL7Exception { 
315         return (CX) super.removeRepetition(3, rep);
316     }
317 
318 
319     /**
320      * Removes a repetition of
321      * IN1-3: "Insurance Company ID" at a specific index
322      *
323      * @param rep The repetition index (0-indexed)
324      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
325      */
326     public CX removeIn13_InsuranceCompanyID(int rep) throws HL7Exception { 
327         return (CX) super.removeRepetition(3, rep);
328     }
329 
330 
331 
332     /**
333      * Returns all repetitions of Insurance Company Name (IN1-4).
334      */
335     public XON[] getInsuranceCompanyName() {
336     	XON[] retVal = this.getTypedField(4, new XON[0]);
337     	return retVal;
338     }
339 
340 
341     /**
342      * Returns all repetitions of Insurance Company Name (IN1-4).
343      */
344     public XON[] getIn14_InsuranceCompanyName() {
345     	XON[] retVal = this.getTypedField(4, new XON[0]);
346     	return retVal;
347     }
348 
349 
350     /**
351      * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4).
352      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
353      * it will return zero.
354      */
355     public int getInsuranceCompanyNameReps() {
356     	return this.getReps(4);
357     }
358 
359 
360     /**
361      * Returns a specific repetition of
362      * IN1-4: "Insurance Company Name" - creates it if necessary
363      *
364      * @param rep The repetition index (0-indexed)
365      */
366     public XON getInsuranceCompanyName(int rep) { 
367 		XON retVal = this.getTypedField(4, rep);
368 		return retVal;
369     }
370 
371     /**
372      * Returns a specific repetition of
373      * IN1-4: "Insurance Company Name" - creates it if necessary
374      *
375      * @param rep The repetition index (0-indexed)
376      */
377     public XON getIn14_InsuranceCompanyName(int rep) { 
378 		XON retVal = this.getTypedField(4, rep);
379 		return retVal;
380     }
381 
382     /**
383      * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4).
384      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
385      * it will return zero.
386      */
387     public int getIn14_InsuranceCompanyNameReps() {
388     	return this.getReps(4);
389     }
390 
391 
392     /**
393      * Inserts a repetition of
394      * IN1-4: "Insurance Company Name" at a specific index
395      *
396      * @param rep The repetition index (0-indexed)
397      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
398      */
399     public XON insertInsuranceCompanyName(int rep) throws HL7Exception { 
400         return (XON) super.insertRepetition(4, rep);
401     }
402 
403 
404     /**
405      * Inserts a repetition of
406      * IN1-4: "Insurance Company Name" at a specific index
407      *
408      * @param rep The repetition index (0-indexed)
409      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
410      */
411     public XON insertIn14_InsuranceCompanyName(int rep) throws HL7Exception { 
412         return (XON) super.insertRepetition(4, rep);
413     }
414 
415 
416     /**
417      * Removes a repetition of
418      * IN1-4: "Insurance Company Name" at a specific index
419      *
420      * @param rep The repetition index (0-indexed)
421      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
422      */
423     public XON removeInsuranceCompanyName(int rep) throws HL7Exception { 
424         return (XON) super.removeRepetition(4, rep);
425     }
426 
427 
428     /**
429      * Removes a repetition of
430      * IN1-4: "Insurance Company Name" at a specific index
431      *
432      * @param rep The repetition index (0-indexed)
433      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
434      */
435     public XON removeIn14_InsuranceCompanyName(int rep) throws HL7Exception { 
436         return (XON) super.removeRepetition(4, rep);
437     }
438 
439 
440 
441     /**
442      * Returns all repetitions of Insurance Company Address (IN1-5).
443      */
444     public XAD[] getInsuranceCompanyAddress() {
445     	XAD[] retVal = this.getTypedField(5, new XAD[0]);
446     	return retVal;
447     }
448 
449 
450     /**
451      * Returns all repetitions of Insurance Company Address (IN1-5).
452      */
453     public XAD[] getIn15_InsuranceCompanyAddress() {
454     	XAD[] retVal = this.getTypedField(5, new XAD[0]);
455     	return retVal;
456     }
457 
458 
459     /**
460      * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5).
461      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
462      * it will return zero.
463      */
464     public int getInsuranceCompanyAddressReps() {
465     	return this.getReps(5);
466     }
467 
468 
469     /**
470      * Returns a specific repetition of
471      * IN1-5: "Insurance Company Address" - creates it if necessary
472      *
473      * @param rep The repetition index (0-indexed)
474      */
475     public XAD getInsuranceCompanyAddress(int rep) { 
476 		XAD retVal = this.getTypedField(5, rep);
477 		return retVal;
478     }
479 
480     /**
481      * Returns a specific repetition of
482      * IN1-5: "Insurance Company Address" - creates it if necessary
483      *
484      * @param rep The repetition index (0-indexed)
485      */
486     public XAD getIn15_InsuranceCompanyAddress(int rep) { 
487 		XAD retVal = this.getTypedField(5, rep);
488 		return retVal;
489     }
490 
491     /**
492      * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5).
493      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
494      * it will return zero.
495      */
496     public int getIn15_InsuranceCompanyAddressReps() {
497     	return this.getReps(5);
498     }
499 
500 
501     /**
502      * Inserts a repetition of
503      * IN1-5: "Insurance Company Address" at a specific index
504      *
505      * @param rep The repetition index (0-indexed)
506      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
507      */
508     public XAD insertInsuranceCompanyAddress(int rep) throws HL7Exception { 
509         return (XAD) super.insertRepetition(5, rep);
510     }
511 
512 
513     /**
514      * Inserts a repetition of
515      * IN1-5: "Insurance Company Address" at a specific index
516      *
517      * @param rep The repetition index (0-indexed)
518      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
519      */
520     public XAD insertIn15_InsuranceCompanyAddress(int rep) throws HL7Exception { 
521         return (XAD) super.insertRepetition(5, rep);
522     }
523 
524 
525     /**
526      * Removes a repetition of
527      * IN1-5: "Insurance Company Address" at a specific index
528      *
529      * @param rep The repetition index (0-indexed)
530      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
531      */
532     public XAD removeInsuranceCompanyAddress(int rep) throws HL7Exception { 
533         return (XAD) super.removeRepetition(5, rep);
534     }
535 
536 
537     /**
538      * Removes a repetition of
539      * IN1-5: "Insurance Company Address" at a specific index
540      *
541      * @param rep The repetition index (0-indexed)
542      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
543      */
544     public XAD removeIn15_InsuranceCompanyAddress(int rep) throws HL7Exception { 
545         return (XAD) super.removeRepetition(5, rep);
546     }
547 
548 
549 
550     /**
551      * Returns all repetitions of Insurance Co Contact Person (IN1-6).
552      */
553     public XPN[] getInsuranceCoContactPerson() {
554     	XPN[] retVal = this.getTypedField(6, new XPN[0]);
555     	return retVal;
556     }
557 
558 
559     /**
560      * Returns all repetitions of Insurance Co Contact Person (IN1-6).
561      */
562     public XPN[] getIn16_InsuranceCoContactPerson() {
563     	XPN[] retVal = this.getTypedField(6, new XPN[0]);
564     	return retVal;
565     }
566 
567 
568     /**
569      * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6).
570      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
571      * it will return zero.
572      */
573     public int getInsuranceCoContactPersonReps() {
574     	return this.getReps(6);
575     }
576 
577 
578     /**
579      * Returns a specific repetition of
580      * IN1-6: "Insurance Co Contact Person" - creates it if necessary
581      *
582      * @param rep The repetition index (0-indexed)
583      */
584     public XPN getInsuranceCoContactPerson(int rep) { 
585 		XPN retVal = this.getTypedField(6, rep);
586 		return retVal;
587     }
588 
589     /**
590      * Returns a specific repetition of
591      * IN1-6: "Insurance Co Contact Person" - creates it if necessary
592      *
593      * @param rep The repetition index (0-indexed)
594      */
595     public XPN getIn16_InsuranceCoContactPerson(int rep) { 
596 		XPN retVal = this.getTypedField(6, rep);
597 		return retVal;
598     }
599 
600     /**
601      * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6).
602      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
603      * it will return zero.
604      */
605     public int getIn16_InsuranceCoContactPersonReps() {
606     	return this.getReps(6);
607     }
608 
609 
610     /**
611      * Inserts a repetition of
612      * IN1-6: "Insurance Co Contact Person" at a specific index
613      *
614      * @param rep The repetition index (0-indexed)
615      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
616      */
617     public XPN insertInsuranceCoContactPerson(int rep) throws HL7Exception { 
618         return (XPN) super.insertRepetition(6, rep);
619     }
620 
621 
622     /**
623      * Inserts a repetition of
624      * IN1-6: "Insurance Co Contact Person" at a specific index
625      *
626      * @param rep The repetition index (0-indexed)
627      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
628      */
629     public XPN insertIn16_InsuranceCoContactPerson(int rep) throws HL7Exception { 
630         return (XPN) super.insertRepetition(6, rep);
631     }
632 
633 
634     /**
635      * Removes a repetition of
636      * IN1-6: "Insurance Co Contact Person" at a specific index
637      *
638      * @param rep The repetition index (0-indexed)
639      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
640      */
641     public XPN removeInsuranceCoContactPerson(int rep) throws HL7Exception { 
642         return (XPN) super.removeRepetition(6, rep);
643     }
644 
645 
646     /**
647      * Removes a repetition of
648      * IN1-6: "Insurance Co Contact Person" at a specific index
649      *
650      * @param rep The repetition index (0-indexed)
651      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
652      */
653     public XPN removeIn16_InsuranceCoContactPerson(int rep) throws HL7Exception { 
654         return (XPN) super.removeRepetition(6, rep);
655     }
656 
657 
658 
659     /**
660      * Returns all repetitions of Insurance Co Phone Number (IN1-7).
661      */
662     public XTN[] getInsuranceCoPhoneNumber() {
663     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
664     	return retVal;
665     }
666 
667 
668     /**
669      * Returns all repetitions of Insurance Co Phone Number (IN1-7).
670      */
671     public XTN[] getIn17_InsuranceCoPhoneNumber() {
672     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
673     	return retVal;
674     }
675 
676 
677     /**
678      * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
679      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
680      * it will return zero.
681      */
682     public int getInsuranceCoPhoneNumberReps() {
683     	return this.getReps(7);
684     }
685 
686 
687     /**
688      * Returns a specific repetition of
689      * IN1-7: "Insurance Co Phone Number" - creates it if necessary
690      *
691      * @param rep The repetition index (0-indexed)
692      */
693     public XTN getInsuranceCoPhoneNumber(int rep) { 
694 		XTN retVal = this.getTypedField(7, rep);
695 		return retVal;
696     }
697 
698     /**
699      * Returns a specific repetition of
700      * IN1-7: "Insurance Co Phone Number" - creates it if necessary
701      *
702      * @param rep The repetition index (0-indexed)
703      */
704     public XTN getIn17_InsuranceCoPhoneNumber(int rep) { 
705 		XTN retVal = this.getTypedField(7, rep);
706 		return retVal;
707     }
708 
709     /**
710      * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
711      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
712      * it will return zero.
713      */
714     public int getIn17_InsuranceCoPhoneNumberReps() {
715     	return this.getReps(7);
716     }
717 
718 
719     /**
720      * Inserts a repetition of
721      * IN1-7: "Insurance Co Phone Number" at a specific index
722      *
723      * @param rep The repetition index (0-indexed)
724      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
725      */
726     public XTN insertInsuranceCoPhoneNumber(int rep) throws HL7Exception { 
727         return (XTN) super.insertRepetition(7, rep);
728     }
729 
730 
731     /**
732      * Inserts a repetition of
733      * IN1-7: "Insurance Co Phone Number" at a specific index
734      *
735      * @param rep The repetition index (0-indexed)
736      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
737      */
738     public XTN insertIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 
739         return (XTN) super.insertRepetition(7, rep);
740     }
741 
742 
743     /**
744      * Removes a repetition of
745      * IN1-7: "Insurance Co Phone Number" at a specific index
746      *
747      * @param rep The repetition index (0-indexed)
748      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
749      */
750     public XTN removeInsuranceCoPhoneNumber(int rep) throws HL7Exception { 
751         return (XTN) super.removeRepetition(7, rep);
752     }
753 
754 
755     /**
756      * Removes a repetition of
757      * IN1-7: "Insurance Co Phone Number" at a specific index
758      *
759      * @param rep The repetition index (0-indexed)
760      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
761      */
762     public XTN removeIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 
763         return (XTN) super.removeRepetition(7, rep);
764     }
765 
766 
767 
768 
769     /**
770      * Returns
771      * IN1-8: "Group Number" - creates it if necessary
772      */
773     public ST getGroupNumber() { 
774 		ST retVal = this.getTypedField(8, 0);
775 		return retVal;
776     }
777     
778     /**
779      * Returns
780      * IN1-8: "Group Number" - creates it if necessary
781      */
782     public ST getIn18_GroupNumber() { 
783 		ST retVal = this.getTypedField(8, 0);
784 		return retVal;
785     }
786 
787 
788     /**
789      * Returns all repetitions of Group Name (IN1-9).
790      */
791     public XON[] getGroupName() {
792     	XON[] retVal = this.getTypedField(9, new XON[0]);
793     	return retVal;
794     }
795 
796 
797     /**
798      * Returns all repetitions of Group Name (IN1-9).
799      */
800     public XON[] getIn19_GroupName() {
801     	XON[] retVal = this.getTypedField(9, new XON[0]);
802     	return retVal;
803     }
804 
805 
806     /**
807      * Returns a count of the current number of repetitions of Group Name (IN1-9).
808      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
809      * it will return zero.
810      */
811     public int getGroupNameReps() {
812     	return this.getReps(9);
813     }
814 
815 
816     /**
817      * Returns a specific repetition of
818      * IN1-9: "Group Name" - creates it if necessary
819      *
820      * @param rep The repetition index (0-indexed)
821      */
822     public XON getGroupName(int rep) { 
823 		XON retVal = this.getTypedField(9, rep);
824 		return retVal;
825     }
826 
827     /**
828      * Returns a specific repetition of
829      * IN1-9: "Group Name" - creates it if necessary
830      *
831      * @param rep The repetition index (0-indexed)
832      */
833     public XON getIn19_GroupName(int rep) { 
834 		XON retVal = this.getTypedField(9, rep);
835 		return retVal;
836     }
837 
838     /**
839      * Returns a count of the current number of repetitions of Group Name (IN1-9).
840      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
841      * it will return zero.
842      */
843     public int getIn19_GroupNameReps() {
844     	return this.getReps(9);
845     }
846 
847 
848     /**
849      * Inserts a repetition of
850      * IN1-9: "Group Name" at a specific index
851      *
852      * @param rep The repetition index (0-indexed)
853      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
854      */
855     public XON insertGroupName(int rep) throws HL7Exception { 
856         return (XON) super.insertRepetition(9, rep);
857     }
858 
859 
860     /**
861      * Inserts a repetition of
862      * IN1-9: "Group Name" at a specific index
863      *
864      * @param rep The repetition index (0-indexed)
865      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
866      */
867     public XON insertIn19_GroupName(int rep) throws HL7Exception { 
868         return (XON) super.insertRepetition(9, rep);
869     }
870 
871 
872     /**
873      * Removes a repetition of
874      * IN1-9: "Group Name" at a specific index
875      *
876      * @param rep The repetition index (0-indexed)
877      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
878      */
879     public XON removeGroupName(int rep) throws HL7Exception { 
880         return (XON) super.removeRepetition(9, rep);
881     }
882 
883 
884     /**
885      * Removes a repetition of
886      * IN1-9: "Group Name" at a specific index
887      *
888      * @param rep The repetition index (0-indexed)
889      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
890      */
891     public XON removeIn19_GroupName(int rep) throws HL7Exception { 
892         return (XON) super.removeRepetition(9, rep);
893     }
894 
895 
896 
897     /**
898      * Returns all repetitions of Insured's Group Emp ID (IN1-10).
899      */
900     public CX[] getInsuredSGroupEmpID() {
901     	CX[] retVal = this.getTypedField(10, new CX[0]);
902     	return retVal;
903     }
904 
905 
906     /**
907      * Returns all repetitions of Insured's Group Emp ID (IN1-10).
908      */
909     public CX[] getIn110_InsuredSGroupEmpID() {
910     	CX[] retVal = this.getTypedField(10, new CX[0]);
911     	return retVal;
912     }
913 
914 
915     /**
916      * Returns a count of the current number of repetitions of Insured's Group Emp ID (IN1-10).
917      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
918      * it will return zero.
919      */
920     public int getInsuredSGroupEmpIDReps() {
921     	return this.getReps(10);
922     }
923 
924 
925     /**
926      * Returns a specific repetition of
927      * IN1-10: "Insured's Group Emp ID" - creates it if necessary
928      *
929      * @param rep The repetition index (0-indexed)
930      */
931     public CX getInsuredSGroupEmpID(int rep) { 
932 		CX retVal = this.getTypedField(10, rep);
933 		return retVal;
934     }
935 
936     /**
937      * Returns a specific repetition of
938      * IN1-10: "Insured's Group Emp ID" - creates it if necessary
939      *
940      * @param rep The repetition index (0-indexed)
941      */
942     public CX getIn110_InsuredSGroupEmpID(int rep) { 
943 		CX retVal = this.getTypedField(10, rep);
944 		return retVal;
945     }
946 
947     /**
948      * Returns a count of the current number of repetitions of Insured's Group Emp ID (IN1-10).
949      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
950      * it will return zero.
951      */
952     public int getIn110_InsuredSGroupEmpIDReps() {
953     	return this.getReps(10);
954     }
955 
956 
957     /**
958      * Inserts a repetition of
959      * IN1-10: "Insured's Group Emp ID" at a specific index
960      *
961      * @param rep The repetition index (0-indexed)
962      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
963      */
964     public CX insertInsuredSGroupEmpID(int rep) throws HL7Exception { 
965         return (CX) super.insertRepetition(10, rep);
966     }
967 
968 
969     /**
970      * Inserts a repetition of
971      * IN1-10: "Insured's Group Emp ID" at a specific index
972      *
973      * @param rep The repetition index (0-indexed)
974      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
975      */
976     public CX insertIn110_InsuredSGroupEmpID(int rep) throws HL7Exception { 
977         return (CX) super.insertRepetition(10, rep);
978     }
979 
980 
981     /**
982      * Removes a repetition of
983      * IN1-10: "Insured's Group Emp ID" at a specific index
984      *
985      * @param rep The repetition index (0-indexed)
986      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
987      */
988     public CX removeInsuredSGroupEmpID(int rep) throws HL7Exception { 
989         return (CX) super.removeRepetition(10, rep);
990     }
991 
992 
993     /**
994      * Removes a repetition of
995      * IN1-10: "Insured's Group Emp ID" at a specific index
996      *
997      * @param rep The repetition index (0-indexed)
998      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
999      */
1000     public CX removeIn110_InsuredSGroupEmpID(int rep) throws HL7Exception { 
1001         return (CX) super.removeRepetition(10, rep);
1002     }
1003 
1004 
1005 
1006     /**
1007      * Returns all repetitions of Insured's Group Emp Name (IN1-11).
1008      */
1009     public XON[] getInsuredSGroupEmpName() {
1010     	XON[] retVal = this.getTypedField(11, new XON[0]);
1011     	return retVal;
1012     }
1013 
1014 
1015     /**
1016      * Returns all repetitions of Insured's Group Emp Name (IN1-11).
1017      */
1018     public XON[] getIn111_InsuredSGroupEmpName() {
1019     	XON[] retVal = this.getTypedField(11, new XON[0]);
1020     	return retVal;
1021     }
1022 
1023 
1024     /**
1025      * Returns a count of the current number of repetitions of Insured's Group Emp Name (IN1-11).
1026      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1027      * it will return zero.
1028      */
1029     public int getInsuredSGroupEmpNameReps() {
1030     	return this.getReps(11);
1031     }
1032 
1033 
1034     /**
1035      * Returns a specific repetition of
1036      * IN1-11: "Insured's Group Emp Name" - creates it if necessary
1037      *
1038      * @param rep The repetition index (0-indexed)
1039      */
1040     public XON getInsuredSGroupEmpName(int rep) { 
1041 		XON retVal = this.getTypedField(11, rep);
1042 		return retVal;
1043     }
1044 
1045     /**
1046      * Returns a specific repetition of
1047      * IN1-11: "Insured's Group Emp Name" - creates it if necessary
1048      *
1049      * @param rep The repetition index (0-indexed)
1050      */
1051     public XON getIn111_InsuredSGroupEmpName(int rep) { 
1052 		XON retVal = this.getTypedField(11, rep);
1053 		return retVal;
1054     }
1055 
1056     /**
1057      * Returns a count of the current number of repetitions of Insured's Group Emp Name (IN1-11).
1058      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1059      * it will return zero.
1060      */
1061     public int getIn111_InsuredSGroupEmpNameReps() {
1062     	return this.getReps(11);
1063     }
1064 
1065 
1066     /**
1067      * Inserts a repetition of
1068      * IN1-11: "Insured's Group Emp Name" at a specific index
1069      *
1070      * @param rep The repetition index (0-indexed)
1071      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1072      */
1073     public XON insertInsuredSGroupEmpName(int rep) throws HL7Exception { 
1074         return (XON) super.insertRepetition(11, rep);
1075     }
1076 
1077 
1078     /**
1079      * Inserts a repetition of
1080      * IN1-11: "Insured's Group Emp Name" at a specific index
1081      *
1082      * @param rep The repetition index (0-indexed)
1083      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1084      */
1085     public XON insertIn111_InsuredSGroupEmpName(int rep) throws HL7Exception { 
1086         return (XON) super.insertRepetition(11, rep);
1087     }
1088 
1089 
1090     /**
1091      * Removes a repetition of
1092      * IN1-11: "Insured's Group Emp Name" at a specific index
1093      *
1094      * @param rep The repetition index (0-indexed)
1095      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1096      */
1097     public XON removeInsuredSGroupEmpName(int rep) throws HL7Exception { 
1098         return (XON) super.removeRepetition(11, rep);
1099     }
1100 
1101 
1102     /**
1103      * Removes a repetition of
1104      * IN1-11: "Insured's Group Emp Name" at a specific index
1105      *
1106      * @param rep The repetition index (0-indexed)
1107      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1108      */
1109     public XON removeIn111_InsuredSGroupEmpName(int rep) throws HL7Exception { 
1110         return (XON) super.removeRepetition(11, rep);
1111     }
1112 
1113 
1114 
1115 
1116     /**
1117      * Returns
1118      * IN1-12: "Plan Effective Date" - creates it if necessary
1119      */
1120     public DT getPlanEffectiveDate() { 
1121 		DT retVal = this.getTypedField(12, 0);
1122 		return retVal;
1123     }
1124     
1125     /**
1126      * Returns
1127      * IN1-12: "Plan Effective Date" - creates it if necessary
1128      */
1129     public DT getIn112_PlanEffectiveDate() { 
1130 		DT retVal = this.getTypedField(12, 0);
1131 		return retVal;
1132     }
1133 
1134 
1135 
1136     /**
1137      * Returns
1138      * IN1-13: "Plan Expiration Date" - creates it if necessary
1139      */
1140     public DT getPlanExpirationDate() { 
1141 		DT retVal = this.getTypedField(13, 0);
1142 		return retVal;
1143     }
1144     
1145     /**
1146      * Returns
1147      * IN1-13: "Plan Expiration Date" - creates it if necessary
1148      */
1149     public DT getIn113_PlanExpirationDate() { 
1150 		DT retVal = this.getTypedField(13, 0);
1151 		return retVal;
1152     }
1153 
1154 
1155 
1156     /**
1157      * Returns
1158      * IN1-14: "Authorization Information" - creates it if necessary
1159      */
1160     public AUI getAuthorizationInformation() { 
1161 		AUI retVal = this.getTypedField(14, 0);
1162 		return retVal;
1163     }
1164     
1165     /**
1166      * Returns
1167      * IN1-14: "Authorization Information" - creates it if necessary
1168      */
1169     public AUI getIn114_AuthorizationInformation() { 
1170 		AUI retVal = this.getTypedField(14, 0);
1171 		return retVal;
1172     }
1173 
1174 
1175 
1176     /**
1177      * Returns
1178      * IN1-15: "Plan Type" - creates it if necessary
1179      */
1180     public CWE getPlanType() { 
1181 		CWE retVal = this.getTypedField(15, 0);
1182 		return retVal;
1183     }
1184     
1185     /**
1186      * Returns
1187      * IN1-15: "Plan Type" - creates it if necessary
1188      */
1189     public CWE getIn115_PlanType() { 
1190 		CWE retVal = this.getTypedField(15, 0);
1191 		return retVal;
1192     }
1193 
1194 
1195     /**
1196      * Returns all repetitions of Name Of Insured (IN1-16).
1197      */
1198     public XPN[] getNameOfInsured() {
1199     	XPN[] retVal = this.getTypedField(16, new XPN[0]);
1200     	return retVal;
1201     }
1202 
1203 
1204     /**
1205      * Returns all repetitions of Name Of Insured (IN1-16).
1206      */
1207     public XPN[] getIn116_NameOfInsured() {
1208     	XPN[] retVal = this.getTypedField(16, new XPN[0]);
1209     	return retVal;
1210     }
1211 
1212 
1213     /**
1214      * Returns a count of the current number of repetitions of Name Of Insured (IN1-16).
1215      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1216      * it will return zero.
1217      */
1218     public int getNameOfInsuredReps() {
1219     	return this.getReps(16);
1220     }
1221 
1222 
1223     /**
1224      * Returns a specific repetition of
1225      * IN1-16: "Name Of Insured" - creates it if necessary
1226      *
1227      * @param rep The repetition index (0-indexed)
1228      */
1229     public XPN getNameOfInsured(int rep) { 
1230 		XPN retVal = this.getTypedField(16, rep);
1231 		return retVal;
1232     }
1233 
1234     /**
1235      * Returns a specific repetition of
1236      * IN1-16: "Name Of Insured" - creates it if necessary
1237      *
1238      * @param rep The repetition index (0-indexed)
1239      */
1240     public XPN getIn116_NameOfInsured(int rep) { 
1241 		XPN retVal = this.getTypedField(16, rep);
1242 		return retVal;
1243     }
1244 
1245     /**
1246      * Returns a count of the current number of repetitions of Name Of Insured (IN1-16).
1247      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1248      * it will return zero.
1249      */
1250     public int getIn116_NameOfInsuredReps() {
1251     	return this.getReps(16);
1252     }
1253 
1254 
1255     /**
1256      * Inserts a repetition of
1257      * IN1-16: "Name Of Insured" at a specific index
1258      *
1259      * @param rep The repetition index (0-indexed)
1260      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1261      */
1262     public XPN insertNameOfInsured(int rep) throws HL7Exception { 
1263         return (XPN) super.insertRepetition(16, rep);
1264     }
1265 
1266 
1267     /**
1268      * Inserts a repetition of
1269      * IN1-16: "Name Of Insured" at a specific index
1270      *
1271      * @param rep The repetition index (0-indexed)
1272      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1273      */
1274     public XPN insertIn116_NameOfInsured(int rep) throws HL7Exception { 
1275         return (XPN) super.insertRepetition(16, rep);
1276     }
1277 
1278 
1279     /**
1280      * Removes a repetition of
1281      * IN1-16: "Name Of Insured" at a specific index
1282      *
1283      * @param rep The repetition index (0-indexed)
1284      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1285      */
1286     public XPN removeNameOfInsured(int rep) throws HL7Exception { 
1287         return (XPN) super.removeRepetition(16, rep);
1288     }
1289 
1290 
1291     /**
1292      * Removes a repetition of
1293      * IN1-16: "Name Of Insured" at a specific index
1294      *
1295      * @param rep The repetition index (0-indexed)
1296      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1297      */
1298     public XPN removeIn116_NameOfInsured(int rep) throws HL7Exception { 
1299         return (XPN) super.removeRepetition(16, rep);
1300     }
1301 
1302 
1303 
1304 
1305     /**
1306      * Returns
1307      * IN1-17: "Insured's Relationship To Patient" - creates it if necessary
1308      */
1309     public CWE getInsuredSRelationshipToPatient() { 
1310 		CWE retVal = this.getTypedField(17, 0);
1311 		return retVal;
1312     }
1313     
1314     /**
1315      * Returns
1316      * IN1-17: "Insured's Relationship To Patient" - creates it if necessary
1317      */
1318     public CWE getIn117_InsuredSRelationshipToPatient() { 
1319 		CWE retVal = this.getTypedField(17, 0);
1320 		return retVal;
1321     }
1322 
1323 
1324 
1325     /**
1326      * Returns
1327      * IN1-18: "Insured's Date Of Birth" - creates it if necessary
1328      */
1329     public DTM getInsuredSDateOfBirth() { 
1330 		DTM retVal = this.getTypedField(18, 0);
1331 		return retVal;
1332     }
1333     
1334     /**
1335      * Returns
1336      * IN1-18: "Insured's Date Of Birth" - creates it if necessary
1337      */
1338     public DTM getIn118_InsuredSDateOfBirth() { 
1339 		DTM retVal = this.getTypedField(18, 0);
1340 		return retVal;
1341     }
1342 
1343 
1344     /**
1345      * Returns all repetitions of Insured's Address (IN1-19).
1346      */
1347     public XAD[] getInsuredSAddress() {
1348     	XAD[] retVal = this.getTypedField(19, new XAD[0]);
1349     	return retVal;
1350     }
1351 
1352 
1353     /**
1354      * Returns all repetitions of Insured's Address (IN1-19).
1355      */
1356     public XAD[] getIn119_InsuredSAddress() {
1357     	XAD[] retVal = this.getTypedField(19, new XAD[0]);
1358     	return retVal;
1359     }
1360 
1361 
1362     /**
1363      * Returns a count of the current number of repetitions of Insured's Address (IN1-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 getInsuredSAddressReps() {
1368     	return this.getReps(19);
1369     }
1370 
1371 
1372     /**
1373      * Returns a specific repetition of
1374      * IN1-19: "Insured's Address" - creates it if necessary
1375      *
1376      * @param rep The repetition index (0-indexed)
1377      */
1378     public XAD getInsuredSAddress(int rep) { 
1379 		XAD retVal = this.getTypedField(19, rep);
1380 		return retVal;
1381     }
1382 
1383     /**
1384      * Returns a specific repetition of
1385      * IN1-19: "Insured's Address" - creates it if necessary
1386      *
1387      * @param rep The repetition index (0-indexed)
1388      */
1389     public XAD getIn119_InsuredSAddress(int rep) { 
1390 		XAD retVal = this.getTypedField(19, rep);
1391 		return retVal;
1392     }
1393 
1394     /**
1395      * Returns a count of the current number of repetitions of Insured's Address (IN1-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 getIn119_InsuredSAddressReps() {
1400     	return this.getReps(19);
1401     }
1402 
1403 
1404     /**
1405      * Inserts a repetition of
1406      * IN1-19: "Insured's Address" 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 XAD insertInsuredSAddress(int rep) throws HL7Exception { 
1412         return (XAD) super.insertRepetition(19, rep);
1413     }
1414 
1415 
1416     /**
1417      * Inserts a repetition of
1418      * IN1-19: "Insured's Address" 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 XAD insertIn119_InsuredSAddress(int rep) throws HL7Exception { 
1424         return (XAD) super.insertRepetition(19, rep);
1425     }
1426 
1427 
1428     /**
1429      * Removes a repetition of
1430      * IN1-19: "Insured's Address" 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 XAD removeInsuredSAddress(int rep) throws HL7Exception { 
1436         return (XAD) super.removeRepetition(19, rep);
1437     }
1438 
1439 
1440     /**
1441      * Removes a repetition of
1442      * IN1-19: "Insured's Address" 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 XAD removeIn119_InsuredSAddress(int rep) throws HL7Exception { 
1448         return (XAD) super.removeRepetition(19, rep);
1449     }
1450 
1451 
1452 
1453 
1454     /**
1455      * Returns
1456      * IN1-20: "Assignment Of Benefits" - creates it if necessary
1457      */
1458     public CWE getAssignmentOfBenefits() { 
1459 		CWE retVal = this.getTypedField(20, 0);
1460 		return retVal;
1461     }
1462     
1463     /**
1464      * Returns
1465      * IN1-20: "Assignment Of Benefits" - creates it if necessary
1466      */
1467     public CWE getIn120_AssignmentOfBenefits() { 
1468 		CWE retVal = this.getTypedField(20, 0);
1469 		return retVal;
1470     }
1471 
1472 
1473 
1474     /**
1475      * Returns
1476      * IN1-21: "Coordination Of Benefits" - creates it if necessary
1477      */
1478     public CWE getCoordinationOfBenefits() { 
1479 		CWE retVal = this.getTypedField(21, 0);
1480 		return retVal;
1481     }
1482     
1483     /**
1484      * Returns
1485      * IN1-21: "Coordination Of Benefits" - creates it if necessary
1486      */
1487     public CWE getIn121_CoordinationOfBenefits() { 
1488 		CWE retVal = this.getTypedField(21, 0);
1489 		return retVal;
1490     }
1491 
1492 
1493 
1494     /**
1495      * Returns
1496      * IN1-22: "Coord Of Ben. Priority" - creates it if necessary
1497      */
1498     public ST getCoordOfBenPriority() { 
1499 		ST retVal = this.getTypedField(22, 0);
1500 		return retVal;
1501     }
1502     
1503     /**
1504      * Returns
1505      * IN1-22: "Coord Of Ben. Priority" - creates it if necessary
1506      */
1507     public ST getIn122_CoordOfBenPriority() { 
1508 		ST retVal = this.getTypedField(22, 0);
1509 		return retVal;
1510     }
1511 
1512 
1513 
1514     /**
1515      * Returns
1516      * IN1-23: "Notice Of Admission Flag" - creates it if necessary
1517      */
1518     public ID getNoticeOfAdmissionFlag() { 
1519 		ID retVal = this.getTypedField(23, 0);
1520 		return retVal;
1521     }
1522     
1523     /**
1524      * Returns
1525      * IN1-23: "Notice Of Admission Flag" - creates it if necessary
1526      */
1527     public ID getIn123_NoticeOfAdmissionFlag() { 
1528 		ID retVal = this.getTypedField(23, 0);
1529 		return retVal;
1530     }
1531 
1532 
1533 
1534     /**
1535      * Returns
1536      * IN1-24: "Notice Of Admission Date" - creates it if necessary
1537      */
1538     public DT getNoticeOfAdmissionDate() { 
1539 		DT retVal = this.getTypedField(24, 0);
1540 		return retVal;
1541     }
1542     
1543     /**
1544      * Returns
1545      * IN1-24: "Notice Of Admission Date" - creates it if necessary
1546      */
1547     public DT getIn124_NoticeOfAdmissionDate() { 
1548 		DT retVal = this.getTypedField(24, 0);
1549 		return retVal;
1550     }
1551 
1552 
1553 
1554     /**
1555      * Returns
1556      * IN1-25: "Report Of Eligibility Flag" - creates it if necessary
1557      */
1558     public ID getReportOfEligibilityFlag() { 
1559 		ID retVal = this.getTypedField(25, 0);
1560 		return retVal;
1561     }
1562     
1563     /**
1564      * Returns
1565      * IN1-25: "Report Of Eligibility Flag" - creates it if necessary
1566      */
1567     public ID getIn125_ReportOfEligibilityFlag() { 
1568 		ID retVal = this.getTypedField(25, 0);
1569 		return retVal;
1570     }
1571 
1572 
1573 
1574     /**
1575      * Returns
1576      * IN1-26: "Report Of Eligibility Date" - creates it if necessary
1577      */
1578     public DT getReportOfEligibilityDate() { 
1579 		DT retVal = this.getTypedField(26, 0);
1580 		return retVal;
1581     }
1582     
1583     /**
1584      * Returns
1585      * IN1-26: "Report Of Eligibility Date" - creates it if necessary
1586      */
1587     public DT getIn126_ReportOfEligibilityDate() { 
1588 		DT retVal = this.getTypedField(26, 0);
1589 		return retVal;
1590     }
1591 
1592 
1593 
1594     /**
1595      * Returns
1596      * IN1-27: "Release Information Code" - creates it if necessary
1597      */
1598     public CWE getReleaseInformationCode() { 
1599 		CWE retVal = this.getTypedField(27, 0);
1600 		return retVal;
1601     }
1602     
1603     /**
1604      * Returns
1605      * IN1-27: "Release Information Code" - creates it if necessary
1606      */
1607     public CWE getIn127_ReleaseInformationCode() { 
1608 		CWE retVal = this.getTypedField(27, 0);
1609 		return retVal;
1610     }
1611 
1612 
1613 
1614     /**
1615      * Returns
1616      * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
1617      */
1618     public ST getPreAdmitCert() { 
1619 		ST retVal = this.getTypedField(28, 0);
1620 		return retVal;
1621     }
1622     
1623     /**
1624      * Returns
1625      * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
1626      */
1627     public ST getIn128_PreAdmitCert() { 
1628 		ST retVal = this.getTypedField(28, 0);
1629 		return retVal;
1630     }
1631 
1632 
1633 
1634     /**
1635      * Returns
1636      * IN1-29: "Verification Date/Time" - creates it if necessary
1637      */
1638     public DTM getVerificationDateTime() { 
1639 		DTM retVal = this.getTypedField(29, 0);
1640 		return retVal;
1641     }
1642     
1643     /**
1644      * Returns
1645      * IN1-29: "Verification Date/Time" - creates it if necessary
1646      */
1647     public DTM getIn129_VerificationDateTime() { 
1648 		DTM retVal = this.getTypedField(29, 0);
1649 		return retVal;
1650     }
1651 
1652 
1653     /**
1654      * Returns all repetitions of Verification By (IN1-30).
1655      */
1656     public XCN[] getVerificationBy() {
1657     	XCN[] retVal = this.getTypedField(30, new XCN[0]);
1658     	return retVal;
1659     }
1660 
1661 
1662     /**
1663      * Returns all repetitions of Verification By (IN1-30).
1664      */
1665     public XCN[] getIn130_VerificationBy() {
1666     	XCN[] retVal = this.getTypedField(30, new XCN[0]);
1667     	return retVal;
1668     }
1669 
1670 
1671     /**
1672      * Returns a count of the current number of repetitions of Verification By (IN1-30).
1673      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1674      * it will return zero.
1675      */
1676     public int getVerificationByReps() {
1677     	return this.getReps(30);
1678     }
1679 
1680 
1681     /**
1682      * Returns a specific repetition of
1683      * IN1-30: "Verification By" - creates it if necessary
1684      *
1685      * @param rep The repetition index (0-indexed)
1686      */
1687     public XCN getVerificationBy(int rep) { 
1688 		XCN retVal = this.getTypedField(30, rep);
1689 		return retVal;
1690     }
1691 
1692     /**
1693      * Returns a specific repetition of
1694      * IN1-30: "Verification By" - creates it if necessary
1695      *
1696      * @param rep The repetition index (0-indexed)
1697      */
1698     public XCN getIn130_VerificationBy(int rep) { 
1699 		XCN retVal = this.getTypedField(30, rep);
1700 		return retVal;
1701     }
1702 
1703     /**
1704      * Returns a count of the current number of repetitions of Verification By (IN1-30).
1705      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1706      * it will return zero.
1707      */
1708     public int getIn130_VerificationByReps() {
1709     	return this.getReps(30);
1710     }
1711 
1712 
1713     /**
1714      * Inserts a repetition of
1715      * IN1-30: "Verification By" at a specific index
1716      *
1717      * @param rep The repetition index (0-indexed)
1718      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1719      */
1720     public XCN insertVerificationBy(int rep) throws HL7Exception { 
1721         return (XCN) super.insertRepetition(30, rep);
1722     }
1723 
1724 
1725     /**
1726      * Inserts a repetition of
1727      * IN1-30: "Verification By" at a specific index
1728      *
1729      * @param rep The repetition index (0-indexed)
1730      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1731      */
1732     public XCN insertIn130_VerificationBy(int rep) throws HL7Exception { 
1733         return (XCN) super.insertRepetition(30, rep);
1734     }
1735 
1736 
1737     /**
1738      * Removes a repetition of
1739      * IN1-30: "Verification By" at a specific index
1740      *
1741      * @param rep The repetition index (0-indexed)
1742      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1743      */
1744     public XCN removeVerificationBy(int rep) throws HL7Exception { 
1745         return (XCN) super.removeRepetition(30, rep);
1746     }
1747 
1748 
1749     /**
1750      * Removes a repetition of
1751      * IN1-30: "Verification By" at a specific index
1752      *
1753      * @param rep The repetition index (0-indexed)
1754      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1755      */
1756     public XCN removeIn130_VerificationBy(int rep) throws HL7Exception { 
1757         return (XCN) super.removeRepetition(30, rep);
1758     }
1759 
1760 
1761 
1762 
1763     /**
1764      * Returns
1765      * IN1-31: "Type Of Agreement Code" - creates it if necessary
1766      */
1767     public CWE getTypeOfAgreementCode() { 
1768 		CWE retVal = this.getTypedField(31, 0);
1769 		return retVal;
1770     }
1771     
1772     /**
1773      * Returns
1774      * IN1-31: "Type Of Agreement Code" - creates it if necessary
1775      */
1776     public CWE getIn131_TypeOfAgreementCode() { 
1777 		CWE retVal = this.getTypedField(31, 0);
1778 		return retVal;
1779     }
1780 
1781 
1782 
1783     /**
1784      * Returns
1785      * IN1-32: "Billing Status" - creates it if necessary
1786      */
1787     public CWE getBillingStatus() { 
1788 		CWE retVal = this.getTypedField(32, 0);
1789 		return retVal;
1790     }
1791     
1792     /**
1793      * Returns
1794      * IN1-32: "Billing Status" - creates it if necessary
1795      */
1796     public CWE getIn132_BillingStatus() { 
1797 		CWE retVal = this.getTypedField(32, 0);
1798 		return retVal;
1799     }
1800 
1801 
1802 
1803     /**
1804      * Returns
1805      * IN1-33: "Lifetime Reserve Days" - creates it if necessary
1806      */
1807     public NM getLifetimeReserveDays() { 
1808 		NM retVal = this.getTypedField(33, 0);
1809 		return retVal;
1810     }
1811     
1812     /**
1813      * Returns
1814      * IN1-33: "Lifetime Reserve Days" - creates it if necessary
1815      */
1816     public NM getIn133_LifetimeReserveDays() { 
1817 		NM retVal = this.getTypedField(33, 0);
1818 		return retVal;
1819     }
1820 
1821 
1822 
1823     /**
1824      * Returns
1825      * IN1-34: "Delay Before L.R. Day" - creates it if necessary
1826      */
1827     public NM getDelayBeforeLRDay() { 
1828 		NM retVal = this.getTypedField(34, 0);
1829 		return retVal;
1830     }
1831     
1832     /**
1833      * Returns
1834      * IN1-34: "Delay Before L.R. Day" - creates it if necessary
1835      */
1836     public NM getIn134_DelayBeforeLRDay() { 
1837 		NM retVal = this.getTypedField(34, 0);
1838 		return retVal;
1839     }
1840 
1841 
1842 
1843     /**
1844      * Returns
1845      * IN1-35: "Company Plan Code" - creates it if necessary
1846      */
1847     public CWE getCompanyPlanCode() { 
1848 		CWE retVal = this.getTypedField(35, 0);
1849 		return retVal;
1850     }
1851     
1852     /**
1853      * Returns
1854      * IN1-35: "Company Plan Code" - creates it if necessary
1855      */
1856     public CWE getIn135_CompanyPlanCode() { 
1857 		CWE retVal = this.getTypedField(35, 0);
1858 		return retVal;
1859     }
1860 
1861 
1862 
1863     /**
1864      * Returns
1865      * IN1-36: "Policy Number" - creates it if necessary
1866      */
1867     public ST getPolicyNumber() { 
1868 		ST retVal = this.getTypedField(36, 0);
1869 		return retVal;
1870     }
1871     
1872     /**
1873      * Returns
1874      * IN1-36: "Policy Number" - creates it if necessary
1875      */
1876     public ST getIn136_PolicyNumber() { 
1877 		ST retVal = this.getTypedField(36, 0);
1878 		return retVal;
1879     }
1880 
1881 
1882 
1883     /**
1884      * Returns
1885      * IN1-37: "Policy Deductible" - creates it if necessary
1886      */
1887     public CP getPolicyDeductible() { 
1888 		CP retVal = this.getTypedField(37, 0);
1889 		return retVal;
1890     }
1891     
1892     /**
1893      * Returns
1894      * IN1-37: "Policy Deductible" - creates it if necessary
1895      */
1896     public CP getIn137_PolicyDeductible() { 
1897 		CP retVal = this.getTypedField(37, 0);
1898 		return retVal;
1899     }
1900 
1901 
1902 
1903     /**
1904      * Returns
1905      * IN1-38: "Policy Limit - Amount" - creates it if necessary
1906      */
1907     public NULLDT getPolicyLimitAmount() { 
1908 		NULLDT retVal = this.getTypedField(38, 0);
1909 		return retVal;
1910     }
1911     
1912     /**
1913      * Returns
1914      * IN1-38: "Policy Limit - Amount" - creates it if necessary
1915      */
1916     public NULLDT getIn138_PolicyLimitAmount() { 
1917 		NULLDT retVal = this.getTypedField(38, 0);
1918 		return retVal;
1919     }
1920 
1921 
1922 
1923     /**
1924      * Returns
1925      * IN1-39: "Policy Limit - Days" - creates it if necessary
1926      */
1927     public NM getPolicyLimitDays() { 
1928 		NM retVal = this.getTypedField(39, 0);
1929 		return retVal;
1930     }
1931     
1932     /**
1933      * Returns
1934      * IN1-39: "Policy Limit - Days" - creates it if necessary
1935      */
1936     public NM getIn139_PolicyLimitDays() { 
1937 		NM retVal = this.getTypedField(39, 0);
1938 		return retVal;
1939     }
1940 
1941 
1942 
1943     /**
1944      * Returns
1945      * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
1946      */
1947     public NULLDT getRoomRateSemiPrivate() { 
1948 		NULLDT retVal = this.getTypedField(40, 0);
1949 		return retVal;
1950     }
1951     
1952     /**
1953      * Returns
1954      * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
1955      */
1956     public NULLDT getIn140_RoomRateSemiPrivate() { 
1957 		NULLDT retVal = this.getTypedField(40, 0);
1958 		return retVal;
1959     }
1960 
1961 
1962 
1963     /**
1964      * Returns
1965      * IN1-41: "Room Rate - Private" - creates it if necessary
1966      */
1967     public NULLDT getRoomRatePrivate() { 
1968 		NULLDT retVal = this.getTypedField(41, 0);
1969 		return retVal;
1970     }
1971     
1972     /**
1973      * Returns
1974      * IN1-41: "Room Rate - Private" - creates it if necessary
1975      */
1976     public NULLDT getIn141_RoomRatePrivate() { 
1977 		NULLDT retVal = this.getTypedField(41, 0);
1978 		return retVal;
1979     }
1980 
1981 
1982 
1983     /**
1984      * Returns
1985      * IN1-42: "Insured's Employment Status" - creates it if necessary
1986      */
1987     public CWE getInsuredSEmploymentStatus() { 
1988 		CWE retVal = this.getTypedField(42, 0);
1989 		return retVal;
1990     }
1991     
1992     /**
1993      * Returns
1994      * IN1-42: "Insured's Employment Status" - creates it if necessary
1995      */
1996     public CWE getIn142_InsuredSEmploymentStatus() { 
1997 		CWE retVal = this.getTypedField(42, 0);
1998 		return retVal;
1999     }
2000 
2001 
2002 
2003     /**
2004      * Returns
2005      * IN1-43: "Insured's Administrative Sex" - creates it if necessary
2006      */
2007     public CWE getInsuredSAdministrativeSex() { 
2008 		CWE retVal = this.getTypedField(43, 0);
2009 		return retVal;
2010     }
2011     
2012     /**
2013      * Returns
2014      * IN1-43: "Insured's Administrative Sex" - creates it if necessary
2015      */
2016     public CWE getIn143_InsuredSAdministrativeSex() { 
2017 		CWE retVal = this.getTypedField(43, 0);
2018 		return retVal;
2019     }
2020 
2021 
2022     /**
2023      * Returns all repetitions of Insured's Employer's Address (IN1-44).
2024      */
2025     public XAD[] getInsuredSEmployerSAddress() {
2026     	XAD[] retVal = this.getTypedField(44, new XAD[0]);
2027     	return retVal;
2028     }
2029 
2030 
2031     /**
2032      * Returns all repetitions of Insured's Employer's Address (IN1-44).
2033      */
2034     public XAD[] getIn144_InsuredSEmployerSAddress() {
2035     	XAD[] retVal = this.getTypedField(44, new XAD[0]);
2036     	return retVal;
2037     }
2038 
2039 
2040     /**
2041      * Returns a count of the current number of repetitions of Insured's Employer's Address (IN1-44).
2042      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2043      * it will return zero.
2044      */
2045     public int getInsuredSEmployerSAddressReps() {
2046     	return this.getReps(44);
2047     }
2048 
2049 
2050     /**
2051      * Returns a specific repetition of
2052      * IN1-44: "Insured's Employer's Address" - creates it if necessary
2053      *
2054      * @param rep The repetition index (0-indexed)
2055      */
2056     public XAD getInsuredSEmployerSAddress(int rep) { 
2057 		XAD retVal = this.getTypedField(44, rep);
2058 		return retVal;
2059     }
2060 
2061     /**
2062      * Returns a specific repetition of
2063      * IN1-44: "Insured's Employer's Address" - creates it if necessary
2064      *
2065      * @param rep The repetition index (0-indexed)
2066      */
2067     public XAD getIn144_InsuredSEmployerSAddress(int rep) { 
2068 		XAD retVal = this.getTypedField(44, rep);
2069 		return retVal;
2070     }
2071 
2072     /**
2073      * Returns a count of the current number of repetitions of Insured's Employer's Address (IN1-44).
2074      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2075      * it will return zero.
2076      */
2077     public int getIn144_InsuredSEmployerSAddressReps() {
2078     	return this.getReps(44);
2079     }
2080 
2081 
2082     /**
2083      * Inserts a repetition of
2084      * IN1-44: "Insured's Employer's Address" at a specific index
2085      *
2086      * @param rep The repetition index (0-indexed)
2087      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2088      */
2089     public XAD insertInsuredSEmployerSAddress(int rep) throws HL7Exception { 
2090         return (XAD) super.insertRepetition(44, rep);
2091     }
2092 
2093 
2094     /**
2095      * Inserts a repetition of
2096      * IN1-44: "Insured's Employer's Address" at a specific index
2097      *
2098      * @param rep The repetition index (0-indexed)
2099      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2100      */
2101     public XAD insertIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception { 
2102         return (XAD) super.insertRepetition(44, rep);
2103     }
2104 
2105 
2106     /**
2107      * Removes a repetition of
2108      * IN1-44: "Insured's Employer's Address" at a specific index
2109      *
2110      * @param rep The repetition index (0-indexed)
2111      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2112      */
2113     public XAD removeInsuredSEmployerSAddress(int rep) throws HL7Exception { 
2114         return (XAD) super.removeRepetition(44, rep);
2115     }
2116 
2117 
2118     /**
2119      * Removes a repetition of
2120      * IN1-44: "Insured's Employer's Address" at a specific index
2121      *
2122      * @param rep The repetition index (0-indexed)
2123      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2124      */
2125     public XAD removeIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception { 
2126         return (XAD) super.removeRepetition(44, rep);
2127     }
2128 
2129 
2130 
2131 
2132     /**
2133      * Returns
2134      * IN1-45: "Verification Status" - creates it if necessary
2135      */
2136     public ST getVerificationStatus() { 
2137 		ST retVal = this.getTypedField(45, 0);
2138 		return retVal;
2139     }
2140     
2141     /**
2142      * Returns
2143      * IN1-45: "Verification Status" - creates it if necessary
2144      */
2145     public ST getIn145_VerificationStatus() { 
2146 		ST retVal = this.getTypedField(45, 0);
2147 		return retVal;
2148     }
2149 
2150 
2151 
2152     /**
2153      * Returns
2154      * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
2155      */
2156     public CWE getPriorInsurancePlanID() { 
2157 		CWE retVal = this.getTypedField(46, 0);
2158 		return retVal;
2159     }
2160     
2161     /**
2162      * Returns
2163      * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
2164      */
2165     public CWE getIn146_PriorInsurancePlanID() { 
2166 		CWE retVal = this.getTypedField(46, 0);
2167 		return retVal;
2168     }
2169 
2170 
2171 
2172     /**
2173      * Returns
2174      * IN1-47: "Coverage Type" - creates it if necessary
2175      */
2176     public CWE getCoverageType() { 
2177 		CWE retVal = this.getTypedField(47, 0);
2178 		return retVal;
2179     }
2180     
2181     /**
2182      * Returns
2183      * IN1-47: "Coverage Type" - creates it if necessary
2184      */
2185     public CWE getIn147_CoverageType() { 
2186 		CWE retVal = this.getTypedField(47, 0);
2187 		return retVal;
2188     }
2189 
2190 
2191 
2192     /**
2193      * Returns
2194      * IN1-48: "Handicap" - creates it if necessary
2195      */
2196     public CWE getHandicap() { 
2197 		CWE retVal = this.getTypedField(48, 0);
2198 		return retVal;
2199     }
2200     
2201     /**
2202      * Returns
2203      * IN1-48: "Handicap" - creates it if necessary
2204      */
2205     public CWE getIn148_Handicap() { 
2206 		CWE retVal = this.getTypedField(48, 0);
2207 		return retVal;
2208     }
2209 
2210 
2211     /**
2212      * Returns all repetitions of Insured's ID Number (IN1-49).
2213      */
2214     public CX[] getInsuredSIDNumber() {
2215     	CX[] retVal = this.getTypedField(49, new CX[0]);
2216     	return retVal;
2217     }
2218 
2219 
2220     /**
2221      * Returns all repetitions of Insured's ID Number (IN1-49).
2222      */
2223     public CX[] getIn149_InsuredSIDNumber() {
2224     	CX[] retVal = this.getTypedField(49, new CX[0]);
2225     	return retVal;
2226     }
2227 
2228 
2229     /**
2230      * Returns a count of the current number of repetitions of Insured's ID Number (IN1-49).
2231      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2232      * it will return zero.
2233      */
2234     public int getInsuredSIDNumberReps() {
2235     	return this.getReps(49);
2236     }
2237 
2238 
2239     /**
2240      * Returns a specific repetition of
2241      * IN1-49: "Insured's ID Number" - creates it if necessary
2242      *
2243      * @param rep The repetition index (0-indexed)
2244      */
2245     public CX getInsuredSIDNumber(int rep) { 
2246 		CX retVal = this.getTypedField(49, rep);
2247 		return retVal;
2248     }
2249 
2250     /**
2251      * Returns a specific repetition of
2252      * IN1-49: "Insured's ID Number" - creates it if necessary
2253      *
2254      * @param rep The repetition index (0-indexed)
2255      */
2256     public CX getIn149_InsuredSIDNumber(int rep) { 
2257 		CX retVal = this.getTypedField(49, rep);
2258 		return retVal;
2259     }
2260 
2261     /**
2262      * Returns a count of the current number of repetitions of Insured's ID Number (IN1-49).
2263      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2264      * it will return zero.
2265      */
2266     public int getIn149_InsuredSIDNumberReps() {
2267     	return this.getReps(49);
2268     }
2269 
2270 
2271     /**
2272      * Inserts a repetition of
2273      * IN1-49: "Insured's ID Number" at a specific index
2274      *
2275      * @param rep The repetition index (0-indexed)
2276      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2277      */
2278     public CX insertInsuredSIDNumber(int rep) throws HL7Exception { 
2279         return (CX) super.insertRepetition(49, rep);
2280     }
2281 
2282 
2283     /**
2284      * Inserts a repetition of
2285      * IN1-49: "Insured's ID Number" at a specific index
2286      *
2287      * @param rep The repetition index (0-indexed)
2288      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2289      */
2290     public CX insertIn149_InsuredSIDNumber(int rep) throws HL7Exception { 
2291         return (CX) super.insertRepetition(49, rep);
2292     }
2293 
2294 
2295     /**
2296      * Removes a repetition of
2297      * IN1-49: "Insured's ID Number" at a specific index
2298      *
2299      * @param rep The repetition index (0-indexed)
2300      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2301      */
2302     public CX removeInsuredSIDNumber(int rep) throws HL7Exception { 
2303         return (CX) super.removeRepetition(49, rep);
2304     }
2305 
2306 
2307     /**
2308      * Removes a repetition of
2309      * IN1-49: "Insured's ID Number" at a specific index
2310      *
2311      * @param rep The repetition index (0-indexed)
2312      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2313      */
2314     public CX removeIn149_InsuredSIDNumber(int rep) throws HL7Exception { 
2315         return (CX) super.removeRepetition(49, rep);
2316     }
2317 
2318 
2319 
2320 
2321     /**
2322      * Returns
2323      * IN1-50: "Signature Code" - creates it if necessary
2324      */
2325     public CWE getSignatureCode() { 
2326 		CWE retVal = this.getTypedField(50, 0);
2327 		return retVal;
2328     }
2329     
2330     /**
2331      * Returns
2332      * IN1-50: "Signature Code" - creates it if necessary
2333      */
2334     public CWE getIn150_SignatureCode() { 
2335 		CWE retVal = this.getTypedField(50, 0);
2336 		return retVal;
2337     }
2338 
2339 
2340 
2341     /**
2342      * Returns
2343      * IN1-51: "Signature Code Date" - creates it if necessary
2344      */
2345     public DT getSignatureCodeDate() { 
2346 		DT retVal = this.getTypedField(51, 0);
2347 		return retVal;
2348     }
2349     
2350     /**
2351      * Returns
2352      * IN1-51: "Signature Code Date" - creates it if necessary
2353      */
2354     public DT getIn151_SignatureCodeDate() { 
2355 		DT retVal = this.getTypedField(51, 0);
2356 		return retVal;
2357     }
2358 
2359 
2360 
2361     /**
2362      * Returns
2363      * IN1-52: "Insured's Birth Place" - creates it if necessary
2364      */
2365     public ST getInsuredSBirthPlace() { 
2366 		ST retVal = this.getTypedField(52, 0);
2367 		return retVal;
2368     }
2369     
2370     /**
2371      * Returns
2372      * IN1-52: "Insured's Birth Place" - creates it if necessary
2373      */
2374     public ST getIn152_InsuredSBirthPlace() { 
2375 		ST retVal = this.getTypedField(52, 0);
2376 		return retVal;
2377     }
2378 
2379 
2380 
2381     /**
2382      * Returns
2383      * IN1-53: "VIP Indicator" - creates it if necessary
2384      */
2385     public CWE getVIPIndicator() { 
2386 		CWE retVal = this.getTypedField(53, 0);
2387 		return retVal;
2388     }
2389     
2390     /**
2391      * Returns
2392      * IN1-53: "VIP Indicator" - creates it if necessary
2393      */
2394     public CWE getIn153_VIPIndicator() { 
2395 		CWE retVal = this.getTypedField(53, 0);
2396 		return retVal;
2397     }
2398 
2399 
2400     /**
2401      * Returns all repetitions of External Health Plan Identifiers (IN1-54).
2402      */
2403     public CX[] getExternalHealthPlanIdentifiers() {
2404     	CX[] retVal = this.getTypedField(54, new CX[0]);
2405     	return retVal;
2406     }
2407 
2408 
2409     /**
2410      * Returns all repetitions of External Health Plan Identifiers (IN1-54).
2411      */
2412     public CX[] getIn154_ExternalHealthPlanIdentifiers() {
2413     	CX[] retVal = this.getTypedField(54, new CX[0]);
2414     	return retVal;
2415     }
2416 
2417 
2418     /**
2419      * Returns a count of the current number of repetitions of External Health Plan Identifiers (IN1-54).
2420      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2421      * it will return zero.
2422      */
2423     public int getExternalHealthPlanIdentifiersReps() {
2424     	return this.getReps(54);
2425     }
2426 
2427 
2428     /**
2429      * Returns a specific repetition of
2430      * IN1-54: "External Health Plan Identifiers" - creates it if necessary
2431      *
2432      * @param rep The repetition index (0-indexed)
2433      */
2434     public CX getExternalHealthPlanIdentifiers(int rep) { 
2435 		CX retVal = this.getTypedField(54, rep);
2436 		return retVal;
2437     }
2438 
2439     /**
2440      * Returns a specific repetition of
2441      * IN1-54: "External Health Plan Identifiers" - creates it if necessary
2442      *
2443      * @param rep The repetition index (0-indexed)
2444      */
2445     public CX getIn154_ExternalHealthPlanIdentifiers(int rep) { 
2446 		CX retVal = this.getTypedField(54, rep);
2447 		return retVal;
2448     }
2449 
2450     /**
2451      * Returns a count of the current number of repetitions of External Health Plan Identifiers (IN1-54).
2452      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2453      * it will return zero.
2454      */
2455     public int getIn154_ExternalHealthPlanIdentifiersReps() {
2456     	return this.getReps(54);
2457     }
2458 
2459 
2460     /**
2461      * Inserts a repetition of
2462      * IN1-54: "External Health Plan Identifiers" at a specific index
2463      *
2464      * @param rep The repetition index (0-indexed)
2465      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2466      */
2467     public CX insertExternalHealthPlanIdentifiers(int rep) throws HL7Exception { 
2468         return (CX) super.insertRepetition(54, rep);
2469     }
2470 
2471 
2472     /**
2473      * Inserts a repetition of
2474      * IN1-54: "External Health Plan Identifiers" at a specific index
2475      *
2476      * @param rep The repetition index (0-indexed)
2477      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2478      */
2479     public CX insertIn154_ExternalHealthPlanIdentifiers(int rep) throws HL7Exception { 
2480         return (CX) super.insertRepetition(54, rep);
2481     }
2482 
2483 
2484     /**
2485      * Removes a repetition of
2486      * IN1-54: "External Health Plan Identifiers" at a specific index
2487      *
2488      * @param rep The repetition index (0-indexed)
2489      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2490      */
2491     public CX removeExternalHealthPlanIdentifiers(int rep) throws HL7Exception { 
2492         return (CX) super.removeRepetition(54, rep);
2493     }
2494 
2495 
2496     /**
2497      * Removes a repetition of
2498      * IN1-54: "External Health Plan Identifiers" at a specific index
2499      *
2500      * @param rep The repetition index (0-indexed)
2501      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2502      */
2503     public CX removeIn154_ExternalHealthPlanIdentifiers(int rep) throws HL7Exception { 
2504         return (CX) super.removeRepetition(54, rep);
2505     }
2506 
2507 
2508 
2509 
2510     /**
2511      * Returns
2512      * IN1-55: "Insurance Action Code" - creates it if necessary
2513      */
2514     public ID getInsuranceActionCode() { 
2515 		ID retVal = this.getTypedField(55, 0);
2516 		return retVal;
2517     }
2518     
2519     /**
2520      * Returns
2521      * IN1-55: "Insurance Action Code" - creates it if necessary
2522      */
2523     public ID getIn155_InsuranceActionCode() { 
2524 		ID retVal = this.getTypedField(55, 0);
2525 		return retVal;
2526     }
2527 
2528 
2529 
2530 
2531 
2532     /** {@inheritDoc} */   
2533     protected Type createNewTypeWithoutReflection(int field) {
2534        switch (field) {
2535           case 0: return new SI(getMessage());
2536           case 1: return new CWE(getMessage());
2537           case 2: return new CX(getMessage());
2538           case 3: return new XON(getMessage());
2539           case 4: return new XAD(getMessage());
2540           case 5: return new XPN(getMessage());
2541           case 6: return new XTN(getMessage());
2542           case 7: return new ST(getMessage());
2543           case 8: return new XON(getMessage());
2544           case 9: return new CX(getMessage());
2545           case 10: return new XON(getMessage());
2546           case 11: return new DT(getMessage());
2547           case 12: return new DT(getMessage());
2548           case 13: return new AUI(getMessage());
2549           case 14: return new CWE(getMessage());
2550           case 15: return new XPN(getMessage());
2551           case 16: return new CWE(getMessage());
2552           case 17: return new DTM(getMessage());
2553           case 18: return new XAD(getMessage());
2554           case 19: return new CWE(getMessage());
2555           case 20: return new CWE(getMessage());
2556           case 21: return new ST(getMessage());
2557           case 22: return new ID(getMessage(), new Integer( 136 ));
2558           case 23: return new DT(getMessage());
2559           case 24: return new ID(getMessage(), new Integer( 136 ));
2560           case 25: return new DT(getMessage());
2561           case 26: return new CWE(getMessage());
2562           case 27: return new ST(getMessage());
2563           case 28: return new DTM(getMessage());
2564           case 29: return new XCN(getMessage());
2565           case 30: return new CWE(getMessage());
2566           case 31: return new CWE(getMessage());
2567           case 32: return new NM(getMessage());
2568           case 33: return new NM(getMessage());
2569           case 34: return new CWE(getMessage());
2570           case 35: return new ST(getMessage());
2571           case 36: return new CP(getMessage());
2572           case 37: return new NULLDT(getMessage());
2573           case 38: return new NM(getMessage());
2574           case 39: return new NULLDT(getMessage());
2575           case 40: return new NULLDT(getMessage());
2576           case 41: return new CWE(getMessage());
2577           case 42: return new CWE(getMessage());
2578           case 43: return new XAD(getMessage());
2579           case 44: return new ST(getMessage());
2580           case 45: return new CWE(getMessage());
2581           case 46: return new CWE(getMessage());
2582           case 47: return new CWE(getMessage());
2583           case 48: return new CX(getMessage());
2584           case 49: return new CWE(getMessage());
2585           case 50: return new DT(getMessage());
2586           case 51: return new ST(getMessage());
2587           case 52: return new CWE(getMessage());
2588           case 53: return new CX(getMessage());
2589           case 54: return new ID(getMessage(), new Integer( 206 ));
2590           default: return null;
2591        }
2592    }
2593 
2594 
2595 }
2596