View Javadoc
1   /*
2    * This class is an auto-generated source file for a HAPI
3    * HL7 v2.x standard structure class.
4    *
5    * For more information, visit: http://hl7api.sourceforge.net/
6    * 
7    * The contents of this file are subject to the Mozilla Public License Version 1.1 
8    * (the "License"); you may not use this file except in compliance with the License. 
9    * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
10   * Software distributed under the License is distributed on an "AS IS" basis, 
11   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
12   * specific language governing rights and limitations under the License. 
13   * 
14   * The Original Code is "[file_name]".  Description: 
15   * "[one_line_description]" 
16   * 
17   * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
18   * 2012.  All Rights Reserved. 
19   * 
20   * Contributor(s): ______________________________________. 
21   * 
22   * Alternatively, the contents of this file may be used under the terms of the 
23   * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
24   * applicable instead of those above.  If you wish to allow use of your version of this 
25   * file only under the terms of the GPL and not to allow others to use your version 
26   * of this file under the MPL, indicate your decision by deleting  the provisions above 
27   * and replace  them with the notice and other provisions required by the GPL License.  
28   * If you do not delete the provisions above, a recipient may use your version of 
29   * this file under either the MPL or the GPL. 
30   * 
31   */
32  
33  
34  package ca.uhn.hl7v2.model.v23.segment;
35  
36  // import ca.uhn.hl7v2.model.v23.group.*;
37  import ca.uhn.hl7v2.model.v23.datatype.*;
38  import ca.uhn.hl7v2.HL7Exception;
39  import ca.uhn.hl7v2.parser.ModelClassFactory;
40  import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
41  import ca.uhn.hl7v2.model.AbstractMessage;
42  import ca.uhn.hl7v2.model.Group;
43  import ca.uhn.hl7v2.model.Type;
44  import ca.uhn.hl7v2.model.AbstractSegment;
45  import ca.uhn.hl7v2.model.Varies;
46  
47  
48  /**
49   *<p>Represents an HL7 IN1 message segment (Insurance). 
50   * This segment has the following fields:</p>
51   * <ul>
52       * <li>IN1-1: Set ID - Insurance (SI) <b> </b>
53       * <li>IN1-2: Insurance Plan ID (CE) <b>optional </b>
54       * <li>IN1-3: Insurance Company ID (CX) <b> </b>
55       * <li>IN1-4: Insurance Company Name (XON) <b>optional </b>
56       * <li>IN1-5: Insurance Company Address (XAD) <b>optional </b>
57       * <li>IN1-6: Insurance Co. Contact Ppers (XPN) <b>optional </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 </b>
61       * <li>IN1-10: Insured's group employer ID (CX) <b>optional </b>
62       * <li>IN1-11: Insured's Group Emp Name (XON) <b>optional </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 (CM_AUI) <b>optional </b>
66       * <li>IN1-15: Plan Type (IS) <b>optional </b>
67       * <li>IN1-16: Name of Insured (XPN) <b>optional </b>
68       * <li>IN1-17: Insured's Relationship to Patient (IS) <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 </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 Code (ID) <b>optional </b>
75       * <li>IN1-24: Notice of Admission Date (DT) <b>optional </b>
76       * <li>IN1-25: Rpt of Eigibility Code (ID) <b>optional </b>
77       * <li>IN1-26: Rpt 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 (XPN) <b>optional </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 lifetime reserve days (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 </b>
90       * <li>IN1-39: Policy Limit - Days (NM) <b>optional </b>
91       * <li>IN1-40: Room Rate - Semi-Private (CP) <b>optional </b>
92       * <li>IN1-41: Room Rate - Private (CP) <b>optional </b>
93       * <li>IN1-42: Insured's Employment Status (CE) <b>optional </b>
94       * <li>IN1-43: Insured's Sex (IS) <b>optional </b>
95       * <li>IN1-44: Insured's Employer Address (XAD) <b>optional </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 </b>
101  * </ul>
102  */
103 @SuppressWarnings("unused")
104 public class IN1 extends AbstractSegment {
105 
106     /** 
107      * Creates a new IN1 segment
108      */
109     public IN1(Group parent, ModelClassFactory factory) {
110        super(parent, factory);
111        init(factory);
112     }
113 
114     private void init(ModelClassFactory factory) {
115        try {
116                                   this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Insurance");
117                                   this.add(CE.class, false, 1, 8, new Object[]{ getMessage() }, "Insurance Plan ID");
118                                   this.add(CX.class, true, 1, 59, new Object[]{ getMessage() }, "Insurance Company ID");
119                                   this.add(XON.class, false, 1, 130, new Object[]{ getMessage() }, "Insurance Company Name");
120                                   this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Insurance Company Address");
121                                   this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Insurance Co. Contact Ppers");
122                                   this.add(XTN.class, false, 3, 40, new Object[]{ getMessage() }, "Insurance Co Phone Number");
123                                   this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "Group Number");
124                                   this.add(XON.class, false, 1, 130, new Object[]{ getMessage() }, "Group Name");
125                                   this.add(CX.class, false, 1, 12, new Object[]{ getMessage() }, "Insured's group employer ID");
126                                   this.add(XON.class, false, 1, 130, new Object[]{ getMessage() }, "Insured's Group Emp Name");
127                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Plan Effective Date");
128                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Plan Expiration Date");
129                                   this.add(CM_AUI.class, false, 1, 55, new Object[]{ getMessage() }, "Authorization Information");
130                                               this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(86) }, "Plan Type");
131                                   this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Name of Insured");
132                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Insured's Relationship to Patient");
133                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Insured's Date of Birth");
134                                   this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Insured's Address");
135                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(135) }, "Assignment of Benefits");
136                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(173) }, "Coordination of Benefits");
137                                   this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "Coord of Ben. Priority");
138                                               this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(136) }, "Notice of Admission Code");
139                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Notice of Admission Date");
140                                               this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(136) }, "Rpt of Eigibility Code");
141                                   this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Rpt of Eligibility Date");
142                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(93) }, "Release Information Code");
143                                   this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Pre-Admit Cert (PAC)");
144                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Verification Date/Time");
145                                   this.add(XPN.class, false, 1, 60, new Object[]{ getMessage() }, "Verification By");
146                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(98) }, "Type of Agreement Code");
147                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(22) }, "Billing Status");
148                                   this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Lifetime Reserve Days");
149                                   this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Delay before lifetime reserve days");
150                                               this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(42) }, "Company Plan Code");
151                                   this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Policy Number");
152                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Policy Deductible");
153                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Policy Limit - Amount");
154                                   this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Policy Limit - Days");
155                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Room Rate - Semi-Private");
156                                   this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Room Rate - Private");
157                                   this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Insured's Employment Status");
158                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Insured's Sex");
159                                   this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Insured's Employer Address");
160                                   this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "Verification Status");
161                                               this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(72) }, "Prior Insurance Plan ID");
162                                               this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(309) }, "Coverage Type");
163                                               this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(310) }, "Handicap");
164                                   this.add(CX.class, false, 1, 12, new Object[]{ getMessage() }, "Insured's ID Number");
165        } catch(HL7Exception e) {
166           log.error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e);
167        }
168     }
169 
170 
171 
172     /**
173      * Returns
174      * IN1-1: "Set ID - Insurance" - creates it if necessary
175      */
176     public SI getSetIDInsurance() { 
177 		SI retVal = this.getTypedField(1, 0);
178 		return retVal;
179     }
180     
181     /**
182      * Returns
183      * IN1-1: "Set ID - Insurance" - creates it if necessary
184      */
185     public SI getIn11_SetIDInsurance() { 
186 		SI retVal = this.getTypedField(1, 0);
187 		return retVal;
188     }
189 
190 
191 
192     /**
193      * Returns
194      * IN1-2: "Insurance Plan ID" - creates it if necessary
195      */
196     public CE getInsurancePlanID() { 
197 		CE retVal = this.getTypedField(2, 0);
198 		return retVal;
199     }
200     
201     /**
202      * Returns
203      * IN1-2: "Insurance Plan ID" - creates it if necessary
204      */
205     public CE getIn12_InsurancePlanID() { 
206 		CE retVal = this.getTypedField(2, 0);
207 		return retVal;
208     }
209 
210 
211 
212     /**
213      * Returns
214      * IN1-3: "Insurance Company ID" - creates it if necessary
215      */
216     public CX getInsuranceCompanyID() { 
217 		CX retVal = this.getTypedField(3, 0);
218 		return retVal;
219     }
220     
221     /**
222      * Returns
223      * IN1-3: "Insurance Company ID" - creates it if necessary
224      */
225     public CX getIn13_InsuranceCompanyID() { 
226 		CX retVal = this.getTypedField(3, 0);
227 		return retVal;
228     }
229 
230 
231 
232     /**
233      * Returns
234      * IN1-4: "Insurance Company Name" - creates it if necessary
235      */
236     public XON getInsuranceCompanyName() { 
237 		XON retVal = this.getTypedField(4, 0);
238 		return retVal;
239     }
240     
241     /**
242      * Returns
243      * IN1-4: "Insurance Company Name" - creates it if necessary
244      */
245     public XON getIn14_InsuranceCompanyName() { 
246 		XON retVal = this.getTypedField(4, 0);
247 		return retVal;
248     }
249 
250 
251 
252     /**
253      * Returns
254      * IN1-5: "Insurance Company Address" - creates it if necessary
255      */
256     public XAD getInsuranceCompanyAddress() { 
257 		XAD retVal = this.getTypedField(5, 0);
258 		return retVal;
259     }
260     
261     /**
262      * Returns
263      * IN1-5: "Insurance Company Address" - creates it if necessary
264      */
265     public XAD getIn15_InsuranceCompanyAddress() { 
266 		XAD retVal = this.getTypedField(5, 0);
267 		return retVal;
268     }
269 
270 
271 
272     /**
273      * Returns
274      * IN1-6: "Insurance Co. Contact Ppers" - creates it if necessary
275      */
276     public XPN getInsuranceCoContactPpers() { 
277 		XPN retVal = this.getTypedField(6, 0);
278 		return retVal;
279     }
280     
281     /**
282      * Returns
283      * IN1-6: "Insurance Co. Contact Ppers" - creates it if necessary
284      */
285     public XPN getIn16_InsuranceCoContactPpers() { 
286 		XPN retVal = this.getTypedField(6, 0);
287 		return retVal;
288     }
289 
290 
291     /**
292      * Returns all repetitions of Insurance Co Phone Number (IN1-7).
293      */
294     public XTN[] getInsuranceCoPhoneNumber() {
295     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
296     	return retVal;
297     }
298 
299 
300     /**
301      * Returns all repetitions of Insurance Co Phone Number (IN1-7).
302      */
303     public XTN[] getIn17_InsuranceCoPhoneNumber() {
304     	XTN[] retVal = this.getTypedField(7, new XTN[0]);
305     	return retVal;
306     }
307 
308 
309     /**
310      * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
311      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
312      * it will return zero.
313      */
314     public int getInsuranceCoPhoneNumberReps() {
315     	return this.getReps(7);
316     }
317 
318 
319     /**
320      * Returns a specific repetition of
321      * IN1-7: "Insurance Co Phone Number" - creates it if necessary
322      *
323      * @param rep The repetition index (0-indexed)
324      */
325     public XTN getInsuranceCoPhoneNumber(int rep) { 
326 		XTN retVal = this.getTypedField(7, rep);
327 		return retVal;
328     }
329 
330     /**
331      * Returns a specific repetition of
332      * IN1-7: "Insurance Co Phone Number" - creates it if necessary
333      *
334      * @param rep The repetition index (0-indexed)
335      */
336     public XTN getIn17_InsuranceCoPhoneNumber(int rep) { 
337 		XTN retVal = this.getTypedField(7, rep);
338 		return retVal;
339     }
340 
341     /**
342      * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
343      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
344      * it will return zero.
345      */
346     public int getIn17_InsuranceCoPhoneNumberReps() {
347     	return this.getReps(7);
348     }
349 
350 
351     /**
352      * Inserts a repetition of
353      * IN1-7: "Insurance Co Phone Number" at a specific index
354      *
355      * @param rep The repetition index (0-indexed)
356      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
357      */
358     public XTN insertInsuranceCoPhoneNumber(int rep) throws HL7Exception { 
359         return (XTN) super.insertRepetition(7, rep);
360     }
361 
362 
363     /**
364      * Inserts a repetition of
365      * IN1-7: "Insurance Co Phone Number" at a specific index
366      *
367      * @param rep The repetition index (0-indexed)
368      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
369      */
370     public XTN insertIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 
371         return (XTN) super.insertRepetition(7, rep);
372     }
373 
374 
375     /**
376      * Removes a repetition of
377      * IN1-7: "Insurance Co Phone Number" at a specific index
378      *
379      * @param rep The repetition index (0-indexed)
380      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
381      */
382     public XTN removeInsuranceCoPhoneNumber(int rep) throws HL7Exception { 
383         return (XTN) super.removeRepetition(7, rep);
384     }
385 
386 
387     /**
388      * Removes a repetition of
389      * IN1-7: "Insurance Co Phone Number" at a specific index
390      *
391      * @param rep The repetition index (0-indexed)
392      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
393      */
394     public XTN removeIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 
395         return (XTN) super.removeRepetition(7, rep);
396     }
397 
398 
399 
400 
401     /**
402      * Returns
403      * IN1-8: "Group Number" - creates it if necessary
404      */
405     public ST getGroupNumber() { 
406 		ST retVal = this.getTypedField(8, 0);
407 		return retVal;
408     }
409     
410     /**
411      * Returns
412      * IN1-8: "Group Number" - creates it if necessary
413      */
414     public ST getIn18_GroupNumber() { 
415 		ST retVal = this.getTypedField(8, 0);
416 		return retVal;
417     }
418 
419 
420 
421     /**
422      * Returns
423      * IN1-9: "Group Name" - creates it if necessary
424      */
425     public XON getGroupName() { 
426 		XON retVal = this.getTypedField(9, 0);
427 		return retVal;
428     }
429     
430     /**
431      * Returns
432      * IN1-9: "Group Name" - creates it if necessary
433      */
434     public XON getIn19_GroupName() { 
435 		XON retVal = this.getTypedField(9, 0);
436 		return retVal;
437     }
438 
439 
440 
441     /**
442      * Returns
443      * IN1-10: "Insured's group employer ID" - creates it if necessary
444      */
445     public CX getInsuredSGroupEmployerID() { 
446 		CX retVal = this.getTypedField(10, 0);
447 		return retVal;
448     }
449     
450     /**
451      * Returns
452      * IN1-10: "Insured's group employer ID" - creates it if necessary
453      */
454     public CX getIn110_InsuredSGroupEmployerID() { 
455 		CX retVal = this.getTypedField(10, 0);
456 		return retVal;
457     }
458 
459 
460 
461     /**
462      * Returns
463      * IN1-11: "Insured's Group Emp Name" - creates it if necessary
464      */
465     public XON getInsuredSGroupEmpName() { 
466 		XON retVal = this.getTypedField(11, 0);
467 		return retVal;
468     }
469     
470     /**
471      * Returns
472      * IN1-11: "Insured's Group Emp Name" - creates it if necessary
473      */
474     public XON getIn111_InsuredSGroupEmpName() { 
475 		XON retVal = this.getTypedField(11, 0);
476 		return retVal;
477     }
478 
479 
480 
481     /**
482      * Returns
483      * IN1-12: "Plan Effective Date" - creates it if necessary
484      */
485     public DT getPlanEffectiveDate() { 
486 		DT retVal = this.getTypedField(12, 0);
487 		return retVal;
488     }
489     
490     /**
491      * Returns
492      * IN1-12: "Plan Effective Date" - creates it if necessary
493      */
494     public DT getIn112_PlanEffectiveDate() { 
495 		DT retVal = this.getTypedField(12, 0);
496 		return retVal;
497     }
498 
499 
500 
501     /**
502      * Returns
503      * IN1-13: "Plan Expiration Date" - creates it if necessary
504      */
505     public DT getPlanExpirationDate() { 
506 		DT retVal = this.getTypedField(13, 0);
507 		return retVal;
508     }
509     
510     /**
511      * Returns
512      * IN1-13: "Plan Expiration Date" - creates it if necessary
513      */
514     public DT getIn113_PlanExpirationDate() { 
515 		DT retVal = this.getTypedField(13, 0);
516 		return retVal;
517     }
518 
519 
520 
521     /**
522      * Returns
523      * IN1-14: "Authorization Information" - creates it if necessary
524      */
525     public CM_AUI getAuthorizationInformation() { 
526 		CM_AUI retVal = this.getTypedField(14, 0);
527 		return retVal;
528     }
529     
530     /**
531      * Returns
532      * IN1-14: "Authorization Information" - creates it if necessary
533      */
534     public CM_AUI getIn114_AuthorizationInformation() { 
535 		CM_AUI retVal = this.getTypedField(14, 0);
536 		return retVal;
537     }
538 
539 
540 
541     /**
542      * Returns
543      * IN1-15: "Plan Type" - creates it if necessary
544      */
545     public IS getPlanType() { 
546 		IS retVal = this.getTypedField(15, 0);
547 		return retVal;
548     }
549     
550     /**
551      * Returns
552      * IN1-15: "Plan Type" - creates it if necessary
553      */
554     public IS getIn115_PlanType() { 
555 		IS retVal = this.getTypedField(15, 0);
556 		return retVal;
557     }
558 
559 
560 
561     /**
562      * Returns
563      * IN1-16: "Name of Insured" - creates it if necessary
564      */
565     public XPN getNameOfInsured() { 
566 		XPN retVal = this.getTypedField(16, 0);
567 		return retVal;
568     }
569     
570     /**
571      * Returns
572      * IN1-16: "Name of Insured" - creates it if necessary
573      */
574     public XPN getIn116_NameOfInsured() { 
575 		XPN retVal = this.getTypedField(16, 0);
576 		return retVal;
577     }
578 
579 
580 
581     /**
582      * Returns
583      * IN1-17: "Insured's Relationship to Patient" - creates it if necessary
584      */
585     public IS getInsuredSRelationshipToPatient() { 
586 		IS retVal = this.getTypedField(17, 0);
587 		return retVal;
588     }
589     
590     /**
591      * Returns
592      * IN1-17: "Insured's Relationship to Patient" - creates it if necessary
593      */
594     public IS getIn117_InsuredSRelationshipToPatient() { 
595 		IS retVal = this.getTypedField(17, 0);
596 		return retVal;
597     }
598 
599 
600 
601     /**
602      * Returns
603      * IN1-18: "Insured's Date of Birth" - creates it if necessary
604      */
605     public TS getInsuredSDateOfBirth() { 
606 		TS retVal = this.getTypedField(18, 0);
607 		return retVal;
608     }
609     
610     /**
611      * Returns
612      * IN1-18: "Insured's Date of Birth" - creates it if necessary
613      */
614     public TS getIn118_InsuredSDateOfBirth() { 
615 		TS retVal = this.getTypedField(18, 0);
616 		return retVal;
617     }
618 
619 
620 
621     /**
622      * Returns
623      * IN1-19: "Insured's Address" - creates it if necessary
624      */
625     public XAD getInsuredSAddress() { 
626 		XAD retVal = this.getTypedField(19, 0);
627 		return retVal;
628     }
629     
630     /**
631      * Returns
632      * IN1-19: "Insured's Address" - creates it if necessary
633      */
634     public XAD getIn119_InsuredSAddress() { 
635 		XAD retVal = this.getTypedField(19, 0);
636 		return retVal;
637     }
638 
639 
640 
641     /**
642      * Returns
643      * IN1-20: "Assignment of Benefits" - creates it if necessary
644      */
645     public IS getAssignmentOfBenefits() { 
646 		IS retVal = this.getTypedField(20, 0);
647 		return retVal;
648     }
649     
650     /**
651      * Returns
652      * IN1-20: "Assignment of Benefits" - creates it if necessary
653      */
654     public IS getIn120_AssignmentOfBenefits() { 
655 		IS retVal = this.getTypedField(20, 0);
656 		return retVal;
657     }
658 
659 
660 
661     /**
662      * Returns
663      * IN1-21: "Coordination of Benefits" - creates it if necessary
664      */
665     public IS getCoordinationOfBenefits() { 
666 		IS retVal = this.getTypedField(21, 0);
667 		return retVal;
668     }
669     
670     /**
671      * Returns
672      * IN1-21: "Coordination of Benefits" - creates it if necessary
673      */
674     public IS getIn121_CoordinationOfBenefits() { 
675 		IS retVal = this.getTypedField(21, 0);
676 		return retVal;
677     }
678 
679 
680 
681     /**
682      * Returns
683      * IN1-22: "Coord of Ben. Priority" - creates it if necessary
684      */
685     public ST getCoordOfBenPriority() { 
686 		ST retVal = this.getTypedField(22, 0);
687 		return retVal;
688     }
689     
690     /**
691      * Returns
692      * IN1-22: "Coord of Ben. Priority" - creates it if necessary
693      */
694     public ST getIn122_CoordOfBenPriority() { 
695 		ST retVal = this.getTypedField(22, 0);
696 		return retVal;
697     }
698 
699 
700 
701     /**
702      * Returns
703      * IN1-23: "Notice of Admission Code" - creates it if necessary
704      */
705     public ID getNoticeOfAdmissionCode() { 
706 		ID retVal = this.getTypedField(23, 0);
707 		return retVal;
708     }
709     
710     /**
711      * Returns
712      * IN1-23: "Notice of Admission Code" - creates it if necessary
713      */
714     public ID getIn123_NoticeOfAdmissionCode() { 
715 		ID retVal = this.getTypedField(23, 0);
716 		return retVal;
717     }
718 
719 
720 
721     /**
722      * Returns
723      * IN1-24: "Notice of Admission Date" - creates it if necessary
724      */
725     public DT getNoticeOfAdmissionDate() { 
726 		DT retVal = this.getTypedField(24, 0);
727 		return retVal;
728     }
729     
730     /**
731      * Returns
732      * IN1-24: "Notice of Admission Date" - creates it if necessary
733      */
734     public DT getIn124_NoticeOfAdmissionDate() { 
735 		DT retVal = this.getTypedField(24, 0);
736 		return retVal;
737     }
738 
739 
740 
741     /**
742      * Returns
743      * IN1-25: "Rpt of Eigibility Code" - creates it if necessary
744      */
745     public ID getRptOfEigibilityCode() { 
746 		ID retVal = this.getTypedField(25, 0);
747 		return retVal;
748     }
749     
750     /**
751      * Returns
752      * IN1-25: "Rpt of Eigibility Code" - creates it if necessary
753      */
754     public ID getIn125_RptOfEigibilityCode() { 
755 		ID retVal = this.getTypedField(25, 0);
756 		return retVal;
757     }
758 
759 
760 
761     /**
762      * Returns
763      * IN1-26: "Rpt of Eligibility Date" - creates it if necessary
764      */
765     public DT getRptOfEligibilityDate() { 
766 		DT retVal = this.getTypedField(26, 0);
767 		return retVal;
768     }
769     
770     /**
771      * Returns
772      * IN1-26: "Rpt of Eligibility Date" - creates it if necessary
773      */
774     public DT getIn126_RptOfEligibilityDate() { 
775 		DT retVal = this.getTypedField(26, 0);
776 		return retVal;
777     }
778 
779 
780 
781     /**
782      * Returns
783      * IN1-27: "Release Information Code" - creates it if necessary
784      */
785     public IS getReleaseInformationCode() { 
786 		IS retVal = this.getTypedField(27, 0);
787 		return retVal;
788     }
789     
790     /**
791      * Returns
792      * IN1-27: "Release Information Code" - creates it if necessary
793      */
794     public IS getIn127_ReleaseInformationCode() { 
795 		IS retVal = this.getTypedField(27, 0);
796 		return retVal;
797     }
798 
799 
800 
801     /**
802      * Returns
803      * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
804      */
805     public ST getPreAdmitCert() { 
806 		ST retVal = this.getTypedField(28, 0);
807 		return retVal;
808     }
809     
810     /**
811      * Returns
812      * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
813      */
814     public ST getIn128_PreAdmitCert() { 
815 		ST retVal = this.getTypedField(28, 0);
816 		return retVal;
817     }
818 
819 
820 
821     /**
822      * Returns
823      * IN1-29: "Verification Date/Time" - creates it if necessary
824      */
825     public TS getVerificationDateTime() { 
826 		TS retVal = this.getTypedField(29, 0);
827 		return retVal;
828     }
829     
830     /**
831      * Returns
832      * IN1-29: "Verification Date/Time" - creates it if necessary
833      */
834     public TS getIn129_VerificationDateTime() { 
835 		TS retVal = this.getTypedField(29, 0);
836 		return retVal;
837     }
838 
839 
840 
841     /**
842      * Returns
843      * IN1-30: "Verification By" - creates it if necessary
844      */
845     public XPN getVerificationBy() { 
846 		XPN retVal = this.getTypedField(30, 0);
847 		return retVal;
848     }
849     
850     /**
851      * Returns
852      * IN1-30: "Verification By" - creates it if necessary
853      */
854     public XPN getIn130_VerificationBy() { 
855 		XPN retVal = this.getTypedField(30, 0);
856 		return retVal;
857     }
858 
859 
860 
861     /**
862      * Returns
863      * IN1-31: "Type of Agreement Code" - creates it if necessary
864      */
865     public IS getTypeOfAgreementCode() { 
866 		IS retVal = this.getTypedField(31, 0);
867 		return retVal;
868     }
869     
870     /**
871      * Returns
872      * IN1-31: "Type of Agreement Code" - creates it if necessary
873      */
874     public IS getIn131_TypeOfAgreementCode() { 
875 		IS retVal = this.getTypedField(31, 0);
876 		return retVal;
877     }
878 
879 
880 
881     /**
882      * Returns
883      * IN1-32: "Billing Status" - creates it if necessary
884      */
885     public IS getBillingStatus() { 
886 		IS retVal = this.getTypedField(32, 0);
887 		return retVal;
888     }
889     
890     /**
891      * Returns
892      * IN1-32: "Billing Status" - creates it if necessary
893      */
894     public IS getIn132_BillingStatus() { 
895 		IS retVal = this.getTypedField(32, 0);
896 		return retVal;
897     }
898 
899 
900 
901     /**
902      * Returns
903      * IN1-33: "Lifetime Reserve Days" - creates it if necessary
904      */
905     public NM getLifetimeReserveDays() { 
906 		NM retVal = this.getTypedField(33, 0);
907 		return retVal;
908     }
909     
910     /**
911      * Returns
912      * IN1-33: "Lifetime Reserve Days" - creates it if necessary
913      */
914     public NM getIn133_LifetimeReserveDays() { 
915 		NM retVal = this.getTypedField(33, 0);
916 		return retVal;
917     }
918 
919 
920 
921     /**
922      * Returns
923      * IN1-34: "Delay before lifetime reserve days" - creates it if necessary
924      */
925     public NM getDelayBeforeLifetimeReserveDays() { 
926 		NM retVal = this.getTypedField(34, 0);
927 		return retVal;
928     }
929     
930     /**
931      * Returns
932      * IN1-34: "Delay before lifetime reserve days" - creates it if necessary
933      */
934     public NM getIn134_DelayBeforeLifetimeReserveDays() { 
935 		NM retVal = this.getTypedField(34, 0);
936 		return retVal;
937     }
938 
939 
940 
941     /**
942      * Returns
943      * IN1-35: "Company Plan Code" - creates it if necessary
944      */
945     public IS getCompanyPlanCode() { 
946 		IS retVal = this.getTypedField(35, 0);
947 		return retVal;
948     }
949     
950     /**
951      * Returns
952      * IN1-35: "Company Plan Code" - creates it if necessary
953      */
954     public IS getIn135_CompanyPlanCode() { 
955 		IS retVal = this.getTypedField(35, 0);
956 		return retVal;
957     }
958 
959 
960 
961     /**
962      * Returns
963      * IN1-36: "Policy Number" - creates it if necessary
964      */
965     public ST getPolicyNumber() { 
966 		ST retVal = this.getTypedField(36, 0);
967 		return retVal;
968     }
969     
970     /**
971      * Returns
972      * IN1-36: "Policy Number" - creates it if necessary
973      */
974     public ST getIn136_PolicyNumber() { 
975 		ST retVal = this.getTypedField(36, 0);
976 		return retVal;
977     }
978 
979 
980 
981     /**
982      * Returns
983      * IN1-37: "Policy Deductible" - creates it if necessary
984      */
985     public CP getPolicyDeductible() { 
986 		CP retVal = this.getTypedField(37, 0);
987 		return retVal;
988     }
989     
990     /**
991      * Returns
992      * IN1-37: "Policy Deductible" - creates it if necessary
993      */
994     public CP getIn137_PolicyDeductible() { 
995 		CP retVal = this.getTypedField(37, 0);
996 		return retVal;
997     }
998 
999 
1000 
1001     /**
1002      * Returns
1003      * IN1-38: "Policy Limit - Amount" - creates it if necessary
1004      */
1005     public CP getPolicyLimitAmount() { 
1006 		CP retVal = this.getTypedField(38, 0);
1007 		return retVal;
1008     }
1009     
1010     /**
1011      * Returns
1012      * IN1-38: "Policy Limit - Amount" - creates it if necessary
1013      */
1014     public CP getIn138_PolicyLimitAmount() { 
1015 		CP retVal = this.getTypedField(38, 0);
1016 		return retVal;
1017     }
1018 
1019 
1020 
1021     /**
1022      * Returns
1023      * IN1-39: "Policy Limit - Days" - creates it if necessary
1024      */
1025     public NM getPolicyLimitDays() { 
1026 		NM retVal = this.getTypedField(39, 0);
1027 		return retVal;
1028     }
1029     
1030     /**
1031      * Returns
1032      * IN1-39: "Policy Limit - Days" - creates it if necessary
1033      */
1034     public NM getIn139_PolicyLimitDays() { 
1035 		NM retVal = this.getTypedField(39, 0);
1036 		return retVal;
1037     }
1038 
1039 
1040 
1041     /**
1042      * Returns
1043      * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
1044      */
1045     public CP getRoomRateSemiPrivate() { 
1046 		CP retVal = this.getTypedField(40, 0);
1047 		return retVal;
1048     }
1049     
1050     /**
1051      * Returns
1052      * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
1053      */
1054     public CP getIn140_RoomRateSemiPrivate() { 
1055 		CP retVal = this.getTypedField(40, 0);
1056 		return retVal;
1057     }
1058 
1059 
1060 
1061     /**
1062      * Returns
1063      * IN1-41: "Room Rate - Private" - creates it if necessary
1064      */
1065     public CP getRoomRatePrivate() { 
1066 		CP retVal = this.getTypedField(41, 0);
1067 		return retVal;
1068     }
1069     
1070     /**
1071      * Returns
1072      * IN1-41: "Room Rate - Private" - creates it if necessary
1073      */
1074     public CP getIn141_RoomRatePrivate() { 
1075 		CP retVal = this.getTypedField(41, 0);
1076 		return retVal;
1077     }
1078 
1079 
1080 
1081     /**
1082      * Returns
1083      * IN1-42: "Insured's Employment Status" - creates it if necessary
1084      */
1085     public CE getInsuredSEmploymentStatus() { 
1086 		CE retVal = this.getTypedField(42, 0);
1087 		return retVal;
1088     }
1089     
1090     /**
1091      * Returns
1092      * IN1-42: "Insured's Employment Status" - creates it if necessary
1093      */
1094     public CE getIn142_InsuredSEmploymentStatus() { 
1095 		CE retVal = this.getTypedField(42, 0);
1096 		return retVal;
1097     }
1098 
1099 
1100 
1101     /**
1102      * Returns
1103      * IN1-43: "Insured's Sex" - creates it if necessary
1104      */
1105     public IS getInsuredSSex() { 
1106 		IS retVal = this.getTypedField(43, 0);
1107 		return retVal;
1108     }
1109     
1110     /**
1111      * Returns
1112      * IN1-43: "Insured's Sex" - creates it if necessary
1113      */
1114     public IS getIn143_InsuredSSex() { 
1115 		IS retVal = this.getTypedField(43, 0);
1116 		return retVal;
1117     }
1118 
1119 
1120 
1121     /**
1122      * Returns
1123      * IN1-44: "Insured's Employer Address" - creates it if necessary
1124      */
1125     public XAD getInsuredSEmployerAddress() { 
1126 		XAD retVal = this.getTypedField(44, 0);
1127 		return retVal;
1128     }
1129     
1130     /**
1131      * Returns
1132      * IN1-44: "Insured's Employer Address" - creates it if necessary
1133      */
1134     public XAD getIn144_InsuredSEmployerAddress() { 
1135 		XAD retVal = this.getTypedField(44, 0);
1136 		return retVal;
1137     }
1138 
1139 
1140 
1141     /**
1142      * Returns
1143      * IN1-45: "Verification Status" - creates it if necessary
1144      */
1145     public ST getVerificationStatus() { 
1146 		ST retVal = this.getTypedField(45, 0);
1147 		return retVal;
1148     }
1149     
1150     /**
1151      * Returns
1152      * IN1-45: "Verification Status" - creates it if necessary
1153      */
1154     public ST getIn145_VerificationStatus() { 
1155 		ST retVal = this.getTypedField(45, 0);
1156 		return retVal;
1157     }
1158 
1159 
1160 
1161     /**
1162      * Returns
1163      * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
1164      */
1165     public IS getPriorInsurancePlanID() { 
1166 		IS retVal = this.getTypedField(46, 0);
1167 		return retVal;
1168     }
1169     
1170     /**
1171      * Returns
1172      * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
1173      */
1174     public IS getIn146_PriorInsurancePlanID() { 
1175 		IS retVal = this.getTypedField(46, 0);
1176 		return retVal;
1177     }
1178 
1179 
1180 
1181     /**
1182      * Returns
1183      * IN1-47: "Coverage Type" - creates it if necessary
1184      */
1185     public IS getCoverageType() { 
1186 		IS retVal = this.getTypedField(47, 0);
1187 		return retVal;
1188     }
1189     
1190     /**
1191      * Returns
1192      * IN1-47: "Coverage Type" - creates it if necessary
1193      */
1194     public IS getIn147_CoverageType() { 
1195 		IS retVal = this.getTypedField(47, 0);
1196 		return retVal;
1197     }
1198 
1199 
1200 
1201     /**
1202      * Returns
1203      * IN1-48: "Handicap" - creates it if necessary
1204      */
1205     public IS getHandicap() { 
1206 		IS retVal = this.getTypedField(48, 0);
1207 		return retVal;
1208     }
1209     
1210     /**
1211      * Returns
1212      * IN1-48: "Handicap" - creates it if necessary
1213      */
1214     public IS getIn148_Handicap() { 
1215 		IS retVal = this.getTypedField(48, 0);
1216 		return retVal;
1217     }
1218 
1219 
1220 
1221     /**
1222      * Returns
1223      * IN1-49: "Insured's ID Number" - creates it if necessary
1224      */
1225     public CX getInsuredSIDNumber() { 
1226 		CX retVal = this.getTypedField(49, 0);
1227 		return retVal;
1228     }
1229     
1230     /**
1231      * Returns
1232      * IN1-49: "Insured's ID Number" - creates it if necessary
1233      */
1234     public CX getIn149_InsuredSIDNumber() { 
1235 		CX retVal = this.getTypedField(49, 0);
1236 		return retVal;
1237     }
1238 
1239 
1240 
1241 
1242 
1243     /** {@inheritDoc} */   
1244     protected Type createNewTypeWithoutReflection(int field) {
1245        switch (field) {
1246           case 0: return new SI(getMessage());
1247           case 1: return new CE(getMessage());
1248           case 2: return new CX(getMessage());
1249           case 3: return new XON(getMessage());
1250           case 4: return new XAD(getMessage());
1251           case 5: return new XPN(getMessage());
1252           case 6: return new XTN(getMessage());
1253           case 7: return new ST(getMessage());
1254           case 8: return new XON(getMessage());
1255           case 9: return new CX(getMessage());
1256           case 10: return new XON(getMessage());
1257           case 11: return new DT(getMessage());
1258           case 12: return new DT(getMessage());
1259           case 13: return new CM_AUI(getMessage());
1260           case 14: return new IS(getMessage(), new Integer( 86 ));
1261           case 15: return new XPN(getMessage());
1262           case 16: return new IS(getMessage(), new Integer( 63 ));
1263           case 17: return new TS(getMessage());
1264           case 18: return new XAD(getMessage());
1265           case 19: return new IS(getMessage(), new Integer( 135 ));
1266           case 20: return new IS(getMessage(), new Integer( 173 ));
1267           case 21: return new ST(getMessage());
1268           case 22: return new ID(getMessage(), new Integer( 136 ));
1269           case 23: return new DT(getMessage());
1270           case 24: return new ID(getMessage(), new Integer( 136 ));
1271           case 25: return new DT(getMessage());
1272           case 26: return new IS(getMessage(), new Integer( 93 ));
1273           case 27: return new ST(getMessage());
1274           case 28: return new TS(getMessage());
1275           case 29: return new XPN(getMessage());
1276           case 30: return new IS(getMessage(), new Integer( 98 ));
1277           case 31: return new IS(getMessage(), new Integer( 22 ));
1278           case 32: return new NM(getMessage());
1279           case 33: return new NM(getMessage());
1280           case 34: return new IS(getMessage(), new Integer( 42 ));
1281           case 35: return new ST(getMessage());
1282           case 36: return new CP(getMessage());
1283           case 37: return new CP(getMessage());
1284           case 38: return new NM(getMessage());
1285           case 39: return new CP(getMessage());
1286           case 40: return new CP(getMessage());
1287           case 41: return new CE(getMessage());
1288           case 42: return new IS(getMessage(), new Integer( 1 ));
1289           case 43: return new XAD(getMessage());
1290           case 44: return new ST(getMessage());
1291           case 45: return new IS(getMessage(), new Integer( 72 ));
1292           case 46: return new IS(getMessage(), new Integer( 309 ));
1293           case 47: return new IS(getMessage(), new Integer( 310 ));
1294           case 48: return new CX(getMessage());
1295           default: return null;
1296        }
1297    }
1298 
1299 
1300 }
1301