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