ca.uhn.hl7v2.model.v26.segment.ARQ 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/
*/
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 ARQ message segment (Appointment Request).
* This segment has the following fields:
*
* - ARQ-1: Placer Appointment ID (EI)
*
- ARQ-2: Filler Appointment ID (EI) optional
*
- ARQ-3: Occurrence Number (NM) optional
*
- ARQ-4: Placer Group Number (EI) optional
*
- ARQ-5: Schedule ID (CWE) optional
*
- ARQ-6: Request Event Reason (CWE) optional
*
- ARQ-7: Appointment Reason (CWE) optional
*
- ARQ-8: Appointment Type (CWE) optional
*
- ARQ-9: Appointment Duration (NM) optional
*
- ARQ-10: Appointment Duration Units (CNE) optional
*
- ARQ-11: Requested Start Date/Time Range (DR) optional repeating
*
- ARQ-12: Priority-ARQ (ST) optional
*
- ARQ-13: Repeating Interval (RI) optional
*
- ARQ-14: Repeating Interval Duration (ST) optional
*
- ARQ-15: Placer Contact Person (XCN) repeating
*
- ARQ-16: Placer Contact Phone Number (XTN) optional repeating
*
- ARQ-17: Placer Contact Address (XAD) optional repeating
*
- ARQ-18: Placer Contact Location (PL) optional
*
- ARQ-19: Entered By Person (XCN) repeating
*
- ARQ-20: Entered By Phone Number (XTN) optional repeating
*
- ARQ-21: Entered By Location (PL) optional
*
- ARQ-22: Parent Placer Appointment ID (EI) optional
*
- ARQ-23: Parent Filler Appointment ID (EI) optional
*
- ARQ-24: Placer Order Number (EI) optional repeating
*
- ARQ-25: Filler Order Number (EI) optional repeating
*
*/
public class ARQ extends AbstractSegment {
/**
* Creates a new ARQ segment
*/
public ARQ(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(EI.class, true, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Placer Appointment ID");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Filler Appointment ID");
this.add(NM.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "Occurrence Number");
this.add(EI.class, false, 1, 22, new Object[]{ getMessage(), new Integer(0) }, "Placer Group Number");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Schedule ID");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Request Event Reason");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(276) }, "Appointment Reason");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(277) }, "Appointment Type");
this.add(NM.class, false, 1, 0, new Object[]{ getMessage(), new Integer(0) }, "Appointment Duration");
this.add(CNE.class, false, 1, 0, new Object[]{ getMessage(), new Integer(0) }, "Appointment Duration Units");
this.add(DR.class, false, 0, 49, new Object[]{ getMessage(), new Integer(0) }, "Requested Start Date/Time Range");
this.add(ST.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "Priority-ARQ");
this.add(RI.class, false, 1, 100, new Object[]{ getMessage(), new Integer(0) }, "Repeating Interval");
this.add(ST.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "Repeating Interval Duration");
this.add(XCN.class, true, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Placer Contact Person");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Placer Contact Phone Number");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Placer Contact Address");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Placer Contact Location");
this.add(XCN.class, true, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Entered By Person");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Entered By Phone Number");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Entered By Location");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Parent Placer Appointment ID");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Parent Filler Appointment ID");
this.add(EI.class, false, 0, 427, new Object[]{ getMessage(), new Integer(0) }, "Placer Order Number");
this.add(EI.class, false, 0, 427, new Object[]{ getMessage(), new Integer(0) }, "Filler Order Number");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating ARQ - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* ARQ-1: "Placer Appointment ID" - creates it if necessary
*/
public EI getPlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(1, 0);
ret = (EI)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
* ARQ-1: "Placer Appointment ID" - creates it if necessary
*/
public EI getArq1_PlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(1, 0);
ret = (EI)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
* ARQ-2: "Filler Appointment ID" - creates it if necessary
*/
public EI getFillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(2, 0);
ret = (EI)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
* ARQ-2: "Filler Appointment ID" - creates it if necessary
*/
public EI getArq2_FillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(2, 0);
ret = (EI)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
* ARQ-3: "Occurrence Number" - creates it if necessary
*/
public NM getOccurrenceNumber() {
NM ret = null;
try {
Type t = this.getField(3, 0);
ret = (NM)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
* ARQ-3: "Occurrence Number" - creates it if necessary
*/
public NM getArq3_OccurrenceNumber() {
NM ret = null;
try {
Type t = this.getField(3, 0);
ret = (NM)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
* ARQ-4: "Placer Group Number" - creates it if necessary
*/
public EI getPlacerGroupNumber() {
EI ret = null;
try {
Type t = this.getField(4, 0);
ret = (EI)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
* ARQ-4: "Placer Group Number" - creates it if necessary
*/
public EI getArq4_PlacerGroupNumber() {
EI ret = null;
try {
Type t = this.getField(4, 0);
ret = (EI)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
* ARQ-5: "Schedule ID" - creates it if necessary
*/
public CWE getScheduleID() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
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
* ARQ-5: "Schedule ID" - creates it if necessary
*/
public CWE getArq5_ScheduleID() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
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
* ARQ-6: "Request Event Reason" - creates it if necessary
*/
public CWE getRequestEventReason() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
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
* ARQ-6: "Request Event Reason" - creates it if necessary
*/
public CWE getArq6_RequestEventReason() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
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
* ARQ-7: "Appointment Reason" - creates it if necessary
*/
public CWE getAppointmentReason() {
CWE ret = null;
try {
Type t = this.getField(7, 0);
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
* ARQ-7: "Appointment Reason" - creates it if necessary
*/
public CWE getArq7_AppointmentReason() {
CWE ret = null;
try {
Type t = this.getField(7, 0);
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
* ARQ-8: "Appointment Type" - creates it if necessary
*/
public CWE getAppointmentType() {
CWE ret = null;
try {
Type t = this.getField(8, 0);
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
* ARQ-8: "Appointment Type" - creates it if necessary
*/
public CWE getArq8_AppointmentType() {
CWE ret = null;
try {
Type t = this.getField(8, 0);
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
* ARQ-9: "Appointment Duration" - creates it if necessary
*/
public NM getAppointmentDuration() {
NM ret = null;
try {
Type t = this.getField(9, 0);
ret = (NM)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
* ARQ-9: "Appointment Duration" - creates it if necessary
*/
public NM getArq9_AppointmentDuration() {
NM ret = null;
try {
Type t = this.getField(9, 0);
ret = (NM)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
* ARQ-10: "Appointment Duration Units" - creates it if necessary
*/
public CNE getAppointmentDurationUnits() {
CNE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CNE)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
* ARQ-10: "Appointment Duration Units" - creates it if necessary
*/
public CNE getArq10_AppointmentDurationUnits() {
CNE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CNE)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 Requested Start Date/Time Range (ARQ-11).
*/
public DR[] getRequestedStartDateTimeRange() {
DR[] ret = null;
try {
Type[] t = this.getField(11);
ret = new DR[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (DR)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 Requested Start Date/Time Range (ARQ-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRequestedStartDateTimeRangeReps() {
DR[] 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
* ARQ-11: "Requested Start Date/Time Range" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public DR getRequestedStartDateTimeRange(int rep) {
DR ret = null;
try {
Type t = this.getField(11, rep);
ret = (DR)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
* ARQ-11: "Requested Start Date/Time Range" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public DR getArq11_RequestedStartDateTimeRange(int rep) {
DR ret = null;
try {
Type t = this.getField(11, rep);
ret = (DR)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 Requested Start Date/Time Range (ARQ-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq11_RequestedStartDateTimeRangeReps() {
DR[] 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
* ARQ-11: "Requested Start Date/Time Range" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DR insertRequestedStartDateTimeRange(int rep) throws HL7Exception {
return (DR) super.insertRepetition(11, rep);
}
/**
* Inserts a repetition of
* ARQ-11: "Requested Start Date/Time Range" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DR insertArq11_RequestedStartDateTimeRange(int rep) throws HL7Exception {
return (DR) super.insertRepetition(11, rep);
}
/**
* Removes a repetition of
* ARQ-11: "Requested Start Date/Time Range" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DR removeRequestedStartDateTimeRange(int rep) throws HL7Exception {
return (DR) super.removeRepetition(11, rep);
}
/**
* Removes a repetition of
* ARQ-11: "Requested Start Date/Time Range" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DR removeArq11_RequestedStartDateTimeRange(int rep) throws HL7Exception {
return (DR) super.removeRepetition(11, rep);
}
/**
* Returns
* ARQ-12: "Priority-ARQ" - creates it if necessary
*/
public ST getPriorityARQ() {
ST ret = null;
try {
Type t = this.getField(12, 0);
ret = (ST)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
* ARQ-12: "Priority-ARQ" - creates it if necessary
*/
public ST getArq12_PriorityARQ() {
ST ret = null;
try {
Type t = this.getField(12, 0);
ret = (ST)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
* ARQ-13: "Repeating Interval" - creates it if necessary
*/
public RI getRepeatingInterval() {
RI ret = null;
try {
Type t = this.getField(13, 0);
ret = (RI)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
* ARQ-13: "Repeating Interval" - creates it if necessary
*/
public RI getArq13_RepeatingInterval() {
RI ret = null;
try {
Type t = this.getField(13, 0);
ret = (RI)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
* ARQ-14: "Repeating Interval Duration" - creates it if necessary
*/
public ST getRepeatingIntervalDuration() {
ST ret = null;
try {
Type t = this.getField(14, 0);
ret = (ST)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
* ARQ-14: "Repeating Interval Duration" - creates it if necessary
*/
public ST getArq14_RepeatingIntervalDuration() {
ST ret = null;
try {
Type t = this.getField(14, 0);
ret = (ST)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 Placer Contact Person (ARQ-15).
*/
public XCN[] getPlacerContactPerson() {
XCN[] ret = null;
try {
Type[] t = this.getField(15);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 Placer Contact Person (ARQ-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPlacerContactPersonReps() {
XCN[] 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
* ARQ-15: "Placer Contact Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPlacerContactPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(15, rep);
ret = (XCN)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
* ARQ-15: "Placer Contact Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getArq15_PlacerContactPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(15, rep);
ret = (XCN)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 Placer Contact Person (ARQ-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq15_PlacerContactPersonReps() {
XCN[] 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
* ARQ-15: "Placer Contact Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN insertPlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(15, rep);
}
/**
* Inserts a repetition of
* ARQ-15: "Placer Contact Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN insertArq15_PlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(15, rep);
}
/**
* Removes a repetition of
* ARQ-15: "Placer Contact Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN removePlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(15, rep);
}
/**
* Removes a repetition of
* ARQ-15: "Placer Contact Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN removeArq15_PlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(15, rep);
}
/**
* Returns all repetitions of Placer Contact Phone Number (ARQ-16).
*/
public XTN[] getPlacerContactPhoneNumber() {
XTN[] ret = null;
try {
Type[] t = this.getField(16);
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 Placer Contact Phone Number (ARQ-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPlacerContactPhoneNumberReps() {
XTN[] 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
* ARQ-16: "Placer Contact Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPlacerContactPhoneNumber(int rep) {
XTN ret = null;
try {
Type t = this.getField(16, 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
* ARQ-16: "Placer Contact Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getArq16_PlacerContactPhoneNumber(int rep) {
XTN ret = null;
try {
Type t = this.getField(16, 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 Placer Contact Phone Number (ARQ-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq16_PlacerContactPhoneNumberReps() {
XTN[] 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
* ARQ-16: "Placer Contact Phone Number" at a specific index
*
* @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 insertPlacerContactPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(16, rep);
}
/**
* Inserts a repetition of
* ARQ-16: "Placer Contact Phone Number" at a specific index
*
* @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 insertArq16_PlacerContactPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(16, rep);
}
/**
* Removes a repetition of
* ARQ-16: "Placer Contact Phone Number" at a specific index
*
* @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 removePlacerContactPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(16, rep);
}
/**
* Removes a repetition of
* ARQ-16: "Placer Contact Phone Number" at a specific index
*
* @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 removeArq16_PlacerContactPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(16, rep);
}
/**
* Returns all repetitions of Placer Contact Address (ARQ-17).
*/
public XAD[] getPlacerContactAddress() {
XAD[] ret = null;
try {
Type[] t = this.getField(17);
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 Placer Contact Address (ARQ-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPlacerContactAddressReps() {
XAD[] 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
* ARQ-17: "Placer Contact Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getPlacerContactAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(17, 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
* ARQ-17: "Placer Contact Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getArq17_PlacerContactAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(17, 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 Placer Contact Address (ARQ-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq17_PlacerContactAddressReps() {
XAD[] 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
* ARQ-17: "Placer Contact 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 insertPlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(17, rep);
}
/**
* Inserts a repetition of
* ARQ-17: "Placer Contact 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 insertArq17_PlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(17, rep);
}
/**
* Removes a repetition of
* ARQ-17: "Placer Contact 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 removePlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(17, rep);
}
/**
* Removes a repetition of
* ARQ-17: "Placer Contact 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 removeArq17_PlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(17, rep);
}
/**
* Returns
* ARQ-18: "Placer Contact Location" - creates it if necessary
*/
public PL getPlacerContactLocation() {
PL ret = null;
try {
Type t = this.getField(18, 0);
ret = (PL)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
* ARQ-18: "Placer Contact Location" - creates it if necessary
*/
public PL getArq18_PlacerContactLocation() {
PL ret = null;
try {
Type t = this.getField(18, 0);
ret = (PL)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 Entered By Person (ARQ-19).
*/
public XCN[] getEnteredByPerson() {
XCN[] ret = null;
try {
Type[] t = this.getField(19);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 Entered By Person (ARQ-19).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEnteredByPersonReps() {
XCN[] 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
* ARQ-19: "Entered By Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getEnteredByPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(19, rep);
ret = (XCN)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
* ARQ-19: "Entered By Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getArq19_EnteredByPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(19, rep);
ret = (XCN)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 Entered By Person (ARQ-19).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq19_EnteredByPersonReps() {
XCN[] 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
* ARQ-19: "Entered By Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN insertEnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(19, rep);
}
/**
* Inserts a repetition of
* ARQ-19: "Entered By Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN insertArq19_EnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(19, rep);
}
/**
* Removes a repetition of
* ARQ-19: "Entered By Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN removeEnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(19, rep);
}
/**
* Removes a repetition of
* ARQ-19: "Entered By Person" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XCN removeArq19_EnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(19, rep);
}
/**
* Returns all repetitions of Entered By Phone Number (ARQ-20).
*/
public XTN[] getEnteredByPhoneNumber() {
XTN[] ret = null;
try {
Type[] t = this.getField(20);
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 Entered By Phone Number (ARQ-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getEnteredByPhoneNumberReps() {
XTN[] 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
* ARQ-20: "Entered By Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getEnteredByPhoneNumber(int rep) {
XTN ret = null;
try {
Type t = this.getField(20, 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
* ARQ-20: "Entered By Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getArq20_EnteredByPhoneNumber(int rep) {
XTN ret = null;
try {
Type t = this.getField(20, 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 Entered By Phone Number (ARQ-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq20_EnteredByPhoneNumberReps() {
XTN[] 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
* ARQ-20: "Entered By Phone Number" at a specific index
*
* @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 insertEnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(20, rep);
}
/**
* Inserts a repetition of
* ARQ-20: "Entered By Phone Number" at a specific index
*
* @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 insertArq20_EnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(20, rep);
}
/**
* Removes a repetition of
* ARQ-20: "Entered By Phone Number" at a specific index
*
* @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 removeEnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(20, rep);
}
/**
* Removes a repetition of
* ARQ-20: "Entered By Phone Number" at a specific index
*
* @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 removeArq20_EnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(20, rep);
}
/**
* Returns
* ARQ-21: "Entered By Location" - creates it if necessary
*/
public PL getEnteredByLocation() {
PL ret = null;
try {
Type t = this.getField(21, 0);
ret = (PL)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
* ARQ-21: "Entered By Location" - creates it if necessary
*/
public PL getArq21_EnteredByLocation() {
PL ret = null;
try {
Type t = this.getField(21, 0);
ret = (PL)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
* ARQ-22: "Parent Placer Appointment ID" - creates it if necessary
*/
public EI getParentPlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(22, 0);
ret = (EI)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
* ARQ-22: "Parent Placer Appointment ID" - creates it if necessary
*/
public EI getArq22_ParentPlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(22, 0);
ret = (EI)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
* ARQ-23: "Parent Filler Appointment ID" - creates it if necessary
*/
public EI getParentFillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(23, 0);
ret = (EI)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
* ARQ-23: "Parent Filler Appointment ID" - creates it if necessary
*/
public EI getArq23_ParentFillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(23, 0);
ret = (EI)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 Placer Order Number (ARQ-24).
*/
public EI[] getPlacerOrderNumber() {
EI[] ret = null;
try {
Type[] t = this.getField(24);
ret = new EI[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (EI)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 Placer Order Number (ARQ-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPlacerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(24);
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
* ARQ-24: "Placer Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getPlacerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(24, rep);
ret = (EI)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
* ARQ-24: "Placer Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getArq24_PlacerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(24, rep);
ret = (EI)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 Placer Order Number (ARQ-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq24_PlacerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(24);
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
* ARQ-24: "Placer Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI insertPlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(24, rep);
}
/**
* Inserts a repetition of
* ARQ-24: "Placer Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI insertArq24_PlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(24, rep);
}
/**
* Removes a repetition of
* ARQ-24: "Placer Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI removePlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(24, rep);
}
/**
* Removes a repetition of
* ARQ-24: "Placer Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI removeArq24_PlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(24, rep);
}
/**
* Returns all repetitions of Filler Order Number (ARQ-25).
*/
public EI[] getFillerOrderNumber() {
EI[] ret = null;
try {
Type[] t = this.getField(25);
ret = new EI[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (EI)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 Filler Order Number (ARQ-25).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getFillerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(25);
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
* ARQ-25: "Filler Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getFillerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(25, rep);
ret = (EI)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
* ARQ-25: "Filler Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getArq25_FillerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(25, rep);
ret = (EI)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 Filler Order Number (ARQ-25).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getArq25_FillerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(25);
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
* ARQ-25: "Filler Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI insertFillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(25, rep);
}
/**
* Inserts a repetition of
* ARQ-25: "Filler Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI insertArq25_FillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(25, rep);
}
/**
* Removes a repetition of
* ARQ-25: "Filler Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI removeFillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(25, rep);
}
/**
* Removes a repetition of
* ARQ-25: "Filler Order Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public EI removeArq25_FillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(25, rep);
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new EI(getMessage());
case 1: return new EI(getMessage());
case 2: return new NM(getMessage());
case 3: return new EI(getMessage());
case 4: return new CWE(getMessage());
case 5: return new CWE(getMessage());
case 6: return new CWE(getMessage());
case 7: return new CWE(getMessage());
case 8: return new NM(getMessage());
case 9: return new CNE(getMessage());
case 10: return new DR(getMessage());
case 11: return new ST(getMessage());
case 12: return new RI(getMessage());
case 13: return new ST(getMessage());
case 14: return new XCN(getMessage());
case 15: return new XTN(getMessage());
case 16: return new XAD(getMessage());
case 17: return new PL(getMessage());
case 18: return new XCN(getMessage());
case 19: return new XTN(getMessage());
case 20: return new PL(getMessage());
case 21: return new EI(getMessage());
case 22: return new EI(getMessage());
case 23: return new EI(getMessage());
case 24: return new EI(getMessage());
default: return null;
}
}
}