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.v21.segment;
035
036// import ca.uhn.hl7v2.model.v21.group.*;
037import ca.uhn.hl7v2.model.v21.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 (ID) <b> </b>
053     * <li>IN1-3: INSURANCE COMPANY ID (ST) <b> </b>
054     * <li>IN1-4: INSURANCE COMPANY NAME (ST) <b>optional </b>
055     * <li>IN1-5: INSURANCE COMPANY ADDRESS (AD) <b>optional </b>
056     * <li>IN1-6: INSURANCE CO. CONTACT PERS (PN) <b>optional </b>
057     * <li>IN1-7: INSURANCE CO PHONE NUMBER (TN) <b>optional </b>
058     * <li>IN1-8: GROUP NUMBER (ST) <b>optional </b>
059     * <li>IN1-9: GROUP NAME (ST) <b>optional </b>
060     * <li>IN1-10: INSURED'S GROUP EMP. ID (ST) <b>optional </b>
061     * <li>IN1-11: INSURED'S GROUP EMP. NAME (ST) <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 (ST) <b>optional </b>
065     * <li>IN1-15: PLAN TYPE (ID) <b>optional </b>
066     * <li>IN1-16: NAME OF INSURED (PN) <b>optional </b>
067     * <li>IN1-17: INSURED'S RELATIONSHIP TO PATIENT (ID) <b>optional </b>
068     * <li>IN1-18: INSURED'S DATE OF BIRTH (DT) <b>optional </b>
069     * <li>IN1-19: INSURED'S ADDRESS (AD) <b>optional </b>
070     * <li>IN1-20: ASSIGNMENT OF BENEFITS (ID) <b>optional </b>
071     * <li>IN1-21: COORDINATION OF BENEFITS (ID) <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 ELIGIBILITY CODE (ID) <b>optional </b>
076     * <li>IN1-26: RPT OF ELIGIBILITY DATE (DT) <b>optional </b>
077     * <li>IN1-27: RELEASE INFORMATION CODE (ID) <b>optional </b>
078     * <li>IN1-28: PRE-ADMIT CERT. (PAC) (ST) <b>optional </b>
079     * <li>IN1-29: VERIFICATION DATE (DT) <b>optional </b>
080     * <li>IN1-30: VERIFICATION BY (CM) <b>optional </b>
081     * <li>IN1-31: TYPE OF AGREEMENT CODE (ID) <b>optional </b>
082     * <li>IN1-32: BILLING STATUS (ID) <b>optional </b>
083     * <li>IN1-33: LIFETIME RESERVE DAYS (NM) <b>optional </b>
084     * <li>IN1-34: DELAY BEFORE L. R. DAY (NM) <b>optional </b>
085     * <li>IN1-35: COMPANY PLAN CODE (ST) <b>optional </b>
086     * <li>IN1-36: POLICY NUMBER (ST) <b>optional </b>
087     * <li>IN1-37: POLICY DEDUCTIBLE (NM) <b>optional </b>
088     * <li>IN1-38: POLICY LIMIT - AMOUNT (NM) <b>optional </b>
089     * <li>IN1-39: POLICY LIMIT - DAYS (NM) <b>optional </b>
090     * <li>IN1-40: ROOM RATE - SEMI-PRIVATE (NM) <b>optional </b>
091     * <li>IN1-41: ROOM RATE - PRIVATE (NM) <b>optional </b>
092     * <li>IN1-42: INSURED'S EMPLOYMENT STATUS (ID) <b>optional </b>
093     * <li>IN1-43: INSURED'S SEX (ID) <b>optional </b>
094     * <li>IN1-44: INSURED'S EMPLOYER ADDRESS (AD) <b>optional </b>
095 * </ul>
096 */
097@SuppressWarnings("unused")
098public class IN1 extends AbstractSegment {
099
100    /** 
101     * Creates a new IN1 segment
102     */
103    public IN1(Group parent, ModelClassFactory factory) {
104       super(parent, factory);
105       init(factory);
106    }
107
108    private void init(ModelClassFactory factory) {
109       try {
110                                  this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "SET ID - INSURANCE");
111                                              this.add(ID.class, true, 1, 8, new Object[]{ getMessage(), new Integer(72) }, "INSURANCE PLAN ID");
112                                  this.add(ST.class, true, 1, 6, new Object[]{ getMessage() }, "INSURANCE COMPANY ID");
113                                  this.add(ST.class, false, 1, 45, new Object[]{ getMessage() }, "INSURANCE COMPANY NAME");
114                                  this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "INSURANCE COMPANY ADDRESS");
115                                  this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "INSURANCE CO. CONTACT PERS");
116                                  this.add(TN.class, false, 1, 40, new Object[]{ getMessage() }, "INSURANCE CO PHONE NUMBER");
117                                  this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "GROUP NUMBER");
118                                  this.add(ST.class, false, 1, 35, new Object[]{ getMessage() }, "GROUP NAME");
119                                  this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "INSURED'S GROUP EMP. ID");
120                                  this.add(ST.class, false, 1, 45, new Object[]{ getMessage() }, "INSURED'S GROUP EMP. NAME");
121                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PLAN EFFECTIVE DATE");
122                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "PLAN EXPIRATION DATE");
123                                  this.add(ST.class, false, 1, 55, new Object[]{ getMessage() }, "AUTHORIZATION INFORMATION");
124                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(86) }, "PLAN TYPE");
125                                  this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "NAME OF INSURED");
126                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "INSURED'S RELATIONSHIP TO PATIENT");
127                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "INSURED'S DATE OF BIRTH");
128                                  this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "INSURED'S ADDRESS");
129                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "ASSIGNMENT OF BENEFITS");
130                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "COORDINATION OF BENEFITS");
131                                  this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "COORD OF BEN. PRIORITY");
132                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(81) }, "NOTICE OF ADMISSION CODE");
133                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "NOTICE OF ADMISSION DATE");
134                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(94) }, "RPT OF ELIGIBILITY CODE");
135                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "RPT OF ELIGIBILITY DATE");
136                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(93) }, "RELEASE INFORMATION CODE");
137                                  this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "PRE-ADMIT CERT. (PAC)");
138                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "VERIFICATION DATE");
139                                  this.add(CM.class, false, 1, 60, new Object[]{ getMessage() }, "VERIFICATION BY");
140                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(98) }, "TYPE OF AGREEMENT CODE");
141                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(22) }, "BILLING STATUS");
142                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "LIFETIME RESERVE DAYS");
143                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "DELAY BEFORE L. R. DAY");
144                                  this.add(ST.class, false, 1, 8, new Object[]{ getMessage() }, "COMPANY PLAN CODE");
145                                  this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "POLICY NUMBER");
146                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "POLICY DEDUCTIBLE");
147                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "POLICY LIMIT - AMOUNT");
148                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "POLICY LIMIT - DAYS");
149                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "ROOM RATE - SEMI-PRIVATE");
150                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "ROOM RATE - PRIVATE");
151                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(66) }, "INSURED'S EMPLOYMENT STATUS");
152                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "INSURED'S SEX");
153                                  this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "INSURED'S EMPLOYER ADDRESS");
154       } catch(HL7Exception e) {
155          log.error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e);
156       }
157    }
158
159
160
161    /**
162     * Returns
163     * IN1-1: "SET ID - INSURANCE" - creates it if necessary
164     */
165    public SI getSETIDINSURANCE() { 
166                SI retVal = this.getTypedField(1, 0);
167                return retVal;
168    }
169    
170    /**
171     * Returns
172     * IN1-1: "SET ID - INSURANCE" - creates it if necessary
173     */
174    public SI getIn11_SETIDINSURANCE() { 
175                SI retVal = this.getTypedField(1, 0);
176                return retVal;
177    }
178
179
180
181    /**
182     * Returns
183     * IN1-2: "INSURANCE PLAN ID" - creates it if necessary
184     */
185    public ID getINSURANCEPLANID() { 
186                ID retVal = this.getTypedField(2, 0);
187                return retVal;
188    }
189    
190    /**
191     * Returns
192     * IN1-2: "INSURANCE PLAN ID" - creates it if necessary
193     */
194    public ID getIn12_INSURANCEPLANID() { 
195                ID retVal = this.getTypedField(2, 0);
196                return retVal;
197    }
198
199
200
201    /**
202     * Returns
203     * IN1-3: "INSURANCE COMPANY ID" - creates it if necessary
204     */
205    public ST getINSURANCECOMPANYID() { 
206                ST retVal = this.getTypedField(3, 0);
207                return retVal;
208    }
209    
210    /**
211     * Returns
212     * IN1-3: "INSURANCE COMPANY ID" - creates it if necessary
213     */
214    public ST getIn13_INSURANCECOMPANYID() { 
215                ST retVal = this.getTypedField(3, 0);
216                return retVal;
217    }
218
219
220
221    /**
222     * Returns
223     * IN1-4: "INSURANCE COMPANY NAME" - creates it if necessary
224     */
225    public ST getINSURANCECOMPANYNAME() { 
226                ST retVal = this.getTypedField(4, 0);
227                return retVal;
228    }
229    
230    /**
231     * Returns
232     * IN1-4: "INSURANCE COMPANY NAME" - creates it if necessary
233     */
234    public ST getIn14_INSURANCECOMPANYNAME() { 
235                ST retVal = this.getTypedField(4, 0);
236                return retVal;
237    }
238
239
240
241    /**
242     * Returns
243     * IN1-5: "INSURANCE COMPANY ADDRESS" - creates it if necessary
244     */
245    public AD getINSURANCECOMPANYADDRESS() { 
246                AD retVal = this.getTypedField(5, 0);
247                return retVal;
248    }
249    
250    /**
251     * Returns
252     * IN1-5: "INSURANCE COMPANY ADDRESS" - creates it if necessary
253     */
254    public AD getIn15_INSURANCECOMPANYADDRESS() { 
255                AD retVal = this.getTypedField(5, 0);
256                return retVal;
257    }
258
259
260
261    /**
262     * Returns
263     * IN1-6: "INSURANCE CO. CONTACT PERS" - creates it if necessary
264     */
265    public PN getINSURANCECOCONTACTPERS() { 
266                PN retVal = this.getTypedField(6, 0);
267                return retVal;
268    }
269    
270    /**
271     * Returns
272     * IN1-6: "INSURANCE CO. CONTACT PERS" - creates it if necessary
273     */
274    public PN getIn16_INSURANCECOCONTACTPERS() { 
275                PN retVal = this.getTypedField(6, 0);
276                return retVal;
277    }
278
279
280
281    /**
282     * Returns
283     * IN1-7: "INSURANCE CO PHONE NUMBER" - creates it if necessary
284     */
285    public TN getINSURANCECOPHONENUMBER() { 
286                TN retVal = this.getTypedField(7, 0);
287                return retVal;
288    }
289    
290    /**
291     * Returns
292     * IN1-7: "INSURANCE CO PHONE NUMBER" - creates it if necessary
293     */
294    public TN getIn17_INSURANCECOPHONENUMBER() { 
295                TN retVal = this.getTypedField(7, 0);
296                return retVal;
297    }
298
299
300
301    /**
302     * Returns
303     * IN1-8: "GROUP NUMBER" - creates it if necessary
304     */
305    public ST getGROUPNUMBER() { 
306                ST retVal = this.getTypedField(8, 0);
307                return retVal;
308    }
309    
310    /**
311     * Returns
312     * IN1-8: "GROUP NUMBER" - creates it if necessary
313     */
314    public ST getIn18_GROUPNUMBER() { 
315                ST retVal = this.getTypedField(8, 0);
316                return retVal;
317    }
318
319
320
321    /**
322     * Returns
323     * IN1-9: "GROUP NAME" - creates it if necessary
324     */
325    public ST getGROUPNAME() { 
326                ST retVal = this.getTypedField(9, 0);
327                return retVal;
328    }
329    
330    /**
331     * Returns
332     * IN1-9: "GROUP NAME" - creates it if necessary
333     */
334    public ST getIn19_GROUPNAME() { 
335                ST retVal = this.getTypedField(9, 0);
336                return retVal;
337    }
338
339
340
341    /**
342     * Returns
343     * IN1-10: "INSURED'S GROUP EMP. ID" - creates it if necessary
344     */
345    public ST getINSUREDSGROUPEMPID() { 
346                ST retVal = this.getTypedField(10, 0);
347                return retVal;
348    }
349    
350    /**
351     * Returns
352     * IN1-10: "INSURED'S GROUP EMP. ID" - creates it if necessary
353     */
354    public ST getIn110_INSUREDSGROUPEMPID() { 
355                ST retVal = this.getTypedField(10, 0);
356                return retVal;
357    }
358
359
360
361    /**
362     * Returns
363     * IN1-11: "INSURED'S GROUP EMP. NAME" - creates it if necessary
364     */
365    public ST getINSUREDSGROUPEMPNAME() { 
366                ST retVal = this.getTypedField(11, 0);
367                return retVal;
368    }
369    
370    /**
371     * Returns
372     * IN1-11: "INSURED'S GROUP EMP. NAME" - creates it if necessary
373     */
374    public ST getIn111_INSUREDSGROUPEMPNAME() { 
375                ST retVal = this.getTypedField(11, 0);
376                return retVal;
377    }
378
379
380
381    /**
382     * Returns
383     * IN1-12: "PLAN EFFECTIVE DATE" - creates it if necessary
384     */
385    public DT getPLANEFFECTIVEDATE() { 
386                DT retVal = this.getTypedField(12, 0);
387                return retVal;
388    }
389    
390    /**
391     * Returns
392     * IN1-12: "PLAN EFFECTIVE DATE" - creates it if necessary
393     */
394    public DT getIn112_PLANEFFECTIVEDATE() { 
395                DT retVal = this.getTypedField(12, 0);
396                return retVal;
397    }
398
399
400
401    /**
402     * Returns
403     * IN1-13: "PLAN EXPIRATION DATE" - creates it if necessary
404     */
405    public DT getPLANEXPIRATIONDATE() { 
406                DT retVal = this.getTypedField(13, 0);
407                return retVal;
408    }
409    
410    /**
411     * Returns
412     * IN1-13: "PLAN EXPIRATION DATE" - creates it if necessary
413     */
414    public DT getIn113_PLANEXPIRATIONDATE() { 
415                DT retVal = this.getTypedField(13, 0);
416                return retVal;
417    }
418
419
420
421    /**
422     * Returns
423     * IN1-14: "AUTHORIZATION INFORMATION" - creates it if necessary
424     */
425    public ST getAUTHORIZATIONINFORMATION() { 
426                ST retVal = this.getTypedField(14, 0);
427                return retVal;
428    }
429    
430    /**
431     * Returns
432     * IN1-14: "AUTHORIZATION INFORMATION" - creates it if necessary
433     */
434    public ST getIn114_AUTHORIZATIONINFORMATION() { 
435                ST retVal = this.getTypedField(14, 0);
436                return retVal;
437    }
438
439
440
441    /**
442     * Returns
443     * IN1-15: "PLAN TYPE" - creates it if necessary
444     */
445    public ID getPLANTYPE() { 
446                ID retVal = this.getTypedField(15, 0);
447                return retVal;
448    }
449    
450    /**
451     * Returns
452     * IN1-15: "PLAN TYPE" - creates it if necessary
453     */
454    public ID getIn115_PLANTYPE() { 
455                ID retVal = this.getTypedField(15, 0);
456                return retVal;
457    }
458
459
460
461    /**
462     * Returns
463     * IN1-16: "NAME OF INSURED" - creates it if necessary
464     */
465    public PN getNAMEOFINSURED() { 
466                PN retVal = this.getTypedField(16, 0);
467                return retVal;
468    }
469    
470    /**
471     * Returns
472     * IN1-16: "NAME OF INSURED" - creates it if necessary
473     */
474    public PN getIn116_NAMEOFINSURED() { 
475                PN retVal = this.getTypedField(16, 0);
476                return retVal;
477    }
478
479
480
481    /**
482     * Returns
483     * IN1-17: "INSURED'S RELATIONSHIP TO PATIENT" - creates it if necessary
484     */
485    public ID getINSUREDSRELATIONSHIPTOPATIENT() { 
486                ID retVal = this.getTypedField(17, 0);
487                return retVal;
488    }
489    
490    /**
491     * Returns
492     * IN1-17: "INSURED'S RELATIONSHIP TO PATIENT" - creates it if necessary
493     */
494    public ID getIn117_INSUREDSRELATIONSHIPTOPATIENT() { 
495                ID retVal = this.getTypedField(17, 0);
496                return retVal;
497    }
498
499
500
501    /**
502     * Returns
503     * IN1-18: "INSURED'S DATE OF BIRTH" - creates it if necessary
504     */
505    public DT getINSUREDSDATEOFBIRTH() { 
506                DT retVal = this.getTypedField(18, 0);
507                return retVal;
508    }
509    
510    /**
511     * Returns
512     * IN1-18: "INSURED'S DATE OF BIRTH" - creates it if necessary
513     */
514    public DT getIn118_INSUREDSDATEOFBIRTH() { 
515                DT retVal = this.getTypedField(18, 0);
516                return retVal;
517    }
518
519
520
521    /**
522     * Returns
523     * IN1-19: "INSURED'S ADDRESS" - creates it if necessary
524     */
525    public AD getINSUREDSADDRESS() { 
526                AD retVal = this.getTypedField(19, 0);
527                return retVal;
528    }
529    
530    /**
531     * Returns
532     * IN1-19: "INSURED'S ADDRESS" - creates it if necessary
533     */
534    public AD getIn119_INSUREDSADDRESS() { 
535                AD retVal = this.getTypedField(19, 0);
536                return retVal;
537    }
538
539
540
541    /**
542     * Returns
543     * IN1-20: "ASSIGNMENT OF BENEFITS" - creates it if necessary
544     */
545    public ID getASSIGNMENTOFBENEFITS() { 
546                ID retVal = this.getTypedField(20, 0);
547                return retVal;
548    }
549    
550    /**
551     * Returns
552     * IN1-20: "ASSIGNMENT OF BENEFITS" - creates it if necessary
553     */
554    public ID getIn120_ASSIGNMENTOFBENEFITS() { 
555                ID retVal = this.getTypedField(20, 0);
556                return retVal;
557    }
558
559
560
561    /**
562     * Returns
563     * IN1-21: "COORDINATION OF BENEFITS" - creates it if necessary
564     */
565    public ID getCOORDINATIONOFBENEFITS() { 
566                ID retVal = this.getTypedField(21, 0);
567                return retVal;
568    }
569    
570    /**
571     * Returns
572     * IN1-21: "COORDINATION OF BENEFITS" - creates it if necessary
573     */
574    public ID getIn121_COORDINATIONOFBENEFITS() { 
575                ID retVal = this.getTypedField(21, 0);
576                return retVal;
577    }
578
579
580
581    /**
582     * Returns
583     * IN1-22: "COORD OF BEN. PRIORITY" - creates it if necessary
584     */
585    public ST getCOORDOFBENPRIORITY() { 
586                ST retVal = this.getTypedField(22, 0);
587                return retVal;
588    }
589    
590    /**
591     * Returns
592     * IN1-22: "COORD OF BEN. PRIORITY" - creates it if necessary
593     */
594    public ST getIn122_COORDOFBENPRIORITY() { 
595                ST retVal = this.getTypedField(22, 0);
596                return retVal;
597    }
598
599
600
601    /**
602     * Returns
603     * IN1-23: "NOTICE OF ADMISSION CODE" - creates it if necessary
604     */
605    public ID getNOTICEOFADMISSIONCODE() { 
606                ID retVal = this.getTypedField(23, 0);
607                return retVal;
608    }
609    
610    /**
611     * Returns
612     * IN1-23: "NOTICE OF ADMISSION CODE" - creates it if necessary
613     */
614    public ID getIn123_NOTICEOFADMISSIONCODE() { 
615                ID retVal = this.getTypedField(23, 0);
616                return retVal;
617    }
618
619
620
621    /**
622     * Returns
623     * IN1-24: "NOTICE OF ADMISSION DATE" - creates it if necessary
624     */
625    public DT getNOTICEOFADMISSIONDATE() { 
626                DT retVal = this.getTypedField(24, 0);
627                return retVal;
628    }
629    
630    /**
631     * Returns
632     * IN1-24: "NOTICE OF ADMISSION DATE" - creates it if necessary
633     */
634    public DT getIn124_NOTICEOFADMISSIONDATE() { 
635                DT retVal = this.getTypedField(24, 0);
636                return retVal;
637    }
638
639
640
641    /**
642     * Returns
643     * IN1-25: "RPT OF ELIGIBILITY CODE" - creates it if necessary
644     */
645    public ID getRPTOFELIGIBILITYCODE() { 
646                ID retVal = this.getTypedField(25, 0);
647                return retVal;
648    }
649    
650    /**
651     * Returns
652     * IN1-25: "RPT OF ELIGIBILITY CODE" - creates it if necessary
653     */
654    public ID getIn125_RPTOFELIGIBILITYCODE() { 
655                ID retVal = this.getTypedField(25, 0);
656                return retVal;
657    }
658
659
660
661    /**
662     * Returns
663     * IN1-26: "RPT OF ELIGIBILITY DATE" - creates it if necessary
664     */
665    public DT getRPTOFELIGIBILITYDATE() { 
666                DT retVal = this.getTypedField(26, 0);
667                return retVal;
668    }
669    
670    /**
671     * Returns
672     * IN1-26: "RPT OF ELIGIBILITY DATE" - creates it if necessary
673     */
674    public DT getIn126_RPTOFELIGIBILITYDATE() { 
675                DT retVal = this.getTypedField(26, 0);
676                return retVal;
677    }
678
679
680
681    /**
682     * Returns
683     * IN1-27: "RELEASE INFORMATION CODE" - creates it if necessary
684     */
685    public ID getRELEASEINFORMATIONCODE() { 
686                ID retVal = this.getTypedField(27, 0);
687                return retVal;
688    }
689    
690    /**
691     * Returns
692     * IN1-27: "RELEASE INFORMATION CODE" - creates it if necessary
693     */
694    public ID getIn127_RELEASEINFORMATIONCODE() { 
695                ID retVal = this.getTypedField(27, 0);
696                return retVal;
697    }
698
699
700
701    /**
702     * Returns
703     * IN1-28: "PRE-ADMIT CERT. (PAC)" - creates it if necessary
704     */
705    public ST getPREADMITCERT() { 
706                ST retVal = this.getTypedField(28, 0);
707                return retVal;
708    }
709    
710    /**
711     * Returns
712     * IN1-28: "PRE-ADMIT CERT. (PAC)" - creates it if necessary
713     */
714    public ST getIn128_PREADMITCERT() { 
715                ST retVal = this.getTypedField(28, 0);
716                return retVal;
717    }
718
719
720
721    /**
722     * Returns
723     * IN1-29: "VERIFICATION DATE" - creates it if necessary
724     */
725    public DT getVERIFICATIONDATE() { 
726                DT retVal = this.getTypedField(29, 0);
727                return retVal;
728    }
729    
730    /**
731     * Returns
732     * IN1-29: "VERIFICATION DATE" - creates it if necessary
733     */
734    public DT getIn129_VERIFICATIONDATE() { 
735                DT retVal = this.getTypedField(29, 0);
736                return retVal;
737    }
738
739
740
741    /**
742     * Returns
743     * IN1-30: "VERIFICATION BY" - creates it if necessary
744     */
745    public CM getVERIFICATIONBY() { 
746                CM retVal = this.getTypedField(30, 0);
747                return retVal;
748    }
749    
750    /**
751     * Returns
752     * IN1-30: "VERIFICATION BY" - creates it if necessary
753     */
754    public CM getIn130_VERIFICATIONBY() { 
755                CM retVal = this.getTypedField(30, 0);
756                return retVal;
757    }
758
759
760
761    /**
762     * Returns
763     * IN1-31: "TYPE OF AGREEMENT CODE" - creates it if necessary
764     */
765    public ID getTYPEOFAGREEMENTCODE() { 
766                ID retVal = this.getTypedField(31, 0);
767                return retVal;
768    }
769    
770    /**
771     * Returns
772     * IN1-31: "TYPE OF AGREEMENT CODE" - creates it if necessary
773     */
774    public ID getIn131_TYPEOFAGREEMENTCODE() { 
775                ID retVal = this.getTypedField(31, 0);
776                return retVal;
777    }
778
779
780
781    /**
782     * Returns
783     * IN1-32: "BILLING STATUS" - creates it if necessary
784     */
785    public ID getBILLINGSTATUS() { 
786                ID retVal = this.getTypedField(32, 0);
787                return retVal;
788    }
789    
790    /**
791     * Returns
792     * IN1-32: "BILLING STATUS" - creates it if necessary
793     */
794    public ID getIn132_BILLINGSTATUS() { 
795                ID retVal = this.getTypedField(32, 0);
796                return retVal;
797    }
798
799
800
801    /**
802     * Returns
803     * IN1-33: "LIFETIME RESERVE DAYS" - creates it if necessary
804     */
805    public NM getLIFETIMERESERVEDAYS() { 
806                NM retVal = this.getTypedField(33, 0);
807                return retVal;
808    }
809    
810    /**
811     * Returns
812     * IN1-33: "LIFETIME RESERVE DAYS" - creates it if necessary
813     */
814    public NM getIn133_LIFETIMERESERVEDAYS() { 
815                NM retVal = this.getTypedField(33, 0);
816                return retVal;
817    }
818
819
820
821    /**
822     * Returns
823     * IN1-34: "DELAY BEFORE L. R. DAY" - creates it if necessary
824     */
825    public NM getDELAYBEFORELRDAY() { 
826                NM retVal = this.getTypedField(34, 0);
827                return retVal;
828    }
829    
830    /**
831     * Returns
832     * IN1-34: "DELAY BEFORE L. R. DAY" - creates it if necessary
833     */
834    public NM getIn134_DELAYBEFORELRDAY() { 
835                NM retVal = this.getTypedField(34, 0);
836                return retVal;
837    }
838
839
840
841    /**
842     * Returns
843     * IN1-35: "COMPANY PLAN CODE" - creates it if necessary
844     */
845    public ST getCOMPANYPLANCODE() { 
846                ST retVal = this.getTypedField(35, 0);
847                return retVal;
848    }
849    
850    /**
851     * Returns
852     * IN1-35: "COMPANY PLAN CODE" - creates it if necessary
853     */
854    public ST getIn135_COMPANYPLANCODE() { 
855                ST retVal = this.getTypedField(35, 0);
856                return retVal;
857    }
858
859
860
861    /**
862     * Returns
863     * IN1-36: "POLICY NUMBER" - creates it if necessary
864     */
865    public ST getPOLICYNUMBER() { 
866                ST retVal = this.getTypedField(36, 0);
867                return retVal;
868    }
869    
870    /**
871     * Returns
872     * IN1-36: "POLICY NUMBER" - creates it if necessary
873     */
874    public ST getIn136_POLICYNUMBER() { 
875                ST retVal = this.getTypedField(36, 0);
876                return retVal;
877    }
878
879
880
881    /**
882     * Returns
883     * IN1-37: "POLICY DEDUCTIBLE" - creates it if necessary
884     */
885    public NM getPOLICYDEDUCTIBLE() { 
886                NM retVal = this.getTypedField(37, 0);
887                return retVal;
888    }
889    
890    /**
891     * Returns
892     * IN1-37: "POLICY DEDUCTIBLE" - creates it if necessary
893     */
894    public NM getIn137_POLICYDEDUCTIBLE() { 
895                NM retVal = this.getTypedField(37, 0);
896                return retVal;
897    }
898
899
900
901    /**
902     * Returns
903     * IN1-38: "POLICY LIMIT - AMOUNT" - creates it if necessary
904     */
905    public NM getPOLICYLIMITAMOUNT() { 
906                NM retVal = this.getTypedField(38, 0);
907                return retVal;
908    }
909    
910    /**
911     * Returns
912     * IN1-38: "POLICY LIMIT - AMOUNT" - creates it if necessary
913     */
914    public NM getIn138_POLICYLIMITAMOUNT() { 
915                NM retVal = this.getTypedField(38, 0);
916                return retVal;
917    }
918
919
920
921    /**
922     * Returns
923     * IN1-39: "POLICY LIMIT - DAYS" - creates it if necessary
924     */
925    public NM getPOLICYLIMITDAYS() { 
926                NM retVal = this.getTypedField(39, 0);
927                return retVal;
928    }
929    
930    /**
931     * Returns
932     * IN1-39: "POLICY LIMIT - DAYS" - creates it if necessary
933     */
934    public NM getIn139_POLICYLIMITDAYS() { 
935                NM retVal = this.getTypedField(39, 0);
936                return retVal;
937    }
938
939
940
941    /**
942     * Returns
943     * IN1-40: "ROOM RATE - SEMI-PRIVATE" - creates it if necessary
944     */
945    public NM getROOMRATESEMIPRIVATE() { 
946                NM retVal = this.getTypedField(40, 0);
947                return retVal;
948    }
949    
950    /**
951     * Returns
952     * IN1-40: "ROOM RATE - SEMI-PRIVATE" - creates it if necessary
953     */
954    public NM getIn140_ROOMRATESEMIPRIVATE() { 
955                NM retVal = this.getTypedField(40, 0);
956                return retVal;
957    }
958
959
960
961    /**
962     * Returns
963     * IN1-41: "ROOM RATE - PRIVATE" - creates it if necessary
964     */
965    public NM getROOMRATEPRIVATE() { 
966                NM retVal = this.getTypedField(41, 0);
967                return retVal;
968    }
969    
970    /**
971     * Returns
972     * IN1-41: "ROOM RATE - PRIVATE" - creates it if necessary
973     */
974    public NM getIn141_ROOMRATEPRIVATE() { 
975                NM retVal = this.getTypedField(41, 0);
976                return retVal;
977    }
978
979
980
981    /**
982     * Returns
983     * IN1-42: "INSURED'S EMPLOYMENT STATUS" - creates it if necessary
984     */
985    public ID getINSUREDSEMPLOYMENTSTATUS() { 
986                ID retVal = this.getTypedField(42, 0);
987                return retVal;
988    }
989    
990    /**
991     * Returns
992     * IN1-42: "INSURED'S EMPLOYMENT STATUS" - creates it if necessary
993     */
994    public ID getIn142_INSUREDSEMPLOYMENTSTATUS() { 
995                ID retVal = this.getTypedField(42, 0);
996                return retVal;
997    }
998
999
1000
1001    /**
1002     * Returns
1003     * IN1-43: "INSURED'S SEX" - creates it if necessary
1004     */
1005    public ID getINSUREDSSEX() { 
1006                ID retVal = this.getTypedField(43, 0);
1007                return retVal;
1008    }
1009    
1010    /**
1011     * Returns
1012     * IN1-43: "INSURED'S SEX" - creates it if necessary
1013     */
1014    public ID getIn143_INSUREDSSEX() { 
1015                ID retVal = this.getTypedField(43, 0);
1016                return retVal;
1017    }
1018
1019
1020
1021    /**
1022     * Returns
1023     * IN1-44: "INSURED'S EMPLOYER ADDRESS" - creates it if necessary
1024     */
1025    public AD getINSUREDSEMPLOYERADDRESS() { 
1026                AD retVal = this.getTypedField(44, 0);
1027                return retVal;
1028    }
1029    
1030    /**
1031     * Returns
1032     * IN1-44: "INSURED'S EMPLOYER ADDRESS" - creates it if necessary
1033     */
1034    public AD getIn144_INSUREDSEMPLOYERADDRESS() { 
1035                AD retVal = this.getTypedField(44, 0);
1036                return retVal;
1037    }
1038
1039
1040
1041
1042
1043    /** {@inheritDoc} */   
1044    protected Type createNewTypeWithoutReflection(int field) {
1045       switch (field) {
1046          case 0: return new SI(getMessage());
1047          case 1: return new ID(getMessage(), new Integer( 72 ));
1048          case 2: return new ST(getMessage());
1049          case 3: return new ST(getMessage());
1050          case 4: return new AD(getMessage());
1051          case 5: return new PN(getMessage());
1052          case 6: return new TN(getMessage());
1053          case 7: return new ST(getMessage());
1054          case 8: return new ST(getMessage());
1055          case 9: return new ST(getMessage());
1056          case 10: return new ST(getMessage());
1057          case 11: return new DT(getMessage());
1058          case 12: return new DT(getMessage());
1059          case 13: return new ST(getMessage());
1060          case 14: return new ID(getMessage(), new Integer( 86 ));
1061          case 15: return new PN(getMessage());
1062          case 16: return new ID(getMessage(), new Integer( 63 ));
1063          case 17: return new DT(getMessage());
1064          case 18: return new AD(getMessage());
1065          case 19: return new ID(getMessage(), new Integer( 0 ));
1066          case 20: return new ID(getMessage(), new Integer( 0 ));
1067          case 21: return new ST(getMessage());
1068          case 22: return new ID(getMessage(), new Integer( 81 ));
1069          case 23: return new DT(getMessage());
1070          case 24: return new ID(getMessage(), new Integer( 94 ));
1071          case 25: return new DT(getMessage());
1072          case 26: return new ID(getMessage(), new Integer( 93 ));
1073          case 27: return new ST(getMessage());
1074          case 28: return new DT(getMessage());
1075          case 29: return new CM(getMessage());
1076          case 30: return new ID(getMessage(), new Integer( 98 ));
1077          case 31: return new ID(getMessage(), new Integer( 22 ));
1078          case 32: return new NM(getMessage());
1079          case 33: return new NM(getMessage());
1080          case 34: return new ST(getMessage());
1081          case 35: return new ST(getMessage());
1082          case 36: return new NM(getMessage());
1083          case 37: return new NM(getMessage());
1084          case 38: return new NM(getMessage());
1085          case 39: return new NM(getMessage());
1086          case 40: return new NM(getMessage());
1087          case 41: return new ID(getMessage(), new Integer( 66 ));
1088          case 42: return new ID(getMessage(), new Integer( 1 ));
1089          case 43: return new AD(getMessage());
1090          default: return null;
1091       }
1092   }
1093
1094
1095}
1096