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