All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.hl7v2.model.v21.segment.IN1 Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
/*
 * This class is an auto-generated source file for a HAPI
 * HL7 v2.x standard structure class.
 *
 * For more information, visit: http://hl7api.sourceforge.net/
 */

package ca.uhn.hl7v2.model.v21.segment;

// import ca.uhn.hl7v2.model.v21.group.*;
import ca.uhn.hl7v2.model.v21.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;

/**
 *

Represents an HL7 IN1 message segment (INSURANCE). * This segment has the following fields:

*
    *
  • IN1-1: SET ID - INSURANCE (SI) *
  • IN1-2: INSURANCE PLAN ID (ID) *
  • IN1-3: INSURANCE COMPANY ID (ST) *
  • IN1-4: INSURANCE COMPANY NAME (ST) optional *
  • IN1-5: INSURANCE COMPANY ADDRESS (AD) optional *
  • IN1-6: INSURANCE CO. CONTACT PERS (PN) optional *
  • IN1-7: INSURANCE CO PHONE NUMBER (TN) optional *
  • IN1-8: GROUP NUMBER (ST) optional *
  • IN1-9: GROUP NAME (ST) optional *
  • IN1-10: INSURED'S GROUP EMP. ID (ST) optional *
  • IN1-11: INSURED'S GROUP EMP. NAME (ST) optional *
  • IN1-12: PLAN EFFECTIVE DATE (DT) optional *
  • IN1-13: PLAN EXPIRATION DATE (DT) optional *
  • IN1-14: AUTHORIZATION INFORMATION (ST) optional *
  • IN1-15: PLAN TYPE (ID) optional *
  • IN1-16: NAME OF INSURED (PN) optional *
  • IN1-17: INSURED'S RELATIONSHIP TO PATIENT (ID) optional *
  • IN1-18: INSURED'S DATE OF BIRTH (DT) optional *
  • IN1-19: INSURED'S ADDRESS (AD) optional *
  • IN1-20: ASSIGNMENT OF BENEFITS (ID) optional *
  • IN1-21: COORDINATION OF BENEFITS (ID) optional *
  • IN1-22: COORD OF BEN. PRIORITY (ST) optional *
  • IN1-23: NOTICE OF ADMISSION CODE (ID) optional *
  • IN1-24: NOTICE OF ADMISSION DATE (DT) optional *
  • IN1-25: RPT OF ELIGIBILITY CODE (ID) optional *
  • IN1-26: RPT OF ELIGIBILITY DATE (DT) optional *
  • IN1-27: RELEASE INFORMATION CODE (ID) optional *
  • IN1-28: PRE-ADMIT CERT. (PAC) (ST) optional *
  • IN1-29: VERIFICATION DATE (DT) optional *
  • IN1-30: VERIFICATION BY (CM) optional *
  • IN1-31: TYPE OF AGREEMENT CODE (ID) optional *
  • IN1-32: BILLING STATUS (ID) optional *
  • IN1-33: LIFETIME RESERVE DAYS (NM) optional *
  • IN1-34: DELAY BEFORE L. R. DAY (NM) optional *
  • IN1-35: COMPANY PLAN CODE (ST) optional *
  • IN1-36: POLICY NUMBER (ST) optional *
  • IN1-37: POLICY DEDUCTIBLE (NM) optional *
  • IN1-38: POLICY LIMIT - AMOUNT (NM) optional *
  • IN1-39: POLICY LIMIT - DAYS (NM) optional *
  • IN1-40: ROOM RATE - SEMI-PRIVATE (NM) optional *
  • IN1-41: ROOM RATE - PRIVATE (NM) optional *
  • IN1-42: INSURED'S EMPLOYMENT STATUS (ID) optional *
  • IN1-43: INSURED'S SEX (ID) optional *
  • IN1-44: INSURED'S EMPLOYER ADDRESS (AD) optional *
*/ public class IN1 extends AbstractSegment { /** * Creates a new IN1 segment */ public IN1(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); } private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "SET ID - INSURANCE"); this.add(ID.class, true, 1, 8, new Object[]{ getMessage() }, "INSURANCE PLAN ID"); this.add(ST.class, true, 1, 6, new Object[]{ getMessage(), new Integer(0) }, "INSURANCE COMPANY ID"); this.add(ST.class, false, 1, 45, new Object[]{ getMessage(), new Integer(0) }, "INSURANCE COMPANY NAME"); this.add(AD.class, false, 1, 106, new Object[]{ getMessage(), new Integer(0) }, "INSURANCE COMPANY ADDRESS"); this.add(PN.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "INSURANCE CO. CONTACT PERS"); this.add(TN.class, false, 1, 40, new Object[]{ getMessage(), new Integer(0) }, "INSURANCE CO PHONE NUMBER"); this.add(ST.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "GROUP NUMBER"); this.add(ST.class, false, 1, 35, new Object[]{ getMessage(), new Integer(0) }, "GROUP NAME"); this.add(ST.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "INSURED'S GROUP EMP. ID"); this.add(ST.class, false, 1, 45, new Object[]{ getMessage(), new Integer(0) }, "INSURED'S GROUP EMP. NAME"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "PLAN EFFECTIVE DATE"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "PLAN EXPIRATION DATE"); this.add(ST.class, false, 1, 55, new Object[]{ getMessage(), new Integer(0) }, "AUTHORIZATION INFORMATION"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "PLAN TYPE"); this.add(PN.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "NAME OF INSURED"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "INSURED'S RELATIONSHIP TO PATIENT"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "INSURED'S DATE OF BIRTH"); this.add(AD.class, false, 1, 106, new Object[]{ getMessage(), new Integer(0) }, "INSURED'S ADDRESS"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "ASSIGNMENT OF BENEFITS"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "COORDINATION OF BENEFITS"); this.add(ST.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "COORD OF BEN. PRIORITY"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "NOTICE OF ADMISSION CODE"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "NOTICE OF ADMISSION DATE"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "RPT OF ELIGIBILITY CODE"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "RPT OF ELIGIBILITY DATE"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "RELEASE INFORMATION CODE"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "PRE-ADMIT CERT. (PAC)"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "VERIFICATION DATE"); this.add(CM.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "VERIFICATION BY"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "TYPE OF AGREEMENT CODE"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "BILLING STATUS"); this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "LIFETIME RESERVE DAYS"); this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "DELAY BEFORE L. R. DAY"); this.add(ST.class, false, 1, 8, new Object[]{ getMessage(), new Integer(42) }, "COMPANY PLAN CODE"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "POLICY NUMBER"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "POLICY DEDUCTIBLE"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "POLICY LIMIT - AMOUNT"); this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "POLICY LIMIT - DAYS"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "ROOM RATE - SEMI-PRIVATE"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "ROOM RATE - PRIVATE"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "INSURED'S EMPLOYMENT STATUS"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "INSURED'S SEX"); this.add(AD.class, false, 1, 106, new Object[]{ getMessage(), new Integer(0) }, "INSURED'S EMPLOYER ADDRESS"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e); } } /** * Returns * IN1-1: "SET ID - INSURANCE" - creates it if necessary */ public SI getSETIDINSURANCE() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-1: "SET ID - INSURANCE" - creates it if necessary */ public SI getIn11_SETIDINSURANCE() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-2: "INSURANCE PLAN ID" - creates it if necessary */ public ID getINSURANCEPLANID() { ID ret = null; try { Type t = this.getField(2, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-2: "INSURANCE PLAN ID" - creates it if necessary */ public ID getIn12_INSURANCEPLANID() { ID ret = null; try { Type t = this.getField(2, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-3: "INSURANCE COMPANY ID" - creates it if necessary */ public ST getINSURANCECOMPANYID() { ST ret = null; try { Type t = this.getField(3, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-3: "INSURANCE COMPANY ID" - creates it if necessary */ public ST getIn13_INSURANCECOMPANYID() { ST ret = null; try { Type t = this.getField(3, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-4: "INSURANCE COMPANY NAME" - creates it if necessary */ public ST getINSURANCECOMPANYNAME() { ST ret = null; try { Type t = this.getField(4, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-4: "INSURANCE COMPANY NAME" - creates it if necessary */ public ST getIn14_INSURANCECOMPANYNAME() { ST ret = null; try { Type t = this.getField(4, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-5: "INSURANCE COMPANY ADDRESS" - creates it if necessary */ public AD getINSURANCECOMPANYADDRESS() { AD ret = null; try { Type t = this.getField(5, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-5: "INSURANCE COMPANY ADDRESS" - creates it if necessary */ public AD getIn15_INSURANCECOMPANYADDRESS() { AD ret = null; try { Type t = this.getField(5, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-6: "INSURANCE CO. CONTACT PERS" - creates it if necessary */ public PN getINSURANCECOCONTACTPERS() { PN ret = null; try { Type t = this.getField(6, 0); ret = (PN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-6: "INSURANCE CO. CONTACT PERS" - creates it if necessary */ public PN getIn16_INSURANCECOCONTACTPERS() { PN ret = null; try { Type t = this.getField(6, 0); ret = (PN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-7: "INSURANCE CO PHONE NUMBER" - creates it if necessary */ public TN getINSURANCECOPHONENUMBER() { TN ret = null; try { Type t = this.getField(7, 0); ret = (TN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-7: "INSURANCE CO PHONE NUMBER" - creates it if necessary */ public TN getIn17_INSURANCECOPHONENUMBER() { TN ret = null; try { Type t = this.getField(7, 0); ret = (TN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-8: "GROUP NUMBER" - creates it if necessary */ public ST getGROUPNUMBER() { ST ret = null; try { Type t = this.getField(8, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-8: "GROUP NUMBER" - creates it if necessary */ public ST getIn18_GROUPNUMBER() { ST ret = null; try { Type t = this.getField(8, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-9: "GROUP NAME" - creates it if necessary */ public ST getGROUPNAME() { ST ret = null; try { Type t = this.getField(9, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-9: "GROUP NAME" - creates it if necessary */ public ST getIn19_GROUPNAME() { ST ret = null; try { Type t = this.getField(9, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-10: "INSURED'S GROUP EMP. ID" - creates it if necessary */ public ST getINSUREDSGROUPEMPID() { ST ret = null; try { Type t = this.getField(10, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-10: "INSURED'S GROUP EMP. ID" - creates it if necessary */ public ST getIn110_INSUREDSGROUPEMPID() { ST ret = null; try { Type t = this.getField(10, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-11: "INSURED'S GROUP EMP. NAME" - creates it if necessary */ public ST getINSUREDSGROUPEMPNAME() { ST ret = null; try { Type t = this.getField(11, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-11: "INSURED'S GROUP EMP. NAME" - creates it if necessary */ public ST getIn111_INSUREDSGROUPEMPNAME() { ST ret = null; try { Type t = this.getField(11, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-12: "PLAN EFFECTIVE DATE" - creates it if necessary */ public DT getPLANEFFECTIVEDATE() { DT ret = null; try { Type t = this.getField(12, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-12: "PLAN EFFECTIVE DATE" - creates it if necessary */ public DT getIn112_PLANEFFECTIVEDATE() { DT ret = null; try { Type t = this.getField(12, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-13: "PLAN EXPIRATION DATE" - creates it if necessary */ public DT getPLANEXPIRATIONDATE() { DT ret = null; try { Type t = this.getField(13, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-13: "PLAN EXPIRATION DATE" - creates it if necessary */ public DT getIn113_PLANEXPIRATIONDATE() { DT ret = null; try { Type t = this.getField(13, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-14: "AUTHORIZATION INFORMATION" - creates it if necessary */ public ST getAUTHORIZATIONINFORMATION() { ST ret = null; try { Type t = this.getField(14, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-14: "AUTHORIZATION INFORMATION" - creates it if necessary */ public ST getIn114_AUTHORIZATIONINFORMATION() { ST ret = null; try { Type t = this.getField(14, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-15: "PLAN TYPE" - creates it if necessary */ public ID getPLANTYPE() { ID ret = null; try { Type t = this.getField(15, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-15: "PLAN TYPE" - creates it if necessary */ public ID getIn115_PLANTYPE() { ID ret = null; try { Type t = this.getField(15, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-16: "NAME OF INSURED" - creates it if necessary */ public PN getNAMEOFINSURED() { PN ret = null; try { Type t = this.getField(16, 0); ret = (PN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-16: "NAME OF INSURED" - creates it if necessary */ public PN getIn116_NAMEOFINSURED() { PN ret = null; try { Type t = this.getField(16, 0); ret = (PN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-17: "INSURED'S RELATIONSHIP TO PATIENT" - creates it if necessary */ public ID getINSUREDSRELATIONSHIPTOPATIENT() { ID ret = null; try { Type t = this.getField(17, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-17: "INSURED'S RELATIONSHIP TO PATIENT" - creates it if necessary */ public ID getIn117_INSUREDSRELATIONSHIPTOPATIENT() { ID ret = null; try { Type t = this.getField(17, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-18: "INSURED'S DATE OF BIRTH" - creates it if necessary */ public DT getINSUREDSDATEOFBIRTH() { DT ret = null; try { Type t = this.getField(18, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-18: "INSURED'S DATE OF BIRTH" - creates it if necessary */ public DT getIn118_INSUREDSDATEOFBIRTH() { DT ret = null; try { Type t = this.getField(18, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-19: "INSURED'S ADDRESS" - creates it if necessary */ public AD getINSUREDSADDRESS() { AD ret = null; try { Type t = this.getField(19, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-19: "INSURED'S ADDRESS" - creates it if necessary */ public AD getIn119_INSUREDSADDRESS() { AD ret = null; try { Type t = this.getField(19, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-20: "ASSIGNMENT OF BENEFITS" - creates it if necessary */ public ID getASSIGNMENTOFBENEFITS() { ID ret = null; try { Type t = this.getField(20, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-20: "ASSIGNMENT OF BENEFITS" - creates it if necessary */ public ID getIn120_ASSIGNMENTOFBENEFITS() { ID ret = null; try { Type t = this.getField(20, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-21: "COORDINATION OF BENEFITS" - creates it if necessary */ public ID getCOORDINATIONOFBENEFITS() { ID ret = null; try { Type t = this.getField(21, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-21: "COORDINATION OF BENEFITS" - creates it if necessary */ public ID getIn121_COORDINATIONOFBENEFITS() { ID ret = null; try { Type t = this.getField(21, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-22: "COORD OF BEN. PRIORITY" - creates it if necessary */ public ST getCOORDOFBENPRIORITY() { ST ret = null; try { Type t = this.getField(22, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-22: "COORD OF BEN. PRIORITY" - creates it if necessary */ public ST getIn122_COORDOFBENPRIORITY() { ST ret = null; try { Type t = this.getField(22, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-23: "NOTICE OF ADMISSION CODE" - creates it if necessary */ public ID getNOTICEOFADMISSIONCODE() { ID ret = null; try { Type t = this.getField(23, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-23: "NOTICE OF ADMISSION CODE" - creates it if necessary */ public ID getIn123_NOTICEOFADMISSIONCODE() { ID ret = null; try { Type t = this.getField(23, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-24: "NOTICE OF ADMISSION DATE" - creates it if necessary */ public DT getNOTICEOFADMISSIONDATE() { DT ret = null; try { Type t = this.getField(24, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-24: "NOTICE OF ADMISSION DATE" - creates it if necessary */ public DT getIn124_NOTICEOFADMISSIONDATE() { DT ret = null; try { Type t = this.getField(24, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-25: "RPT OF ELIGIBILITY CODE" - creates it if necessary */ public ID getRPTOFELIGIBILITYCODE() { ID ret = null; try { Type t = this.getField(25, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-25: "RPT OF ELIGIBILITY CODE" - creates it if necessary */ public ID getIn125_RPTOFELIGIBILITYCODE() { ID ret = null; try { Type t = this.getField(25, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-26: "RPT OF ELIGIBILITY DATE" - creates it if necessary */ public DT getRPTOFELIGIBILITYDATE() { DT ret = null; try { Type t = this.getField(26, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-26: "RPT OF ELIGIBILITY DATE" - creates it if necessary */ public DT getIn126_RPTOFELIGIBILITYDATE() { DT ret = null; try { Type t = this.getField(26, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-27: "RELEASE INFORMATION CODE" - creates it if necessary */ public ID getRELEASEINFORMATIONCODE() { ID ret = null; try { Type t = this.getField(27, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-27: "RELEASE INFORMATION CODE" - creates it if necessary */ public ID getIn127_RELEASEINFORMATIONCODE() { ID ret = null; try { Type t = this.getField(27, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-28: "PRE-ADMIT CERT. (PAC)" - creates it if necessary */ public ST getPREADMITCERT() { ST ret = null; try { Type t = this.getField(28, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-28: "PRE-ADMIT CERT. (PAC)" - creates it if necessary */ public ST getIn128_PREADMITCERT() { ST ret = null; try { Type t = this.getField(28, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-29: "VERIFICATION DATE" - creates it if necessary */ public DT getVERIFICATIONDATE() { DT ret = null; try { Type t = this.getField(29, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-29: "VERIFICATION DATE" - creates it if necessary */ public DT getIn129_VERIFICATIONDATE() { DT ret = null; try { Type t = this.getField(29, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-30: "VERIFICATION BY" - creates it if necessary */ public CM getVERIFICATIONBY() { CM ret = null; try { Type t = this.getField(30, 0); ret = (CM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-30: "VERIFICATION BY" - creates it if necessary */ public CM getIn130_VERIFICATIONBY() { CM ret = null; try { Type t = this.getField(30, 0); ret = (CM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-31: "TYPE OF AGREEMENT CODE" - creates it if necessary */ public ID getTYPEOFAGREEMENTCODE() { ID ret = null; try { Type t = this.getField(31, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-31: "TYPE OF AGREEMENT CODE" - creates it if necessary */ public ID getIn131_TYPEOFAGREEMENTCODE() { ID ret = null; try { Type t = this.getField(31, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-32: "BILLING STATUS" - creates it if necessary */ public ID getBILLINGSTATUS() { ID ret = null; try { Type t = this.getField(32, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-32: "BILLING STATUS" - creates it if necessary */ public ID getIn132_BILLINGSTATUS() { ID ret = null; try { Type t = this.getField(32, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-33: "LIFETIME RESERVE DAYS" - creates it if necessary */ public NM getLIFETIMERESERVEDAYS() { NM ret = null; try { Type t = this.getField(33, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-33: "LIFETIME RESERVE DAYS" - creates it if necessary */ public NM getIn133_LIFETIMERESERVEDAYS() { NM ret = null; try { Type t = this.getField(33, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-34: "DELAY BEFORE L. R. DAY" - creates it if necessary */ public NM getDELAYBEFORELRDAY() { NM ret = null; try { Type t = this.getField(34, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-34: "DELAY BEFORE L. R. DAY" - creates it if necessary */ public NM getIn134_DELAYBEFORELRDAY() { NM ret = null; try { Type t = this.getField(34, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-35: "COMPANY PLAN CODE" - creates it if necessary */ public ST getCOMPANYPLANCODE() { ST ret = null; try { Type t = this.getField(35, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-35: "COMPANY PLAN CODE" - creates it if necessary */ public ST getIn135_COMPANYPLANCODE() { ST ret = null; try { Type t = this.getField(35, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-36: "POLICY NUMBER" - creates it if necessary */ public ST getPOLICYNUMBER() { ST ret = null; try { Type t = this.getField(36, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-36: "POLICY NUMBER" - creates it if necessary */ public ST getIn136_POLICYNUMBER() { ST ret = null; try { Type t = this.getField(36, 0); ret = (ST)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-37: "POLICY DEDUCTIBLE" - creates it if necessary */ public NM getPOLICYDEDUCTIBLE() { NM ret = null; try { Type t = this.getField(37, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-37: "POLICY DEDUCTIBLE" - creates it if necessary */ public NM getIn137_POLICYDEDUCTIBLE() { NM ret = null; try { Type t = this.getField(37, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-38: "POLICY LIMIT - AMOUNT" - creates it if necessary */ public NM getPOLICYLIMITAMOUNT() { NM ret = null; try { Type t = this.getField(38, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-38: "POLICY LIMIT - AMOUNT" - creates it if necessary */ public NM getIn138_POLICYLIMITAMOUNT() { NM ret = null; try { Type t = this.getField(38, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-39: "POLICY LIMIT - DAYS" - creates it if necessary */ public NM getPOLICYLIMITDAYS() { NM ret = null; try { Type t = this.getField(39, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-39: "POLICY LIMIT - DAYS" - creates it if necessary */ public NM getIn139_POLICYLIMITDAYS() { NM ret = null; try { Type t = this.getField(39, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-40: "ROOM RATE - SEMI-PRIVATE" - creates it if necessary */ public NM getROOMRATESEMIPRIVATE() { NM ret = null; try { Type t = this.getField(40, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-40: "ROOM RATE - SEMI-PRIVATE" - creates it if necessary */ public NM getIn140_ROOMRATESEMIPRIVATE() { NM ret = null; try { Type t = this.getField(40, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-41: "ROOM RATE - PRIVATE" - creates it if necessary */ public NM getROOMRATEPRIVATE() { NM ret = null; try { Type t = this.getField(41, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-41: "ROOM RATE - PRIVATE" - creates it if necessary */ public NM getIn141_ROOMRATEPRIVATE() { NM ret = null; try { Type t = this.getField(41, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-42: "INSURED'S EMPLOYMENT STATUS" - creates it if necessary */ public ID getINSUREDSEMPLOYMENTSTATUS() { ID ret = null; try { Type t = this.getField(42, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-42: "INSURED'S EMPLOYMENT STATUS" - creates it if necessary */ public ID getIn142_INSUREDSEMPLOYMENTSTATUS() { ID ret = null; try { Type t = this.getField(42, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-43: "INSURED'S SEX" - creates it if necessary */ public ID getINSUREDSSEX() { ID ret = null; try { Type t = this.getField(43, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-43: "INSURED'S SEX" - creates it if necessary */ public ID getIn143_INSUREDSSEX() { ID ret = null; try { Type t = this.getField(43, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-44: "INSURED'S EMPLOYER ADDRESS" - creates it if necessary */ public AD getINSUREDSEMPLOYERADDRESS() { AD ret = null; try { Type t = this.getField(44, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN1-44: "INSURED'S EMPLOYER ADDRESS" - creates it if necessary */ public AD getIn144_INSUREDSEMPLOYERADDRESS() { AD ret = null; try { Type t = this.getField(44, 0); ret = (AD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new ID(getMessage(), new Integer( 72 )); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new AD(getMessage()); case 5: return new PN(getMessage()); case 6: return new TN(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new ST(getMessage()); case 10: return new ST(getMessage()); case 11: return new DT(getMessage()); case 12: return new DT(getMessage()); case 13: return new ST(getMessage()); case 14: return new ID(getMessage(), new Integer( 86 )); case 15: return new PN(getMessage()); case 16: return new ID(getMessage(), new Integer( 63 )); case 17: return new DT(getMessage()); case 18: return new AD(getMessage()); case 19: return new ID(getMessage(), new Integer( 0 )); case 20: return new ID(getMessage(), new Integer( 0 )); case 21: return new ST(getMessage()); case 22: return new ID(getMessage(), new Integer( 81 )); case 23: return new DT(getMessage()); case 24: return new ID(getMessage(), new Integer( 94 )); case 25: return new DT(getMessage()); case 26: return new ID(getMessage(), new Integer( 93 )); case 27: return new ST(getMessage()); case 28: return new DT(getMessage()); case 29: return new CM(getMessage()); case 30: return new ID(getMessage(), new Integer( 98 )); case 31: return new ID(getMessage(), new Integer( 22 )); case 32: return new NM(getMessage()); case 33: return new NM(getMessage()); case 34: return new ST(getMessage()); case 35: return new ST(getMessage()); case 36: return new NM(getMessage()); case 37: return new NM(getMessage()); case 38: return new NM(getMessage()); case 39: return new NM(getMessage()); case 40: return new NM(getMessage()); case 41: return new ID(getMessage(), new Integer( 66 )); case 42: return new ID(getMessage(), new Integer( 1 )); case 43: return new AD(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy