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