ca.uhn.hl7v2.model.v24.segment.PID Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
* specific language governing rights and limitations under the License.
*
* The Original Code is "[file_name]". Description:
* "[one_line_description]"
*
* The Initial Developer of the Original Code is University Health Network. Copyright (C)
* 2002. All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* Alternatively, the contents of this file may be used under the terms of the
* GNU General Public License (the "GPL"), in which case the provisions of the GPL are
* applicable instead of those above. If you wish to allow use of your version of this
* file only under the terms of the GPL and not to allow others to use your version
* of this file under the MPL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by the GPL License.
* If you do not delete the provisions above, a recipient may use your version of
* this file under either the MPL or the GPL.
*
*/
package ca.uhn.hl7v2.model.v24.segment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.datatype.*;
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 PID message segment (Patient identification).
* This segment has the following fields:
*
* - PID-1: Set ID - PID (SI) optional
*
- PID-2: Patient ID (CX) optional
*
- PID-3: Patient Identifier List (CX) repeating
*
- PID-4: Alternate Patient ID - PID (CX) optional repeating
*
- PID-5: Patient Name (XPN) repeating
*
- PID-6: Mother's Maiden Name (XPN) optional repeating
*
- PID-7: Date/Time Of Birth (TS) optional
*
- PID-8: Administrative Sex (IS) optional
*
- PID-9: Patient Alias (XPN) optional repeating
*
- PID-10: Race (CE) optional repeating
*
- PID-11: Patient Address (XAD) optional repeating
*
- PID-12: County Code (IS) optional
*
- PID-13: Phone Number - Home (XTN) optional repeating
*
- PID-14: Phone Number - Business (XTN) optional repeating
*
- PID-15: Primary Language (CE) optional
*
- PID-16: Marital Status (CE) optional
*
- PID-17: Religion (CE) optional
*
- PID-18: Patient Account Number (CX) optional
*
- PID-19: SSN Number - Patient (ST) optional
*
- PID-20: Driver's License Number - Patient (DLN) optional
*
- PID-21: Mother's Identifier (CX) optional repeating
*
- PID-22: Ethnic Group (CE) optional repeating
*
- PID-23: Birth Place (ST) optional
*
- PID-24: Multiple Birth Indicator (ID) optional
*
- PID-25: Birth Order (NM) optional
*
- PID-26: Citizenship (CE) optional repeating
*
- PID-27: Veterans Military Status (CE) optional
*
- PID-28: Nationality (CE) optional
*
- PID-29: Patient Death Date and Time (TS) optional
*
- PID-30: Patient Death Indicator (ID) optional
*
- PID-31: Identity Unknown Indicator (ID) optional
*
- PID-32: Identity Reliability Code (IS) optional repeating
*
- PID-33: Last Update Date/Time (TS) optional
*
- PID-34: Last Update Facility (HD) optional
*
- PID-35: Species Code (CE) optional
*
- PID-36: Breed Code (CE) optional
*
- PID-37: Strain (ST) optional
*
- PID-38: Production Class Code (CE) optional
*
*/
@SuppressWarnings("unused")
public class PID extends AbstractSegment {
/**
* Creates a new PID segment
*/
public PID(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - PID");
this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Patient ID");
this.add(CX.class, true, 0, 250, new Object[]{ getMessage() }, "Patient Identifier List");
this.add(CX.class, false, 0, 20, new Object[]{ getMessage() }, "Alternate Patient ID - PID");
this.add(XPN.class, true, 0, 250, new Object[]{ getMessage() }, "Patient Name");
this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Mother's Maiden Name");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time Of Birth");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Administrative Sex");
this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Patient Alias");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Race");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Patient Address");
this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(289) }, "County Code");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Phone Number - Home");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Phone Number - Business");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Primary Language");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Marital Status");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Religion");
this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Patient Account Number");
this.add(ST.class, false, 1, 16, new Object[]{ getMessage() }, "SSN Number - Patient");
this.add(DLN.class, false, 1, 25, new Object[]{ getMessage() }, "Driver's License Number - Patient");
this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Mother's Identifier");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Ethnic Group");
this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Birth Place");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Multiple Birth Indicator");
this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Birth Order");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Citizenship");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Veterans Military Status");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Nationality");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Patient Death Date and Time");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Patient Death Indicator");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Identity Unknown Indicator");
this.add(IS.class, false, 0, 20, new Object[]{ getMessage(), new Integer(445) }, "Identity Reliability Code");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Last Update Date/Time");
this.add(HD.class, false, 1, 40, new Object[]{ getMessage() }, "Last Update Facility");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Species Code");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Breed Code");
this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Strain");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Production Class Code");
} catch(HL7Exception e) {
LoggerFactory.getLogger(getClass()).error("Unexpected error creating PID - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* PID-1: "Set ID - PID" - creates it if necessary
*/
public SI getSetIDPID() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-1: "Set ID - PID" - creates it if necessary
*/
public SI getPid1_SetIDPID() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-2: "Patient ID" - creates it if necessary
*/
public CX getPatientID() {
CX ret = null;
try {
Type t = this.getField(2, 0);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-2: "Patient ID" - creates it if necessary
*/
public CX getPid2_PatientID() {
CX ret = null;
try {
Type t = this.getField(2, 0);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Patient Identifier List (PID-3).
*/
public CX[] getPatientIdentifierList() {
CX[] ret = null;
try {
Type[] t = this.getField(3);
ret = new CX[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CX)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Identifier List (PID-3).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPatientIdentifierListReps() {
CX[] ret = null;
try {
Type[] t = this.getField(3);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-3: "Patient Identifier List" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getPatientIdentifierList(int rep) {
CX ret = null;
try {
Type t = this.getField(3, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-3: "Patient Identifier List" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getPid3_PatientIdentifierList(int rep) {
CX ret = null;
try {
Type t = this.getField(3, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Identifier List (PID-3).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid3_PatientIdentifierListReps() {
CX[] ret = null;
try {
Type[] t = this.getField(3);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-3: "Patient 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 insertPatientIdentifierList(int rep) throws HL7Exception {
return (CX) super.insertRepetition(3, rep);
}
/**
* Inserts a repetition of
* PID-3: "Patient 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 insertPid3_PatientIdentifierList(int rep) throws HL7Exception {
return (CX) super.insertRepetition(3, rep);
}
/**
* Removes a repetition of
* PID-3: "Patient 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 removePatientIdentifierList(int rep) throws HL7Exception {
return (CX) super.removeRepetition(3, rep);
}
/**
* Removes a repetition of
* PID-3: "Patient 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 removePid3_PatientIdentifierList(int rep) throws HL7Exception {
return (CX) super.removeRepetition(3, rep);
}
/**
* Returns all repetitions of Alternate Patient ID - PID (PID-4).
*/
public CX[] getAlternatePatientIDPID() {
CX[] ret = null;
try {
Type[] t = this.getField(4);
ret = new CX[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CX)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Alternate Patient ID - PID (PID-4).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAlternatePatientIDPIDReps() {
CX[] ret = null;
try {
Type[] t = this.getField(4);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-4: "Alternate Patient ID - PID" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getAlternatePatientIDPID(int rep) {
CX ret = null;
try {
Type t = this.getField(4, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-4: "Alternate Patient ID - PID" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getPid4_AlternatePatientIDPID(int rep) {
CX ret = null;
try {
Type t = this.getField(4, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Alternate Patient ID - PID (PID-4).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid4_AlternatePatientIDPIDReps() {
CX[] ret = null;
try {
Type[] t = this.getField(4);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-4: "Alternate Patient ID - PID" 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 insertAlternatePatientIDPID(int rep) throws HL7Exception {
return (CX) super.insertRepetition(4, rep);
}
/**
* Inserts a repetition of
* PID-4: "Alternate Patient ID - PID" 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 insertPid4_AlternatePatientIDPID(int rep) throws HL7Exception {
return (CX) super.insertRepetition(4, rep);
}
/**
* Removes a repetition of
* PID-4: "Alternate Patient ID - PID" 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 removeAlternatePatientIDPID(int rep) throws HL7Exception {
return (CX) super.removeRepetition(4, rep);
}
/**
* Removes a repetition of
* PID-4: "Alternate Patient ID - PID" 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 removePid4_AlternatePatientIDPID(int rep) throws HL7Exception {
return (CX) super.removeRepetition(4, rep);
}
/**
* Returns all repetitions of Patient Name (PID-5).
*/
public XPN[] getPatientName() {
XPN[] ret = null;
try {
Type[] t = this.getField(5);
ret = new XPN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XPN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Name (PID-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPatientNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(5);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-5: "Patient Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPatientName(int rep) {
XPN ret = null;
try {
Type t = this.getField(5, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-5: "Patient Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPid5_PatientName(int rep) {
XPN ret = null;
try {
Type t = this.getField(5, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Name (PID-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid5_PatientNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(5);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-5: "Patient 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 insertPatientName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(5, rep);
}
/**
* Inserts a repetition of
* PID-5: "Patient 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 insertPid5_PatientName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(5, rep);
}
/**
* Removes a repetition of
* PID-5: "Patient 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 removePatientName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(5, rep);
}
/**
* Removes a repetition of
* PID-5: "Patient 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 removePid5_PatientName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(5, rep);
}
/**
* Returns all repetitions of Mother's Maiden Name (PID-6).
*/
public XPN[] getMotherSMaidenName() {
XPN[] ret = null;
try {
Type[] t = this.getField(6);
ret = new XPN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XPN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Mother's Maiden Name (PID-6).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getMotherSMaidenNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(6);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-6: "Mother's Maiden Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getMotherSMaidenName(int rep) {
XPN ret = null;
try {
Type t = this.getField(6, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-6: "Mother's Maiden Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPid6_MotherSMaidenName(int rep) {
XPN ret = null;
try {
Type t = this.getField(6, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Mother's Maiden Name (PID-6).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid6_MotherSMaidenNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(6);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-6: "Mother's Maiden Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertMotherSMaidenName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(6, rep);
}
/**
* Inserts a repetition of
* PID-6: "Mother's Maiden Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertPid6_MotherSMaidenName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(6, rep);
}
/**
* Removes a repetition of
* PID-6: "Mother's Maiden Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removeMotherSMaidenName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(6, rep);
}
/**
* Removes a repetition of
* PID-6: "Mother's Maiden Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removePid6_MotherSMaidenName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(6, rep);
}
/**
* Returns
* PID-7: "Date/Time Of Birth" - creates it if necessary
*/
public TS getDateTimeOfBirth() {
TS ret = null;
try {
Type t = this.getField(7, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-7: "Date/Time Of Birth" - creates it if necessary
*/
public TS getPid7_DateTimeOfBirth() {
TS ret = null;
try {
Type t = this.getField(7, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-8: "Administrative Sex" - creates it if necessary
*/
public IS getAdministrativeSex() {
IS ret = null;
try {
Type t = this.getField(8, 0);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-8: "Administrative Sex" - creates it if necessary
*/
public IS getPid8_AdministrativeSex() {
IS ret = null;
try {
Type t = this.getField(8, 0);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Patient Alias (PID-9).
*/
public XPN[] getPatientAlias() {
XPN[] ret = null;
try {
Type[] t = this.getField(9);
ret = new XPN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XPN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Alias (PID-9).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPatientAliasReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(9);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-9: "Patient Alias" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPatientAlias(int rep) {
XPN ret = null;
try {
Type t = this.getField(9, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-9: "Patient Alias" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPid9_PatientAlias(int rep) {
XPN ret = null;
try {
Type t = this.getField(9, rep);
ret = (XPN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Alias (PID-9).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid9_PatientAliasReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(9);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-9: "Patient Alias" 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 insertPatientAlias(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(9, rep);
}
/**
* Inserts a repetition of
* PID-9: "Patient Alias" 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 insertPid9_PatientAlias(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(9, rep);
}
/**
* Removes a repetition of
* PID-9: "Patient Alias" 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 removePatientAlias(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(9, rep);
}
/**
* Removes a repetition of
* PID-9: "Patient Alias" 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 removePid9_PatientAlias(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(9, rep);
}
/**
* Returns all repetitions of Race (PID-10).
*/
public CE[] getRace() {
CE[] ret = null;
try {
Type[] t = this.getField(10);
ret = new CE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CE)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Race (PID-10).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRaceReps() {
CE[] ret = null;
try {
Type[] t = this.getField(10);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-10: "Race" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getRace(int rep) {
CE ret = null;
try {
Type t = this.getField(10, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-10: "Race" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPid10_Race(int rep) {
CE ret = null;
try {
Type t = this.getField(10, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Race (PID-10).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid10_RaceReps() {
CE[] ret = null;
try {
Type[] t = this.getField(10);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-10: "Race" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertRace(int rep) throws HL7Exception {
return (CE) super.insertRepetition(10, rep);
}
/**
* Inserts a repetition of
* PID-10: "Race" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertPid10_Race(int rep) throws HL7Exception {
return (CE) super.insertRepetition(10, rep);
}
/**
* Removes a repetition of
* PID-10: "Race" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeRace(int rep) throws HL7Exception {
return (CE) super.removeRepetition(10, rep);
}
/**
* Removes a repetition of
* PID-10: "Race" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removePid10_Race(int rep) throws HL7Exception {
return (CE) super.removeRepetition(10, rep);
}
/**
* Returns all repetitions of Patient Address (PID-11).
*/
public XAD[] getPatientAddress() {
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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Address (PID-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPatientAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(11);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-11: "Patient Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPatientAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(11, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-11: "Patient Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPid11_PatientAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(11, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Patient Address (PID-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid11_PatientAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(11);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-11: "Patient 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 XAD insertPatientAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(11, rep);
}
/**
* Inserts a repetition of
* PID-11: "Patient 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 XAD insertPid11_PatientAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(11, rep);
}
/**
* Removes a repetition of
* PID-11: "Patient 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 XAD removePatientAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(11, rep);
}
/**
* Removes a repetition of
* PID-11: "Patient 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 XAD removePid11_PatientAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(11, rep);
}
/**
* Returns
* PID-12: "County Code" - creates it if necessary
*/
public IS getCountyCode() {
IS ret = null;
try {
Type t = this.getField(12, 0);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-12: "County Code" - creates it if necessary
*/
public IS getPid12_CountyCode() {
IS ret = null;
try {
Type t = this.getField(12, 0);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Phone Number - Home (PID-13).
*/
public XTN[] getPhoneNumberHome() {
XTN[] ret = null;
try {
Type[] t = this.getField(13);
ret = new XTN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XTN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Number - Home (PID-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPhoneNumberHomeReps() {
XTN[] ret = null;
try {
Type[] t = this.getField(13);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-13: "Phone Number - Home" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPhoneNumberHome(int rep) {
XTN ret = null;
try {
Type t = this.getField(13, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-13: "Phone Number - Home" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPid13_PhoneNumberHome(int rep) {
XTN ret = null;
try {
Type t = this.getField(13, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Number - Home (PID-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid13_PhoneNumberHomeReps() {
XTN[] ret = null;
try {
Type[] t = this.getField(13);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-13: "Phone Number - Home" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertPhoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(13, rep);
}
/**
* Inserts a repetition of
* PID-13: "Phone Number - Home" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertPid13_PhoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(13, rep);
}
/**
* Removes a repetition of
* PID-13: "Phone Number - Home" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removePhoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(13, rep);
}
/**
* Removes a repetition of
* PID-13: "Phone Number - Home" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removePid13_PhoneNumberHome(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(13, rep);
}
/**
* Returns all repetitions of Phone Number - Business (PID-14).
*/
public XTN[] getPhoneNumberBusiness() {
XTN[] ret = null;
try {
Type[] t = this.getField(14);
ret = new XTN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XTN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Number - Business (PID-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPhoneNumberBusinessReps() {
XTN[] ret = null;
try {
Type[] t = this.getField(14);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-14: "Phone Number - Business" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPhoneNumberBusiness(int rep) {
XTN ret = null;
try {
Type t = this.getField(14, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-14: "Phone Number - Business" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPid14_PhoneNumberBusiness(int rep) {
XTN ret = null;
try {
Type t = this.getField(14, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Number - Business (PID-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid14_PhoneNumberBusinessReps() {
XTN[] ret = null;
try {
Type[] t = this.getField(14);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-14: "Phone Number - Business" 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 insertPhoneNumberBusiness(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* PID-14: "Phone Number - Business" 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 insertPid14_PhoneNumberBusiness(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* PID-14: "Phone Number - Business" 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 removePhoneNumberBusiness(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* PID-14: "Phone Number - Business" 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 removePid14_PhoneNumberBusiness(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(14, rep);
}
/**
* Returns
* PID-15: "Primary Language" - creates it if necessary
*/
public CE getPrimaryLanguage() {
CE ret = null;
try {
Type t = this.getField(15, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-15: "Primary Language" - creates it if necessary
*/
public CE getPid15_PrimaryLanguage() {
CE ret = null;
try {
Type t = this.getField(15, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-16: "Marital Status" - creates it if necessary
*/
public CE getMaritalStatus() {
CE ret = null;
try {
Type t = this.getField(16, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-16: "Marital Status" - creates it if necessary
*/
public CE getPid16_MaritalStatus() {
CE ret = null;
try {
Type t = this.getField(16, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-17: "Religion" - creates it if necessary
*/
public CE getReligion() {
CE ret = null;
try {
Type t = this.getField(17, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-17: "Religion" - creates it if necessary
*/
public CE getPid17_Religion() {
CE ret = null;
try {
Type t = this.getField(17, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-18: "Patient Account Number" - creates it if necessary
*/
public CX getPatientAccountNumber() {
CX ret = null;
try {
Type t = this.getField(18, 0);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-18: "Patient Account Number" - creates it if necessary
*/
public CX getPid18_PatientAccountNumber() {
CX ret = null;
try {
Type t = this.getField(18, 0);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-19: "SSN Number - Patient" - creates it if necessary
*/
public ST getSSNNumberPatient() {
ST ret = null;
try {
Type t = this.getField(19, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-19: "SSN Number - Patient" - creates it if necessary
*/
public ST getPid19_SSNNumberPatient() {
ST ret = null;
try {
Type t = this.getField(19, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-20: "Driver's License Number - Patient" - creates it if necessary
*/
public DLN getDriverSLicenseNumberPatient() {
DLN ret = null;
try {
Type t = this.getField(20, 0);
ret = (DLN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-20: "Driver's License Number - Patient" - creates it if necessary
*/
public DLN getPid20_DriverSLicenseNumberPatient() {
DLN ret = null;
try {
Type t = this.getField(20, 0);
ret = (DLN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Mother's Identifier (PID-21).
*/
public CX[] getMotherSIdentifier() {
CX[] ret = null;
try {
Type[] t = this.getField(21);
ret = new CX[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CX)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Mother's Identifier (PID-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getMotherSIdentifierReps() {
CX[] ret = null;
try {
Type[] t = this.getField(21);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-21: "Mother's Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getMotherSIdentifier(int rep) {
CX ret = null;
try {
Type t = this.getField(21, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-21: "Mother's Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getPid21_MotherSIdentifier(int rep) {
CX ret = null;
try {
Type t = this.getField(21, rep);
ret = (CX)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Mother's Identifier (PID-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid21_MotherSIdentifierReps() {
CX[] ret = null;
try {
Type[] t = this.getField(21);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-21: "Mother's Identifier" 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 insertMotherSIdentifier(int rep) throws HL7Exception {
return (CX) super.insertRepetition(21, rep);
}
/**
* Inserts a repetition of
* PID-21: "Mother's Identifier" 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 insertPid21_MotherSIdentifier(int rep) throws HL7Exception {
return (CX) super.insertRepetition(21, rep);
}
/**
* Removes a repetition of
* PID-21: "Mother's Identifier" 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 removeMotherSIdentifier(int rep) throws HL7Exception {
return (CX) super.removeRepetition(21, rep);
}
/**
* Removes a repetition of
* PID-21: "Mother's Identifier" 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 removePid21_MotherSIdentifier(int rep) throws HL7Exception {
return (CX) super.removeRepetition(21, rep);
}
/**
* Returns all repetitions of Ethnic Group (PID-22).
*/
public CE[] getEthnicGroup() {
CE[] ret = null;
try {
Type[] t = this.getField(22);
ret = new CE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CE)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Ethnic Group (PID-22).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEthnicGroupReps() {
CE[] ret = null;
try {
Type[] t = this.getField(22);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-22: "Ethnic Group" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getEthnicGroup(int rep) {
CE ret = null;
try {
Type t = this.getField(22, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-22: "Ethnic Group" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPid22_EthnicGroup(int rep) {
CE ret = null;
try {
Type t = this.getField(22, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Ethnic Group (PID-22).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid22_EthnicGroupReps() {
CE[] ret = null;
try {
Type[] t = this.getField(22);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-22: "Ethnic Group" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertEthnicGroup(int rep) throws HL7Exception {
return (CE) super.insertRepetition(22, rep);
}
/**
* Inserts a repetition of
* PID-22: "Ethnic Group" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertPid22_EthnicGroup(int rep) throws HL7Exception {
return (CE) super.insertRepetition(22, rep);
}
/**
* Removes a repetition of
* PID-22: "Ethnic Group" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeEthnicGroup(int rep) throws HL7Exception {
return (CE) super.removeRepetition(22, rep);
}
/**
* Removes a repetition of
* PID-22: "Ethnic Group" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removePid22_EthnicGroup(int rep) throws HL7Exception {
return (CE) super.removeRepetition(22, rep);
}
/**
* Returns
* PID-23: "Birth Place" - creates it if necessary
*/
public ST getBirthPlace() {
ST ret = null;
try {
Type t = this.getField(23, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-23: "Birth Place" - creates it if necessary
*/
public ST getPid23_BirthPlace() {
ST ret = null;
try {
Type t = this.getField(23, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-24: "Multiple Birth Indicator" - creates it if necessary
*/
public ID getMultipleBirthIndicator() {
ID ret = null;
try {
Type t = this.getField(24, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-24: "Multiple Birth Indicator" - creates it if necessary
*/
public ID getPid24_MultipleBirthIndicator() {
ID ret = null;
try {
Type t = this.getField(24, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-25: "Birth Order" - creates it if necessary
*/
public NM getBirthOrder() {
NM ret = null;
try {
Type t = this.getField(25, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-25: "Birth Order" - creates it if necessary
*/
public NM getPid25_BirthOrder() {
NM ret = null;
try {
Type t = this.getField(25, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Citizenship (PID-26).
*/
public CE[] getCitizenship() {
CE[] ret = null;
try {
Type[] t = this.getField(26);
ret = new CE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CE)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 (PID-26).
* 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(26);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-26: "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(26, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-26: "Citizenship" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPid26_Citizenship(int rep) {
CE ret = null;
try {
Type t = this.getField(26, rep);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 (PID-26).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid26_CitizenshipReps() {
CE[] ret = null;
try {
Type[] t = this.getField(26);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-26: "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(26, rep);
}
/**
* Inserts a repetition of
* PID-26: "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 insertPid26_Citizenship(int rep) throws HL7Exception {
return (CE) super.insertRepetition(26, rep);
}
/**
* Removes a repetition of
* PID-26: "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(26, rep);
}
/**
* Removes a repetition of
* PID-26: "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 removePid26_Citizenship(int rep) throws HL7Exception {
return (CE) super.removeRepetition(26, rep);
}
/**
* Returns
* PID-27: "Veterans Military Status" - creates it if necessary
*/
public CE getVeteransMilitaryStatus() {
CE ret = null;
try {
Type t = this.getField(27, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-27: "Veterans Military Status" - creates it if necessary
*/
public CE getPid27_VeteransMilitaryStatus() {
CE ret = null;
try {
Type t = this.getField(27, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-28: "Nationality" - creates it if necessary
*/
public CE getNationality() {
CE ret = null;
try {
Type t = this.getField(28, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-28: "Nationality" - creates it if necessary
*/
public CE getPid28_Nationality() {
CE ret = null;
try {
Type t = this.getField(28, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-29: "Patient Death Date and Time" - creates it if necessary
*/
public TS getPatientDeathDateAndTime() {
TS ret = null;
try {
Type t = this.getField(29, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-29: "Patient Death Date and Time" - creates it if necessary
*/
public TS getPid29_PatientDeathDateAndTime() {
TS ret = null;
try {
Type t = this.getField(29, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-30: "Patient Death Indicator" - creates it if necessary
*/
public ID getPatientDeathIndicator() {
ID ret = null;
try {
Type t = this.getField(30, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-30: "Patient Death Indicator" - creates it if necessary
*/
public ID getPid30_PatientDeathIndicator() {
ID ret = null;
try {
Type t = this.getField(30, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-31: "Identity Unknown Indicator" - creates it if necessary
*/
public ID getIdentityUnknownIndicator() {
ID ret = null;
try {
Type t = this.getField(31, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-31: "Identity Unknown Indicator" - creates it if necessary
*/
public ID getPid31_IdentityUnknownIndicator() {
ID ret = null;
try {
Type t = this.getField(31, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Identity Reliability Code (PID-32).
*/
public IS[] getIdentityReliabilityCode() {
IS[] ret = null;
try {
Type[] t = this.getField(32);
ret = new IS[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (IS)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Identity Reliability Code (PID-32).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getIdentityReliabilityCodeReps() {
IS[] ret = null;
try {
Type[] t = this.getField(32);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* PID-32: "Identity Reliability Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getIdentityReliabilityCode(int rep) {
IS ret = null;
try {
Type t = this.getField(32, rep);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PID-32: "Identity Reliability Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getPid32_IdentityReliabilityCode(int rep) {
IS ret = null;
try {
Type t = this.getField(32, rep);
ret = (IS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(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 Identity Reliability Code (PID-32).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid32_IdentityReliabilityCodeReps() {
IS[] ret = null;
try {
Type[] t = this.getField(32);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* PID-32: "Identity Reliability Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS insertIdentityReliabilityCode(int rep) throws HL7Exception {
return (IS) super.insertRepetition(32, rep);
}
/**
* Inserts a repetition of
* PID-32: "Identity Reliability Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS insertPid32_IdentityReliabilityCode(int rep) throws HL7Exception {
return (IS) super.insertRepetition(32, rep);
}
/**
* Removes a repetition of
* PID-32: "Identity Reliability Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS removeIdentityReliabilityCode(int rep) throws HL7Exception {
return (IS) super.removeRepetition(32, rep);
}
/**
* Removes a repetition of
* PID-32: "Identity Reliability Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS removePid32_IdentityReliabilityCode(int rep) throws HL7Exception {
return (IS) super.removeRepetition(32, rep);
}
/**
* Returns
* PID-33: "Last Update Date/Time" - creates it if necessary
*/
public TS getLastUpdateDateTime() {
TS ret = null;
try {
Type t = this.getField(33, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-33: "Last Update Date/Time" - creates it if necessary
*/
public TS getPid33_LastUpdateDateTime() {
TS ret = null;
try {
Type t = this.getField(33, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-34: "Last Update Facility" - creates it if necessary
*/
public HD getLastUpdateFacility() {
HD ret = null;
try {
Type t = this.getField(34, 0);
ret = (HD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-34: "Last Update Facility" - creates it if necessary
*/
public HD getPid34_LastUpdateFacility() {
HD ret = null;
try {
Type t = this.getField(34, 0);
ret = (HD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-35: "Species Code" - creates it if necessary
*/
public CE getSpeciesCode() {
CE ret = null;
try {
Type t = this.getField(35, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-35: "Species Code" - creates it if necessary
*/
public CE getPid35_SpeciesCode() {
CE ret = null;
try {
Type t = this.getField(35, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-36: "Breed Code" - creates it if necessary
*/
public CE getBreedCode() {
CE ret = null;
try {
Type t = this.getField(36, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-36: "Breed Code" - creates it if necessary
*/
public CE getPid36_BreedCode() {
CE ret = null;
try {
Type t = this.getField(36, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-37: "Strain" - creates it if necessary
*/
public ST getStrain() {
ST ret = null;
try {
Type t = this.getField(37, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-37: "Strain" - creates it if necessary
*/
public ST getPid37_Strain() {
ST ret = null;
try {
Type t = this.getField(37, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-38: "Production Class Code" - creates it if necessary
*/
public CE getProductionClassCode() {
CE ret = null;
try {
Type t = this.getField(38, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PID-38: "Production Class Code" - creates it if necessary
*/
public CE getPid38_ProductionClassCode() {
CE ret = null;
try {
Type t = this.getField(38, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new SI(getMessage());
case 1: return new CX(getMessage());
case 2: return new CX(getMessage());
case 3: return new CX(getMessage());
case 4: return new XPN(getMessage());
case 5: return new XPN(getMessage());
case 6: return new TS(getMessage());
case 7: return new IS(getMessage(), new Integer( 1 ));
case 8: return new XPN(getMessage());
case 9: return new CE(getMessage());
case 10: return new XAD(getMessage());
case 11: return new IS(getMessage(), new Integer( 289 ));
case 12: return new XTN(getMessage());
case 13: return new XTN(getMessage());
case 14: return new CE(getMessage());
case 15: return new CE(getMessage());
case 16: return new CE(getMessage());
case 17: return new CX(getMessage());
case 18: return new ST(getMessage());
case 19: return new DLN(getMessage());
case 20: return new CX(getMessage());
case 21: return new CE(getMessage());
case 22: return new ST(getMessage());
case 23: return new ID(getMessage(), new Integer( 136 ));
case 24: return new NM(getMessage());
case 25: return new CE(getMessage());
case 26: return new CE(getMessage());
case 27: return new CE(getMessage());
case 28: return new TS(getMessage());
case 29: return new ID(getMessage(), new Integer( 136 ));
case 30: return new ID(getMessage(), new Integer( 136 ));
case 31: return new IS(getMessage(), new Integer( 445 ));
case 32: return new TS(getMessage());
case 33: return new HD(getMessage());
case 34: return new CE(getMessage());
case 35: return new CE(getMessage());
case 36: return new ST(getMessage());
case 37: return new CE(getMessage());
default: return null;
}
}
}