ca.uhn.hl7v2.model.v24.segment.PEO 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 PEO message segment (Product Experience Observation).
* This segment has the following fields:
*
* - PEO-1: Event Identifiers Used (CE) optional repeating
*
- PEO-2: Event Symptom/Diagnosis Code (CE) optional repeating
*
- PEO-3: Event Onset Date/Time (TS)
*
- PEO-4: Event Exacerbation Date/Time (TS) optional
*
- PEO-5: Event Improved Date/Time (TS) optional
*
- PEO-6: Event Ended Data/Time (TS) optional
*
- PEO-7: Event Location Occurred Address (XAD) optional repeating
*
- PEO-8: Event Qualification (ID) optional repeating
*
- PEO-9: Event Serious (ID) optional
*
- PEO-10: Event Expected (ID) optional
*
- PEO-11: Event Outcome (ID) optional repeating
*
- PEO-12: Patient Outcome (ID) optional
*
- PEO-13: Event Description From Others (FT) optional repeating
*
- PEO-14: Event From Original Reporter (FT) optional repeating
*
- PEO-15: Event Description From Patient (FT) optional repeating
*
- PEO-16: Event Description From Practitioner (FT) optional repeating
*
- PEO-17: Event Description From Autopsy (FT) optional repeating
*
- PEO-18: Cause Of Death (CE) optional repeating
*
- PEO-19: Primary Observer Name (XPN) optional repeating
*
- PEO-20: Primary Observer Address (XAD) optional repeating
*
- PEO-21: Primary Observer Telephone (XTN) optional repeating
*
- PEO-22: Primary Observer's Qualification (ID) optional
*
- PEO-23: Confirmation Provided By (ID) optional
*
- PEO-24: Primary Observer Aware Date/Time (TS) optional
*
- PEO-25: Primary Observer's identity May Be Divulged (ID) optional
*
*/
@SuppressWarnings("unused")
public class PEO extends AbstractSegment {
/**
* Creates a new PEO segment
*/
public PEO(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Event Identifiers Used");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Event Symptom/Diagnosis Code");
this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Event Onset Date/Time");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Exacerbation Date/Time");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Improved Date/Time");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Ended Data/Time");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Event Location Occurred Address");
this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(237) }, "Event Qualification");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(238) }, "Event Serious");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(239) }, "Event Expected");
this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(240) }, "Event Outcome");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(241) }, "Patient Outcome");
this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Others");
this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event From Original Reporter");
this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Patient");
this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Practitioner");
this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Autopsy");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Cause Of Death");
this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Observer Name");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Observer Address");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Observer Telephone");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Primary Observer's Qualification");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Confirmation Provided By");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Primary Observer Aware Date/Time");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(243) }, "Primary Observer's identity May Be Divulged");
} catch(HL7Exception e) {
LoggerFactory.getLogger(getClass()).error("Unexpected error creating PEO - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns all repetitions of Event Identifiers Used (PEO-1).
*/
public CE[] getEventIdentifiersUsed() {
CE[] ret = null;
try {
Type[] t = this.getField(1);
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 Event Identifiers Used (PEO-1).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventIdentifiersUsedReps() {
CE[] ret = null;
try {
Type[] t = this.getField(1);
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
* PEO-1: "Event Identifiers Used" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getEventIdentifiersUsed(int rep) {
CE ret = null;
try {
Type t = this.getField(1, 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
* PEO-1: "Event Identifiers Used" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPeo1_EventIdentifiersUsed(int rep) {
CE ret = null;
try {
Type t = this.getField(1, 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 Event Identifiers Used (PEO-1).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo1_EventIdentifiersUsedReps() {
CE[] ret = null;
try {
Type[] t = this.getField(1);
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
* PEO-1: "Event Identifiers Used" at a specific index
*
* @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 insertEventIdentifiersUsed(int rep) throws HL7Exception {
return (CE) super.insertRepetition(1, rep);
}
/**
* Inserts a repetition of
* PEO-1: "Event Identifiers Used" at a specific index
*
* @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 insertPeo1_EventIdentifiersUsed(int rep) throws HL7Exception {
return (CE) super.insertRepetition(1, rep);
}
/**
* Removes a repetition of
* PEO-1: "Event Identifiers Used" at a specific index
*
* @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 removeEventIdentifiersUsed(int rep) throws HL7Exception {
return (CE) super.removeRepetition(1, rep);
}
/**
* Removes a repetition of
* PEO-1: "Event Identifiers Used" at a specific index
*
* @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 removePeo1_EventIdentifiersUsed(int rep) throws HL7Exception {
return (CE) super.removeRepetition(1, rep);
}
/**
* Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2).
*/
public CE[] getEventSymptomDiagnosisCode() {
CE[] ret = null;
try {
Type[] t = this.getField(2);
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 Event Symptom/Diagnosis Code (PEO-2).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventSymptomDiagnosisCodeReps() {
CE[] ret = null;
try {
Type[] t = this.getField(2);
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
* PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getEventSymptomDiagnosisCode(int rep) {
CE ret = null;
try {
Type t = this.getField(2, 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
* PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPeo2_EventSymptomDiagnosisCode(int rep) {
CE ret = null;
try {
Type t = this.getField(2, 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 Event Symptom/Diagnosis Code (PEO-2).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo2_EventSymptomDiagnosisCodeReps() {
CE[] ret = null;
try {
Type[] t = this.getField(2);
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
* PEO-2: "Event Symptom/Diagnosis 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 CE insertEventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CE) super.insertRepetition(2, rep);
}
/**
* Inserts a repetition of
* PEO-2: "Event Symptom/Diagnosis 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 CE insertPeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CE) super.insertRepetition(2, rep);
}
/**
* Removes a repetition of
* PEO-2: "Event Symptom/Diagnosis 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 CE removeEventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CE) super.removeRepetition(2, rep);
}
/**
* Removes a repetition of
* PEO-2: "Event Symptom/Diagnosis 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 CE removePeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CE) super.removeRepetition(2, rep);
}
/**
* Returns
* PEO-3: "Event Onset Date/Time" - creates it if necessary
*/
public TS getEventOnsetDateTime() {
TS ret = null;
try {
Type t = this.getField(3, 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
* PEO-3: "Event Onset Date/Time" - creates it if necessary
*/
public TS getPeo3_EventOnsetDateTime() {
TS ret = null;
try {
Type t = this.getField(3, 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
* PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
*/
public TS getEventExacerbationDateTime() {
TS ret = null;
try {
Type t = this.getField(4, 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
* PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
*/
public TS getPeo4_EventExacerbationDateTime() {
TS ret = null;
try {
Type t = this.getField(4, 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
* PEO-5: "Event Improved Date/Time" - creates it if necessary
*/
public TS getEventImprovedDateTime() {
TS ret = null;
try {
Type t = this.getField(5, 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
* PEO-5: "Event Improved Date/Time" - creates it if necessary
*/
public TS getPeo5_EventImprovedDateTime() {
TS ret = null;
try {
Type t = this.getField(5, 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
* PEO-6: "Event Ended Data/Time" - creates it if necessary
*/
public TS getEventEndedDataTime() {
TS ret = null;
try {
Type t = this.getField(6, 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
* PEO-6: "Event Ended Data/Time" - creates it if necessary
*/
public TS getPeo6_EventEndedDataTime() {
TS ret = null;
try {
Type t = this.getField(6, 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 all repetitions of Event Location Occurred Address (PEO-7).
*/
public XAD[] getEventLocationOccurredAddress() {
XAD[] ret = null;
try {
Type[] t = this.getField(7);
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 Event Location Occurred Address (PEO-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventLocationOccurredAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(7);
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
* PEO-7: "Event Location Occurred Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getEventLocationOccurredAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(7, 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
* PEO-7: "Event Location Occurred Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPeo7_EventLocationOccurredAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(7, 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 Event Location Occurred Address (PEO-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo7_EventLocationOccurredAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(7);
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
* PEO-7: "Event Location Occurred 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 insertEventLocationOccurredAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(7, rep);
}
/**
* Inserts a repetition of
* PEO-7: "Event Location Occurred 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 insertPeo7_EventLocationOccurredAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(7, rep);
}
/**
* Removes a repetition of
* PEO-7: "Event Location Occurred 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 removeEventLocationOccurredAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(7, rep);
}
/**
* Removes a repetition of
* PEO-7: "Event Location Occurred 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 removePeo7_EventLocationOccurredAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(7, rep);
}
/**
* Returns all repetitions of Event Qualification (PEO-8).
*/
public ID[] getEventQualification() {
ID[] ret = null;
try {
Type[] t = this.getField(8);
ret = new ID[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ID)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 Event Qualification (PEO-8).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventQualificationReps() {
ID[] ret = null;
try {
Type[] t = this.getField(8);
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
* PEO-8: "Event Qualification" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getEventQualification(int rep) {
ID ret = null;
try {
Type t = this.getField(8, rep);
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 a specific repetition of
* PEO-8: "Event Qualification" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getPeo8_EventQualification(int rep) {
ID ret = null;
try {
Type t = this.getField(8, rep);
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 a count of the current number of repetitions of Event Qualification (PEO-8).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo8_EventQualificationReps() {
ID[] ret = null;
try {
Type[] t = this.getField(8);
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
* PEO-8: "Event Qualification" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertEventQualification(int rep) throws HL7Exception {
return (ID) super.insertRepetition(8, rep);
}
/**
* Inserts a repetition of
* PEO-8: "Event Qualification" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertPeo8_EventQualification(int rep) throws HL7Exception {
return (ID) super.insertRepetition(8, rep);
}
/**
* Removes a repetition of
* PEO-8: "Event Qualification" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removeEventQualification(int rep) throws HL7Exception {
return (ID) super.removeRepetition(8, rep);
}
/**
* Removes a repetition of
* PEO-8: "Event Qualification" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removePeo8_EventQualification(int rep) throws HL7Exception {
return (ID) super.removeRepetition(8, rep);
}
/**
* Returns
* PEO-9: "Event Serious" - creates it if necessary
*/
public ID getEventSerious() {
ID ret = null;
try {
Type t = this.getField(9, 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
* PEO-9: "Event Serious" - creates it if necessary
*/
public ID getPeo9_EventSerious() {
ID ret = null;
try {
Type t = this.getField(9, 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
* PEO-10: "Event Expected" - creates it if necessary
*/
public ID getEventExpected() {
ID ret = null;
try {
Type t = this.getField(10, 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
* PEO-10: "Event Expected" - creates it if necessary
*/
public ID getPeo10_EventExpected() {
ID ret = null;
try {
Type t = this.getField(10, 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 Event Outcome (PEO-11).
*/
public ID[] getEventOutcome() {
ID[] ret = null;
try {
Type[] t = this.getField(11);
ret = new ID[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ID)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 Event Outcome (PEO-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventOutcomeReps() {
ID[] 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
* PEO-11: "Event Outcome" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getEventOutcome(int rep) {
ID ret = null;
try {
Type t = this.getField(11, rep);
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 a specific repetition of
* PEO-11: "Event Outcome" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getPeo11_EventOutcome(int rep) {
ID ret = null;
try {
Type t = this.getField(11, rep);
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 a count of the current number of repetitions of Event Outcome (PEO-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo11_EventOutcomeReps() {
ID[] 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
* PEO-11: "Event Outcome" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertEventOutcome(int rep) throws HL7Exception {
return (ID) super.insertRepetition(11, rep);
}
/**
* Inserts a repetition of
* PEO-11: "Event Outcome" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertPeo11_EventOutcome(int rep) throws HL7Exception {
return (ID) super.insertRepetition(11, rep);
}
/**
* Removes a repetition of
* PEO-11: "Event Outcome" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removeEventOutcome(int rep) throws HL7Exception {
return (ID) super.removeRepetition(11, rep);
}
/**
* Removes a repetition of
* PEO-11: "Event Outcome" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removePeo11_EventOutcome(int rep) throws HL7Exception {
return (ID) super.removeRepetition(11, rep);
}
/**
* Returns
* PEO-12: "Patient Outcome" - creates it if necessary
*/
public ID getPatientOutcome() {
ID ret = null;
try {
Type t = this.getField(12, 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
* PEO-12: "Patient Outcome" - creates it if necessary
*/
public ID getPeo12_PatientOutcome() {
ID ret = null;
try {
Type t = this.getField(12, 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 Event Description From Others (PEO-13).
*/
public FT[] getEventDescriptionFromOthers() {
FT[] ret = null;
try {
Type[] t = this.getField(13);
ret = new FT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FT)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 Event Description From Others (PEO-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventDescriptionFromOthersReps() {
FT[] 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
* PEO-13: "Event Description From Others" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventDescriptionFromOthers(int rep) {
FT ret = null;
try {
Type t = this.getField(13, rep);
ret = (FT)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
* PEO-13: "Event Description From Others" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo13_EventDescriptionFromOthers(int rep) {
FT ret = null;
try {
Type t = this.getField(13, rep);
ret = (FT)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 Event Description From Others (PEO-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo13_EventDescriptionFromOthersReps() {
FT[] 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
* PEO-13: "Event Description From Others" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertEventDescriptionFromOthers(int rep) throws HL7Exception {
return (FT) super.insertRepetition(13, rep);
}
/**
* Inserts a repetition of
* PEO-13: "Event Description From Others" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertPeo13_EventDescriptionFromOthers(int rep) throws HL7Exception {
return (FT) super.insertRepetition(13, rep);
}
/**
* Removes a repetition of
* PEO-13: "Event Description From Others" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removeEventDescriptionFromOthers(int rep) throws HL7Exception {
return (FT) super.removeRepetition(13, rep);
}
/**
* Removes a repetition of
* PEO-13: "Event Description From Others" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removePeo13_EventDescriptionFromOthers(int rep) throws HL7Exception {
return (FT) super.removeRepetition(13, rep);
}
/**
* Returns all repetitions of Event From Original Reporter (PEO-14).
*/
public FT[] getEventFromOriginalReporter() {
FT[] ret = null;
try {
Type[] t = this.getField(14);
ret = new FT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FT)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 Event From Original Reporter (PEO-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventFromOriginalReporterReps() {
FT[] 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
* PEO-14: "Event From Original Reporter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventFromOriginalReporter(int rep) {
FT ret = null;
try {
Type t = this.getField(14, rep);
ret = (FT)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
* PEO-14: "Event From Original Reporter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo14_EventFromOriginalReporter(int rep) {
FT ret = null;
try {
Type t = this.getField(14, rep);
ret = (FT)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 Event From Original Reporter (PEO-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo14_EventFromOriginalReporterReps() {
FT[] 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
* PEO-14: "Event From Original Reporter" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertEventFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* PEO-14: "Event From Original Reporter" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertPeo14_EventFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* PEO-14: "Event From Original Reporter" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removeEventFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* PEO-14: "Event From Original Reporter" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removePeo14_EventFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.removeRepetition(14, rep);
}
/**
* Returns all repetitions of Event Description From Patient (PEO-15).
*/
public FT[] getEventDescriptionFromPatient() {
FT[] ret = null;
try {
Type[] t = this.getField(15);
ret = new FT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FT)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 Event Description From Patient (PEO-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventDescriptionFromPatientReps() {
FT[] ret = null;
try {
Type[] t = this.getField(15);
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
* PEO-15: "Event Description From Patient" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventDescriptionFromPatient(int rep) {
FT ret = null;
try {
Type t = this.getField(15, rep);
ret = (FT)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
* PEO-15: "Event Description From Patient" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo15_EventDescriptionFromPatient(int rep) {
FT ret = null;
try {
Type t = this.getField(15, rep);
ret = (FT)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 Event Description From Patient (PEO-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo15_EventDescriptionFromPatientReps() {
FT[] ret = null;
try {
Type[] t = this.getField(15);
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
* PEO-15: "Event Description From Patient" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertEventDescriptionFromPatient(int rep) throws HL7Exception {
return (FT) super.insertRepetition(15, rep);
}
/**
* Inserts a repetition of
* PEO-15: "Event Description From Patient" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertPeo15_EventDescriptionFromPatient(int rep) throws HL7Exception {
return (FT) super.insertRepetition(15, rep);
}
/**
* Removes a repetition of
* PEO-15: "Event Description From Patient" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removeEventDescriptionFromPatient(int rep) throws HL7Exception {
return (FT) super.removeRepetition(15, rep);
}
/**
* Removes a repetition of
* PEO-15: "Event Description From Patient" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removePeo15_EventDescriptionFromPatient(int rep) throws HL7Exception {
return (FT) super.removeRepetition(15, rep);
}
/**
* Returns all repetitions of Event Description From Practitioner (PEO-16).
*/
public FT[] getEventDescriptionFromPractitioner() {
FT[] ret = null;
try {
Type[] t = this.getField(16);
ret = new FT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FT)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 Event Description From Practitioner (PEO-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventDescriptionFromPractitionerReps() {
FT[] ret = null;
try {
Type[] t = this.getField(16);
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
* PEO-16: "Event Description From Practitioner" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventDescriptionFromPractitioner(int rep) {
FT ret = null;
try {
Type t = this.getField(16, rep);
ret = (FT)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
* PEO-16: "Event Description From Practitioner" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo16_EventDescriptionFromPractitioner(int rep) {
FT ret = null;
try {
Type t = this.getField(16, rep);
ret = (FT)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 Event Description From Practitioner (PEO-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo16_EventDescriptionFromPractitionerReps() {
FT[] ret = null;
try {
Type[] t = this.getField(16);
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
* PEO-16: "Event Description From Practitioner" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertEventDescriptionFromPractitioner(int rep) throws HL7Exception {
return (FT) super.insertRepetition(16, rep);
}
/**
* Inserts a repetition of
* PEO-16: "Event Description From Practitioner" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertPeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception {
return (FT) super.insertRepetition(16, rep);
}
/**
* Removes a repetition of
* PEO-16: "Event Description From Practitioner" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removeEventDescriptionFromPractitioner(int rep) throws HL7Exception {
return (FT) super.removeRepetition(16, rep);
}
/**
* Removes a repetition of
* PEO-16: "Event Description From Practitioner" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removePeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception {
return (FT) super.removeRepetition(16, rep);
}
/**
* Returns all repetitions of Event Description From Autopsy (PEO-17).
*/
public FT[] getEventDescriptionFromAutopsy() {
FT[] ret = null;
try {
Type[] t = this.getField(17);
ret = new FT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FT)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 Event Description From Autopsy (PEO-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEventDescriptionFromAutopsyReps() {
FT[] ret = null;
try {
Type[] t = this.getField(17);
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
* PEO-17: "Event Description From Autopsy" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventDescriptionFromAutopsy(int rep) {
FT ret = null;
try {
Type t = this.getField(17, rep);
ret = (FT)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
* PEO-17: "Event Description From Autopsy" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo17_EventDescriptionFromAutopsy(int rep) {
FT ret = null;
try {
Type t = this.getField(17, rep);
ret = (FT)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 Event Description From Autopsy (PEO-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo17_EventDescriptionFromAutopsyReps() {
FT[] ret = null;
try {
Type[] t = this.getField(17);
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
* PEO-17: "Event Description From Autopsy" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertEventDescriptionFromAutopsy(int rep) throws HL7Exception {
return (FT) super.insertRepetition(17, rep);
}
/**
* Inserts a repetition of
* PEO-17: "Event Description From Autopsy" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT insertPeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception {
return (FT) super.insertRepetition(17, rep);
}
/**
* Removes a repetition of
* PEO-17: "Event Description From Autopsy" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removeEventDescriptionFromAutopsy(int rep) throws HL7Exception {
return (FT) super.removeRepetition(17, rep);
}
/**
* Removes a repetition of
* PEO-17: "Event Description From Autopsy" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public FT removePeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception {
return (FT) super.removeRepetition(17, rep);
}
/**
* Returns all repetitions of Cause Of Death (PEO-18).
*/
public CE[] getCauseOfDeath() {
CE[] ret = null;
try {
Type[] t = this.getField(18);
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 Cause Of Death (PEO-18).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getCauseOfDeathReps() {
CE[] ret = null;
try {
Type[] t = this.getField(18);
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
* PEO-18: "Cause Of Death" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getCauseOfDeath(int rep) {
CE ret = null;
try {
Type t = this.getField(18, 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
* PEO-18: "Cause Of Death" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getPeo18_CauseOfDeath(int rep) {
CE ret = null;
try {
Type t = this.getField(18, 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 Cause Of Death (PEO-18).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo18_CauseOfDeathReps() {
CE[] ret = null;
try {
Type[] t = this.getField(18);
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
* PEO-18: "Cause Of Death" at a specific index
*
* @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 insertCauseOfDeath(int rep) throws HL7Exception {
return (CE) super.insertRepetition(18, rep);
}
/**
* Inserts a repetition of
* PEO-18: "Cause Of Death" at a specific index
*
* @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 insertPeo18_CauseOfDeath(int rep) throws HL7Exception {
return (CE) super.insertRepetition(18, rep);
}
/**
* Removes a repetition of
* PEO-18: "Cause Of Death" at a specific index
*
* @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 removeCauseOfDeath(int rep) throws HL7Exception {
return (CE) super.removeRepetition(18, rep);
}
/**
* Removes a repetition of
* PEO-18: "Cause Of Death" at a specific index
*
* @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 removePeo18_CauseOfDeath(int rep) throws HL7Exception {
return (CE) super.removeRepetition(18, rep);
}
/**
* Returns all repetitions of Primary Observer Name (PEO-19).
*/
public XPN[] getPrimaryObserverName() {
XPN[] ret = null;
try {
Type[] t = this.getField(19);
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 Primary Observer Name (PEO-19).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPrimaryObserverNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(19);
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
* PEO-19: "Primary Observer Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPrimaryObserverName(int rep) {
XPN ret = null;
try {
Type t = this.getField(19, 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
* PEO-19: "Primary Observer Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getPeo19_PrimaryObserverName(int rep) {
XPN ret = null;
try {
Type t = this.getField(19, 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 Primary Observer Name (PEO-19).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo19_PrimaryObserverNameReps() {
XPN[] ret = null;
try {
Type[] t = this.getField(19);
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
* PEO-19: "Primary Observer 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 insertPrimaryObserverName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(19, rep);
}
/**
* Inserts a repetition of
* PEO-19: "Primary Observer 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 insertPeo19_PrimaryObserverName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(19, rep);
}
/**
* Removes a repetition of
* PEO-19: "Primary Observer 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 removePrimaryObserverName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(19, rep);
}
/**
* Removes a repetition of
* PEO-19: "Primary Observer 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 removePeo19_PrimaryObserverName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(19, rep);
}
/**
* Returns all repetitions of Primary Observer Address (PEO-20).
*/
public XAD[] getPrimaryObserverAddress() {
XAD[] ret = null;
try {
Type[] t = this.getField(20);
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 Primary Observer Address (PEO-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPrimaryObserverAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(20);
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
* PEO-20: "Primary Observer Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPrimaryObserverAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(20, 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
* PEO-20: "Primary Observer Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPeo20_PrimaryObserverAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(20, 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 Primary Observer Address (PEO-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo20_PrimaryObserverAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(20);
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
* PEO-20: "Primary Observer 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 insertPrimaryObserverAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(20, rep);
}
/**
* Inserts a repetition of
* PEO-20: "Primary Observer 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 insertPeo20_PrimaryObserverAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(20, rep);
}
/**
* Removes a repetition of
* PEO-20: "Primary Observer 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 removePrimaryObserverAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(20, rep);
}
/**
* Removes a repetition of
* PEO-20: "Primary Observer 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 removePeo20_PrimaryObserverAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(20, rep);
}
/**
* Returns all repetitions of Primary Observer Telephone (PEO-21).
*/
public XTN[] getPrimaryObserverTelephone() {
XTN[] ret = null;
try {
Type[] t = this.getField(21);
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 Primary Observer Telephone (PEO-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPrimaryObserverTelephoneReps() {
XTN[] 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
* PEO-21: "Primary Observer Telephone" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPrimaryObserverTelephone(int rep) {
XTN ret = null;
try {
Type t = this.getField(21, 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
* PEO-21: "Primary Observer Telephone" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPeo21_PrimaryObserverTelephone(int rep) {
XTN ret = null;
try {
Type t = this.getField(21, 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 Primary Observer Telephone (PEO-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPeo21_PrimaryObserverTelephoneReps() {
XTN[] 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
* PEO-21: "Primary Observer Telephone" at a specific index
*
* @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 insertPrimaryObserverTelephone(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(21, rep);
}
/**
* Inserts a repetition of
* PEO-21: "Primary Observer Telephone" at a specific index
*
* @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 insertPeo21_PrimaryObserverTelephone(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(21, rep);
}
/**
* Removes a repetition of
* PEO-21: "Primary Observer Telephone" at a specific index
*
* @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 removePrimaryObserverTelephone(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(21, rep);
}
/**
* Removes a repetition of
* PEO-21: "Primary Observer Telephone" at a specific index
*
* @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 removePeo21_PrimaryObserverTelephone(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(21, rep);
}
/**
* Returns
* PEO-22: "Primary Observer's Qualification" - creates it if necessary
*/
public ID getPrimaryObserverSQualification() {
ID ret = null;
try {
Type t = this.getField(22, 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
* PEO-22: "Primary Observer's Qualification" - creates it if necessary
*/
public ID getPeo22_PrimaryObserverSQualification() {
ID ret = null;
try {
Type t = this.getField(22, 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
* PEO-23: "Confirmation Provided By" - creates it if necessary
*/
public ID getConfirmationProvidedBy() {
ID ret = null;
try {
Type t = this.getField(23, 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
* PEO-23: "Confirmation Provided By" - creates it if necessary
*/
public ID getPeo23_ConfirmationProvidedBy() {
ID ret = null;
try {
Type t = this.getField(23, 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
* PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
*/
public TS getPrimaryObserverAwareDateTime() {
TS ret = null;
try {
Type t = this.getField(24, 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
* PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
*/
public TS getPeo24_PrimaryObserverAwareDateTime() {
TS ret = null;
try {
Type t = this.getField(24, 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
* PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
*/
public ID getPrimaryObserverSIdentityMayBeDivulged() {
ID ret = null;
try {
Type t = this.getField(25, 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
* PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
*/
public ID getPeo25_PrimaryObserverSIdentityMayBeDivulged() {
ID ret = null;
try {
Type t = this.getField(25, 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;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new CE(getMessage());
case 1: return new CE(getMessage());
case 2: return new TS(getMessage());
case 3: return new TS(getMessage());
case 4: return new TS(getMessage());
case 5: return new TS(getMessage());
case 6: return new XAD(getMessage());
case 7: return new ID(getMessage(), new Integer( 237 ));
case 8: return new ID(getMessage(), new Integer( 238 ));
case 9: return new ID(getMessage(), new Integer( 239 ));
case 10: return new ID(getMessage(), new Integer( 240 ));
case 11: return new ID(getMessage(), new Integer( 241 ));
case 12: return new FT(getMessage());
case 13: return new FT(getMessage());
case 14: return new FT(getMessage());
case 15: return new FT(getMessage());
case 16: return new FT(getMessage());
case 17: return new CE(getMessage());
case 18: return new XPN(getMessage());
case 19: return new XAD(getMessage());
case 20: return new XTN(getMessage());
case 21: return new ID(getMessage(), new Integer( 242 ));
case 22: return new ID(getMessage(), new Integer( 242 ));
case 23: return new TS(getMessage());
case 24: return new ID(getMessage(), new Integer( 243 ));
default: return null;
}
}
}