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