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

ca.uhn.hl7v2.model.v26.segment.PEO Maven / Gradle / Ivy

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

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

// import ca.uhn.hl7v2.model.v26.group.*;
import ca.uhn.hl7v2.model.v26.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;

/**
 *

Represents an HL7 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 *
*/ 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, 705, new Object[]{ getMessage(), new Integer(9999) }, "Event Identifiers Used"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(9999) }, "Event Symptom/Diagnosis Code"); this.add(DTM.class, true, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Event Onset Date/Time"); this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Event Exacerbation Date/Time"); this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Event Improved Date/Time"); this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Event Ended Data/Time"); this.add(XAD.class, false, 0, 2915, new Object[]{ getMessage(), new Integer(0) }, "Event Location Occurred Address"); this.add(ID.class, false, 0, 1, new Object[]{ getMessage() }, "Event Qualification"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Event Serious"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Event Expected"); this.add(ID.class, false, 0, 1, new Object[]{ getMessage() }, "Event Outcome"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Patient Outcome"); this.add(FT.class, false, 0, 600, new Object[]{ getMessage(), new Integer(0) }, "Event Description from Others"); this.add(FT.class, false, 0, 600, new Object[]{ getMessage(), new Integer(0) }, "Event Description from Original Reporter"); this.add(FT.class, false, 0, 600, new Object[]{ getMessage(), new Integer(0) }, "Event Description from Patient"); this.add(FT.class, false, 0, 600, new Object[]{ getMessage(), new Integer(0) }, "Event Description from Practitioner"); this.add(FT.class, false, 0, 600, new Object[]{ getMessage(), new Integer(0) }, "Event Description from Autopsy"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage(), new Integer(9999) }, "Cause Of Death"); this.add(XPN.class, false, 0, 1317, new Object[]{ getMessage(), new Integer(0) }, "Primary Observer Name"); this.add(XAD.class, false, 0, 2915, new Object[]{ getMessage(), new Integer(0) }, "Primary Observer Address"); this.add(XTN.class, false, 0, 2743, new Object[]{ getMessage(), new Integer(0) }, "Primary Observer Telephone"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Primary Observer's Qualification"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Confirmation Provided By"); this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Primary Observer Aware Date/Time"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Primary Observer's identity May Be Divulged"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.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 CWE[] getEventIdentifiersUsed() { CWE[] ret = null; try { Type[] t = this.getField(1); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(1); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * PEO-1: "Event Identifiers Used" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getEventIdentifiersUsed(int rep) { CWE ret = null; try { Type t = this.getField(1, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * PEO-1: "Event Identifiers Used" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getPeo1_EventIdentifiersUsed(int rep) { CWE ret = null; try { Type t = this.getField(1, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(1); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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[] ret = null; try { Type[] t = this.getField(2); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(2); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getEventSymptomDiagnosisCode(int rep) { CWE ret = null; try { Type t = this.getField(2, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getPeo2_EventSymptomDiagnosisCode(int rep) { CWE ret = null; try { Type t = this.getField(2, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(2); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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 ret = null; try { Type t = this.getField(3, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-3: "Event Onset Date/Time" - creates it if necessary */ public DTM getPeo3_EventOnsetDateTime() { DTM ret = null; try { Type t = this.getField(3, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary */ public DTM getEventExacerbationDateTime() { DTM ret = null; try { Type t = this.getField(4, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary */ public DTM getPeo4_EventExacerbationDateTime() { DTM ret = null; try { Type t = this.getField(4, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-5: "Event Improved Date/Time" - creates it if necessary */ public DTM getEventImprovedDateTime() { DTM ret = null; try { Type t = this.getField(5, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-5: "Event Improved Date/Time" - creates it if necessary */ public DTM getPeo5_EventImprovedDateTime() { DTM ret = null; try { Type t = this.getField(5, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-6: "Event Ended Data/Time" - creates it if necessary */ public DTM getEventEndedDataTime() { DTM ret = null; try { Type t = this.getField(6, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-6: "Event Ended Data/Time" - creates it if necessary */ public DTM getPeo6_EventEndedDataTime() { DTM ret = null; try { Type t = this.getField(6, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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[] 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { FT[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * PEO-14: "Event Description from Original Reporter" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public FT getEventDescriptionFromOriginalReporter(int rep) { FT ret = null; try { Type t = this.getField(14, rep); ret = (FT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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 ret = null; try { Type t = this.getField(14, rep); ret = (FT)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { FT[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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[] 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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[] ret = null; try { Type[] t = this.getField(18); ret = new CWE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CWE)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(18); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * PEO-18: "Cause Of Death" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getCauseOfDeath(int rep) { CWE ret = null; try { Type t = this.getField(18, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * PEO-18: "Cause Of Death" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getPeo18_CauseOfDeath(int rep) { CWE ret = null; try { Type t = this.getField(18, rep); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { CWE[] ret = null; try { Type[] t = this.getField(18); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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[] 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary */ public DTM getPrimaryObserverAwareDateTime() { DTM ret = null; try { Type t = this.getField(24, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary */ public DTM getPeo24_PrimaryObserverAwareDateTime() { DTM ret = null; try { Type t = this.getField(24, 0); ret = (DTM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new 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; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy