ca.uhn.hl7v2.model.v28.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)
* 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.v28.segment;
// import ca.uhn.hl7v2.model.v28.group.*;
import ca.uhn.hl7v2.model.v28.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 (CWE) optional repeating
*
- PEO-2: Event Symptom/Diagnosis Code (CWE) optional repeating
*
- PEO-3: Event Onset Date/Time (DTM)
*
- PEO-4: Event Exacerbation Date/Time (DTM) optional
*
- PEO-5: Event Improved Date/Time (DTM) optional
*
- PEO-6: Event Ended Data/Time (DTM) 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 Description 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 (CWE) 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 (DTM) 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(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Event Identifiers Used");
this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Event Symptom/Diagnosis Code");
this.add(DTM.class, true, 1, 0, new Object[]{ getMessage() }, "Event Onset Date/Time");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Event Exacerbation Date/Time");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Event Improved Date/Time");
this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Event Ended Data/Time");
this.add(XAD.class, false, 0, 0, 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, 0, new Object[]{ getMessage() }, "Event Description from Others");
this.add(FT.class, false, 0, 0, new Object[]{ getMessage() }, "Event Description from Original Reporter");
this.add(FT.class, false, 0, 0, new Object[]{ getMessage() }, "Event Description from Patient");
this.add(FT.class, false, 0, 0, new Object[]{ getMessage() }, "Event Description from Practitioner");
this.add(FT.class, false, 0, 0, new Object[]{ getMessage() }, "Event Description from Autopsy");
this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Cause Of Death");
this.add(XPN.class, false, 0, 0, new Object[]{ getMessage() }, "Primary Observer Name");
this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Primary Observer Address");
this.add(XTN.class, false, 0, 0, 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(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Primary Observer Aware Date/Time");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(243) }, "Primary Observer's identity May Be Divulged");
} catch(HL7Exception e) {
log.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 CWE[] getEventIdentifiersUsed() {
CWE[] retVal = this.getTypedField(1, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Event Identifiers Used (PEO-1).
*/
public CWE[] getPeo1_EventIdentifiersUsed() {
CWE[] retVal = this.getTypedField(1, new CWE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(1);
}
/**
* Returns a specific repetition of
* PEO-1: "Event Identifiers Used" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getEventIdentifiersUsed(int rep) {
CWE retVal = this.getTypedField(1, rep);
return retVal;
}
/**
* Returns a specific repetition of
* PEO-1: "Event Identifiers Used" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPeo1_EventIdentifiersUsed(int rep) {
CWE retVal = this.getTypedField(1, rep);
return retVal;
}
/**
* 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() {
return this.getReps(1);
}
/**
* 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 CWE insertEventIdentifiersUsed(int rep) throws HL7Exception {
return (CWE) 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 CWE insertPeo1_EventIdentifiersUsed(int rep) throws HL7Exception {
return (CWE) 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 CWE removeEventIdentifiersUsed(int rep) throws HL7Exception {
return (CWE) 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 CWE removePeo1_EventIdentifiersUsed(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(1, rep);
}
/**
* Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2).
*/
public CWE[] getEventSymptomDiagnosisCode() {
CWE[] retVal = this.getTypedField(2, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2).
*/
public CWE[] getPeo2_EventSymptomDiagnosisCode() {
CWE[] retVal = this.getTypedField(2, new CWE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(2);
}
/**
* Returns a specific repetition of
* PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getEventSymptomDiagnosisCode(int rep) {
CWE retVal = this.getTypedField(2, rep);
return retVal;
}
/**
* Returns a specific repetition of
* PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPeo2_EventSymptomDiagnosisCode(int rep) {
CWE retVal = this.getTypedField(2, rep);
return retVal;
}
/**
* 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() {
return this.getReps(2);
}
/**
* 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 CWE insertEventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CWE) 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 CWE insertPeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CWE) 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 CWE removeEventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CWE) 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 CWE removePeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(2, rep);
}
/**
* Returns
* PEO-3: "Event Onset Date/Time" - creates it if necessary
*/
public DTM getEventOnsetDateTime() {
DTM retVal = this.getTypedField(3, 0);
return retVal;
}
/**
* Returns
* PEO-3: "Event Onset Date/Time" - creates it if necessary
*/
public DTM getPeo3_EventOnsetDateTime() {
DTM retVal = this.getTypedField(3, 0);
return retVal;
}
/**
* Returns
* PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
*/
public DTM getEventExacerbationDateTime() {
DTM retVal = this.getTypedField(4, 0);
return retVal;
}
/**
* Returns
* PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
*/
public DTM getPeo4_EventExacerbationDateTime() {
DTM retVal = this.getTypedField(4, 0);
return retVal;
}
/**
* Returns
* PEO-5: "Event Improved Date/Time" - creates it if necessary
*/
public DTM getEventImprovedDateTime() {
DTM retVal = this.getTypedField(5, 0);
return retVal;
}
/**
* Returns
* PEO-5: "Event Improved Date/Time" - creates it if necessary
*/
public DTM getPeo5_EventImprovedDateTime() {
DTM retVal = this.getTypedField(5, 0);
return retVal;
}
/**
* Returns
* PEO-6: "Event Ended Data/Time" - creates it if necessary
*/
public DTM getEventEndedDataTime() {
DTM retVal = this.getTypedField(6, 0);
return retVal;
}
/**
* Returns
* PEO-6: "Event Ended Data/Time" - creates it if necessary
*/
public DTM getPeo6_EventEndedDataTime() {
DTM retVal = this.getTypedField(6, 0);
return retVal;
}
/**
* Returns all repetitions of Event Location Occurred Address (PEO-7).
*/
public XAD[] getEventLocationOccurredAddress() {
XAD[] retVal = this.getTypedField(7, new XAD[0]);
return retVal;
}
/**
* Returns all repetitions of Event Location Occurred Address (PEO-7).
*/
public XAD[] getPeo7_EventLocationOccurredAddress() {
XAD[] retVal = this.getTypedField(7, new XAD[0]);
return retVal;
}
/**
* 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() {
return this.getReps(7);
}
/**
* 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 retVal = this.getTypedField(7, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(7, rep);
return retVal;
}
/**
* 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() {
return this.getReps(7);
}
/**
* 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[] retVal = this.getTypedField(8, new ID[0]);
return retVal;
}
/**
* Returns all repetitions of Event Qualification (PEO-8).
*/
public ID[] getPeo8_EventQualification() {
ID[] retVal = this.getTypedField(8, new ID[0]);
return retVal;
}
/**
* 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() {
return this.getReps(8);
}
/**
* 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 retVal = this.getTypedField(8, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(8, rep);
return retVal;
}
/**
* 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() {
return this.getReps(8);
}
/**
* 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 retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* PEO-9: "Event Serious" - creates it if necessary
*/
public ID getPeo9_EventSerious() {
ID retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* PEO-10: "Event Expected" - creates it if necessary
*/
public ID getEventExpected() {
ID retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns
* PEO-10: "Event Expected" - creates it if necessary
*/
public ID getPeo10_EventExpected() {
ID retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns all repetitions of Event Outcome (PEO-11).
*/
public ID[] getEventOutcome() {
ID[] retVal = this.getTypedField(11, new ID[0]);
return retVal;
}
/**
* Returns all repetitions of Event Outcome (PEO-11).
*/
public ID[] getPeo11_EventOutcome() {
ID[] retVal = this.getTypedField(11, new ID[0]);
return retVal;
}
/**
* 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() {
return this.getReps(11);
}
/**
* 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 retVal = this.getTypedField(11, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(11, rep);
return retVal;
}
/**
* 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() {
return this.getReps(11);
}
/**
* 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 retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns
* PEO-12: "Patient Outcome" - creates it if necessary
*/
public ID getPeo12_PatientOutcome() {
ID retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns all repetitions of Event Description from Others (PEO-13).
*/
public FT[] getEventDescriptionFromOthers() {
FT[] retVal = this.getTypedField(13, new FT[0]);
return retVal;
}
/**
* Returns all repetitions of Event Description from Others (PEO-13).
*/
public FT[] getPeo13_EventDescriptionFromOthers() {
FT[] retVal = this.getTypedField(13, new FT[0]);
return retVal;
}
/**
* 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() {
return this.getReps(13);
}
/**
* 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 retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* 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() {
return this.getReps(13);
}
/**
* 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 Description from Original Reporter (PEO-14).
*/
public FT[] getEventDescriptionFromOriginalReporter() {
FT[] retVal = this.getTypedField(14, new FT[0]);
return retVal;
}
/**
* Returns all repetitions of Event Description from Original Reporter (PEO-14).
*/
public FT[] getPeo14_EventDescriptionFromOriginalReporter() {
FT[] retVal = this.getTypedField(14, new FT[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Event Description 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 getEventDescriptionFromOriginalReporterReps() {
return this.getReps(14);
}
/**
* Returns a specific repetition of
* PEO-14: "Event Description from Original Reporter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getEventDescriptionFromOriginalReporter(int rep) {
FT retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* Returns a specific repetition of
* PEO-14: "Event Description from Original Reporter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FT getPeo14_EventDescriptionFromOriginalReporter(int rep) {
FT retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Event Description 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_EventDescriptionFromOriginalReporterReps() {
return this.getReps(14);
}
/**
* Inserts a repetition of
* PEO-14: "Event Description 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 insertEventDescriptionFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* PEO-14: "Event Description 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_EventDescriptionFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* PEO-14: "Event Description 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 removeEventDescriptionFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* PEO-14: "Event Description 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_EventDescriptionFromOriginalReporter(int rep) throws HL7Exception {
return (FT) super.removeRepetition(14, rep);
}
/**
* Returns all repetitions of Event Description from Patient (PEO-15).
*/
public FT[] getEventDescriptionFromPatient() {
FT[] retVal = this.getTypedField(15, new FT[0]);
return retVal;
}
/**
* Returns all repetitions of Event Description from Patient (PEO-15).
*/
public FT[] getPeo15_EventDescriptionFromPatient() {
FT[] retVal = this.getTypedField(15, new FT[0]);
return retVal;
}
/**
* 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() {
return this.getReps(15);
}
/**
* 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 retVal = this.getTypedField(15, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(15, rep);
return retVal;
}
/**
* 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() {
return this.getReps(15);
}
/**
* 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[] retVal = this.getTypedField(16, new FT[0]);
return retVal;
}
/**
* Returns all repetitions of Event Description from Practitioner (PEO-16).
*/
public FT[] getPeo16_EventDescriptionFromPractitioner() {
FT[] retVal = this.getTypedField(16, new FT[0]);
return retVal;
}
/**
* 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() {
return this.getReps(16);
}
/**
* 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 retVal = this.getTypedField(16, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(16, rep);
return retVal;
}
/**
* 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() {
return this.getReps(16);
}
/**
* 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[] retVal = this.getTypedField(17, new FT[0]);
return retVal;
}
/**
* Returns all repetitions of Event Description from Autopsy (PEO-17).
*/
public FT[] getPeo17_EventDescriptionFromAutopsy() {
FT[] retVal = this.getTypedField(17, new FT[0]);
return retVal;
}
/**
* 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() {
return this.getReps(17);
}
/**
* 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 retVal = this.getTypedField(17, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(17, rep);
return retVal;
}
/**
* 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() {
return this.getReps(17);
}
/**
* 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 CWE[] getCauseOfDeath() {
CWE[] retVal = this.getTypedField(18, new CWE[0]);
return retVal;
}
/**
* Returns all repetitions of Cause Of Death (PEO-18).
*/
public CWE[] getPeo18_CauseOfDeath() {
CWE[] retVal = this.getTypedField(18, new CWE[0]);
return retVal;
}
/**
* 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() {
return this.getReps(18);
}
/**
* Returns a specific repetition of
* PEO-18: "Cause Of Death" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getCauseOfDeath(int rep) {
CWE retVal = this.getTypedField(18, rep);
return retVal;
}
/**
* Returns a specific repetition of
* PEO-18: "Cause Of Death" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPeo18_CauseOfDeath(int rep) {
CWE retVal = this.getTypedField(18, rep);
return retVal;
}
/**
* 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() {
return this.getReps(18);
}
/**
* 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 CWE insertCauseOfDeath(int rep) throws HL7Exception {
return (CWE) 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 CWE insertPeo18_CauseOfDeath(int rep) throws HL7Exception {
return (CWE) 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 CWE removeCauseOfDeath(int rep) throws HL7Exception {
return (CWE) 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 CWE removePeo18_CauseOfDeath(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(18, rep);
}
/**
* Returns all repetitions of Primary Observer Name (PEO-19).
*/
public XPN[] getPrimaryObserverName() {
XPN[] retVal = this.getTypedField(19, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of Primary Observer Name (PEO-19).
*/
public XPN[] getPeo19_PrimaryObserverName() {
XPN[] retVal = this.getTypedField(19, new XPN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(19);
}
/**
* 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 retVal = this.getTypedField(19, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(19, rep);
return retVal;
}
/**
* 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() {
return this.getReps(19);
}
/**
* 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[] retVal = this.getTypedField(20, new XAD[0]);
return retVal;
}
/**
* Returns all repetitions of Primary Observer Address (PEO-20).
*/
public XAD[] getPeo20_PrimaryObserverAddress() {
XAD[] retVal = this.getTypedField(20, new XAD[0]);
return retVal;
}
/**
* 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() {
return this.getReps(20);
}
/**
* 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 retVal = this.getTypedField(20, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(20, rep);
return retVal;
}
/**
* 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() {
return this.getReps(20);
}
/**
* 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[] retVal = this.getTypedField(21, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Primary Observer Telephone (PEO-21).
*/
public XTN[] getPeo21_PrimaryObserverTelephone() {
XTN[] retVal = this.getTypedField(21, new XTN[0]);
return retVal;
}
/**
* 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() {
return this.getReps(21);
}
/**
* 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 retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* 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 retVal = this.getTypedField(21, rep);
return retVal;
}
/**
* 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() {
return this.getReps(21);
}
/**
* 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 retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* PEO-22: "Primary Observer's Qualification" - creates it if necessary
*/
public ID getPeo22_PrimaryObserverSQualification() {
ID retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* PEO-23: "Confirmation Provided By" - creates it if necessary
*/
public ID getConfirmationProvidedBy() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* PEO-23: "Confirmation Provided By" - creates it if necessary
*/
public ID getPeo23_ConfirmationProvidedBy() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
*/
public DTM getPrimaryObserverAwareDateTime() {
DTM retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
*/
public DTM getPeo24_PrimaryObserverAwareDateTime() {
DTM retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
*/
public ID getPrimaryObserverSIdentityMayBeDivulged() {
ID retVal = this.getTypedField(25, 0);
return retVal;
}
/**
* Returns
* PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
*/
public ID getPeo25_PrimaryObserverSIdentityMayBeDivulged() {
ID retVal = this.getTypedField(25, 0);
return retVal;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new CWE(getMessage());
case 1: return new CWE(getMessage());
case 2: return new DTM(getMessage());
case 3: return new DTM(getMessage());
case 4: return new DTM(getMessage());
case 5: return new DTM(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 CWE(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 DTM(getMessage());
case 24: return new ID(getMessage(), new Integer( 243 ));
default: return null;
}
}
}