ca.uhn.hl7v2.model.v23.segment.IN2 Maven / Gradle / Ivy
/*
* 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.v23.segment;
// import ca.uhn.hl7v2.model.v23.group.*;
import ca.uhn.hl7v2.model.v23.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 info).
* This segment has the following fields:
*
* - IN2-1: Insured's Employee ID (CX) optional
*
- IN2-2: Insured's Social Security Number (ST) optional
*
- IN2-3: Insured's Employer Name (XCN) optional
*
- IN2-4: Employer Information Data (IS) optional
*
- IN2-5: Mail Claim Party (IS) optional
*
- IN2-6: Medicare Health Ins Card Number (ST) optional
*
- IN2-7: Medicaid Case Name (XPN) optional
*
- IN2-8: Medicaid Case Number (ST) optional
*
- IN2-9: Champus Sponsor Name (XPN) optional
*
- IN2-10: Champus ID Number (ST) optional
*
- IN2-11: Dependent of Champus Recipient (CE) optional
*
- IN2-12: Champus Organization (ST) optional
*
- IN2-13: Champus Station (ST) optional
*
- IN2-14: Champus Service (IS) optional
*
- IN2-15: Champus Rank/Grade (IS) optional
*
- IN2-16: Champus Status (IS) optional
*
- IN2-17: Champus Retire Date (DT) optional
*
- IN2-18: Champus 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
*
- IN2-23: Special Coverage Approval Title (ST) optional
*
- IN2-24: Non-Covered Insurance Code (ST) optional repeating
*
- IN2-25: Payor ID (CX) optional
*
- IN2-26: Payor Subscriber ID (CX) optional
*
- IN2-27: Eligibility Source (IS) optional
*
- IN2-28: Room Coverage Type/Amount (CM_RMC) optional repeating
*
- IN2-29: Policy Type/Amount (CM_PTA) optional repeating
*
- IN2-30: Daily Deductible (CM_DDI) optional
*
- IN2-31: Living Dependency (IS) optional
*
- IN2-32: Ambulatory Status (IS) optional
*
- IN2-33: Citizenship (IS) optional
*
- IN2-34: Primary Language (CE) optional
*
- IN2-35: Living Arrangement (IS) optional
*
- IN2-36: Publicity Indicator (CE) optional
*
- IN2-37: Protection Indicator (ID) optional
*
- IN2-38: Student Indicator (IS) optional
*
- IN2-39: Religion (IS) optional
*
- IN2-40: Mother’s Maiden Name (XPN) optional
*
- IN2-41: Nationality Code (CE) optional
*
- IN2-42: Ethnic Group (IS) optional
*
- IN2-43: Marital Status (IS) optional repeating
*
- IN2-44: 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 Telephone 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
*
- 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 (IS) optional
*
- IN2-63: Insured’s Telephone Number - Home (XTN) optional repeating
*
- IN2-64: Insured’s Employer Telephone Number (XTN) optional repeating
*
- IN2-65: Military Handicapped Program (CE) optional
*
- IN2-66: Suspend Flag (ID) optional
*
- IN2-67: Co-pay 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 (IS) optional
*
- IN2-72: Patient Relationship to Insured (ID) 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, 1, 59, 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, 1, 130, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employer Name");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Employer Information Data");
this.add(IS.class, false, 1, 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, 1, 48, 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, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Champus Sponsor Name");
this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Champus ID Number");
this.add(CE.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Dependent of Champus Recipient");
this.add(ST.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Champus Organization");
this.add(ST.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Champus Station");
this.add(IS.class, false, 1, 14, new Object[]{ getMessage() }, "Champus Service");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Champus Rank/Grade");
this.add(IS.class, false, 1, 3, new Object[]{ getMessage() }, "Champus Status");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Champus Retire Date");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Champus 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, 1, 48, 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(ST.class, false, 0, 8, new Object[]{ getMessage(), new Integer(143) }, "Non-Covered Insurance Code");
this.add(CX.class, false, 1, 59, new Object[]{ getMessage(), new Integer(0) }, "Payor ID");
this.add(CX.class, false, 1, 59, new Object[]{ getMessage(), new Integer(0) }, "Payor Subscriber ID");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Eligibility Source");
this.add(CM_RMC.class, false, 0, 25, new Object[]{ getMessage(), new Integer(0) }, "Room Coverage Type/Amount");
this.add(CM_PTA.class, false, 0, 25, new Object[]{ getMessage(), new Integer(0) }, "Policy Type/Amount");
this.add(CM_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, 1, 2, new Object[]{ getMessage() }, "Ambulatory Status");
this.add(IS.class, false, 1, 4, new Object[]{ getMessage() }, "Citizenship");
this.add(CE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(296) }, "Primary Language");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Living Arrangement");
this.add(CE.class, false, 1, 1, new Object[]{ getMessage(), new Integer(215) }, "Publicity Indicator");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Protection Indicator");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Student Indicator");
this.add(IS.class, false, 1, 3, new Object[]{ getMessage() }, "Religion");
this.add(XPN.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Mother’s Maiden Name");
this.add(CE.class, false, 1, 80, new Object[]{ getMessage(), new Integer(212) }, "Nationality Code");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Ethnic Group");
this.add(IS.class, false, 0, 1, new Object[]{ getMessage() }, "Marital Status");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "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, 48, new Object[]{ getMessage(), new Integer(0) }, "Employer Contact Person Name");
this.add(XTN.class, false, 0, 40, 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, 48, new Object[]{ getMessage(), new Integer(0) }, "Insured’s Contact Person’s Name");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage(), new Integer(0) }, "Insured’s Contact Person Telephone 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, 1, 40, 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, 60, new Object[]{ getMessage(), new Integer(0) }, "Patient Member Number");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor’s Relationship To Insured");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage(), new Integer(0) }, "Insured’s Telephone Number - Home");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage(), new Integer(0) }, "Insured’s Employer Telephone Number");
this.add(CE.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "Military Handicapped Program");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Suspend Flag");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Co-pay Limit Flag");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Stoploss Limit Flag");
this.add(XON.class, false, 0, 130, new Object[]{ getMessage(), new Integer(0) }, "Insured Organization Name And ID");
this.add(XON.class, false, 0, 130, new Object[]{ getMessage(), new Integer(0) }, "Insured Employer Organization Name And ID");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Race");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Patient 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
* IN2-1: "Insured's Employee ID" - creates it if necessary
*/
public CX getInsuredSEmployeeID() {
CX ret = null;
try {
Type t = this.getField(1, 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-1: "Insured's Employee ID" - creates it if necessary
*/
public CX getIn21_InsuredSEmployeeID() {
CX ret = null;
try {
Type t = this.getField(1, 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-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
* IN2-3: "Insured's Employer Name" - creates it if necessary
*/
public XCN getInsuredSEmployerName() {
XCN ret = null;
try {
Type t = this.getField(3, 0);
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
* IN2-3: "Insured's Employer Name" - creates it if necessary
*/
public XCN getIn23_InsuredSEmployerName() {
XCN ret = null;
try {
Type t = this.getField(3, 0);
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
* 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
* IN2-5: "Mail Claim Party" - creates it if necessary
*/
public IS getMailClaimParty() {
IS ret = null;
try {
Type t = this.getField(5, 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-5: "Mail Claim Party" - creates it if necessary
*/
public IS getIn25_MailClaimParty() {
IS ret = null;
try {
Type t = this.getField(5, 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-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
* IN2-7: "Medicaid Case Name" - creates it if necessary
*/
public XPN getMedicaidCaseName() {
XPN ret = null;
try {
Type t = this.getField(7, 0);
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
* IN2-7: "Medicaid Case Name" - creates it if necessary
*/
public XPN getIn27_MedicaidCaseName() {
XPN ret = null;
try {
Type t = this.getField(7, 0);
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
* 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
* IN2-9: "Champus Sponsor Name" - creates it if necessary
*/
public XPN getChampusSponsorName() {
XPN ret = null;
try {
Type t = this.getField(9, 0);
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
* IN2-9: "Champus Sponsor Name" - creates it if necessary
*/
public XPN getIn29_ChampusSponsorName() {
XPN ret = null;
try {
Type t = this.getField(9, 0);
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
* IN2-10: "Champus ID Number" - creates it if necessary
*/
public ST getChampusIDNumber() {
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: "Champus ID Number" - creates it if necessary
*/
public ST getIn210_ChampusIDNumber() {
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 Champus Recipient" - creates it if necessary
*/
public CE getDependentOfChampusRecipient() {
CE ret = null;
try {
Type t = this.getField(11, 0);
ret = (CE)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 Champus Recipient" - creates it if necessary
*/
public CE getIn211_DependentOfChampusRecipient() {
CE ret = null;
try {
Type t = this.getField(11, 0);
ret = (CE)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: "Champus Organization" - creates it if necessary
*/
public ST getChampusOrganization() {
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: "Champus Organization" - creates it if necessary
*/
public ST getIn212_ChampusOrganization() {
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: "Champus Station" - creates it if necessary
*/
public ST getChampusStation() {
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: "Champus Station" - creates it if necessary
*/
public ST getIn213_ChampusStation() {
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: "Champus Service" - creates it if necessary
*/
public IS getChampusService() {
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: "Champus Service" - creates it if necessary
*/
public IS getIn214_ChampusService() {
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: "Champus Rank/Grade" - creates it if necessary
*/
public IS getChampusRankGrade() {
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: "Champus Rank/Grade" - creates it if necessary
*/
public IS getIn215_ChampusRankGrade() {
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: "Champus Status" - creates it if necessary
*/
public IS getChampusStatus() {
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: "Champus Status" - creates it if necessary
*/
public IS getIn216_ChampusStatus() {
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: "Champus Retire Date" - creates it if necessary
*/
public DT getChampusRetireDate() {
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: "Champus Retire Date" - creates it if necessary
*/
public DT getIn217_ChampusRetireDate() {
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: "Champus Non-Avail Cert on File" - creates it if necessary
*/
public ID getChampusNonAvailCertOnFile() {
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: "Champus Non-Avail Cert on File" - creates it if necessary
*/
public ID getIn218_ChampusNonAvailCertOnFile() {
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
* IN2-22: "Special Coverage Approval Name" - creates it if necessary
*/
public XPN getSpecialCoverageApprovalName() {
XPN ret = null;
try {
Type t = this.getField(22, 0);
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
* IN2-22: "Special Coverage Approval Name" - creates it if necessary
*/
public XPN getIn222_SpecialCoverageApprovalName() {
XPN ret = null;
try {
Type t = this.getField(22, 0);
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
* 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 ST[] getNonCoveredInsuranceCode() {
ST[] ret = null;
try {
Type[] t = this.getField(24);
ret = new ST[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ST)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() {
ST[] 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 ST getNonCoveredInsuranceCode(int rep) {
ST ret = null;
try {
Type t = this.getField(24, rep);
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 a specific repetition of
* IN2-24: "Non-Covered Insurance Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ST getIn224_NonCoveredInsuranceCode(int rep) {
ST ret = null;
try {
Type t = this.getField(24, rep);
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 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() {
ST[] 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 ST insertNonCoveredInsuranceCode(int rep) throws HL7Exception {
return (ST) 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 ST insertIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception {
return (ST) 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 ST removeNonCoveredInsuranceCode(int rep) throws HL7Exception {
return (ST) 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 ST removeIn224_NonCoveredInsuranceCode(int rep) throws HL7Exception {
return (ST) super.removeRepetition(24, rep);
}
/**
* Returns
* IN2-25: "Payor ID" - creates it if necessary
*/
public CX getPayorID() {
CX ret = null;
try {
Type t = this.getField(25, 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-25: "Payor ID" - creates it if necessary
*/
public CX getIn225_PayorID() {
CX ret = null;
try {
Type t = this.getField(25, 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-26: "Payor Subscriber ID" - creates it if necessary
*/
public CX getPayorSubscriberID() {
CX ret = null;
try {
Type t = this.getField(26, 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-26: "Payor Subscriber ID" - creates it if necessary
*/
public CX getIn226_PayorSubscriberID() {
CX ret = null;
try {
Type t = this.getField(26, 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-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 CM_RMC[] getRoomCoverageTypeAmount() {
CM_RMC[] ret = null;
try {
Type[] t = this.getField(28);
ret = new CM_RMC[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CM_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() {
CM_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 CM_RMC getRoomCoverageTypeAmount(int rep) {
CM_RMC ret = null;
try {
Type t = this.getField(28, rep);
ret = (CM_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 CM_RMC getIn228_RoomCoverageTypeAmount(int rep) {
CM_RMC ret = null;
try {
Type t = this.getField(28, rep);
ret = (CM_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() {
CM_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 CM_RMC insertRoomCoverageTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_RMC insertIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_RMC removeRoomCoverageTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_RMC removeIn228_RoomCoverageTypeAmount(int rep) throws HL7Exception {
return (CM_RMC) super.removeRepetition(28, rep);
}
/**
* Returns all repetitions of Policy Type/Amount (IN2-29).
*/
public CM_PTA[] getPolicyTypeAmount() {
CM_PTA[] ret = null;
try {
Type[] t = this.getField(29);
ret = new CM_PTA[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CM_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() {
CM_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 CM_PTA getPolicyTypeAmount(int rep) {
CM_PTA ret = null;
try {
Type t = this.getField(29, rep);
ret = (CM_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 CM_PTA getIn229_PolicyTypeAmount(int rep) {
CM_PTA ret = null;
try {
Type t = this.getField(29, rep);
ret = (CM_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() {
CM_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 CM_PTA insertPolicyTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_PTA insertIn229_PolicyTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_PTA removePolicyTypeAmount(int rep) throws HL7Exception {
return (CM_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 CM_PTA removeIn229_PolicyTypeAmount(int rep) throws HL7Exception {
return (CM_PTA) super.removeRepetition(29, rep);
}
/**
* Returns
* IN2-30: "Daily Deductible" - creates it if necessary
*/
public CM_DDI getDailyDeductible() {
CM_DDI ret = null;
try {
Type t = this.getField(30, 0);
ret = (CM_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 CM_DDI getIn230_DailyDeductible() {
CM_DDI ret = null;
try {
Type t = this.getField(30, 0);
ret = (CM_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
* IN2-32: "Ambulatory Status" - creates it if necessary
*/
public IS getAmbulatoryStatus() {
IS ret = null;
try {
Type t = this.getField(32, 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-32: "Ambulatory Status" - creates it if necessary
*/
public IS getIn232_AmbulatoryStatus() {
IS ret = null;
try {
Type t = this.getField(32, 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-33: "Citizenship" - creates it if necessary
*/
public IS getCitizenship() {
IS ret = null;
try {
Type t = this.getField(33, 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-33: "Citizenship" - creates it if necessary
*/
public IS getIn233_Citizenship() {
IS ret = null;
try {
Type t = this.getField(33, 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-34: "Primary Language" - creates it if necessary
*/
public CE getPrimaryLanguage() {
CE ret = null;
try {
Type t = this.getField(34, 0);
ret = (CE)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 CE getIn234_PrimaryLanguage() {
CE ret = null;
try {
Type t = this.getField(34, 0);
ret = (CE)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 Indicator" - creates it if necessary
*/
public CE getPublicityIndicator() {
CE ret = null;
try {
Type t = this.getField(36, 0);
ret = (CE)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 Indicator" - creates it if necessary
*/
public CE getIn236_PublicityIndicator() {
CE ret = null;
try {
Type t = this.getField(36, 0);
ret = (CE)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 IS getReligion() {
IS ret = null;
try {
Type t = this.getField(39, 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 IS getIn239_Religion() {
IS ret = null;
try {
Type t = this.getField(39, 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-40: "Mother’s Maiden Name" - creates it if necessary
*/
public XPN getMotherSMaidenName() {
XPN ret = null;
try {
Type t = this.getField(40, 0);
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
* IN2-40: "Mother’s Maiden Name" - creates it if necessary
*/
public XPN getIn240_MotherSMaidenName() {
XPN ret = null;
try {
Type t = this.getField(40, 0);
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
* IN2-41: "Nationality Code" - creates it if necessary
*/
public CE getNationalityCode() {
CE ret = null;
try {
Type t = this.getField(41, 0);
ret = (CE)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 Code" - creates it if necessary
*/
public CE getIn241_NationalityCode() {
CE ret = null;
try {
Type t = this.getField(41, 0);
ret = (CE)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-42: "Ethnic Group" - creates it if necessary
*/
public IS getEthnicGroup() {
IS ret = null;
try {
Type t = this.getField(42, 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-42: "Ethnic Group" - creates it if necessary
*/
public IS getIn242_EthnicGroup() {
IS ret = null;
try {
Type t = this.getField(42, 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 Marital Status (IN2-43).
*/
public IS[] getMaritalStatus() {
IS[] ret = null;
try {
Type[] t = this.getField(43);
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 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() {
IS[] 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 IS getMaritalStatus(int rep) {
IS ret = null;
try {
Type t = this.getField(43, 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-43: "Marital Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getIn243_MaritalStatus(int rep) {
IS ret = null;
try {
Type t = this.getField(43, 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 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() {
IS[] 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 IS insertMaritalStatus(int rep) throws HL7Exception {
return (IS) 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 IS insertIn243_MaritalStatus(int rep) throws HL7Exception {
return (IS) 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 IS removeMaritalStatus(int rep) throws HL7Exception {
return (IS) 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 IS removeIn243_MaritalStatus(int rep) throws HL7Exception {
return (IS) super.removeRepetition(43, rep);
}
/**
* Returns
* IN2-44: "Employment Start Date" - creates it if necessary
*/
public DT getEmploymentStartDate() {
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: "Employment Start Date" - creates it if necessary
*/
public DT getIn244_EmploymentStartDate() {
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 Telephone Number (IN2-53).
*/
public XTN[] getInsuredSContactPersonTelephoneNumber() {
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 Telephone 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 getInsuredSContactPersonTelephoneNumberReps() {
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 Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getInsuredSContactPersonTelephoneNumber(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 Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getIn253_InsuredSContactPersonTelephoneNumber(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 Telephone 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_InsuredSContactPersonTelephoneNumberReps() {
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 Telephone 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 insertInsuredSContactPersonTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(53, rep);
}
/**
* Inserts a repetition of
* IN2-53: "Insured’s Contact Person Telephone 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_InsuredSContactPersonTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(53, rep);
}
/**
* Removes a repetition of
* IN2-53: "Insured’s Contact Person Telephone 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 removeInsuredSContactPersonTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(53, rep);
}
/**
* Removes a repetition of
* IN2-53: "Insured’s Contact Person Telephone 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_InsuredSContactPersonTelephoneNumber(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
* IN2-58: "Insurance Co. Contact Phone Number" - creates it if necessary
*/
public XTN getInsuranceCoContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(58, 0);
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
* IN2-58: "Insurance Co. Contact Phone Number" - creates it if necessary
*/
public XTN getIn258_InsuranceCoContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(58, 0);
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
* 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 IS getGuarantorSRelationshipToInsured() {
IS ret = null;
try {
Type t = this.getField(62, 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-62: "Guarantor’s Relationship To Insured" - creates it if necessary
*/
public IS getIn262_GuarantorSRelationshipToInsured() {
IS ret = null;
try {
Type t = this.getField(62, 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 Telephone Number - Home (IN2-63).
*/
public XTN[] getInsuredSTelephoneNumberHome() {
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 Telephone 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 getInsuredSTelephoneNumberHomeReps() {
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 Telephone Number - Home" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getInsuredSTelephoneNumberHome(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 Telephone Number - Home" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getIn263_InsuredSTelephoneNumberHome(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 Telephone 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_InsuredSTelephoneNumberHomeReps() {
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 Telephone 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 insertInsuredSTelephoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(63, rep);
}
/**
* Inserts a repetition of
* IN2-63: "Insured’s Telephone 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_InsuredSTelephoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(63, rep);
}
/**
* Removes a repetition of
* IN2-63: "Insured’s Telephone 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 removeInsuredSTelephoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(63, rep);
}
/**
* Removes a repetition of
* IN2-63: "Insured’s Telephone 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_InsuredSTelephoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(63, rep);
}
/**
* Returns all repetitions of Insured’s Employer Telephone Number (IN2-64).
*/
public XTN[] getInsuredSEmployerTelephoneNumber() {
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 Telephone 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 getInsuredSEmployerTelephoneNumberReps() {
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 Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getInsuredSEmployerTelephoneNumber(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 Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getIn264_InsuredSEmployerTelephoneNumber(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 Telephone 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_InsuredSEmployerTelephoneNumberReps() {
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 Telephone 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 insertInsuredSEmployerTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(64, rep);
}
/**
* Inserts a repetition of
* IN2-64: "Insured’s Employer Telephone 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_InsuredSEmployerTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(64, rep);
}
/**
* Removes a repetition of
* IN2-64: "Insured’s Employer Telephone 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 removeInsuredSEmployerTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(64, rep);
}
/**
* Removes a repetition of
* IN2-64: "Insured’s Employer Telephone 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_InsuredSEmployerTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(64, rep);
}
/**
* Returns
* IN2-65: "Military Handicapped Program" - creates it if necessary
*/
public CE getMilitaryHandicappedProgram() {
CE ret = null;
try {
Type t = this.getField(65, 0);
ret = (CE)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 CE getIn265_MilitaryHandicappedProgram() {
CE ret = null;
try {
Type t = this.getField(65, 0);
ret = (CE)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: "Co-pay 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: "Co-pay 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
* IN2-71: "Race" - creates it if necessary
*/
public IS getRace() {
IS ret = null;
try {
Type t = this.getField(71, 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-71: "Race" - creates it if necessary
*/
public IS getIn271_Race() {
IS ret = null;
try {
Type t = this.getField(71, 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-72: "Patient Relationship to Insured" - creates it if necessary
*/
public ID getPatientRelationshipToInsured() {
ID ret = null;
try {
Type t = this.getField(72, 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-72: "Patient Relationship to Insured" - creates it if necessary
*/
public ID getIn272_PatientRelationshipToInsured() {
ID ret = null;
try {
Type t = this.getField(72, 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;
}
/** {@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 CE(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 ST(getMessage());
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 CM_RMC(getMessage());
case 28: return new CM_PTA(getMessage());
case 29: return new CM_DDI(getMessage());
case 30: return new IS(getMessage(), new Integer( 223 ));
case 31: return new IS(getMessage(), new Integer( 9 ));
case 32: return new IS(getMessage(), new Integer( 171 ));
case 33: return new CE(getMessage());
case 34: return new IS(getMessage(), new Integer( 220 ));
case 35: return new CE(getMessage());
case 36: return new ID(getMessage(), new Integer( 136 ));
case 37: return new IS(getMessage(), new Integer( 231 ));
case 38: return new IS(getMessage(), new Integer( 6 ));
case 39: return new XPN(getMessage());
case 40: return new CE(getMessage());
case 41: return new IS(getMessage(), new Integer( 189 ));
case 42: return new IS(getMessage(), new Integer( 2 ));
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 IS(getMessage(), new Integer( 63 ));
case 62: return new XTN(getMessage());
case 63: return new XTN(getMessage());
case 64: return new CE(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 IS(getMessage(), new Integer( 5 ));
case 71: return new ID(getMessage(), new Integer( 0 ));
default: return null;
}
}
}