ca.uhn.hl7v2.model.v251.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)
* 2012. 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.v251.segment;
// import ca.uhn.hl7v2.model.v251.group.*;
import ca.uhn.hl7v2.model.v251.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
*
- PID-39: Tribal Citizenship (CWE) optional repeating
*
*/
@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, 241, 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");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Tribal Citizenship");
} catch(HL7Exception e) {
log.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 retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns
* PID-1: "Set ID - PID" - creates it if necessary
*/
public SI getPid1_SetIDPID() {
SI retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns
* PID-2: "Patient ID" - creates it if necessary
*/
public CX getPatientID() {
CX retVal = this.getTypedField(2, 0);
return retVal;
}
/**
* Returns
* PID-2: "Patient ID" - creates it if necessary
*/
public CX getPid2_PatientID() {
CX retVal = this.getTypedField(2, 0);
return retVal;
}
/**
* Returns all repetitions of Patient Identifier List (PID-3).
*/
public CX[] getPatientIdentifierList() {
CX[] retVal = this.getTypedField(3, new CX[0]);
return retVal;
}
/**
* Returns all repetitions of Patient Identifier List (PID-3).
*/
public CX[] getPid3_PatientIdentifierList() {
CX[] retVal = this.getTypedField(3, new CX[0]);
return retVal;
}
/**
* 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() {
return this.getReps(3);
}
/**
* 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 retVal = this.getTypedField(3, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(3, rep);
return retVal;
}
/**
* 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() {
return this.getReps(3);
}
/**
* 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[] retVal = this.getTypedField(4, new CX[0]);
return retVal;
}
/**
* Returns all repetitions of Alternate Patient ID - PID (PID-4).
*/
public CX[] getPid4_AlternatePatientIDPID() {
CX[] retVal = this.getTypedField(4, new CX[0]);
return retVal;
}
/**
* 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() {
return this.getReps(4);
}
/**
* 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 retVal = this.getTypedField(4, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(4, rep);
return retVal;
}
/**
* 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() {
return this.getReps(4);
}
/**
* 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[] retVal = this.getTypedField(5, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of Patient Name (PID-5).
*/
public XPN[] getPid5_PatientName() {
XPN[] retVal = this.getTypedField(5, new XPN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(5);
}
/**
* 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 retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* 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() {
return this.getReps(5);
}
/**
* 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[] retVal = this.getTypedField(6, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of Mother's Maiden Name (PID-6).
*/
public XPN[] getPid6_MotherSMaidenName() {
XPN[] retVal = this.getTypedField(6, new XPN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(6);
}
/**
* 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 retVal = this.getTypedField(6, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(6, rep);
return retVal;
}
/**
* 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() {
return this.getReps(6);
}
/**
* 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 retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* PID-7: "Date/Time of Birth" - creates it if necessary
*/
public TS getPid7_DateTimeOfBirth() {
TS retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* PID-8: "Administrative Sex" - creates it if necessary
*/
public IS getAdministrativeSex() {
IS retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns
* PID-8: "Administrative Sex" - creates it if necessary
*/
public IS getPid8_AdministrativeSex() {
IS retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns all repetitions of Patient Alias (PID-9).
*/
public XPN[] getPatientAlias() {
XPN[] retVal = this.getTypedField(9, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of Patient Alias (PID-9).
*/
public XPN[] getPid9_PatientAlias() {
XPN[] retVal = this.getTypedField(9, new XPN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(9);
}
/**
* 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 retVal = this.getTypedField(9, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(9, rep);
return retVal;
}
/**
* 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() {
return this.getReps(9);
}
/**
* 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[] retVal = this.getTypedField(10, new CE[0]);
return retVal;
}
/**
* Returns all repetitions of Race (PID-10).
*/
public CE[] getPid10_Race() {
CE[] retVal = this.getTypedField(10, new CE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(10);
}
/**
* 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 retVal = this.getTypedField(10, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(10, rep);
return retVal;
}
/**
* 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() {
return this.getReps(10);
}
/**
* 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[] retVal = this.getTypedField(11, new XAD[0]);
return retVal;
}
/**
* Returns all repetitions of Patient Address (PID-11).
*/
public XAD[] getPid11_PatientAddress() {
XAD[] retVal = this.getTypedField(11, new XAD[0]);
return retVal;
}
/**
* 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() {
return this.getReps(11);
}
/**
* 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 retVal = this.getTypedField(11, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(11, rep);
return retVal;
}
/**
* 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() {
return this.getReps(11);
}
/**
* 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 retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns
* PID-12: "County Code" - creates it if necessary
*/
public IS getPid12_CountyCode() {
IS retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns all repetitions of Phone Number - Home (PID-13).
*/
public XTN[] getPhoneNumberHome() {
XTN[] retVal = this.getTypedField(13, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Phone Number - Home (PID-13).
*/
public XTN[] getPid13_PhoneNumberHome() {
XTN[] retVal = this.getTypedField(13, new XTN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(13);
}
/**
* 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 retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* 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() {
return this.getReps(13);
}
/**
* 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[] retVal = this.getTypedField(14, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Phone Number - Business (PID-14).
*/
public XTN[] getPid14_PhoneNumberBusiness() {
XTN[] retVal = this.getTypedField(14, new XTN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(14);
}
/**
* 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 retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* 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() {
return this.getReps(14);
}
/**
* 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 retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* PID-15: "Primary Language" - creates it if necessary
*/
public CE getPid15_PrimaryLanguage() {
CE retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* PID-16: "Marital Status" - creates it if necessary
*/
public CE getMaritalStatus() {
CE retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* PID-16: "Marital Status" - creates it if necessary
*/
public CE getPid16_MaritalStatus() {
CE retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* PID-17: "Religion" - creates it if necessary
*/
public CE getReligion() {
CE retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* PID-17: "Religion" - creates it if necessary
*/
public CE getPid17_Religion() {
CE retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* PID-18: "Patient Account Number" - creates it if necessary
*/
public CX getPatientAccountNumber() {
CX retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* PID-18: "Patient Account Number" - creates it if necessary
*/
public CX getPid18_PatientAccountNumber() {
CX retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* PID-19: "SSN Number - Patient" - creates it if necessary
*/
public ST getSSNNumberPatient() {
ST retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* PID-19: "SSN Number - Patient" - creates it if necessary
*/
public ST getPid19_SSNNumberPatient() {
ST retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* PID-20: "Driver's License Number - Patient" - creates it if necessary
*/
public DLN getDriverSLicenseNumberPatient() {
DLN retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns
* PID-20: "Driver's License Number - Patient" - creates it if necessary
*/
public DLN getPid20_DriverSLicenseNumberPatient() {
DLN retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns all repetitions of Mother's Identifier (PID-21).
*/
public CX[] getMotherSIdentifier() {
CX[] retVal = this.getTypedField(21, new CX[0]);
return retVal;
}
/**
* Returns all repetitions of Mother's Identifier (PID-21).
*/
public CX[] getPid21_MotherSIdentifier() {
CX[] retVal = this.getTypedField(21, new CX[0]);
return retVal;
}
/**
* 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() {
return this.getReps(21);
}
/**
* 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 retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* 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() {
return this.getReps(21);
}
/**
* 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[] retVal = this.getTypedField(22, new CE[0]);
return retVal;
}
/**
* Returns all repetitions of Ethnic Group (PID-22).
*/
public CE[] getPid22_EthnicGroup() {
CE[] retVal = this.getTypedField(22, new CE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(22);
}
/**
* 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 retVal = this.getTypedField(22, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(22, rep);
return retVal;
}
/**
* 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() {
return this.getReps(22);
}
/**
* 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 retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* PID-23: "Birth Place" - creates it if necessary
*/
public ST getPid23_BirthPlace() {
ST retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* PID-24: "Multiple Birth Indicator" - creates it if necessary
*/
public ID getMultipleBirthIndicator() {
ID retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* PID-24: "Multiple Birth Indicator" - creates it if necessary
*/
public ID getPid24_MultipleBirthIndicator() {
ID retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* PID-25: "Birth Order" - creates it if necessary
*/
public NM getBirthOrder() {
NM retVal = this.getTypedField(25, 0);
return retVal;
}
/**
* Returns
* PID-25: "Birth Order" - creates it if necessary
*/
public NM getPid25_BirthOrder() {
NM retVal = this.getTypedField(25, 0);
return retVal;
}
/**
* Returns all repetitions of Citizenship (PID-26).
*/
public CE[] getCitizenship() {
CE[] retVal = this.getTypedField(26, new CE[0]);
return retVal;
}
/**
* Returns all repetitions of Citizenship (PID-26).
*/
public CE[] getPid26_Citizenship() {
CE[] retVal = this.getTypedField(26, new CE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(26);
}
/**
* 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 retVal = this.getTypedField(26, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(26, rep);
return retVal;
}
/**
* 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() {
return this.getReps(26);
}
/**
* 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 retVal = this.getTypedField(27, 0);
return retVal;
}
/**
* Returns
* PID-27: "Veterans Military Status" - creates it if necessary
*/
public CE getPid27_VeteransMilitaryStatus() {
CE retVal = this.getTypedField(27, 0);
return retVal;
}
/**
* Returns
* PID-28: "Nationality" - creates it if necessary
*/
public CE getNationality() {
CE retVal = this.getTypedField(28, 0);
return retVal;
}
/**
* Returns
* PID-28: "Nationality" - creates it if necessary
*/
public CE getPid28_Nationality() {
CE retVal = this.getTypedField(28, 0);
return retVal;
}
/**
* Returns
* PID-29: "Patient Death Date and Time" - creates it if necessary
*/
public TS getPatientDeathDateAndTime() {
TS retVal = this.getTypedField(29, 0);
return retVal;
}
/**
* Returns
* PID-29: "Patient Death Date and Time" - creates it if necessary
*/
public TS getPid29_PatientDeathDateAndTime() {
TS retVal = this.getTypedField(29, 0);
return retVal;
}
/**
* Returns
* PID-30: "Patient Death Indicator" - creates it if necessary
*/
public ID getPatientDeathIndicator() {
ID retVal = this.getTypedField(30, 0);
return retVal;
}
/**
* Returns
* PID-30: "Patient Death Indicator" - creates it if necessary
*/
public ID getPid30_PatientDeathIndicator() {
ID retVal = this.getTypedField(30, 0);
return retVal;
}
/**
* Returns
* PID-31: "Identity Unknown Indicator" - creates it if necessary
*/
public ID getIdentityUnknownIndicator() {
ID retVal = this.getTypedField(31, 0);
return retVal;
}
/**
* Returns
* PID-31: "Identity Unknown Indicator" - creates it if necessary
*/
public ID getPid31_IdentityUnknownIndicator() {
ID retVal = this.getTypedField(31, 0);
return retVal;
}
/**
* Returns all repetitions of Identity Reliability Code (PID-32).
*/
public IS[] getIdentityReliabilityCode() {
IS[] retVal = this.getTypedField(32, new IS[0]);
return retVal;
}
/**
* Returns all repetitions of Identity Reliability Code (PID-32).
*/
public IS[] getPid32_IdentityReliabilityCode() {
IS[] retVal = this.getTypedField(32, new IS[0]);
return retVal;
}
/**
* 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() {
return this.getReps(32);
}
/**
* 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 retVal = this.getTypedField(32, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(32, rep);
return retVal;
}
/**
* 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() {
return this.getReps(32);
}
/**
* 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 retVal = this.getTypedField(33, 0);
return retVal;
}
/**
* Returns
* PID-33: "Last Update Date/Time" - creates it if necessary
*/
public TS getPid33_LastUpdateDateTime() {
TS retVal = this.getTypedField(33, 0);
return retVal;
}
/**
* Returns
* PID-34: "Last Update Facility" - creates it if necessary
*/
public HD getLastUpdateFacility() {
HD retVal = this.getTypedField(34, 0);
return retVal;
}
/**
* Returns
* PID-34: "Last Update Facility" - creates it if necessary
*/
public HD getPid34_LastUpdateFacility() {
HD retVal = this.getTypedField(34, 0);
return retVal;
}
/**
* Returns
* PID-35: "Species Code" - creates it if necessary
*/
public CE getSpeciesCode() {
CE retVal = this.getTypedField(35, 0);
return retVal;
}
/**
* Returns
* PID-35: "Species Code" - creates it if necessary
*/
public CE getPid35_SpeciesCode() {
CE retVal = this.getTypedField(35, 0);
return retVal;
}
/**
* Returns
* PID-36: "Breed Code" - creates it if necessary
*/
public CE getBreedCode() {
CE retVal = this.getTypedField(36, 0);
return retVal;
}
/**
* Returns
* PID-36: "Breed Code" - creates it if necessary
*/
public CE getPid36_BreedCode() {
CE retVal = this.getTypedField(36, 0);
return retVal;
}
/**
* Returns
* PID-37: "Strain" - creates it if necessary
*/
public ST getStrain() {
ST retVal = this.getTypedField(37, 0);
return retVal;
}
/**
* Returns
* PID-37: "Strain" - creates it if necessary
*/
public ST getPid37_Strain() {
ST retVal = this.getTypedField(37, 0);
return retVal;
}
/**
* Returns
* PID-38: "Production Class Code" - creates it if necessary
*/
public CE getProductionClassCode() {
CE retVal = this.getTypedField(38, 0);
return retVal;
}
/**
* Returns
* PID-38: "Production Class Code" - creates it if necessary
*/
public CE getPid38_ProductionClassCode() {
CE retVal = this.getTypedField(38, 0);
return retVal;
}
/**
* Returns all repetitions of Tribal Citizenship (PID-39).
*/
public CWE[] getTribalCitizenship() {
CWE[] retVal = this.getTypedField(39, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Tribal Citizenship (PID-39).
*/
public CWE[] getPid39_TribalCitizenship() {
CWE[] retVal = this.getTypedField(39, new CWE[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Tribal Citizenship (PID-39).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getTribalCitizenshipReps() {
return this.getReps(39);
}
/**
* Returns a specific repetition of
* PID-39: "Tribal Citizenship" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getTribalCitizenship(int rep) {
CWE retVal = this.getTypedField(39, rep);
return retVal;
}
/**
* Returns a specific repetition of
* PID-39: "Tribal Citizenship" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPid39_TribalCitizenship(int rep) {
CWE retVal = this.getTypedField(39, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Tribal Citizenship (PID-39).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPid39_TribalCitizenshipReps() {
return this.getReps(39);
}
/**
* Inserts a repetition of
* PID-39: "Tribal Citizenship" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertTribalCitizenship(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(39, rep);
}
/**
* Inserts a repetition of
* PID-39: "Tribal Citizenship" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertPid39_TribalCitizenship(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(39, rep);
}
/**
* Removes a repetition of
* PID-39: "Tribal Citizenship" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeTribalCitizenship(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(39, rep);
}
/**
* Removes a repetition of
* PID-39: "Tribal Citizenship" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removePid39_TribalCitizenship(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(39, rep);
}
/** {@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());
case 38: return new CWE(getMessage());
default: return null;
}
}
}