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

ca.uhn.hl7v2.model.v25.segment.STF Maven / Gradle / Ivy

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

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

// import ca.uhn.hl7v2.model.v25.group.*;
import ca.uhn.hl7v2.model.v25.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 STF message segment (Staff Identification). * This segment has the following fields:

*
    *
  • STF-1: Primary Key Value - STF (CE) optional *
  • STF-2: Staff Identifier List (CX) optional repeating *
  • STF-3: Staff Name (XPN) optional repeating *
  • STF-4: Staff Type (IS) optional repeating *
  • STF-5: Administrative Sex (IS) optional *
  • STF-6: Date/Time of Birth (TS) optional *
  • STF-7: Active/Inactive Flag (ID) optional *
  • STF-8: Department (CE) optional repeating *
  • STF-9: Hospital Service - STF (CE) optional repeating *
  • STF-10: Phone (XTN) optional repeating *
  • STF-11: Office/Home Address/Birthplace (XAD) optional repeating *
  • STF-12: Institution Activation Date (DIN) optional repeating *
  • STF-13: Institution Inactivation Date (DIN) optional repeating *
  • STF-14: Backup Person ID (CE) optional repeating *
  • STF-15: E-Mail Address (ST) optional repeating *
  • STF-16: Preferred Method of Contact (CE) optional *
  • STF-17: Marital Status (CE) optional *
  • STF-18: Job Title (ST) optional *
  • STF-19: Job Code/Class (JCC) optional *
  • STF-20: Employment Status Code (CE) optional *
  • STF-21: Additional Insured on Auto (ID) optional *
  • STF-22: Driver's License Number - Staff (DLN) optional *
  • STF-23: Copy Auto Ins (ID) optional *
  • STF-24: Auto Ins. Expires (DT) optional *
  • STF-25: Date Last DMV Review (DT) optional *
  • STF-26: Date Next DMV Review (DT) optional *
  • STF-27: Race (CE) optional *
  • STF-28: Ethnic Group (CE) optional *
  • STF-29: Re-activation Approval Indicator (ID) optional *
  • STF-30: Citizenship (CE) optional repeating *
  • STF-31: Death Date and Time (TS) optional *
  • STF-32: Death Indicator (ID) optional *
  • STF-33: Institution Relationship Type Code (CWE) optional *
  • STF-34: Institution Relationship Period (DR) optional *
  • STF-35: Expected Return Date (DT) optional *
  • STF-36: Cost Center Code (CWE) optional repeating *
  • STF-37: Generic Classification Indicator (ID) optional *
  • STF-38: Inactive Reason Code (CWE) optional *
*/ public class STF extends AbstractSegment { /** * Creates a new STF segment */ public STF(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); } private void init(ModelClassFactory factory) { try { this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Primary Key Value - STF"); this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Staff Identifier List"); this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Staff Name"); this.add(IS.class, false, 0, 2, new Object[]{ getMessage() }, "Staff Type"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Administrative Sex"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Date/Time of Birth"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Active/Inactive Flag"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(184) }, "Department"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(69) }, "Hospital Service - STF"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Phone"); this.add(XAD.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Office/Home Address/Birthplace"); this.add(DIN.class, false, 0, 276, new Object[]{ getMessage(), new Integer(537) }, "Institution Activation Date"); this.add(DIN.class, false, 0, 276, new Object[]{ getMessage(), new Integer(537) }, "Institution Inactivation Date"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Backup Person ID"); this.add(ST.class, false, 0, 40, new Object[]{ getMessage(), new Integer(0) }, "E-Mail Address"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(185) }, "Preferred Method of Contact"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(2) }, "Marital Status"); 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(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(66) }, "Employment Status Code"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Additional Insured on Auto"); this.add(DLN.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Driver's License Number - Staff"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Copy Auto Ins"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Auto Ins. Expires"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Date Last DMV Review"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Date Next DMV Review"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(5) }, "Race"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Re-activation Approval Indicator"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(171) }, "Citizenship"); this.add(TS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Death Date and Time"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Death Indicator"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(538) }, "Institution Relationship Type Code"); this.add(DR.class, false, 1, 52, new Object[]{ getMessage(), new Integer(0) }, "Institution Relationship Period"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Expected Return Date"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(539) }, "Cost Center Code"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Generic Classification Indicator"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(540) }, "Inactive Reason Code"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating STF - this is probably a bug in the source code generator.", e); } } /** * Returns * STF-1: "Primary Key Value - STF" - creates it if necessary */ public CE getPrimaryKeyValueSTF() { CE ret = null; try { Type t = this.getField(1, 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 * STF-1: "Primary Key Value - STF" - creates it if necessary */ public CE getStf1_PrimaryKeyValueSTF() { CE ret = null; try { Type t = this.getField(1, 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 all repetitions of Staff Identifier List (STF-2). */ public CX[] getStaffIdentifierList() { CX[] ret = null; try { Type[] t = this.getField(2); ret = new CX[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CX)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Staff Identifier List (STF-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStaffIdentifierListReps() { CX[] ret = null; try { Type[] t = this.getField(2); 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 * STF-2: "Staff Identifier List" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getStaffIdentifierList(int rep) { CX ret = null; try { Type t = this.getField(2, rep); ret = (CX)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * STF-2: "Staff Identifier List" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CX getStf2_StaffIdentifierList(int rep) { CX ret = null; try { Type t = this.getField(2, rep); ret = (CX)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Staff Identifier List (STF-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf2_StaffIdentifierListReps() { CX[] ret = null; try { Type[] t = this.getField(2); 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 * STF-2: "Staff Identifier List" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertStaffIdentifierList(int rep) throws HL7Exception { return (CX) super.insertRepetition(2, rep); } /** * Inserts a repetition of * STF-2: "Staff Identifier List" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX insertStf2_StaffIdentifierList(int rep) throws HL7Exception { return (CX) super.insertRepetition(2, rep); } /** * Removes a repetition of * STF-2: "Staff Identifier List" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeStaffIdentifierList(int rep) throws HL7Exception { return (CX) super.removeRepetition(2, rep); } /** * Removes a repetition of * STF-2: "Staff Identifier List" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CX removeStf2_StaffIdentifierList(int rep) throws HL7Exception { return (CX) super.removeRepetition(2, rep); } /** * Returns all repetitions of Staff Name (STF-3). */ public XPN[] getStaffName() { XPN[] ret = null; try { Type[] t = this.getField(3); 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 Staff Name (STF-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStaffNameReps() { XPN[] ret = null; try { Type[] t = this.getField(3); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * STF-3: "Staff Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getStaffName(int rep) { XPN ret = null; try { Type t = this.getField(3, 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 * STF-3: "Staff Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getStf3_StaffName(int rep) { XPN ret = null; try { Type t = this.getField(3, 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 Staff Name (STF-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf3_StaffNameReps() { XPN[] ret = null; try { Type[] t = this.getField(3); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * STF-3: "Staff 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 insertStaffName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(3, rep); } /** * Inserts a repetition of * STF-3: "Staff 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 insertStf3_StaffName(int rep) throws HL7Exception { return (XPN) super.insertRepetition(3, rep); } /** * Removes a repetition of * STF-3: "Staff 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 removeStaffName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(3, rep); } /** * Removes a repetition of * STF-3: "Staff 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 removeStf3_StaffName(int rep) throws HL7Exception { return (XPN) super.removeRepetition(3, rep); } /** * Returns all repetitions of Staff Type (STF-4). */ public IS[] getStaffType() { IS[] ret = null; try { Type[] t = this.getField(4); 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 Staff Type (STF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStaffTypeReps() { IS[] ret = null; try { Type[] t = this.getField(4); 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 * STF-4: "Staff Type" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getStaffType(int rep) { IS ret = null; try { Type t = this.getField(4, 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 * STF-4: "Staff Type" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getStf4_StaffType(int rep) { IS ret = null; try { Type t = this.getField(4, 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 Staff Type (STF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf4_StaffTypeReps() { IS[] ret = null; try { Type[] t = this.getField(4); 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 * STF-4: "Staff Type" 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 insertStaffType(int rep) throws HL7Exception { return (IS) super.insertRepetition(4, rep); } /** * Inserts a repetition of * STF-4: "Staff Type" 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 insertStf4_StaffType(int rep) throws HL7Exception { return (IS) super.insertRepetition(4, rep); } /** * Removes a repetition of * STF-4: "Staff Type" 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 removeStaffType(int rep) throws HL7Exception { return (IS) super.removeRepetition(4, rep); } /** * Removes a repetition of * STF-4: "Staff Type" 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 removeStf4_StaffType(int rep) throws HL7Exception { return (IS) super.removeRepetition(4, rep); } /** * Returns * STF-5: "Administrative Sex" - creates it if necessary */ public IS getAdministrativeSex() { 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 * STF-5: "Administrative Sex" - creates it if necessary */ public IS getStf5_AdministrativeSex() { 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 * STF-6: "Date/Time of Birth" - creates it if necessary */ public TS getDateTimeOfBirth() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-6: "Date/Time of Birth" - creates it if necessary */ public TS getStf6_DateTimeOfBirth() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-7: "Active/Inactive Flag" - creates it if necessary */ public ID getActiveInactiveFlag() { ID ret = null; try { Type t = this.getField(7, 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 * STF-7: "Active/Inactive Flag" - creates it if necessary */ public ID getStf7_ActiveInactiveFlag() { ID ret = null; try { Type t = this.getField(7, 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 Department (STF-8). */ public CE[] getDepartment() { CE[] ret = null; try { Type[] t = this.getField(8); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)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 Department (STF-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getDepartmentReps() { CE[] ret = null; try { Type[] t = this.getField(8); 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 * STF-8: "Department" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getDepartment(int rep) { CE ret = null; try { Type t = this.getField(8, rep); 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 a specific repetition of * STF-8: "Department" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getStf8_Department(int rep) { CE ret = null; try { Type t = this.getField(8, rep); 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 a count of the current number of repetitions of Department (STF-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf8_DepartmentReps() { CE[] ret = null; try { Type[] t = this.getField(8); 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 * STF-8: "Department" 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 CE insertDepartment(int rep) throws HL7Exception { return (CE) super.insertRepetition(8, rep); } /** * Inserts a repetition of * STF-8: "Department" 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 CE insertStf8_Department(int rep) throws HL7Exception { return (CE) super.insertRepetition(8, rep); } /** * Removes a repetition of * STF-8: "Department" 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 CE removeDepartment(int rep) throws HL7Exception { return (CE) super.removeRepetition(8, rep); } /** * Removes a repetition of * STF-8: "Department" 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 CE removeStf8_Department(int rep) throws HL7Exception { return (CE) super.removeRepetition(8, rep); } /** * Returns all repetitions of Hospital Service - STF (STF-9). */ public CE[] getHospitalServiceSTF() { CE[] ret = null; try { Type[] t = this.getField(9); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)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 Hospital Service - STF (STF-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getHospitalServiceSTFReps() { CE[] ret = null; try { Type[] t = this.getField(9); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * STF-9: "Hospital Service - STF" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getHospitalServiceSTF(int rep) { CE ret = null; try { Type t = this.getField(9, rep); 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 a specific repetition of * STF-9: "Hospital Service - STF" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getStf9_HospitalServiceSTF(int rep) { CE ret = null; try { Type t = this.getField(9, rep); 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 a count of the current number of repetitions of Hospital Service - STF (STF-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf9_HospitalServiceSTFReps() { CE[] ret = null; try { Type[] t = this.getField(9); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * STF-9: "Hospital Service - STF" 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 CE insertHospitalServiceSTF(int rep) throws HL7Exception { return (CE) super.insertRepetition(9, rep); } /** * Inserts a repetition of * STF-9: "Hospital Service - STF" 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 CE insertStf9_HospitalServiceSTF(int rep) throws HL7Exception { return (CE) super.insertRepetition(9, rep); } /** * Removes a repetition of * STF-9: "Hospital Service - STF" 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 CE removeHospitalServiceSTF(int rep) throws HL7Exception { return (CE) super.removeRepetition(9, rep); } /** * Removes a repetition of * STF-9: "Hospital Service - STF" 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 CE removeStf9_HospitalServiceSTF(int rep) throws HL7Exception { return (CE) super.removeRepetition(9, rep); } /** * Returns all repetitions of Phone (STF-10). */ public XTN[] getPhone() { XTN[] ret = null; try { Type[] t = this.getField(10); 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 Phone (STF-10). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPhoneReps() { XTN[] ret = null; try { Type[] t = this.getField(10); 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 * STF-10: "Phone" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getPhone(int rep) { XTN ret = null; try { Type t = this.getField(10, 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 * STF-10: "Phone" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getStf10_Phone(int rep) { XTN ret = null; try { Type t = this.getField(10, 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 Phone (STF-10). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf10_PhoneReps() { XTN[] ret = null; try { Type[] t = this.getField(10); 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 * STF-10: "Phone" 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 insertPhone(int rep) throws HL7Exception { return (XTN) super.insertRepetition(10, rep); } /** * Inserts a repetition of * STF-10: "Phone" 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 insertStf10_Phone(int rep) throws HL7Exception { return (XTN) super.insertRepetition(10, rep); } /** * Removes a repetition of * STF-10: "Phone" 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 removePhone(int rep) throws HL7Exception { return (XTN) super.removeRepetition(10, rep); } /** * Removes a repetition of * STF-10: "Phone" 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 removeStf10_Phone(int rep) throws HL7Exception { return (XTN) super.removeRepetition(10, rep); } /** * Returns all repetitions of Office/Home Address/Birthplace (STF-11). */ public XAD[] getOfficeHomeAddressBirthplace() { XAD[] ret = null; try { Type[] t = this.getField(11); ret = new XAD[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XAD)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 Office/Home Address/Birthplace (STF-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getOfficeHomeAddressBirthplaceReps() { XAD[] ret = null; try { Type[] t = this.getField(11); 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 * STF-11: "Office/Home Address/Birthplace" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XAD getOfficeHomeAddressBirthplace(int rep) { XAD ret = null; try { Type t = this.getField(11, rep); ret = (XAD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 * STF-11: "Office/Home Address/Birthplace" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XAD getStf11_OfficeHomeAddressBirthplace(int rep) { XAD ret = null; try { Type t = this.getField(11, rep); ret = (XAD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 Office/Home Address/Birthplace (STF-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf11_OfficeHomeAddressBirthplaceReps() { XAD[] ret = null; try { Type[] t = this.getField(11); 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 * STF-11: "Office/Home Address/Birthplace" 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 XAD insertOfficeHomeAddressBirthplace(int rep) throws HL7Exception { return (XAD) super.insertRepetition(11, rep); } /** * Inserts a repetition of * STF-11: "Office/Home Address/Birthplace" 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 XAD insertStf11_OfficeHomeAddressBirthplace(int rep) throws HL7Exception { return (XAD) super.insertRepetition(11, rep); } /** * Removes a repetition of * STF-11: "Office/Home Address/Birthplace" 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 XAD removeOfficeHomeAddressBirthplace(int rep) throws HL7Exception { return (XAD) super.removeRepetition(11, rep); } /** * Removes a repetition of * STF-11: "Office/Home Address/Birthplace" 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 XAD removeStf11_OfficeHomeAddressBirthplace(int rep) throws HL7Exception { return (XAD) super.removeRepetition(11, rep); } /** * Returns all repetitions of Institution Activation Date (STF-12). */ public DIN[] getInstitutionActivationDate() { DIN[] ret = null; try { Type[] t = this.getField(12); ret = new DIN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (DIN)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 Institution Activation Date (STF-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInstitutionActivationDateReps() { DIN[] ret = null; try { Type[] t = this.getField(12); 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 * STF-12: "Institution Activation Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DIN getInstitutionActivationDate(int rep) { DIN ret = null; try { Type t = this.getField(12, rep); ret = (DIN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 * STF-12: "Institution Activation Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DIN getStf12_InstitutionActivationDate(int rep) { DIN ret = null; try { Type t = this.getField(12, rep); ret = (DIN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 Institution Activation Date (STF-12). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf12_InstitutionActivationDateReps() { DIN[] ret = null; try { Type[] t = this.getField(12); 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 * STF-12: "Institution Activation 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 DIN insertInstitutionActivationDate(int rep) throws HL7Exception { return (DIN) super.insertRepetition(12, rep); } /** * Inserts a repetition of * STF-12: "Institution Activation 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 DIN insertStf12_InstitutionActivationDate(int rep) throws HL7Exception { return (DIN) super.insertRepetition(12, rep); } /** * Removes a repetition of * STF-12: "Institution Activation 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 DIN removeInstitutionActivationDate(int rep) throws HL7Exception { return (DIN) super.removeRepetition(12, rep); } /** * Removes a repetition of * STF-12: "Institution Activation 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 DIN removeStf12_InstitutionActivationDate(int rep) throws HL7Exception { return (DIN) super.removeRepetition(12, rep); } /** * Returns all repetitions of Institution Inactivation Date (STF-13). */ public DIN[] getInstitutionInactivationDate() { DIN[] ret = null; try { Type[] t = this.getField(13); ret = new DIN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (DIN)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 Institution Inactivation Date (STF-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getInstitutionInactivationDateReps() { DIN[] ret = null; try { Type[] t = this.getField(13); 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 * STF-13: "Institution Inactivation Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DIN getInstitutionInactivationDate(int rep) { DIN ret = null; try { Type t = this.getField(13, rep); ret = (DIN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 * STF-13: "Institution Inactivation Date" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DIN getStf13_InstitutionInactivationDate(int rep) { DIN ret = null; try { Type t = this.getField(13, rep); ret = (DIN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (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 Institution Inactivation Date (STF-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf13_InstitutionInactivationDateReps() { DIN[] ret = null; try { Type[] t = this.getField(13); 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 * STF-13: "Institution Inactivation 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 DIN insertInstitutionInactivationDate(int rep) throws HL7Exception { return (DIN) super.insertRepetition(13, rep); } /** * Inserts a repetition of * STF-13: "Institution Inactivation 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 DIN insertStf13_InstitutionInactivationDate(int rep) throws HL7Exception { return (DIN) super.insertRepetition(13, rep); } /** * Removes a repetition of * STF-13: "Institution Inactivation 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 DIN removeInstitutionInactivationDate(int rep) throws HL7Exception { return (DIN) super.removeRepetition(13, rep); } /** * Removes a repetition of * STF-13: "Institution Inactivation 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 DIN removeStf13_InstitutionInactivationDate(int rep) throws HL7Exception { return (DIN) super.removeRepetition(13, rep); } /** * Returns all repetitions of Backup Person ID (STF-14). */ public CE[] getBackupPersonID() { CE[] ret = null; try { Type[] t = this.getField(14); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)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 Backup Person ID (STF-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBackupPersonIDReps() { CE[] ret = null; try { Type[] t = this.getField(14); 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 * STF-14: "Backup Person ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getBackupPersonID(int rep) { CE ret = null; try { Type t = this.getField(14, rep); 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 a specific repetition of * STF-14: "Backup Person ID" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getStf14_BackupPersonID(int rep) { CE ret = null; try { Type t = this.getField(14, rep); 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 a count of the current number of repetitions of Backup Person ID (STF-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf14_BackupPersonIDReps() { CE[] ret = null; try { Type[] t = this.getField(14); 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 * STF-14: "Backup Person 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 CE insertBackupPersonID(int rep) throws HL7Exception { return (CE) super.insertRepetition(14, rep); } /** * Inserts a repetition of * STF-14: "Backup Person 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 CE insertStf14_BackupPersonID(int rep) throws HL7Exception { return (CE) super.insertRepetition(14, rep); } /** * Removes a repetition of * STF-14: "Backup Person 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 CE removeBackupPersonID(int rep) throws HL7Exception { return (CE) super.removeRepetition(14, rep); } /** * Removes a repetition of * STF-14: "Backup Person 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 CE removeStf14_BackupPersonID(int rep) throws HL7Exception { return (CE) super.removeRepetition(14, rep); } /** * Returns all repetitions of E-Mail Address (STF-15). */ public ST[] getEMailAddress() { ST[] ret = null; try { Type[] t = this.getField(15); 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 E-Mail Address (STF-15). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEMailAddressReps() { ST[] ret = null; try { Type[] t = this.getField(15); 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 * STF-15: "E-Mail Address" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getEMailAddress(int rep) { ST ret = null; try { Type t = this.getField(15, 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 * STF-15: "E-Mail Address" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getStf15_EMailAddress(int rep) { ST ret = null; try { Type t = this.getField(15, 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 E-Mail Address (STF-15). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf15_EMailAddressReps() { ST[] ret = null; try { Type[] t = this.getField(15); 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 * STF-15: "E-Mail Address" 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 insertEMailAddress(int rep) throws HL7Exception { return (ST) super.insertRepetition(15, rep); } /** * Inserts a repetition of * STF-15: "E-Mail Address" 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 insertStf15_EMailAddress(int rep) throws HL7Exception { return (ST) super.insertRepetition(15, rep); } /** * Removes a repetition of * STF-15: "E-Mail Address" 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 removeEMailAddress(int rep) throws HL7Exception { return (ST) super.removeRepetition(15, rep); } /** * Removes a repetition of * STF-15: "E-Mail Address" 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 removeStf15_EMailAddress(int rep) throws HL7Exception { return (ST) super.removeRepetition(15, rep); } /** * Returns * STF-16: "Preferred Method of Contact" - creates it if necessary */ public CE getPreferredMethodOfContact() { CE ret = null; try { Type t = this.getField(16, 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 * STF-16: "Preferred Method of Contact" - creates it if necessary */ public CE getStf16_PreferredMethodOfContact() { CE ret = null; try { Type t = this.getField(16, 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 * STF-17: "Marital Status" - creates it if necessary */ public CE getMaritalStatus() { CE ret = null; try { Type t = this.getField(17, 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 * STF-17: "Marital Status" - creates it if necessary */ public CE getStf17_MaritalStatus() { CE ret = null; try { Type t = this.getField(17, 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 * STF-18: "Job Title" - creates it if necessary */ public ST getJobTitle() { ST ret = null; try { Type t = this.getField(18, 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 * STF-18: "Job Title" - creates it if necessary */ public ST getStf18_JobTitle() { ST ret = null; try { Type t = this.getField(18, 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 * STF-19: "Job Code/Class" - creates it if necessary */ public JCC getJobCodeClass() { JCC ret = null; try { Type t = this.getField(19, 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 * STF-19: "Job Code/Class" - creates it if necessary */ public JCC getStf19_JobCodeClass() { JCC ret = null; try { Type t = this.getField(19, 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 * STF-20: "Employment Status Code" - creates it if necessary */ public CE getEmploymentStatusCode() { CE ret = null; try { Type t = this.getField(20, 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 * STF-20: "Employment Status Code" - creates it if necessary */ public CE getStf20_EmploymentStatusCode() { CE ret = null; try { Type t = this.getField(20, 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 * STF-21: "Additional Insured on Auto" - creates it if necessary */ public ID getAdditionalInsuredOnAuto() { ID ret = null; try { Type t = this.getField(21, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-21: "Additional Insured on Auto" - creates it if necessary */ public ID getStf21_AdditionalInsuredOnAuto() { ID ret = null; try { Type t = this.getField(21, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-22: "Driver's License Number - Staff" - creates it if necessary */ public DLN getDriverSLicenseNumberStaff() { DLN ret = null; try { Type t = this.getField(22, 0); ret = (DLN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-22: "Driver's License Number - Staff" - creates it if necessary */ public DLN getStf22_DriverSLicenseNumberStaff() { DLN ret = null; try { Type t = this.getField(22, 0); ret = (DLN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-23: "Copy Auto Ins" - creates it if necessary */ public ID getCopyAutoIns() { ID ret = null; try { Type t = this.getField(23, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-23: "Copy Auto Ins" - creates it if necessary */ public ID getStf23_CopyAutoIns() { ID ret = null; try { Type t = this.getField(23, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-24: "Auto Ins. Expires" - creates it if necessary */ public DT getAutoInsExpires() { DT ret = null; try { Type t = this.getField(24, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-24: "Auto Ins. Expires" - creates it if necessary */ public DT getStf24_AutoInsExpires() { DT ret = null; try { Type t = this.getField(24, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-25: "Date Last DMV Review" - creates it if necessary */ public DT getDateLastDMVReview() { DT ret = null; try { Type t = this.getField(25, 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 * STF-25: "Date Last DMV Review" - creates it if necessary */ public DT getStf25_DateLastDMVReview() { DT ret = null; try { Type t = this.getField(25, 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 * STF-26: "Date Next DMV Review" - creates it if necessary */ public DT getDateNextDMVReview() { DT ret = null; try { Type t = this.getField(26, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-26: "Date Next DMV Review" - creates it if necessary */ public DT getStf26_DateNextDMVReview() { DT ret = null; try { Type t = this.getField(26, 0); ret = (DT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-27: "Race" - creates it if necessary */ public CE getRace() { CE ret = null; try { Type t = this.getField(27, 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 * STF-27: "Race" - creates it if necessary */ public CE getStf27_Race() { CE ret = null; try { Type t = this.getField(27, 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 * STF-28: "Ethnic Group" - creates it if necessary */ public CE getEthnicGroup() { CE ret = null; try { Type t = this.getField(28, 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 * STF-28: "Ethnic Group" - creates it if necessary */ public CE getStf28_EthnicGroup() { CE ret = null; try { Type t = this.getField(28, 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 * STF-29: "Re-activation Approval Indicator" - creates it if necessary */ public ID getReActivationApprovalIndicator() { ID ret = null; try { Type t = this.getField(29, 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 * STF-29: "Re-activation Approval Indicator" - creates it if necessary */ public ID getStf29_ReActivationApprovalIndicator() { ID ret = null; try { Type t = this.getField(29, 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 Citizenship (STF-30). */ public CE[] getCitizenship() { CE[] ret = null; try { Type[] t = this.getField(30); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Citizenship (STF-30). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCitizenshipReps() { CE[] ret = null; try { Type[] t = this.getField(30); 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 * STF-30: "Citizenship" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCitizenship(int rep) { CE ret = null; try { Type t = this.getField(30, rep); 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 a specific repetition of * STF-30: "Citizenship" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getStf30_Citizenship(int rep) { CE ret = null; try { Type t = this.getField(30, rep); 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 a count of the current number of repetitions of Citizenship (STF-30). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf30_CitizenshipReps() { CE[] ret = null; try { Type[] t = this.getField(30); 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 * STF-30: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CE insertCitizenship(int rep) throws HL7Exception { return (CE) super.insertRepetition(30, rep); } /** * Inserts a repetition of * STF-30: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CE insertStf30_Citizenship(int rep) throws HL7Exception { return (CE) super.insertRepetition(30, rep); } /** * Removes a repetition of * STF-30: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CE removeCitizenship(int rep) throws HL7Exception { return (CE) super.removeRepetition(30, rep); } /** * Removes a repetition of * STF-30: "Citizenship" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public CE removeStf30_Citizenship(int rep) throws HL7Exception { return (CE) super.removeRepetition(30, rep); } /** * Returns * STF-31: "Death Date and Time" - creates it if necessary */ public TS getDeathDateAndTime() { TS ret = null; try { Type t = this.getField(31, 0); ret = (TS)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-31: "Death Date and Time" - creates it if necessary */ public TS getStf31_DeathDateAndTime() { TS ret = null; try { Type t = this.getField(31, 0); ret = (TS)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-32: "Death Indicator" - creates it if necessary */ public ID getDeathIndicator() { ID ret = null; try { Type t = this.getField(32, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-32: "Death Indicator" - creates it if necessary */ public ID getStf32_DeathIndicator() { ID ret = null; try { Type t = this.getField(32, 0); ret = (ID)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-33: "Institution Relationship Type Code" - creates it if necessary */ public CWE getInstitutionRelationshipTypeCode() { CWE ret = null; try { Type t = this.getField(33, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-33: "Institution Relationship Type Code" - creates it if necessary */ public CWE getStf33_InstitutionRelationshipTypeCode() { CWE ret = null; try { Type t = this.getField(33, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-34: "Institution Relationship Period" - creates it if necessary */ public DR getInstitutionRelationshipPeriod() { DR ret = null; try { Type t = this.getField(34, 0); ret = (DR)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-34: "Institution Relationship Period" - creates it if necessary */ public DR getStf34_InstitutionRelationshipPeriod() { DR ret = null; try { Type t = this.getField(34, 0); ret = (DR)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-35: "Expected Return Date" - creates it if necessary */ public DT getExpectedReturnDate() { DT ret = null; try { Type t = this.getField(35, 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 * STF-35: "Expected Return Date" - creates it if necessary */ public DT getStf35_ExpectedReturnDate() { DT ret = null; try { Type t = this.getField(35, 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 Cost Center Code (STF-36). */ public CWE[] getCostCenterCode() { CWE[] ret = null; try { Type[] t = this.getField(36); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Cost Center Code (STF-36). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCostCenterCodeReps() { CWE[] ret = null; try { Type[] t = this.getField(36); 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 * STF-36: "Cost Center Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getCostCenterCode(int rep) { CWE ret = null; try { Type t = this.getField(36, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * STF-36: "Cost Center Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getStf36_CostCenterCode(int rep) { CWE ret = null; try { Type t = this.getField(36, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Cost Center Code (STF-36). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getStf36_CostCenterCodeReps() { CWE[] ret = null; try { Type[] t = this.getField(36); 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 * STF-36: "Cost Center 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 CWE insertCostCenterCode(int rep) throws HL7Exception { return (CWE) super.insertRepetition(36, rep); } /** * Inserts a repetition of * STF-36: "Cost Center 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 CWE insertStf36_CostCenterCode(int rep) throws HL7Exception { return (CWE) super.insertRepetition(36, rep); } /** * Removes a repetition of * STF-36: "Cost Center 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 CWE removeCostCenterCode(int rep) throws HL7Exception { return (CWE) super.removeRepetition(36, rep); } /** * Removes a repetition of * STF-36: "Cost Center 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 CWE removeStf36_CostCenterCode(int rep) throws HL7Exception { return (CWE) super.removeRepetition(36, rep); } /** * Returns * STF-37: "Generic Classification Indicator" - creates it if necessary */ public ID getGenericClassificationIndicator() { 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 * STF-37: "Generic Classification Indicator" - creates it if necessary */ public ID getStf37_GenericClassificationIndicator() { 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 * STF-38: "Inactive Reason Code" - creates it if necessary */ public CWE getInactiveReasonCode() { CWE ret = null; try { Type t = this.getField(38, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * STF-38: "Inactive Reason Code" - creates it if necessary */ public CWE getStf38_InactiveReasonCode() { CWE ret = null; try { Type t = this.getField(38, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CX(getMessage()); case 2: return new XPN(getMessage()); case 3: return new IS(getMessage(), new Integer( 182 )); case 4: return new IS(getMessage(), new Integer( 1 )); case 5: return new TS(getMessage()); case 6: return new ID(getMessage(), new Integer( 183 )); case 7: return new CE(getMessage()); case 8: return new CE(getMessage()); case 9: return new XTN(getMessage()); case 10: return new XAD(getMessage()); case 11: return new DIN(getMessage()); case 12: return new DIN(getMessage()); case 13: return new CE(getMessage()); case 14: return new ST(getMessage()); case 15: return new CE(getMessage()); case 16: return new CE(getMessage()); case 17: return new ST(getMessage()); case 18: return new JCC(getMessage()); case 19: return new CE(getMessage()); case 20: return new ID(getMessage(), new Integer( 136 )); case 21: return new DLN(getMessage()); case 22: return new ID(getMessage(), new Integer( 136 )); case 23: return new DT(getMessage()); case 24: return new DT(getMessage()); case 25: return new DT(getMessage()); case 26: return new CE(getMessage()); case 27: return new CE(getMessage()); case 28: return new ID(getMessage(), new Integer( 136 )); case 29: return new CE(getMessage()); case 30: return new TS(getMessage()); case 31: return new ID(getMessage(), new Integer( 136 )); case 32: return new CWE(getMessage()); case 33: return new DR(getMessage()); case 34: return new DT(getMessage()); case 35: return new CWE(getMessage()); case 36: return new ID(getMessage(), new Integer( 136 )); case 37: return new CWE(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy