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

ca.uhn.hl7v2.model.v26.segment.IN2 Maven / Gradle / Ivy

There is a newer version: 2.3
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.v26.segment;

// import ca.uhn.hl7v2.model.v26.group.*;
import ca.uhn.hl7v2.model.v26.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 IN2 message segment (Insurance Additional Information). * This segment has the following fields:

*
    *
  • IN2-1: Insured's Employee ID (CX) optional repeating *
  • IN2-2: Insured's Social Security Number (ST) optional *
  • IN2-3: Insured's Employer's Name and ID (XCN) optional repeating *
  • IN2-4: Employer Information Data (IS) optional *
  • IN2-5: Mail Claim Party (IS) optional repeating *
  • IN2-6: Medicare Health Ins Card Number (ST) optional *
  • IN2-7: Medicaid Case Name (XPN) optional repeating *
  • IN2-8: Medicaid Case Number (ST) optional *
  • IN2-9: Military Sponsor Name (XPN) optional repeating *
  • IN2-10: Military ID Number (ST) optional *
  • IN2-11: Dependent Of Military Recipient (CWE) optional *
  • IN2-12: Military Organization (ST) optional *
  • IN2-13: Military Station (ST) optional *
  • IN2-14: Military Service (IS) optional *
  • IN2-15: Military Rank/Grade (IS) optional *
  • IN2-16: Military Status (IS) optional *
  • IN2-17: Military Retire Date (DT) optional *
  • IN2-18: Military Non-Avail Cert On File (ID) optional *
  • IN2-19: Baby Coverage (ID) optional *
  • IN2-20: Combine Baby Bill (ID) optional *
  • IN2-21: Blood Deductible (ST) optional *
  • IN2-22: Special Coverage Approval Name (XPN) optional repeating *
  • IN2-23: Special Coverage Approval Title (ST) optional *
  • IN2-24: Non-Covered Insurance Code (IS) optional repeating *
  • IN2-25: Payor ID (CX) optional repeating *
  • IN2-26: Payor Subscriber ID (CX) optional repeating *
  • IN2-27: Eligibility Source (IS) optional *
  • IN2-28: Room Coverage Type/Amount (RMC) optional repeating *
  • IN2-29: Policy Type/Amount (PTA) optional repeating *
  • IN2-30: Daily Deductible (DDI) optional *
  • IN2-31: Living Dependency (IS) optional *
  • IN2-32: Ambulatory Status (IS) optional repeating *
  • IN2-33: Citizenship (CWE) optional repeating *
  • IN2-34: Primary Language (CWE) optional *
  • IN2-35: Living Arrangement (IS) optional *
  • IN2-36: Publicity Code (CWE) optional *
  • IN2-37: Protection Indicator (ID) optional *
  • IN2-38: Student Indicator (IS) optional *
  • IN2-39: Religion (CWE) optional *
  • IN2-40: Mother's Maiden Name (XPN) optional repeating *
  • IN2-41: Nationality (CWE) optional *
  • IN2-42: Ethnic Group (CWE) optional repeating *
  • IN2-43: Marital Status (CWE) optional repeating *
  • IN2-44: Insured's Employment Start Date (DT) optional *
  • IN2-45: Employment Stop Date (DT) optional *
  • IN2-46: Job Title (ST) optional *
  • IN2-47: Job Code/Class (JCC) optional *
  • IN2-48: Job Status (IS) optional *
  • IN2-49: Employer Contact Person Name (XPN) optional repeating *
  • IN2-50: Employer Contact Person Phone Number (XTN) optional repeating *
  • IN2-51: Employer Contact Reason (IS) optional *
  • IN2-52: Insured's Contact Person's Name (XPN) optional repeating *
  • IN2-53: Insured's Contact Person Phone Number (XTN) optional repeating *
  • IN2-54: Insured's Contact Person Reason (IS) optional repeating *
  • IN2-55: Relationship to the Patient Start Date (DT) optional *
  • IN2-56: Relationship to the Patient Stop Date (DT) optional repeating *
  • IN2-57: Insurance Co Contact Reason (IS) optional *
  • IN2-58: Insurance Co Contact Phone Number (XTN) optional repeating *
  • IN2-59: Policy Scope (IS) optional *
  • IN2-60: Policy Source (IS) optional *
  • IN2-61: Patient Member Number (CX) optional *
  • IN2-62: Guarantor's Relationship to Insured (CWE) optional *
  • IN2-63: Insured's Phone Number - Home (XTN) optional repeating *
  • IN2-64: Insured's Employer Phone Number (XTN) optional repeating *
  • IN2-65: Military Handicapped Program (CWE) optional *
  • IN2-66: Suspend Flag (ID) optional *
  • IN2-67: Copay Limit Flag (ID) optional *
  • IN2-68: Stoploss Limit Flag (ID) optional *
  • IN2-69: Insured Organization Name and ID (XON) optional repeating *
  • IN2-70: Insured Employer Organization Name and ID (XON) optional repeating *
  • IN2-71: Race (CWE) optional repeating *
  • IN2-72: Patient's Relationship to Insured (CWE) optional *
*/ public class IN2 extends AbstractSegment { /** * Creates a new IN2 segment */ public IN2(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); } private void init(ModelClassFactory factory) { try { this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employee ID"); this.add(ST.class, false, 1, 11, new Object[]{ getMessage(), new Integer(0) }, "Insured's Social Security Number"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employer's Name and ID"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Employer Information Data"); this.add(IS.class, false, 0, 1, new Object[]{ getMessage() }, "Mail Claim Party"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "Medicare Health Ins Card Number"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Medicaid Case Name"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "Medicaid Case Number"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Military Sponsor Name"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Military ID Number"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(342) }, "Dependent Of Military Recipient"); this.add(ST.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Military Organization"); this.add(ST.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Military Station"); this.add(IS.class, false, 1, 14, new Object[]{ getMessage() }, "Military Service"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Military Rank/Grade"); this.add(IS.class, false, 1, 3, new Object[]{ getMessage() }, "Military Status"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Military Retire Date"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Military Non-Avail Cert On File"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Baby Coverage"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Combine Baby Bill"); this.add(ST.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "Blood Deductible"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Special Coverage Approval Name"); this.add(ST.class, false, 1, 30, new Object[]{ getMessage(), new Integer(0) }, "Special Coverage Approval Title"); this.add(IS.class, false, 0, 8, new Object[]{ getMessage() }, "Non-Covered Insurance Code"); this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Payor ID"); this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Payor Subscriber ID"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Eligibility Source"); this.add(RMC.class, false, 0, 82, new Object[]{ getMessage(), new Integer(0) }, "Room Coverage Type/Amount"); this.add(PTA.class, false, 0, 56, new Object[]{ getMessage(), new Integer(0) }, "Policy Type/Amount"); this.add(DDI.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Daily Deductible"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Living Dependency"); this.add(IS.class, false, 0, 2, new Object[]{ getMessage() }, "Ambulatory Status"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(171) }, "Citizenship"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage(), new Integer(296) }, "Primary Language"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Living Arrangement"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage(), new Integer(215) }, "Publicity Code"); this.add(ID.class, false, 1, 0, new Object[]{ getMessage() }, "Protection Indicator"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Student Indicator"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage(), new Integer(6) }, "Religion"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Mother's Maiden Name"); this.add(CWE.class, false, 1, 0, new Object[]{ getMessage(), new Integer(212) }, "Nationality"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(2) }, "Marital Status"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employment Start Date"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Employment Stop Date"); this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Job Title"); this.add(JCC.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Job Code/Class"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Job Status"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Employer Contact Person Name"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Employer Contact Person Phone Number"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Employer Contact Reason"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Contact Person's Name"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Contact Person Phone Number"); this.add(IS.class, false, 0, 2, new Object[]{ getMessage() }, "Insured's Contact Person Reason"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Relationship to the Patient Start Date"); this.add(DT.class, false, 0, 8, new Object[]{ getMessage(), new Integer(0) }, "Relationship to the Patient Stop Date"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Insurance Co Contact Reason"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Co Contact Phone Number"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Policy Scope"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Policy Source"); this.add(CX.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Patient Member Number"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(63) }, "Guarantor's Relationship to Insured"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Phone Number - Home"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employer Phone Number"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(343) }, "Military Handicapped Program"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Suspend Flag"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Copay Limit Flag"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Stoploss Limit Flag"); this.add(XON.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured Organization Name and ID"); this.add(XON.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured Employer Organization Name and ID"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(5) }, "Race"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage(), new Integer(344) }, "Patient's Relationship to Insured"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating IN2 - this is probably a bug in the source code generator.", e); } } /** * Returns all repetitions of Insured's Employee ID (IN2-1). */ public CX[] getInsuredSEmployeeID() { CX[] ret = null; try { Type[] t = this.getField(1); ret = new CX[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CX)t[i]; } } 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 a count of the current number of repetitions of Insured's Employee ID (IN2-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSEmployeeIDReps() { CX[] ret = null; try { Type[] t = this.getField(1); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-1: "Insured's Employee ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getInsuredSEmployeeID(int rep) { CX ret = null; try { Type t = this.getField(1, rep); ret = (CX)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 a specific repetition of * IN2-1: "Insured's Employee ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getIn21_InsuredSEmployeeID(int rep) { CX ret = null; try { Type t = this.getField(1, rep); ret = (CX)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 a count of the current number of repetitions of Insured's Employee ID (IN2-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn21_InsuredSEmployeeIDReps() { CX[] ret = null; try { Type[] t = this.getField(1); return t.length; } 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); } } /** * Inserts a repetition of * IN2-1: "Insured's Employee ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertInsuredSEmployeeID(int rep) throws HL7Exception { return (CX) super.insertRepetition(1, rep); } /** * Inserts a repetition of * IN2-1: "Insured's Employee ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertIn21_InsuredSEmployeeID(int rep) throws HL7Exception { return (CX) super.insertRepetition(1, rep); } /** * Removes a repetition of * IN2-1: "Insured's Employee ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeInsuredSEmployeeID(int rep) throws HL7Exception { return (CX) super.removeRepetition(1, rep); } /** * Removes a repetition of * IN2-1: "Insured's Employee ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeIn21_InsuredSEmployeeID(int rep) throws HL7Exception { return (CX) super.removeRepetition(1, rep); } /** * Returns * IN2-2: "Insured's Social Security Number" - creates it if necessary */ public ST getInsuredSSocialSecurityNumber() { ST ret = null; try { Type t = this.getField(2, 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 * IN2-2: "Insured's Social Security Number" - creates it if necessary */ public ST getIn22_InsuredSSocialSecurityNumber() { ST ret = null; try { Type t = this.getField(2, 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 all repetitions of Insured's Employer's Name and ID (IN2-3). */ public XCN[] getInsuredSEmployerSNameAndID() { XCN[] ret = null; try { Type[] t = this.getField(3); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } 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 a count of the current number of repetitions of Insured's Employer's Name and ID (IN2-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSEmployerSNameAndIDReps() { XCN[] ret = null; try { Type[] t = this.getField(3); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-3: "Insured's Employer's Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getInsuredSEmployerSNameAndID(int rep) { XCN ret = null; try { Type t = this.getField(3, rep); ret = (XCN)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 a specific repetition of * IN2-3: "Insured's Employer's Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getIn23_InsuredSEmployerSNameAndID(int rep) { XCN ret = null; try { Type t = this.getField(3, rep); ret = (XCN)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 a count of the current number of repetitions of Insured's Employer's Name and ID (IN2-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn23_InsuredSEmployerSNameAndIDReps() { XCN[] ret = null; try { Type[] t = this.getField(3); return t.length; } 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); } } /** * Inserts a repetition of * IN2-3: "Insured's Employer's Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertInsuredSEmployerSNameAndID(int rep) throws HL7Exception { return (XCN) super.insertRepetition(3, rep); } /** * Inserts a repetition of * IN2-3: "Insured's Employer's Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertIn23_InsuredSEmployerSNameAndID(int rep) throws HL7Exception { return (XCN) super.insertRepetition(3, rep); } /** * Removes a repetition of * IN2-3: "Insured's Employer's Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeInsuredSEmployerSNameAndID(int rep) throws HL7Exception { return (XCN) super.removeRepetition(3, rep); } /** * Removes a repetition of * IN2-3: "Insured's Employer's Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeIn23_InsuredSEmployerSNameAndID(int rep) throws HL7Exception { return (XCN) super.removeRepetition(3, rep); } /** * Returns * IN2-4: "Employer Information Data" - creates it if necessary */ public IS getEmployerInformationData() { IS ret = null; try { Type t = this.getField(4, 0); ret = (IS)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 * IN2-4: "Employer Information Data" - creates it if necessary */ public IS getIn24_EmployerInformationData() { IS ret = null; try { Type t = this.getField(4, 0); ret = (IS)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 all repetitions of Mail Claim Party (IN2-5). */ public IS[] getMailClaimParty() { IS[] ret = null; try { Type[] t = this.getField(5); ret = new IS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (IS)t[i]; } } 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 a count of the current number of repetitions of Mail Claim Party (IN2-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getMailClaimPartyReps() { IS[] ret = null; try { Type[] t = this.getField(5); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-5: "Mail Claim Party" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getMailClaimParty(int rep) { IS ret = null; try { Type t = this.getField(5, rep); ret = (IS)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 a specific repetition of * IN2-5: "Mail Claim Party" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getIn25_MailClaimParty(int rep) { IS ret = null; try { Type t = this.getField(5, rep); ret = (IS)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 a count of the current number of repetitions of Mail Claim Party (IN2-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn25_MailClaimPartyReps() { IS[] ret = null; try { Type[] t = this.getField(5); return t.length; } 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); } } /** * Inserts a repetition of * IN2-5: "Mail Claim Party" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertMailClaimParty(int rep) throws HL7Exception { return (IS) super.insertRepetition(5, rep); } /** * Inserts a repetition of * IN2-5: "Mail Claim Party" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertIn25_MailClaimParty(int rep) throws HL7Exception { return (IS) super.insertRepetition(5, rep); } /** * Removes a repetition of * IN2-5: "Mail Claim Party" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeMailClaimParty(int rep) throws HL7Exception { return (IS) super.removeRepetition(5, rep); } /** * Removes a repetition of * IN2-5: "Mail Claim Party" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeIn25_MailClaimParty(int rep) throws HL7Exception { return (IS) super.removeRepetition(5, rep); } /** * Returns * IN2-6: "Medicare Health Ins Card Number" - creates it if necessary */ public ST getMedicareHealthInsCardNumber() { ST ret = null; try { Type t = this.getField(6, 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 * IN2-6: "Medicare Health Ins Card Number" - creates it if necessary */ public ST getIn26_MedicareHealthInsCardNumber() { ST ret = null; try { Type t = this.getField(6, 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 all repetitions of Medicaid Case Name (IN2-7). */ public XPN[] getMedicaidCaseName() { XPN[] ret = null; try { Type[] t = this.getField(7); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Medicaid Case Name (IN2-7). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getMedicaidCaseNameReps() { XPN[] ret = null; try { Type[] t = this.getField(7); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-7: "Medicaid Case Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getMedicaidCaseName(int rep) { XPN ret = null; try { Type t = this.getField(7, rep); ret = (XPN)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 a specific repetition of * IN2-7: "Medicaid Case Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn27_MedicaidCaseName(int rep) { XPN ret = null; try { Type t = this.getField(7, rep); ret = (XPN)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 a count of the current number of repetitions of Medicaid Case Name (IN2-7). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn27_MedicaidCaseNameReps() { XPN[] ret = null; try { Type[] t = this.getField(7); return t.length; } 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); } } /** * Inserts a repetition of * IN2-7: "Medicaid Case Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertMedicaidCaseName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(7, rep); } /** * Inserts a repetition of * IN2-7: "Medicaid Case Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn27_MedicaidCaseName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(7, rep); } /** * Removes a repetition of * IN2-7: "Medicaid Case Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeMedicaidCaseName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(7, rep); } /** * Removes a repetition of * IN2-7: "Medicaid Case Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn27_MedicaidCaseName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(7, rep); } /** * Returns * IN2-8: "Medicaid Case Number" - creates it if necessary */ public ST getMedicaidCaseNumber() { 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 * IN2-8: "Medicaid Case Number" - creates it if necessary */ public ST getIn28_MedicaidCaseNumber() { 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 all repetitions of Military Sponsor Name (IN2-9). */ public XPN[] getMilitarySponsorName() { XPN[] ret = null; try { Type[] t = this.getField(9); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Military Sponsor Name (IN2-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getMilitarySponsorNameReps() { XPN[] ret = null; try { Type[] t = this.getField(9); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-9: "Military Sponsor Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getMilitarySponsorName(int rep) { XPN ret = null; try { Type t = this.getField(9, rep); ret = (XPN)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 a specific repetition of * IN2-9: "Military Sponsor Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn29_MilitarySponsorName(int rep) { XPN ret = null; try { Type t = this.getField(9, rep); ret = (XPN)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 a count of the current number of repetitions of Military Sponsor Name (IN2-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn29_MilitarySponsorNameReps() { XPN[] ret = null; try { Type[] t = this.getField(9); return t.length; } 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); } } /** * Inserts a repetition of * IN2-9: "Military Sponsor Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertMilitarySponsorName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(9, rep); } /** * Inserts a repetition of * IN2-9: "Military Sponsor Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn29_MilitarySponsorName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(9, rep); } /** * Removes a repetition of * IN2-9: "Military Sponsor Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeMilitarySponsorName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(9, rep); } /** * Removes a repetition of * IN2-9: "Military Sponsor Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn29_MilitarySponsorName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(9, rep); } /** * Returns * IN2-10: "Military ID Number" - creates it if necessary */ public ST getMilitaryIDNumber() { 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 * IN2-10: "Military ID Number" - creates it if necessary */ public ST getIn210_MilitaryIDNumber() { 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 * IN2-11: "Dependent Of Military Recipient" - creates it if necessary */ public CWE getDependentOfMilitaryRecipient() { CWE ret = null; try { Type t = this.getField(11, 0); ret = (CWE)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 * IN2-11: "Dependent Of Military Recipient" - creates it if necessary */ public CWE getIn211_DependentOfMilitaryRecipient() { CWE ret = null; try { Type t = this.getField(11, 0); ret = (CWE)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 * IN2-12: "Military Organization" - creates it if necessary */ public ST getMilitaryOrganization() { ST ret = null; try { Type t = this.getField(12, 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 * IN2-12: "Military Organization" - creates it if necessary */ public ST getIn212_MilitaryOrganization() { ST ret = null; try { Type t = this.getField(12, 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 * IN2-13: "Military Station" - creates it if necessary */ public ST getMilitaryStation() { ST ret = null; try { Type t = this.getField(13, 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 * IN2-13: "Military Station" - creates it if necessary */ public ST getIn213_MilitaryStation() { ST ret = null; try { Type t = this.getField(13, 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 * IN2-14: "Military Service" - creates it if necessary */ public IS getMilitaryService() { IS ret = null; try { Type t = this.getField(14, 0); ret = (IS)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 * IN2-14: "Military Service" - creates it if necessary */ public IS getIn214_MilitaryService() { IS ret = null; try { Type t = this.getField(14, 0); ret = (IS)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 * IN2-15: "Military Rank/Grade" - creates it if necessary */ public IS getMilitaryRankGrade() { IS ret = null; try { Type t = this.getField(15, 0); ret = (IS)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 * IN2-15: "Military Rank/Grade" - creates it if necessary */ public IS getIn215_MilitaryRankGrade() { IS ret = null; try { Type t = this.getField(15, 0); ret = (IS)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 * IN2-16: "Military Status" - creates it if necessary */ public IS getMilitaryStatus() { IS ret = null; try { Type t = this.getField(16, 0); ret = (IS)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 * IN2-16: "Military Status" - creates it if necessary */ public IS getIn216_MilitaryStatus() { IS ret = null; try { Type t = this.getField(16, 0); ret = (IS)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 * IN2-17: "Military Retire Date" - creates it if necessary */ public DT getMilitaryRetireDate() { DT ret = null; try { Type t = this.getField(17, 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 * IN2-17: "Military Retire Date" - creates it if necessary */ public DT getIn217_MilitaryRetireDate() { DT ret = null; try { Type t = this.getField(17, 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 * IN2-18: "Military Non-Avail Cert On File" - creates it if necessary */ public ID getMilitaryNonAvailCertOnFile() { ID ret = null; try { Type t = this.getField(18, 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 * IN2-18: "Military Non-Avail Cert On File" - creates it if necessary */ public ID getIn218_MilitaryNonAvailCertOnFile() { ID ret = null; try { Type t = this.getField(18, 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 * IN2-19: "Baby Coverage" - creates it if necessary */ public ID getBabyCoverage() { ID ret = null; try { Type t = this.getField(19, 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 * IN2-19: "Baby Coverage" - creates it if necessary */ public ID getIn219_BabyCoverage() { ID ret = null; try { Type t = this.getField(19, 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 * IN2-20: "Combine Baby Bill" - creates it if necessary */ public ID getCombineBabyBill() { 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 * IN2-20: "Combine Baby Bill" - creates it if necessary */ public ID getIn220_CombineBabyBill() { 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 * IN2-21: "Blood Deductible" - creates it if necessary */ public ST getBloodDeductible() { ST ret = null; try { Type t = this.getField(21, 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 * IN2-21: "Blood Deductible" - creates it if necessary */ public ST getIn221_BloodDeductible() { ST ret = null; try { Type t = this.getField(21, 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 all repetitions of Special Coverage Approval Name (IN2-22). */ public XPN[] getSpecialCoverageApprovalName() { XPN[] ret = null; try { Type[] t = this.getField(22); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Special Coverage Approval Name (IN2-22). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getSpecialCoverageApprovalNameReps() { XPN[] ret = null; try { Type[] t = this.getField(22); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-22: "Special Coverage Approval Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getSpecialCoverageApprovalName(int rep) { XPN ret = null; try { Type t = this.getField(22, rep); ret = (XPN)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 a specific repetition of * IN2-22: "Special Coverage Approval Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn222_SpecialCoverageApprovalName(int rep) { XPN ret = null; try { Type t = this.getField(22, rep); ret = (XPN)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 a count of the current number of repetitions of Special Coverage Approval Name (IN2-22). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn222_SpecialCoverageApprovalNameReps() { XPN[] ret = null; try { Type[] t = this.getField(22); return t.length; } 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); } } /** * Inserts a repetition of * IN2-22: "Special Coverage Approval Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertSpecialCoverageApprovalName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(22, rep); } /** * Inserts a repetition of * IN2-22: "Special Coverage Approval Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn222_SpecialCoverageApprovalName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(22, rep); } /** * Removes a repetition of * IN2-22: "Special Coverage Approval Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeSpecialCoverageApprovalName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(22, rep); } /** * Removes a repetition of * IN2-22: "Special Coverage Approval Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn222_SpecialCoverageApprovalName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(22, rep); } /** * Returns * IN2-23: "Special Coverage Approval Title" - creates it if necessary */ public ST getSpecialCoverageApprovalTitle() { ST ret = null; try { Type t = this.getField(23, 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 * IN2-23: "Special Coverage Approval Title" - creates it if necessary */ public ST getIn223_SpecialCoverageApprovalTitle() { ST ret = null; try { Type t = this.getField(23, 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 all repetitions of Non-Covered Insurance Code (IN2-24). */ public IS[] getNonCoveredInsuranceCode() { IS[] ret = null; try { Type[] t = this.getField(24); ret = new IS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (IS)t[i]; } } 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 a count of the current number of repetitions of Non-Covered Insurance Code (IN2-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNonCoveredInsuranceCodeReps() { IS[] ret = null; try { Type[] t = this.getField(24); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-24: "Non-Covered Insurance Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getNonCoveredInsuranceCode(int rep) { IS ret = null; try { Type t = this.getField(24, rep); ret = (IS)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 a specific repetition of * IN2-24: "Non-Covered Insurance Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getIn224_NonCoveredInsuranceCode(int rep) { IS ret = null; try { Type t = this.getField(24, rep); ret = (IS)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 a count of the current number of repetitions of Non-Covered Insurance Code (IN2-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn224_NonCoveredInsuranceCodeReps() { IS[] ret = null; try { Type[] t = this.getField(24); return t.length; } 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); } } /** * Inserts a repetition of * IN2-24: "Non-Covered Insurance Code" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertNonCoveredInsuranceCode(int rep) throws HL7Exception { return (IS) super.insertRepetition(24, rep); } /** * Inserts a repetition of * IN2-24: "Non-Covered Insurance Code" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception { return (IS) super.insertRepetition(24, rep); } /** * Removes a repetition of * IN2-24: "Non-Covered Insurance Code" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeNonCoveredInsuranceCode(int rep) throws HL7Exception { return (IS) super.removeRepetition(24, rep); } /** * Removes a repetition of * IN2-24: "Non-Covered Insurance Code" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception { return (IS) super.removeRepetition(24, rep); } /** * Returns all repetitions of Payor ID (IN2-25). */ public CX[] getPayorID() { CX[] ret = null; try { Type[] t = this.getField(25); ret = new CX[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CX)t[i]; } } 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 a count of the current number of repetitions of Payor ID (IN2-25). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPayorIDReps() { CX[] ret = null; try { Type[] t = this.getField(25); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-25: "Payor ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getPayorID(int rep) { CX ret = null; try { Type t = this.getField(25, rep); ret = (CX)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 a specific repetition of * IN2-25: "Payor ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getIn225_PayorID(int rep) { CX ret = null; try { Type t = this.getField(25, rep); ret = (CX)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 a count of the current number of repetitions of Payor ID (IN2-25). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn225_PayorIDReps() { CX[] ret = null; try { Type[] t = this.getField(25); return t.length; } 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); } } /** * Inserts a repetition of * IN2-25: "Payor ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertPayorID(int rep) throws HL7Exception { return (CX) super.insertRepetition(25, rep); } /** * Inserts a repetition of * IN2-25: "Payor ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertIn225_PayorID(int rep) throws HL7Exception { return (CX) super.insertRepetition(25, rep); } /** * Removes a repetition of * IN2-25: "Payor ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removePayorID(int rep) throws HL7Exception { return (CX) super.removeRepetition(25, rep); } /** * Removes a repetition of * IN2-25: "Payor ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeIn225_PayorID(int rep) throws HL7Exception { return (CX) super.removeRepetition(25, rep); } /** * Returns all repetitions of Payor Subscriber ID (IN2-26). */ public CX[] getPayorSubscriberID() { CX[] ret = null; try { Type[] t = this.getField(26); ret = new CX[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CX)t[i]; } } 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 a count of the current number of repetitions of Payor Subscriber ID (IN2-26). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPayorSubscriberIDReps() { CX[] ret = null; try { Type[] t = this.getField(26); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-26: "Payor Subscriber ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getPayorSubscriberID(int rep) { CX ret = null; try { Type t = this.getField(26, rep); ret = (CX)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 a specific repetition of * IN2-26: "Payor Subscriber ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getIn226_PayorSubscriberID(int rep) { CX ret = null; try { Type t = this.getField(26, rep); ret = (CX)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 a count of the current number of repetitions of Payor Subscriber ID (IN2-26). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn226_PayorSubscriberIDReps() { CX[] ret = null; try { Type[] t = this.getField(26); return t.length; } 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); } } /** * Inserts a repetition of * IN2-26: "Payor Subscriber ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertPayorSubscriberID(int rep) throws HL7Exception { return (CX) super.insertRepetition(26, rep); } /** * Inserts a repetition of * IN2-26: "Payor Subscriber ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertIn226_PayorSubscriberID(int rep) throws HL7Exception { return (CX) super.insertRepetition(26, rep); } /** * Removes a repetition of * IN2-26: "Payor Subscriber ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removePayorSubscriberID(int rep) throws HL7Exception { return (CX) super.removeRepetition(26, rep); } /** * Removes a repetition of * IN2-26: "Payor Subscriber ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeIn226_PayorSubscriberID(int rep) throws HL7Exception { return (CX) super.removeRepetition(26, rep); } /** * Returns * IN2-27: "Eligibility Source" - creates it if necessary */ public IS getEligibilitySource() { IS ret = null; try { Type t = this.getField(27, 0); ret = (IS)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 * IN2-27: "Eligibility Source" - creates it if necessary */ public IS getIn227_EligibilitySource() { IS ret = null; try { Type t = this.getField(27, 0); ret = (IS)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 all repetitions of Room Coverage Type/Amount (IN2-28). */ public RMC[] getRoomCoverageTypeAmount() { RMC[] ret = null; try { Type[] t = this.getField(28); ret = new RMC[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (RMC)t[i]; } } 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 a count of the current number of repetitions of Room Coverage Type/Amount (IN2-28). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRoomCoverageTypeAmountReps() { RMC[] ret = null; try { Type[] t = this.getField(28); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-28: "Room Coverage Type/Amount" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public RMC getRoomCoverageTypeAmount(int rep) { RMC ret = null; try { Type t = this.getField(28, rep); ret = (RMC)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 a specific repetition of * IN2-28: "Room Coverage Type/Amount" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public RMC getIn228_RoomCoverageTypeAmount(int rep) { RMC ret = null; try { Type t = this.getField(28, rep); ret = (RMC)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 a count of the current number of repetitions of Room Coverage Type/Amount (IN2-28). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn228_RoomCoverageTypeAmountReps() { RMC[] ret = null; try { Type[] t = this.getField(28); return t.length; } 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); } } /** * Inserts a repetition of * IN2-28: "Room Coverage Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public RMC insertRoomCoverageTypeAmount(int rep) throws HL7Exception { return (RMC) super.insertRepetition(28, rep); } /** * Inserts a repetition of * IN2-28: "Room Coverage Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public RMC insertIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception { return (RMC) super.insertRepetition(28, rep); } /** * Removes a repetition of * IN2-28: "Room Coverage Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public RMC removeRoomCoverageTypeAmount(int rep) throws HL7Exception { return (RMC) super.removeRepetition(28, rep); } /** * Removes a repetition of * IN2-28: "Room Coverage Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public RMC removeIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception { return (RMC) super.removeRepetition(28, rep); } /** * Returns all repetitions of Policy Type/Amount (IN2-29). */ public PTA[] getPolicyTypeAmount() { PTA[] ret = null; try { Type[] t = this.getField(29); ret = new PTA[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (PTA)t[i]; } } 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 a count of the current number of repetitions of Policy Type/Amount (IN2-29). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPolicyTypeAmountReps() { PTA[] ret = null; try { Type[] t = this.getField(29); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-29: "Policy Type/Amount" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PTA getPolicyTypeAmount(int rep) { PTA ret = null; try { Type t = this.getField(29, rep); ret = (PTA)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 a specific repetition of * IN2-29: "Policy Type/Amount" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PTA getIn229_PolicyTypeAmount(int rep) { PTA ret = null; try { Type t = this.getField(29, rep); ret = (PTA)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 a count of the current number of repetitions of Policy Type/Amount (IN2-29). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn229_PolicyTypeAmountReps() { PTA[] ret = null; try { Type[] t = this.getField(29); return t.length; } 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); } } /** * Inserts a repetition of * IN2-29: "Policy Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public PTA insertPolicyTypeAmount(int rep) throws HL7Exception { return (PTA) super.insertRepetition(29, rep); } /** * Inserts a repetition of * IN2-29: "Policy Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public PTA insertIn229_PolicyTypeAmount(int rep) throws HL7Exception { return (PTA) super.insertRepetition(29, rep); } /** * Removes a repetition of * IN2-29: "Policy Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public PTA removePolicyTypeAmount(int rep) throws HL7Exception { return (PTA) super.removeRepetition(29, rep); } /** * Removes a repetition of * IN2-29: "Policy Type/Amount" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public PTA removeIn229_PolicyTypeAmount(int rep) throws HL7Exception { return (PTA) super.removeRepetition(29, rep); } /** * Returns * IN2-30: "Daily Deductible" - creates it if necessary */ public DDI getDailyDeductible() { DDI ret = null; try { Type t = this.getField(30, 0); ret = (DDI)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 * IN2-30: "Daily Deductible" - creates it if necessary */ public DDI getIn230_DailyDeductible() { DDI ret = null; try { Type t = this.getField(30, 0); ret = (DDI)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 * IN2-31: "Living Dependency" - creates it if necessary */ public IS getLivingDependency() { IS ret = null; try { Type t = this.getField(31, 0); ret = (IS)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 * IN2-31: "Living Dependency" - creates it if necessary */ public IS getIn231_LivingDependency() { IS ret = null; try { Type t = this.getField(31, 0); ret = (IS)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 all repetitions of Ambulatory Status (IN2-32). */ public IS[] getAmbulatoryStatus() { IS[] ret = null; try { Type[] t = this.getField(32); ret = new IS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (IS)t[i]; } } 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 a count of the current number of repetitions of Ambulatory Status (IN2-32). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAmbulatoryStatusReps() { IS[] ret = null; try { Type[] t = this.getField(32); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-32: "Ambulatory Status" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getAmbulatoryStatus(int rep) { IS ret = null; try { Type t = this.getField(32, rep); ret = (IS)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 a specific repetition of * IN2-32: "Ambulatory Status" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getIn232_AmbulatoryStatus(int rep) { IS ret = null; try { Type t = this.getField(32, rep); ret = (IS)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 a count of the current number of repetitions of Ambulatory Status (IN2-32). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn232_AmbulatoryStatusReps() { IS[] ret = null; try { Type[] t = this.getField(32); return t.length; } 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); } } /** * Inserts a repetition of * IN2-32: "Ambulatory Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertAmbulatoryStatus(int rep) throws HL7Exception { return (IS) super.insertRepetition(32, rep); } /** * Inserts a repetition of * IN2-32: "Ambulatory Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertIn232_AmbulatoryStatus(int rep) throws HL7Exception { return (IS) super.insertRepetition(32, rep); } /** * Removes a repetition of * IN2-32: "Ambulatory Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeAmbulatoryStatus(int rep) throws HL7Exception { return (IS) super.removeRepetition(32, rep); } /** * Removes a repetition of * IN2-32: "Ambulatory Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeIn232_AmbulatoryStatus(int rep) throws HL7Exception { return (IS) super.removeRepetition(32, rep); } /** * Returns all repetitions of Citizenship (IN2-33). */ public CWE[] getCitizenship() { CWE[] ret = null; try { Type[] t = this.getField(33); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } 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 a count of the current number of repetitions of Citizenship (IN2-33). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCitizenshipReps() { CWE[] ret = null; try { Type[] t = this.getField(33); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-33: "Citizenship" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getCitizenship(int rep) { CWE ret = null; try { Type t = this.getField(33, rep); ret = (CWE)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 a specific repetition of * IN2-33: "Citizenship" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getIn233_Citizenship(int rep) { CWE ret = null; try { Type t = this.getField(33, rep); ret = (CWE)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 a count of the current number of repetitions of Citizenship (IN2-33). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn233_CitizenshipReps() { CWE[] ret = null; try { Type[] t = this.getField(33); return t.length; } 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); } } /** * Inserts a repetition of * IN2-33: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertCitizenship(int rep) throws HL7Exception { return (CWE) super.insertRepetition(33, rep); } /** * Inserts a repetition of * IN2-33: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertIn233_Citizenship(int rep) throws HL7Exception { return (CWE) super.insertRepetition(33, rep); } /** * Removes a repetition of * IN2-33: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeCitizenship(int rep) throws HL7Exception { return (CWE) super.removeRepetition(33, rep); } /** * Removes a repetition of * IN2-33: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeIn233_Citizenship(int rep) throws HL7Exception { return (CWE) super.removeRepetition(33, rep); } /** * Returns * IN2-34: "Primary Language" - creates it if necessary */ public CWE getPrimaryLanguage() { CWE ret = null; try { Type t = this.getField(34, 0); ret = (CWE)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 * IN2-34: "Primary Language" - creates it if necessary */ public CWE getIn234_PrimaryLanguage() { CWE ret = null; try { Type t = this.getField(34, 0); ret = (CWE)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 * IN2-35: "Living Arrangement" - creates it if necessary */ public IS getLivingArrangement() { IS ret = null; try { Type t = this.getField(35, 0); ret = (IS)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 * IN2-35: "Living Arrangement" - creates it if necessary */ public IS getIn235_LivingArrangement() { IS ret = null; try { Type t = this.getField(35, 0); ret = (IS)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 * IN2-36: "Publicity Code" - creates it if necessary */ public CWE getPublicityCode() { CWE ret = null; try { Type t = this.getField(36, 0); ret = (CWE)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 * IN2-36: "Publicity Code" - creates it if necessary */ public CWE getIn236_PublicityCode() { CWE ret = null; try { Type t = this.getField(36, 0); ret = (CWE)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 * IN2-37: "Protection Indicator" - creates it if necessary */ public ID getProtectionIndicator() { ID ret = null; try { Type t = this.getField(37, 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 * IN2-37: "Protection Indicator" - creates it if necessary */ public ID getIn237_ProtectionIndicator() { ID ret = null; try { Type t = this.getField(37, 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 * IN2-38: "Student Indicator" - creates it if necessary */ public IS getStudentIndicator() { IS ret = null; try { Type t = this.getField(38, 0); ret = (IS)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 * IN2-38: "Student Indicator" - creates it if necessary */ public IS getIn238_StudentIndicator() { IS ret = null; try { Type t = this.getField(38, 0); ret = (IS)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 * IN2-39: "Religion" - creates it if necessary */ public CWE getReligion() { CWE ret = null; try { Type t = this.getField(39, 0); ret = (CWE)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 * IN2-39: "Religion" - creates it if necessary */ public CWE getIn239_Religion() { CWE ret = null; try { Type t = this.getField(39, 0); ret = (CWE)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 all repetitions of Mother's Maiden Name (IN2-40). */ public XPN[] getMotherSMaidenName() { XPN[] ret = null; try { Type[] t = this.getField(40); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Mother's Maiden Name (IN2-40). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getMotherSMaidenNameReps() { XPN[] ret = null; try { Type[] t = this.getField(40); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-40: "Mother's Maiden Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getMotherSMaidenName(int rep) { XPN ret = null; try { Type t = this.getField(40, rep); ret = (XPN)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 a specific repetition of * IN2-40: "Mother's Maiden Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn240_MotherSMaidenName(int rep) { XPN ret = null; try { Type t = this.getField(40, rep); ret = (XPN)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 a count of the current number of repetitions of Mother's Maiden Name (IN2-40). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn240_MotherSMaidenNameReps() { XPN[] ret = null; try { Type[] t = this.getField(40); return t.length; } 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); } } /** * Inserts a repetition of * IN2-40: "Mother's Maiden Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertMotherSMaidenName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(40, rep); } /** * Inserts a repetition of * IN2-40: "Mother's Maiden Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn240_MotherSMaidenName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(40, rep); } /** * Removes a repetition of * IN2-40: "Mother's Maiden Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeMotherSMaidenName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(40, rep); } /** * Removes a repetition of * IN2-40: "Mother's Maiden Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn240_MotherSMaidenName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(40, rep); } /** * Returns * IN2-41: "Nationality" - creates it if necessary */ public CWE getNationality() { CWE ret = null; try { Type t = this.getField(41, 0); ret = (CWE)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 * IN2-41: "Nationality" - creates it if necessary */ public CWE getIn241_Nationality() { CWE ret = null; try { Type t = this.getField(41, 0); ret = (CWE)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 all repetitions of Ethnic Group (IN2-42). */ public CWE[] getEthnicGroup() { CWE[] ret = null; try { Type[] t = this.getField(42); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } 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 a count of the current number of repetitions of Ethnic Group (IN2-42). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEthnicGroupReps() { CWE[] ret = null; try { Type[] t = this.getField(42); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-42: "Ethnic Group" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getEthnicGroup(int rep) { CWE ret = null; try { Type t = this.getField(42, rep); ret = (CWE)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 a specific repetition of * IN2-42: "Ethnic Group" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getIn242_EthnicGroup(int rep) { CWE ret = null; try { Type t = this.getField(42, rep); ret = (CWE)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 a count of the current number of repetitions of Ethnic Group (IN2-42). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn242_EthnicGroupReps() { CWE[] ret = null; try { Type[] t = this.getField(42); return t.length; } 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); } } /** * Inserts a repetition of * IN2-42: "Ethnic Group" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertEthnicGroup(int rep) throws HL7Exception { return (CWE) super.insertRepetition(42, rep); } /** * Inserts a repetition of * IN2-42: "Ethnic Group" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertIn242_EthnicGroup(int rep) throws HL7Exception { return (CWE) super.insertRepetition(42, rep); } /** * Removes a repetition of * IN2-42: "Ethnic Group" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeEthnicGroup(int rep) throws HL7Exception { return (CWE) super.removeRepetition(42, rep); } /** * Removes a repetition of * IN2-42: "Ethnic Group" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeIn242_EthnicGroup(int rep) throws HL7Exception { return (CWE) super.removeRepetition(42, rep); } /** * Returns all repetitions of Marital Status (IN2-43). */ public CWE[] getMaritalStatus() { CWE[] ret = null; try { Type[] t = this.getField(43); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } 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 a count of the current number of repetitions of Marital Status (IN2-43). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getMaritalStatusReps() { CWE[] ret = null; try { Type[] t = this.getField(43); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-43: "Marital Status" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getMaritalStatus(int rep) { CWE ret = null; try { Type t = this.getField(43, rep); ret = (CWE)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 a specific repetition of * IN2-43: "Marital Status" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getIn243_MaritalStatus(int rep) { CWE ret = null; try { Type t = this.getField(43, rep); ret = (CWE)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 a count of the current number of repetitions of Marital Status (IN2-43). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn243_MaritalStatusReps() { CWE[] ret = null; try { Type[] t = this.getField(43); return t.length; } 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); } } /** * Inserts a repetition of * IN2-43: "Marital Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertMaritalStatus(int rep) throws HL7Exception { return (CWE) super.insertRepetition(43, rep); } /** * Inserts a repetition of * IN2-43: "Marital Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertIn243_MaritalStatus(int rep) throws HL7Exception { return (CWE) super.insertRepetition(43, rep); } /** * Removes a repetition of * IN2-43: "Marital Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeMaritalStatus(int rep) throws HL7Exception { return (CWE) super.removeRepetition(43, rep); } /** * Removes a repetition of * IN2-43: "Marital Status" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeIn243_MaritalStatus(int rep) throws HL7Exception { return (CWE) super.removeRepetition(43, rep); } /** * Returns * IN2-44: "Insured's Employment Start Date" - creates it if necessary */ public DT getInsuredSEmploymentStartDate() { DT ret = null; try { Type t = this.getField(44, 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 * IN2-44: "Insured's Employment Start Date" - creates it if necessary */ public DT getIn244_InsuredSEmploymentStartDate() { DT ret = null; try { Type t = this.getField(44, 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 * IN2-45: "Employment Stop Date" - creates it if necessary */ public DT getEmploymentStopDate() { DT ret = null; try { Type t = this.getField(45, 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 * IN2-45: "Employment Stop Date" - creates it if necessary */ public DT getIn245_EmploymentStopDate() { DT ret = null; try { Type t = this.getField(45, 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 * IN2-46: "Job Title" - creates it if necessary */ public ST getJobTitle() { ST ret = null; try { Type t = this.getField(46, 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 * IN2-46: "Job Title" - creates it if necessary */ public ST getIn246_JobTitle() { ST ret = null; try { Type t = this.getField(46, 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 * IN2-47: "Job Code/Class" - creates it if necessary */ public JCC getJobCodeClass() { JCC ret = null; try { Type t = this.getField(47, 0); ret = (JCC)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 * IN2-47: "Job Code/Class" - creates it if necessary */ public JCC getIn247_JobCodeClass() { JCC ret = null; try { Type t = this.getField(47, 0); ret = (JCC)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 * IN2-48: "Job Status" - creates it if necessary */ public IS getJobStatus() { IS ret = null; try { Type t = this.getField(48, 0); ret = (IS)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 * IN2-48: "Job Status" - creates it if necessary */ public IS getIn248_JobStatus() { IS ret = null; try { Type t = this.getField(48, 0); ret = (IS)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 all repetitions of Employer Contact Person Name (IN2-49). */ public XPN[] getEmployerContactPersonName() { XPN[] ret = null; try { Type[] t = this.getField(49); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Employer Contact Person Name (IN2-49). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEmployerContactPersonNameReps() { XPN[] ret = null; try { Type[] t = this.getField(49); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-49: "Employer Contact Person Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getEmployerContactPersonName(int rep) { XPN ret = null; try { Type t = this.getField(49, rep); ret = (XPN)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 a specific repetition of * IN2-49: "Employer Contact Person Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn249_EmployerContactPersonName(int rep) { XPN ret = null; try { Type t = this.getField(49, rep); ret = (XPN)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 a count of the current number of repetitions of Employer Contact Person Name (IN2-49). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn249_EmployerContactPersonNameReps() { XPN[] ret = null; try { Type[] t = this.getField(49); return t.length; } 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); } } /** * Inserts a repetition of * IN2-49: "Employer Contact Person Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertEmployerContactPersonName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(49, rep); } /** * Inserts a repetition of * IN2-49: "Employer Contact Person Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn249_EmployerContactPersonName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(49, rep); } /** * Removes a repetition of * IN2-49: "Employer Contact Person Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeEmployerContactPersonName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(49, rep); } /** * Removes a repetition of * IN2-49: "Employer Contact Person Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn249_EmployerContactPersonName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(49, rep); } /** * Returns all repetitions of Employer Contact Person Phone Number (IN2-50). */ public XTN[] getEmployerContactPersonPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(50); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } 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 a count of the current number of repetitions of Employer Contact Person Phone Number (IN2-50). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEmployerContactPersonPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(50); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-50: "Employer Contact Person Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getEmployerContactPersonPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(50, rep); ret = (XTN)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 a specific repetition of * IN2-50: "Employer Contact Person Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn250_EmployerContactPersonPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(50, rep); ret = (XTN)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 a count of the current number of repetitions of Employer Contact Person Phone Number (IN2-50). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn250_EmployerContactPersonPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(50); return t.length; } 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); } } /** * Inserts a repetition of * IN2-50: "Employer Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertEmployerContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(50, rep); } /** * Inserts a repetition of * IN2-50: "Employer Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertIn250_EmployerContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(50, rep); } /** * Removes a repetition of * IN2-50: "Employer Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeEmployerContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(50, rep); } /** * Removes a repetition of * IN2-50: "Employer Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeIn250_EmployerContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(50, rep); } /** * Returns * IN2-51: "Employer Contact Reason" - creates it if necessary */ public IS getEmployerContactReason() { IS ret = null; try { Type t = this.getField(51, 0); ret = (IS)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 * IN2-51: "Employer Contact Reason" - creates it if necessary */ public IS getIn251_EmployerContactReason() { IS ret = null; try { Type t = this.getField(51, 0); ret = (IS)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 all repetitions of Insured's Contact Person's Name (IN2-52). */ public XPN[] getInsuredSContactPersonSName() { XPN[] ret = null; try { Type[] t = this.getField(52); ret = new XPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XPN)t[i]; } } 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 a count of the current number of repetitions of Insured's Contact Person's Name (IN2-52). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSContactPersonSNameReps() { XPN[] ret = null; try { Type[] t = this.getField(52); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-52: "Insured's Contact Person's Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getInsuredSContactPersonSName(int rep) { XPN ret = null; try { Type t = this.getField(52, rep); ret = (XPN)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 a specific repetition of * IN2-52: "Insured's Contact Person's Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getIn252_InsuredSContactPersonSName(int rep) { XPN ret = null; try { Type t = this.getField(52, rep); ret = (XPN)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 a count of the current number of repetitions of Insured's Contact Person's Name (IN2-52). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn252_InsuredSContactPersonSNameReps() { XPN[] ret = null; try { Type[] t = this.getField(52); return t.length; } 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); } } /** * Inserts a repetition of * IN2-52: "Insured's Contact Person's Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertInsuredSContactPersonSName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(52, rep); } /** * Inserts a repetition of * IN2-52: "Insured's Contact Person's Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN insertIn252_InsuredSContactPersonSName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(52, rep); } /** * Removes a repetition of * IN2-52: "Insured's Contact Person's Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeInsuredSContactPersonSName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(52, rep); } /** * Removes a repetition of * IN2-52: "Insured's Contact Person's Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XPN removeIn252_InsuredSContactPersonSName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(52, rep); } /** * Returns all repetitions of Insured's Contact Person Phone Number (IN2-53). */ public XTN[] getInsuredSContactPersonPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(53); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } 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 a count of the current number of repetitions of Insured's Contact Person Phone Number (IN2-53). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSContactPersonPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(53); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-53: "Insured's Contact Person Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getInsuredSContactPersonPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(53, rep); ret = (XTN)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 a specific repetition of * IN2-53: "Insured's Contact Person Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn253_InsuredSContactPersonPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(53, rep); ret = (XTN)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 a count of the current number of repetitions of Insured's Contact Person Phone Number (IN2-53). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn253_InsuredSContactPersonPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(53); return t.length; } 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); } } /** * Inserts a repetition of * IN2-53: "Insured's Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertInsuredSContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(53, rep); } /** * Inserts a repetition of * IN2-53: "Insured's Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertIn253_InsuredSContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(53, rep); } /** * Removes a repetition of * IN2-53: "Insured's Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeInsuredSContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(53, rep); } /** * Removes a repetition of * IN2-53: "Insured's Contact Person Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeIn253_InsuredSContactPersonPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(53, rep); } /** * Returns all repetitions of Insured's Contact Person Reason (IN2-54). */ public IS[] getInsuredSContactPersonReason() { IS[] ret = null; try { Type[] t = this.getField(54); ret = new IS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (IS)t[i]; } } 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 a count of the current number of repetitions of Insured's Contact Person Reason (IN2-54). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSContactPersonReasonReps() { IS[] ret = null; try { Type[] t = this.getField(54); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-54: "Insured's Contact Person Reason" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getInsuredSContactPersonReason(int rep) { IS ret = null; try { Type t = this.getField(54, rep); ret = (IS)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 a specific repetition of * IN2-54: "Insured's Contact Person Reason" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getIn254_InsuredSContactPersonReason(int rep) { IS ret = null; try { Type t = this.getField(54, rep); ret = (IS)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 a count of the current number of repetitions of Insured's Contact Person Reason (IN2-54). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn254_InsuredSContactPersonReasonReps() { IS[] ret = null; try { Type[] t = this.getField(54); return t.length; } 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); } } /** * Inserts a repetition of * IN2-54: "Insured's Contact Person Reason" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertInsuredSContactPersonReason(int rep) throws HL7Exception { return (IS) super.insertRepetition(54, rep); } /** * Inserts a repetition of * IN2-54: "Insured's Contact Person Reason" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS insertIn254_InsuredSContactPersonReason(int rep) throws HL7Exception { return (IS) super.insertRepetition(54, rep); } /** * Removes a repetition of * IN2-54: "Insured's Contact Person Reason" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeInsuredSContactPersonReason(int rep) throws HL7Exception { return (IS) super.removeRepetition(54, rep); } /** * Removes a repetition of * IN2-54: "Insured's Contact Person Reason" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public IS removeIn254_InsuredSContactPersonReason(int rep) throws HL7Exception { return (IS) super.removeRepetition(54, rep); } /** * Returns * IN2-55: "Relationship to the Patient Start Date" - creates it if necessary */ public DT getRelationshipToThePatientStartDate() { DT ret = null; try { Type t = this.getField(55, 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 * IN2-55: "Relationship to the Patient Start Date" - creates it if necessary */ public DT getIn255_RelationshipToThePatientStartDate() { DT ret = null; try { Type t = this.getField(55, 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 all repetitions of Relationship to the Patient Stop Date (IN2-56). */ public DT[] getRelationshipToThePatientStopDate() { DT[] ret = null; try { Type[] t = this.getField(56); ret = new DT[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (DT)t[i]; } } 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 a count of the current number of repetitions of Relationship to the Patient Stop Date (IN2-56). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRelationshipToThePatientStopDateReps() { DT[] ret = null; try { Type[] t = this.getField(56); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-56: "Relationship to the Patient Stop Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DT getRelationshipToThePatientStopDate(int rep) { DT ret = null; try { Type t = this.getField(56, rep); 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 a specific repetition of * IN2-56: "Relationship to the Patient Stop Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DT getIn256_RelationshipToThePatientStopDate(int rep) { DT ret = null; try { Type t = this.getField(56, rep); 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 a count of the current number of repetitions of Relationship to the Patient Stop Date (IN2-56). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn256_RelationshipToThePatientStopDateReps() { DT[] ret = null; try { Type[] t = this.getField(56); return t.length; } 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); } } /** * Inserts a repetition of * IN2-56: "Relationship to the Patient Stop Date" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public DT insertRelationshipToThePatientStopDate(int rep) throws HL7Exception { return (DT) super.insertRepetition(56, rep); } /** * Inserts a repetition of * IN2-56: "Relationship to the Patient Stop Date" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public DT insertIn256_RelationshipToThePatientStopDate(int rep) throws HL7Exception { return (DT) super.insertRepetition(56, rep); } /** * Removes a repetition of * IN2-56: "Relationship to the Patient Stop Date" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public DT removeRelationshipToThePatientStopDate(int rep) throws HL7Exception { return (DT) super.removeRepetition(56, rep); } /** * Removes a repetition of * IN2-56: "Relationship to the Patient Stop Date" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public DT removeIn256_RelationshipToThePatientStopDate(int rep) throws HL7Exception { return (DT) super.removeRepetition(56, rep); } /** * Returns * IN2-57: "Insurance Co Contact Reason" - creates it if necessary */ public IS getInsuranceCoContactReason() { IS ret = null; try { Type t = this.getField(57, 0); ret = (IS)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 * IN2-57: "Insurance Co Contact Reason" - creates it if necessary */ public IS getIn257_InsuranceCoContactReason() { IS ret = null; try { Type t = this.getField(57, 0); ret = (IS)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 all repetitions of Insurance Co Contact Phone Number (IN2-58). */ public XTN[] getInsuranceCoContactPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(58); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } 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 a count of the current number of repetitions of Insurance Co Contact Phone Number (IN2-58). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuranceCoContactPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(58); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-58: "Insurance Co Contact Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getInsuranceCoContactPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(58, rep); ret = (XTN)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 a specific repetition of * IN2-58: "Insurance Co Contact Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn258_InsuranceCoContactPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(58, rep); ret = (XTN)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 a count of the current number of repetitions of Insurance Co Contact Phone Number (IN2-58). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn258_InsuranceCoContactPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(58); return t.length; } 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); } } /** * Inserts a repetition of * IN2-58: "Insurance Co Contact Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertInsuranceCoContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(58, rep); } /** * Inserts a repetition of * IN2-58: "Insurance Co Contact Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertIn258_InsuranceCoContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(58, rep); } /** * Removes a repetition of * IN2-58: "Insurance Co Contact Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeInsuranceCoContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(58, rep); } /** * Removes a repetition of * IN2-58: "Insurance Co Contact Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeIn258_InsuranceCoContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(58, rep); } /** * Returns * IN2-59: "Policy Scope" - creates it if necessary */ public IS getPolicyScope() { IS ret = null; try { Type t = this.getField(59, 0); ret = (IS)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 * IN2-59: "Policy Scope" - creates it if necessary */ public IS getIn259_PolicyScope() { IS ret = null; try { Type t = this.getField(59, 0); ret = (IS)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 * IN2-60: "Policy Source" - creates it if necessary */ public IS getPolicySource() { IS ret = null; try { Type t = this.getField(60, 0); ret = (IS)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 * IN2-60: "Policy Source" - creates it if necessary */ public IS getIn260_PolicySource() { IS ret = null; try { Type t = this.getField(60, 0); ret = (IS)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 * IN2-61: "Patient Member Number" - creates it if necessary */ public CX getPatientMemberNumber() { CX ret = null; try { Type t = this.getField(61, 0); ret = (CX)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 * IN2-61: "Patient Member Number" - creates it if necessary */ public CX getIn261_PatientMemberNumber() { CX ret = null; try { Type t = this.getField(61, 0); ret = (CX)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 * IN2-62: "Guarantor's Relationship to Insured" - creates it if necessary */ public CWE getGuarantorSRelationshipToInsured() { CWE ret = null; try { Type t = this.getField(62, 0); ret = (CWE)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 * IN2-62: "Guarantor's Relationship to Insured" - creates it if necessary */ public CWE getIn262_GuarantorSRelationshipToInsured() { CWE ret = null; try { Type t = this.getField(62, 0); ret = (CWE)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 all repetitions of Insured's Phone Number - Home (IN2-63). */ public XTN[] getInsuredSPhoneNumberHome() { XTN[] ret = null; try { Type[] t = this.getField(63); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } 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 a count of the current number of repetitions of Insured's Phone Number - Home (IN2-63). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSPhoneNumberHomeReps() { XTN[] ret = null; try { Type[] t = this.getField(63); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-63: "Insured's Phone Number - Home" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getInsuredSPhoneNumberHome(int rep) { XTN ret = null; try { Type t = this.getField(63, rep); ret = (XTN)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 a specific repetition of * IN2-63: "Insured's Phone Number - Home" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn263_InsuredSPhoneNumberHome(int rep) { XTN ret = null; try { Type t = this.getField(63, rep); ret = (XTN)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 a count of the current number of repetitions of Insured's Phone Number - Home (IN2-63). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn263_InsuredSPhoneNumberHomeReps() { XTN[] ret = null; try { Type[] t = this.getField(63); return t.length; } 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); } } /** * Inserts a repetition of * IN2-63: "Insured's Phone Number - Home" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertInsuredSPhoneNumberHome(int rep) throws HL7Exception { return (XTN) super.insertRepetition(63, rep); } /** * Inserts a repetition of * IN2-63: "Insured's Phone Number - Home" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertIn263_InsuredSPhoneNumberHome(int rep) throws HL7Exception { return (XTN) super.insertRepetition(63, rep); } /** * Removes a repetition of * IN2-63: "Insured's Phone Number - Home" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeInsuredSPhoneNumberHome(int rep) throws HL7Exception { return (XTN) super.removeRepetition(63, rep); } /** * Removes a repetition of * IN2-63: "Insured's Phone Number - Home" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeIn263_InsuredSPhoneNumberHome(int rep) throws HL7Exception { return (XTN) super.removeRepetition(63, rep); } /** * Returns all repetitions of Insured's Employer Phone Number (IN2-64). */ public XTN[] getInsuredSEmployerPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(64); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } 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 a count of the current number of repetitions of Insured's Employer Phone Number (IN2-64). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredSEmployerPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(64); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-64: "Insured's Employer Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getInsuredSEmployerPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(64, rep); ret = (XTN)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 a specific repetition of * IN2-64: "Insured's Employer Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn264_InsuredSEmployerPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(64, rep); ret = (XTN)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 a count of the current number of repetitions of Insured's Employer Phone Number (IN2-64). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn264_InsuredSEmployerPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(64); return t.length; } 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); } } /** * Inserts a repetition of * IN2-64: "Insured's Employer Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertInsuredSEmployerPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(64, rep); } /** * Inserts a repetition of * IN2-64: "Insured's Employer Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN insertIn264_InsuredSEmployerPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(64, rep); } /** * Removes a repetition of * IN2-64: "Insured's Employer Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeInsuredSEmployerPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(64, rep); } /** * Removes a repetition of * IN2-64: "Insured's Employer Phone Number" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XTN removeIn264_InsuredSEmployerPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(64, rep); } /** * Returns * IN2-65: "Military Handicapped Program" - creates it if necessary */ public CWE getMilitaryHandicappedProgram() { CWE ret = null; try { Type t = this.getField(65, 0); ret = (CWE)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 * IN2-65: "Military Handicapped Program" - creates it if necessary */ public CWE getIn265_MilitaryHandicappedProgram() { CWE ret = null; try { Type t = this.getField(65, 0); ret = (CWE)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 * IN2-66: "Suspend Flag" - creates it if necessary */ public ID getSuspendFlag() { ID ret = null; try { Type t = this.getField(66, 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 * IN2-66: "Suspend Flag" - creates it if necessary */ public ID getIn266_SuspendFlag() { ID ret = null; try { Type t = this.getField(66, 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 * IN2-67: "Copay Limit Flag" - creates it if necessary */ public ID getCopayLimitFlag() { ID ret = null; try { Type t = this.getField(67, 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 * IN2-67: "Copay Limit Flag" - creates it if necessary */ public ID getIn267_CopayLimitFlag() { ID ret = null; try { Type t = this.getField(67, 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 * IN2-68: "Stoploss Limit Flag" - creates it if necessary */ public ID getStoplossLimitFlag() { ID ret = null; try { Type t = this.getField(68, 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 * IN2-68: "Stoploss Limit Flag" - creates it if necessary */ public ID getIn268_StoplossLimitFlag() { ID ret = null; try { Type t = this.getField(68, 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 all repetitions of Insured Organization Name and ID (IN2-69). */ public XON[] getInsuredOrganizationNameAndID() { XON[] ret = null; try { Type[] t = this.getField(69); ret = new XON[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XON)t[i]; } } 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 a count of the current number of repetitions of Insured Organization Name and ID (IN2-69). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredOrganizationNameAndIDReps() { XON[] ret = null; try { Type[] t = this.getField(69); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-69: "Insured Organization Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XON getInsuredOrganizationNameAndID(int rep) { XON ret = null; try { Type t = this.getField(69, rep); ret = (XON)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 a specific repetition of * IN2-69: "Insured Organization Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XON getIn269_InsuredOrganizationNameAndID(int rep) { XON ret = null; try { Type t = this.getField(69, rep); ret = (XON)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 a count of the current number of repetitions of Insured Organization Name and ID (IN2-69). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn269_InsuredOrganizationNameAndIDReps() { XON[] ret = null; try { Type[] t = this.getField(69); return t.length; } 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); } } /** * Inserts a repetition of * IN2-69: "Insured Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON insertInsuredOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.insertRepetition(69, rep); } /** * Inserts a repetition of * IN2-69: "Insured Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON insertIn269_InsuredOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.insertRepetition(69, rep); } /** * Removes a repetition of * IN2-69: "Insured Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON removeInsuredOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.removeRepetition(69, rep); } /** * Removes a repetition of * IN2-69: "Insured Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON removeIn269_InsuredOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.removeRepetition(69, rep); } /** * Returns all repetitions of Insured Employer Organization Name and ID (IN2-70). */ public XON[] getInsuredEmployerOrganizationNameAndID() { XON[] ret = null; try { Type[] t = this.getField(70); ret = new XON[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XON)t[i]; } } 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 a count of the current number of repetitions of Insured Employer Organization Name and ID (IN2-70). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInsuredEmployerOrganizationNameAndIDReps() { XON[] ret = null; try { Type[] t = this.getField(70); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-70: "Insured Employer Organization Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XON getInsuredEmployerOrganizationNameAndID(int rep) { XON ret = null; try { Type t = this.getField(70, rep); ret = (XON)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 a specific repetition of * IN2-70: "Insured Employer Organization Name and ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XON getIn270_InsuredEmployerOrganizationNameAndID(int rep) { XON ret = null; try { Type t = this.getField(70, rep); ret = (XON)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 a count of the current number of repetitions of Insured Employer Organization Name and ID (IN2-70). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn270_InsuredEmployerOrganizationNameAndIDReps() { XON[] ret = null; try { Type[] t = this.getField(70); return t.length; } 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); } } /** * Inserts a repetition of * IN2-70: "Insured Employer Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON insertInsuredEmployerOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.insertRepetition(70, rep); } /** * Inserts a repetition of * IN2-70: "Insured Employer Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON insertIn270_InsuredEmployerOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.insertRepetition(70, rep); } /** * Removes a repetition of * IN2-70: "Insured Employer Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON removeInsuredEmployerOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.removeRepetition(70, rep); } /** * Removes a repetition of * IN2-70: "Insured Employer Organization Name and ID" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XON removeIn270_InsuredEmployerOrganizationNameAndID(int rep) throws HL7Exception { return (XON) super.removeRepetition(70, rep); } /** * Returns all repetitions of Race (IN2-71). */ public CWE[] getRace() { CWE[] ret = null; try { Type[] t = this.getField(71); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } 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 a count of the current number of repetitions of Race (IN2-71). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getRaceReps() { CWE[] ret = null; try { Type[] t = this.getField(71); return t.length; } 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); } } /** * Returns a specific repetition of * IN2-71: "Race" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getRace(int rep) { CWE ret = null; try { Type t = this.getField(71, rep); ret = (CWE)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 a specific repetition of * IN2-71: "Race" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getIn271_Race(int rep) { CWE ret = null; try { Type t = this.getField(71, rep); ret = (CWE)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 a count of the current number of repetitions of Race (IN2-71). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn271_RaceReps() { CWE[] ret = null; try { Type[] t = this.getField(71); return t.length; } 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); } } /** * Inserts a repetition of * IN2-71: "Race" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertRace(int rep) throws HL7Exception { return (CWE) super.insertRepetition(71, rep); } /** * Inserts a repetition of * IN2-71: "Race" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE insertIn271_Race(int rep) throws HL7Exception { return (CWE) super.insertRepetition(71, rep); } /** * Removes a repetition of * IN2-71: "Race" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeRace(int rep) throws HL7Exception { return (CWE) super.removeRepetition(71, rep); } /** * Removes a repetition of * IN2-71: "Race" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CWE removeIn271_Race(int rep) throws HL7Exception { return (CWE) super.removeRepetition(71, rep); } /** * Returns * IN2-72: "Patient's Relationship to Insured" - creates it if necessary */ public CWE getPatientSRelationshipToInsured() { CWE ret = null; try { Type t = this.getField(72, 0); ret = (CWE)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 * IN2-72: "Patient's Relationship to Insured" - creates it if necessary */ public CWE getIn272_PatientSRelationshipToInsured() { CWE ret = null; try { Type t = this.getField(72, 0); ret = (CWE)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 CX(getMessage()); case 1: return new ST(getMessage()); case 2: return new XCN(getMessage()); case 3: return new IS(getMessage(), new Integer( 139 )); case 4: return new IS(getMessage(), new Integer( 137 )); case 5: return new ST(getMessage()); case 6: return new XPN(getMessage()); case 7: return new ST(getMessage()); case 8: return new XPN(getMessage()); case 9: return new ST(getMessage()); case 10: return new CWE(getMessage()); case 11: return new ST(getMessage()); case 12: return new ST(getMessage()); case 13: return new IS(getMessage(), new Integer( 140 )); case 14: return new IS(getMessage(), new Integer( 141 )); case 15: return new IS(getMessage(), new Integer( 142 )); case 16: return new DT(getMessage()); case 17: return new ID(getMessage(), new Integer( 136 )); case 18: return new ID(getMessage(), new Integer( 136 )); case 19: return new ID(getMessage(), new Integer( 136 )); case 20: return new ST(getMessage()); case 21: return new XPN(getMessage()); case 22: return new ST(getMessage()); case 23: return new IS(getMessage(), new Integer( 143 )); case 24: return new CX(getMessage()); case 25: return new CX(getMessage()); case 26: return new IS(getMessage(), new Integer( 144 )); case 27: return new RMC(getMessage()); case 28: return new PTA(getMessage()); case 29: return new DDI(getMessage()); case 30: return new IS(getMessage(), new Integer( 223 )); case 31: return new IS(getMessage(), new Integer( 9 )); case 32: return new CWE(getMessage()); case 33: return new CWE(getMessage()); case 34: return new IS(getMessage(), new Integer( 220 )); case 35: return new CWE(getMessage()); case 36: return new ID(getMessage(), new Integer( 136 )); case 37: return new IS(getMessage(), new Integer( 231 )); case 38: return new CWE(getMessage()); case 39: return new XPN(getMessage()); case 40: return new CWE(getMessage()); case 41: return new CWE(getMessage()); case 42: return new CWE(getMessage()); case 43: return new DT(getMessage()); case 44: return new DT(getMessage()); case 45: return new ST(getMessage()); case 46: return new JCC(getMessage()); case 47: return new IS(getMessage(), new Integer( 311 )); case 48: return new XPN(getMessage()); case 49: return new XTN(getMessage()); case 50: return new IS(getMessage(), new Integer( 222 )); case 51: return new XPN(getMessage()); case 52: return new XTN(getMessage()); case 53: return new IS(getMessage(), new Integer( 222 )); case 54: return new DT(getMessage()); case 55: return new DT(getMessage()); case 56: return new IS(getMessage(), new Integer( 232 )); case 57: return new XTN(getMessage()); case 58: return new IS(getMessage(), new Integer( 312 )); case 59: return new IS(getMessage(), new Integer( 313 )); case 60: return new CX(getMessage()); case 61: return new CWE(getMessage()); case 62: return new XTN(getMessage()); case 63: return new XTN(getMessage()); case 64: return new CWE(getMessage()); case 65: return new ID(getMessage(), new Integer( 136 )); case 66: return new ID(getMessage(), new Integer( 136 )); case 67: return new ID(getMessage(), new Integer( 136 )); case 68: return new XON(getMessage()); case 69: return new XON(getMessage()); case 70: return new CWE(getMessage()); case 71: return new CWE(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy