ca.uhn.hl7v2.model.v24.segment.SCH Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
* specific language governing rights and limitations under the License.
*
* The Original Code is "[file_name]". Description:
* "[one_line_description]"
*
* The Initial Developer of the Original Code is University Health Network. Copyright (C)
* 2002. All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* Alternatively, the contents of this file may be used under the terms of the
* GNU General Public License (the "GPL"), in which case the provisions of the GPL are
* applicable instead of those above. If you wish to allow use of your version of this
* file only under the terms of the GPL and not to allow others to use your version
* of this file under the MPL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by the GPL License.
* If you do not delete the provisions above, a recipient may use your version of
* this file under either the MPL or the GPL.
*
*/
package ca.uhn.hl7v2.model.v24.segment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.datatype.*;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 SCH message segment (Scheduling Activity Information).
* This segment has the following fields:
*
* - SCH-1: Placer Appointment ID (EI) optional
*
- SCH-2: Filler Appointment ID (EI) optional
*
- SCH-3: Occurrence Number (NM) optional
*
- SCH-4: Placer Group Number (EI) optional
*
- SCH-5: Schedule ID (CE) optional
*
- SCH-6: Event Reason (CE)
*
- SCH-7: Appointment Reason (CE) optional
*
- SCH-8: Appointment Type (CE) optional
*
- SCH-9: Appointment Duration (NM) optional
*
- SCH-10: Appointment Duration Units (CE) optional
*
- SCH-11: Appointment Timing Quantity (TQ) repeating
*
- SCH-12: Placer Contact Person (XCN) optional repeating
*
- SCH-13: Placer Contact Phone Number (XTN) optional
*
- SCH-14: Placer Contact Address (XAD) optional repeating
*
- SCH-15: Placer Contact Location (PL) optional
*
- SCH-16: Filler Contact Person (XCN) repeating
*
- SCH-17: Filler Contact Phone Number (XTN) optional
*
- SCH-18: Filler Contact Address (XAD) optional repeating
*
- SCH-19: Filler Contact Location (PL) optional
*
- SCH-20: Entered By Person (XCN) repeating
*
- SCH-21: Entered By Phone Number (XTN) optional repeating
*
- SCH-22: Entered by Location (PL) optional
*
- SCH-23: Parent Placer Appointment ID (EI) optional
*
- SCH-24: Parent Filler Appointment ID (EI) optional
*
- SCH-25: Filler Status Code (CE) optional
*
- SCH-26: Placer Order Number (EI) optional repeating
*
- SCH-27: Filler Order Number (EI) optional repeating
*
*/
@SuppressWarnings("unused")
public class SCH extends AbstractSegment {
/**
* Creates a new SCH segment
*/
public SCH(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Placer Appointment ID");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Appointment ID");
this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Occurrence Number");
this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Schedule ID");
this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Event Reason");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Reason");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Type");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Appointment Duration");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appointment Duration Units");
this.add(TQ.class, true, 0, 200, new Object[]{ getMessage() }, "Appointment Timing Quantity");
this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Placer Contact Person");
this.add(XTN.class, false, 1, 250, new Object[]{ getMessage() }, "Placer Contact Phone Number");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Placer Contact Address");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Placer Contact Location");
this.add(XCN.class, true, 0, 250, new Object[]{ getMessage() }, "Filler Contact Person");
this.add(XTN.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Contact Phone Number");
this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Filler Contact Address");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Filler Contact Location");
this.add(XCN.class, true, 0, 250, new Object[]{ getMessage() }, "Entered By Person");
this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Entered By Phone Number");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Entered by Location");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Placer Appointment ID");
this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Filler Appointment ID");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Status Code");
this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number");
this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Filler Order Number");
} catch(HL7Exception e) {
LoggerFactory.getLogger(getClass()).error("Unexpected error creating SCH - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* SCH-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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-1: "Placer Appointment ID" - creates it if necessary
*/
public EI getSch1_PlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(1, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-2: "Filler Appointment ID" - creates it if necessary
*/
public EI getSch2_FillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(2, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-3: "Occurrence Number" - creates it if necessary
*/
public NM getSch3_OccurrenceNumber() {
NM ret = null;
try {
Type t = this.getField(3, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-4: "Placer Group Number" - creates it if necessary
*/
public EI getSch4_PlacerGroupNumber() {
EI ret = null;
try {
Type t = this.getField(4, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-5: "Schedule ID" - creates it if necessary
*/
public CE getScheduleID() {
CE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-5: "Schedule ID" - creates it if necessary
*/
public CE getSch5_ScheduleID() {
CE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-6: "Event Reason" - creates it if necessary
*/
public CE getEventReason() {
CE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-6: "Event Reason" - creates it if necessary
*/
public CE getSch6_EventReason() {
CE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-7: "Appointment Reason" - creates it if necessary
*/
public CE getAppointmentReason() {
CE ret = null;
try {
Type t = this.getField(7, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-7: "Appointment Reason" - creates it if necessary
*/
public CE getSch7_AppointmentReason() {
CE ret = null;
try {
Type t = this.getField(7, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-8: "Appointment Type" - creates it if necessary
*/
public CE getAppointmentType() {
CE ret = null;
try {
Type t = this.getField(8, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-8: "Appointment Type" - creates it if necessary
*/
public CE getSch8_AppointmentType() {
CE ret = null;
try {
Type t = this.getField(8, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-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) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-9: "Appointment Duration" - creates it if necessary
*/
public NM getSch9_AppointmentDuration() {
NM ret = null;
try {
Type t = this.getField(9, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-10: "Appointment Duration Units" - creates it if necessary
*/
public CE getAppointmentDurationUnits() {
CE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-10: "Appointment Duration Units" - creates it if necessary
*/
public CE getSch10_AppointmentDurationUnits() {
CE ret = null;
try {
Type t = this.getField(10, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Appointment Timing Quantity (SCH-11).
*/
public TQ[] getAppointmentTimingQuantity() {
TQ[] ret = null;
try {
Type[] t = this.getField(11);
ret = new TQ[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (TQ)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAppointmentTimingQuantityReps() {
TQ[] ret = null;
try {
Type[] t = this.getField(11);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-11: "Appointment Timing Quantity" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TQ getAppointmentTimingQuantity(int rep) {
TQ ret = null;
try {
Type t = this.getField(11, rep);
ret = (TQ)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-11: "Appointment Timing Quantity" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TQ getSch11_AppointmentTimingQuantity(int rep) {
TQ ret = null;
try {
Type t = this.getField(11, rep);
ret = (TQ)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch11_AppointmentTimingQuantityReps() {
TQ[] ret = null;
try {
Type[] t = this.getField(11);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-11: "Appointment Timing Quantity" 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 TQ insertAppointmentTimingQuantity(int rep) throws HL7Exception {
return (TQ) super.insertRepetition(11, rep);
}
/**
* Inserts a repetition of
* SCH-11: "Appointment Timing Quantity" 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 TQ insertSch11_AppointmentTimingQuantity(int rep) throws HL7Exception {
return (TQ) super.insertRepetition(11, rep);
}
/**
* Removes a repetition of
* SCH-11: "Appointment Timing Quantity" 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 TQ removeAppointmentTimingQuantity(int rep) throws HL7Exception {
return (TQ) super.removeRepetition(11, rep);
}
/**
* Removes a repetition of
* SCH-11: "Appointment Timing Quantity" 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 TQ removeSch11_AppointmentTimingQuantity(int rep) throws HL7Exception {
return (TQ) super.removeRepetition(11, rep);
}
/**
* Returns all repetitions of Placer Contact Person (SCH-12).
*/
public XCN[] getPlacerContactPerson() {
XCN[] ret = null;
try {
Type[] t = this.getField(12);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
* 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(12);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-12: "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(12, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-12: "Placer Contact Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getSch12_PlacerContactPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(12, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Contact Person (SCH-12).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch12_PlacerContactPersonReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(12);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-12: "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(12, rep);
}
/**
* Inserts a repetition of
* SCH-12: "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 insertSch12_PlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(12, rep);
}
/**
* Removes a repetition of
* SCH-12: "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(12, rep);
}
/**
* Removes a repetition of
* SCH-12: "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 removeSch12_PlacerContactPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(12, rep);
}
/**
* Returns
* SCH-13: "Placer Contact Phone Number" - creates it if necessary
*/
public XTN getPlacerContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(13, 0);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-13: "Placer Contact Phone Number" - creates it if necessary
*/
public XTN getSch13_PlacerContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(13, 0);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Placer Contact Address (SCH-14).
*/
public XAD[] getPlacerContactAddress() {
XAD[] ret = null;
try {
Type[] t = this.getField(14);
ret = new XAD[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XAD)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
* 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(14);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-14: "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(14, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-14: "Placer Contact Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getSch14_PlacerContactAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(14, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Contact Address (SCH-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch14_PlacerContactAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(14);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-14: "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(14, rep);
}
/**
* Inserts a repetition of
* SCH-14: "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 insertSch14_PlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* SCH-14: "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(14, rep);
}
/**
* Removes a repetition of
* SCH-14: "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 removeSch14_PlacerContactAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(14, rep);
}
/**
* Returns
* SCH-15: "Placer Contact Location" - creates it if necessary
*/
public PL getPlacerContactLocation() {
PL ret = null;
try {
Type t = this.getField(15, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-15: "Placer Contact Location" - creates it if necessary
*/
public PL getSch15_PlacerContactLocation() {
PL ret = null;
try {
Type t = this.getField(15, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Filler Contact Person (SCH-16).
*/
public XCN[] getFillerContactPerson() {
XCN[] ret = null;
try {
Type[] t = this.getField(16);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getFillerContactPersonReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(16);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-16: "Filler Contact Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getFillerContactPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(16, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-16: "Filler Contact Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getSch16_FillerContactPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(16, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Contact Person (SCH-16).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch16_FillerContactPersonReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(16);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-16: "Filler 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 insertFillerContactPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(16, rep);
}
/**
* Inserts a repetition of
* SCH-16: "Filler 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 insertSch16_FillerContactPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(16, rep);
}
/**
* Removes a repetition of
* SCH-16: "Filler 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 removeFillerContactPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(16, rep);
}
/**
* Removes a repetition of
* SCH-16: "Filler 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 removeSch16_FillerContactPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(16, rep);
}
/**
* Returns
* SCH-17: "Filler Contact Phone Number" - creates it if necessary
*/
public XTN getFillerContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(17, 0);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-17: "Filler Contact Phone Number" - creates it if necessary
*/
public XTN getSch17_FillerContactPhoneNumber() {
XTN ret = null;
try {
Type t = this.getField(17, 0);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Filler Contact Address (SCH-18).
*/
public XAD[] getFillerContactAddress() {
XAD[] ret = null;
try {
Type[] t = this.getField(18);
ret = new XAD[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XAD)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getFillerContactAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(18);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-18: "Filler Contact Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getFillerContactAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(18, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-18: "Filler Contact Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getSch18_FillerContactAddress(int rep) {
XAD ret = null;
try {
Type t = this.getField(18, rep);
ret = (XAD)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Contact Address (SCH-18).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch18_FillerContactAddressReps() {
XAD[] ret = null;
try {
Type[] t = this.getField(18);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-18: "Filler 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 insertFillerContactAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(18, rep);
}
/**
* Inserts a repetition of
* SCH-18: "Filler 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 insertSch18_FillerContactAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(18, rep);
}
/**
* Removes a repetition of
* SCH-18: "Filler 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 removeFillerContactAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(18, rep);
}
/**
* Removes a repetition of
* SCH-18: "Filler 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 removeSch18_FillerContactAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(18, rep);
}
/**
* Returns
* SCH-19: "Filler Contact Location" - creates it if necessary
*/
public PL getFillerContactLocation() {
PL ret = null;
try {
Type t = this.getField(19, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-19: "Filler Contact Location" - creates it if necessary
*/
public PL getSch19_FillerContactLocation() {
PL ret = null;
try {
Type t = this.getField(19, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Entered By Person (SCH-20).
*/
public XCN[] getEnteredByPerson() {
XCN[] ret = null;
try {
Type[] t = this.getField(20);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Entered By Person (SCH-20).
* 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(20);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-20: "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(20, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-20: "Entered By Person" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getSch20_EnteredByPerson(int rep) {
XCN ret = null;
try {
Type t = this.getField(20, rep);
ret = (XCN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Entered By Person (SCH-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch20_EnteredByPersonReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(20);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-20: "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(20, rep);
}
/**
* Inserts a repetition of
* SCH-20: "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 insertSch20_EnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(20, rep);
}
/**
* Removes a repetition of
* SCH-20: "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(20, rep);
}
/**
* Removes a repetition of
* SCH-20: "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 removeSch20_EnteredByPerson(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(20, rep);
}
/**
* Returns all repetitions of Entered By Phone Number (SCH-21).
*/
public XTN[] getEnteredByPhoneNumber() {
XTN[] ret = null;
try {
Type[] t = this.getField(21);
ret = new XTN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XTN)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
* 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(21);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-21: "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(21, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-21: "Entered By Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getSch21_EnteredByPhoneNumber(int rep) {
XTN ret = null;
try {
Type t = this.getField(21, rep);
ret = (XTN)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Entered By Phone Number (SCH-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch21_EnteredByPhoneNumberReps() {
XTN[] ret = null;
try {
Type[] t = this.getField(21);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-21: "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(21, rep);
}
/**
* Inserts a repetition of
* SCH-21: "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 insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(21, rep);
}
/**
* Removes a repetition of
* SCH-21: "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(21, rep);
}
/**
* Removes a repetition of
* SCH-21: "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 removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(21, rep);
}
/**
* Returns
* SCH-22: "Entered by Location" - creates it if necessary
*/
public PL getEnteredByLocation() {
PL ret = null;
try {
Type t = this.getField(22, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-22: "Entered by Location" - creates it if necessary
*/
public PL getSch22_EnteredByLocation() {
PL ret = null;
try {
Type t = this.getField(22, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-23: "Parent Placer Appointment ID" - creates it if necessary
*/
public EI getParentPlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(23, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-23: "Parent Placer Appointment ID" - creates it if necessary
*/
public EI getSch23_ParentPlacerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(23, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-24: "Parent Filler Appointment ID" - creates it if necessary
*/
public EI getParentFillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(24, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-24: "Parent Filler Appointment ID" - creates it if necessary
*/
public EI getSch24_ParentFillerAppointmentID() {
EI ret = null;
try {
Type t = this.getField(24, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-25: "Filler Status Code" - creates it if necessary
*/
public CE getFillerStatusCode() {
CE ret = null;
try {
Type t = this.getField(25, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SCH-25: "Filler Status Code" - creates it if necessary
*/
public CE getSch25_FillerStatusCode() {
CE ret = null;
try {
Type t = this.getField(25, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Placer Order Number (SCH-26).
*/
public EI[] getPlacerOrderNumber() {
EI[] ret = null;
try {
Type[] t = this.getField(26);
ret = new EI[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (EI)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
* 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(26);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-26: "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(26, rep);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-26: "Placer Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getSch26_PlacerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(26, rep);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Placer Order Number (SCH-26).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch26_PlacerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(26);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-26: "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(26, rep);
}
/**
* Inserts a repetition of
* SCH-26: "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 insertSch26_PlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(26, rep);
}
/**
* Removes a repetition of
* SCH-26: "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(26, rep);
}
/**
* Removes a repetition of
* SCH-26: "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 removeSch26_PlacerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(26, rep);
}
/**
* Returns all repetitions of Filler Order Number (SCH-27).
*/
public EI[] getFillerOrderNumber() {
EI[] ret = null;
try {
Type[] t = this.getField(27);
ret = new EI[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (EI)t[i];
}
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
* 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(27);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SCH-27: "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(27, rep);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* SCH-27: "Filler Order Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public EI getSch27_FillerOrderNumber(int rep) {
EI ret = null;
try {
Type t = this.getField(27, rep);
ret = (EI)t;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Filler Order Number (SCH-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSch27_FillerOrderNumberReps() {
EI[] ret = null;
try {
Type[] t = this.getField(27);
return t.length;
} catch (ClassCastException cce) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SCH-27: "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(27, rep);
}
/**
* Inserts a repetition of
* SCH-27: "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 insertSch27_FillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.insertRepetition(27, rep);
}
/**
* Removes a repetition of
* SCH-27: "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(27, rep);
}
/**
* Removes a repetition of
* SCH-27: "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 removeSch27_FillerOrderNumber(int rep) throws HL7Exception {
return (EI) super.removeRepetition(27, 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 CE(getMessage());
case 5: return new CE(getMessage());
case 6: return new CE(getMessage());
case 7: return new CE(getMessage());
case 8: return new NM(getMessage());
case 9: return new CE(getMessage());
case 10: return new TQ(getMessage());
case 11: return new XCN(getMessage());
case 12: return new XTN(getMessage());
case 13: return new XAD(getMessage());
case 14: return new PL(getMessage());
case 15: return new XCN(getMessage());
case 16: return new XTN(getMessage());
case 17: return new XAD(getMessage());
case 18: return new PL(getMessage());
case 19: return new XCN(getMessage());
case 20: return new XTN(getMessage());
case 21: return new PL(getMessage());
case 22: return new EI(getMessage());
case 23: return new EI(getMessage());
case 24: return new CE(getMessage());
case 25: return new EI(getMessage());
case 26: return new EI(getMessage());
default: return null;
}
}
}