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