ca.uhn.hl7v2.model.v22.segment.OBR 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.v22.segment;
// import ca.uhn.hl7v2.model.v22.group.*;
import ca.uhn.hl7v2.model.v22.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 OBR message segment (OBSERVATION REQUEST).
* This segment has the following fields:
*
* - OBR-1: Set ID - Observation Request (SI) optional
*
- OBR-2: Placer Order Number (CM_PLACER) optional
*
- OBR-3: Filler Order Number (CM_FILLER) optional
*
- OBR-4: Universal Service ID (CE)
*
- OBR-5: Priority (not used) (ID) optional
*
- OBR-6: Requested date / time (not used) (TS) optional
*
- OBR-7: Observation date / time (TS) optional
*
- OBR-8: Observation end date / time (TS) optional
*
- OBR-9: Collection Volume (CQ_QUANTITY) optional
*
- OBR-10: Collector Identifier (CN) optional repeating
*
- OBR-11: Specimen action code (ID) optional
*
- OBR-12: Danger Code (CE) optional
*
- OBR-13: Relevant clinical information (ST) optional
*
- OBR-14: Specimen received date / time (TS) optional
*
- OBR-15: Specimen source (CM_SPS) optional
*
- OBR-16: Ordering Provider (CN) optional
*
- OBR-17: Order Callback Phone Number (TN) optional repeating
*
- OBR-18: Placer field 1 (ST) optional
*
- OBR-19: Placer field 2 (ST) optional
*
- OBR-20: Filler Field 1 (ST) optional
*
- OBR-21: Filler Field 2 (ST) optional
*
- OBR-22: Results report / status change - date / time (TS) optional
*
- OBR-23: Charge to Practice (CM_MOC) optional
*
- OBR-24: Diagnostic service section ID (ID) optional
*
- OBR-25: Result Status (ID) optional
*
- OBR-26: Parent Result (CM_PARENT_RESULT) optional
*
- OBR-27: Quantity / timing (TQ) optional repeating
*
- OBR-28: Result Copies To (CN) optional repeating
*
- OBR-29: Parent Number (CM_EIP) optional
*
- OBR-30: Transportation Mode (ID) optional
*
- OBR-31: Reason for Study (CE) optional repeating
*
- OBR-32: Principal Result Interpreter (CM_NDL) optional
*
- OBR-33: Assistant Result Interpreter (CM_NDL) optional repeating
*
- OBR-34: Technician (CM_NDL) optional repeating
*
- OBR-35: Transcriptionist (CM_NDL) optional repeating
*
- OBR-36: Scheduled date / time (TS) optional
*
*/
public class OBR extends AbstractSegment {
/**
* Creates a new OBR segment
*/
public OBR(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(SI.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Set ID - Observation Request");
this.add(CM_PLACER.class, false, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Placer Order Number");
this.add(CM_FILLER.class, false, 1, 75, new Object[]{ getMessage(), new Integer(0) }, "Filler Order Number");
this.add(CE.class, true, 1, 200, new Object[]{ getMessage(), new Integer(0) }, "Universal Service ID");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Priority (not used)");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Requested date / time (not used)");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Observation date / time");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Observation end date / time");
this.add(CQ_QUANTITY.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Collection Volume");
this.add(CN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Collector Identifier");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Specimen action code");
this.add(CE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Danger Code");
this.add(ST.class, false, 1, 300, new Object[]{ getMessage(), new Integer(0) }, "Relevant clinical information");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Specimen received date / time");
this.add(CM_SPS.class, false, 1, 300, new Object[]{ getMessage(), new Integer(70) }, "Specimen source");
this.add(CN.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Ordering Provider");
this.add(TN.class, false, 2, 40, new Object[]{ getMessage(), new Integer(0) }, "Order Callback Phone Number");
this.add(ST.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Placer field 1");
this.add(ST.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Placer field 2");
this.add(ST.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Filler Field 1");
this.add(ST.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Filler Field 2");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Results report / status change - date / time");
this.add(CM_MOC.class, false, 1, 40, new Object[]{ getMessage(), new Integer(0) }, "Charge to Practice");
this.add(ID.class, false, 1, 10, new Object[]{ getMessage() }, "Diagnostic service section ID");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Result Status");
this.add(CM_PARENT_RESULT.class, false, 1, 200, new Object[]{ getMessage(), new Integer(0) }, "Parent Result");
this.add(TQ.class, false, 0, 200, new Object[]{ getMessage(), new Integer(0) }, "Quantity / timing");
this.add(CN.class, false, 5, 150, new Object[]{ getMessage(), new Integer(0) }, "Result Copies To");
this.add(CM_EIP.class, false, 1, 150, new Object[]{ getMessage(), new Integer(0) }, "Parent Number");
this.add(ID.class, false, 1, 20, new Object[]{ getMessage() }, "Transportation Mode");
this.add(CE.class, false, 0, 300, new Object[]{ getMessage(), new Integer(0) }, "Reason for Study");
this.add(CM_NDL.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Principal Result Interpreter");
this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Assistant Result Interpreter");
this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Technician");
this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Transcriptionist");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Scheduled date / time");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating OBR - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* OBR-1: "Set ID - Observation Request" - creates it if necessary
*/
public SI getSetIDObservationRequest() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)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
* OBR-1: "Set ID - Observation Request" - creates it if necessary
*/
public SI getObr1_SetIDObservationRequest() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)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
* OBR-2: "Placer Order Number" - creates it if necessary
*/
public CM_PLACER getPlacerOrderNumber() {
CM_PLACER ret = null;
try {
Type t = this.getField(2, 0);
ret = (CM_PLACER)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
* OBR-2: "Placer Order Number" - creates it if necessary
*/
public CM_PLACER getObr2_PlacerOrderNumber() {
CM_PLACER ret = null;
try {
Type t = this.getField(2, 0);
ret = (CM_PLACER)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
* OBR-3: "Filler Order Number" - creates it if necessary
*/
public CM_FILLER getFillerOrderNumber() {
CM_FILLER ret = null;
try {
Type t = this.getField(3, 0);
ret = (CM_FILLER)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
* OBR-3: "Filler Order Number" - creates it if necessary
*/
public CM_FILLER getObr3_FillerOrderNumber() {
CM_FILLER ret = null;
try {
Type t = this.getField(3, 0);
ret = (CM_FILLER)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
* OBR-4: "Universal Service ID" - creates it if necessary
*/
public CE getUniversalServiceID() {
CE ret = null;
try {
Type t = this.getField(4, 0);
ret = (CE)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
* OBR-4: "Universal Service ID" - creates it if necessary
*/
public CE getObr4_UniversalServiceID() {
CE ret = null;
try {
Type t = this.getField(4, 0);
ret = (CE)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
* OBR-5: "Priority (not used)" - creates it if necessary
*/
public ID getPriorityNotused() {
ID ret = null;
try {
Type t = this.getField(5, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-5: "Priority (not used)" - creates it if necessary
*/
public ID getObr5_PriorityNotused() {
ID ret = null;
try {
Type t = this.getField(5, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-6: "Requested date / time (not used)" - creates it if necessary
*/
public TS getRequestedDateTimeNotused() {
TS ret = null;
try {
Type t = this.getField(6, 0);
ret = (TS)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
* OBR-6: "Requested date / time (not used)" - creates it if necessary
*/
public TS getObr6_RequestedDateTimeNotused() {
TS ret = null;
try {
Type t = this.getField(6, 0);
ret = (TS)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
* OBR-7: "Observation date / time" - creates it if necessary
*/
public TS getObservationDateTime() {
TS ret = null;
try {
Type t = this.getField(7, 0);
ret = (TS)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
* OBR-7: "Observation date / time" - creates it if necessary
*/
public TS getObr7_ObservationDateTime() {
TS ret = null;
try {
Type t = this.getField(7, 0);
ret = (TS)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
* OBR-8: "Observation end date / time" - creates it if necessary
*/
public TS getObservationEndDateTime() {
TS ret = null;
try {
Type t = this.getField(8, 0);
ret = (TS)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
* OBR-8: "Observation end date / time" - creates it if necessary
*/
public TS getObr8_ObservationEndDateTime() {
TS ret = null;
try {
Type t = this.getField(8, 0);
ret = (TS)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
* OBR-9: "Collection Volume" - creates it if necessary
*/
public CQ_QUANTITY getCollectionVolume() {
CQ_QUANTITY ret = null;
try {
Type t = this.getField(9, 0);
ret = (CQ_QUANTITY)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
* OBR-9: "Collection Volume" - creates it if necessary
*/
public CQ_QUANTITY getObr9_CollectionVolume() {
CQ_QUANTITY ret = null;
try {
Type t = this.getField(9, 0);
ret = (CQ_QUANTITY)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 Collector Identifier (OBR-10).
*/
public CN[] getCollectorIdentifier() {
CN[] ret = null;
try {
Type[] t = this.getField(10);
ret = new CN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CN)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 Collector Identifier (OBR-10).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getCollectorIdentifierReps() {
CN[] ret = null;
try {
Type[] t = this.getField(10);
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
* OBR-10: "Collector Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getCollectorIdentifier(int rep) {
CN ret = null;
try {
Type t = this.getField(10, rep);
ret = (CN)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
* OBR-10: "Collector Identifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getObr10_CollectorIdentifier(int rep) {
CN ret = null;
try {
Type t = this.getField(10, rep);
ret = (CN)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 Collector Identifier (OBR-10).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr10_CollectorIdentifierReps() {
CN[] ret = null;
try {
Type[] t = this.getField(10);
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
* OBR-10: "Collector Identifier" 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 CN insertCollectorIdentifier(int rep) throws HL7Exception {
return (CN) super.insertRepetition(10, rep);
}
/**
* Inserts a repetition of
* OBR-10: "Collector Identifier" 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 CN insertObr10_CollectorIdentifier(int rep) throws HL7Exception {
return (CN) super.insertRepetition(10, rep);
}
/**
* Removes a repetition of
* OBR-10: "Collector Identifier" 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 CN removeCollectorIdentifier(int rep) throws HL7Exception {
return (CN) super.removeRepetition(10, rep);
}
/**
* Removes a repetition of
* OBR-10: "Collector Identifier" 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 CN removeObr10_CollectorIdentifier(int rep) throws HL7Exception {
return (CN) super.removeRepetition(10, rep);
}
/**
* Returns
* OBR-11: "Specimen action code" - creates it if necessary
*/
public ID getSpecimenActionCode() {
ID ret = null;
try {
Type t = this.getField(11, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-11: "Specimen action code" - creates it if necessary
*/
public ID getObr11_SpecimenActionCode() {
ID ret = null;
try {
Type t = this.getField(11, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-12: "Danger Code" - creates it if necessary
*/
public CE getDangerCode() {
CE ret = null;
try {
Type t = this.getField(12, 0);
ret = (CE)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
* OBR-12: "Danger Code" - creates it if necessary
*/
public CE getObr12_DangerCode() {
CE ret = null;
try {
Type t = this.getField(12, 0);
ret = (CE)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
* OBR-13: "Relevant clinical information" - creates it if necessary
*/
public ST getRelevantClinicalInformation() {
ST ret = null;
try {
Type t = this.getField(13, 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
* OBR-13: "Relevant clinical information" - creates it if necessary
*/
public ST getObr13_RelevantClinicalInformation() {
ST ret = null;
try {
Type t = this.getField(13, 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
* OBR-14: "Specimen received date / time" - creates it if necessary
*/
public TS getSpecimenReceivedDateTime() {
TS ret = null;
try {
Type t = this.getField(14, 0);
ret = (TS)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
* OBR-14: "Specimen received date / time" - creates it if necessary
*/
public TS getObr14_SpecimenReceivedDateTime() {
TS ret = null;
try {
Type t = this.getField(14, 0);
ret = (TS)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
* OBR-15: "Specimen source" - creates it if necessary
*/
public CM_SPS getSpecimenSource() {
CM_SPS ret = null;
try {
Type t = this.getField(15, 0);
ret = (CM_SPS)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
* OBR-15: "Specimen source" - creates it if necessary
*/
public CM_SPS getObr15_SpecimenSource() {
CM_SPS ret = null;
try {
Type t = this.getField(15, 0);
ret = (CM_SPS)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
* OBR-16: "Ordering Provider" - creates it if necessary
*/
public CN getOrderingProvider() {
CN ret = null;
try {
Type t = this.getField(16, 0);
ret = (CN)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
* OBR-16: "Ordering Provider" - creates it if necessary
*/
public CN getObr16_OrderingProvider() {
CN ret = null;
try {
Type t = this.getField(16, 0);
ret = (CN)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 Order Callback Phone Number (OBR-17).
*/
public TN[] getOrderCallbackPhoneNumber() {
TN[] ret = null;
try {
Type[] t = this.getField(17);
ret = new TN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (TN)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 Order Callback Phone Number (OBR-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOrderCallbackPhoneNumberReps() {
TN[] 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
* OBR-17: "Order Callback Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TN getOrderCallbackPhoneNumber(int rep) {
TN ret = null;
try {
Type t = this.getField(17, rep);
ret = (TN)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
* OBR-17: "Order Callback Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TN getObr17_OrderCallbackPhoneNumber(int rep) {
TN ret = null;
try {
Type t = this.getField(17, rep);
ret = (TN)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 Order Callback Phone Number (OBR-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr17_OrderCallbackPhoneNumberReps() {
TN[] 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
* OBR-17: "Order Callback 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 TN insertOrderCallbackPhoneNumber(int rep) throws HL7Exception {
return (TN) super.insertRepetition(17, rep);
}
/**
* Inserts a repetition of
* OBR-17: "Order Callback 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 TN insertObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception {
return (TN) super.insertRepetition(17, rep);
}
/**
* Removes a repetition of
* OBR-17: "Order Callback 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 TN removeOrderCallbackPhoneNumber(int rep) throws HL7Exception {
return (TN) super.removeRepetition(17, rep);
}
/**
* Removes a repetition of
* OBR-17: "Order Callback 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 TN removeObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception {
return (TN) super.removeRepetition(17, rep);
}
/**
* Returns
* OBR-18: "Placer field 1" - creates it if necessary
*/
public ST getPlacerField1() {
ST ret = null;
try {
Type t = this.getField(18, 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
* OBR-18: "Placer field 1" - creates it if necessary
*/
public ST getObr18_PlacerField1() {
ST ret = null;
try {
Type t = this.getField(18, 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
* OBR-19: "Placer field 2" - creates it if necessary
*/
public ST getPlacerField2() {
ST ret = null;
try {
Type t = this.getField(19, 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
* OBR-19: "Placer field 2" - creates it if necessary
*/
public ST getObr19_PlacerField2() {
ST ret = null;
try {
Type t = this.getField(19, 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
* OBR-20: "Filler Field 1" - creates it if necessary
*/
public ST getFillerField1() {
ST ret = null;
try {
Type t = this.getField(20, 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
* OBR-20: "Filler Field 1" - creates it if necessary
*/
public ST getObr20_FillerField1() {
ST ret = null;
try {
Type t = this.getField(20, 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
* OBR-21: "Filler Field 2" - creates it if necessary
*/
public ST getFillerField2() {
ST ret = null;
try {
Type t = this.getField(21, 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
* OBR-21: "Filler Field 2" - creates it if necessary
*/
public ST getObr21_FillerField2() {
ST ret = null;
try {
Type t = this.getField(21, 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
* OBR-22: "Results report / status change - date / time" - creates it if necessary
*/
public TS getResultsReportStatusChangeDateTime() {
TS ret = null;
try {
Type t = this.getField(22, 0);
ret = (TS)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
* OBR-22: "Results report / status change - date / time" - creates it if necessary
*/
public TS getObr22_ResultsReportStatusChangeDateTime() {
TS ret = null;
try {
Type t = this.getField(22, 0);
ret = (TS)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
* OBR-23: "Charge to Practice" - creates it if necessary
*/
public CM_MOC getChargeToPractice() {
CM_MOC ret = null;
try {
Type t = this.getField(23, 0);
ret = (CM_MOC)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
* OBR-23: "Charge to Practice" - creates it if necessary
*/
public CM_MOC getObr23_ChargeToPractice() {
CM_MOC ret = null;
try {
Type t = this.getField(23, 0);
ret = (CM_MOC)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
* OBR-24: "Diagnostic service section ID" - creates it if necessary
*/
public ID getDiagnosticServiceSectionID() {
ID ret = null;
try {
Type t = this.getField(24, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-24: "Diagnostic service section ID" - creates it if necessary
*/
public ID getObr24_DiagnosticServiceSectionID() {
ID ret = null;
try {
Type t = this.getField(24, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-25: "Result Status" - creates it if necessary
*/
public ID getResultStatus() {
ID ret = null;
try {
Type t = this.getField(25, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-25: "Result Status" - creates it if necessary
*/
public ID getObr25_ResultStatus() {
ID ret = null;
try {
Type t = this.getField(25, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-26: "Parent Result" - creates it if necessary
*/
public CM_PARENT_RESULT getParentResult() {
CM_PARENT_RESULT ret = null;
try {
Type t = this.getField(26, 0);
ret = (CM_PARENT_RESULT)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
* OBR-26: "Parent Result" - creates it if necessary
*/
public CM_PARENT_RESULT getObr26_ParentResult() {
CM_PARENT_RESULT ret = null;
try {
Type t = this.getField(26, 0);
ret = (CM_PARENT_RESULT)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 Quantity / timing (OBR-27).
*/
public TQ[] getQuantityTiming() {
TQ[] ret = null;
try {
Type[] t = this.getField(27);
ret = new TQ[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (TQ)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 Quantity / timing (OBR-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getQuantityTimingReps() {
TQ[] ret = null;
try {
Type[] t = this.getField(27);
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
* OBR-27: "Quantity / timing" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TQ getQuantityTiming(int rep) {
TQ ret = null;
try {
Type t = this.getField(27, rep);
ret = (TQ)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
* OBR-27: "Quantity / timing" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public TQ getObr27_QuantityTiming(int rep) {
TQ ret = null;
try {
Type t = this.getField(27, rep);
ret = (TQ)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 Quantity / timing (OBR-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr27_QuantityTimingReps() {
TQ[] ret = null;
try {
Type[] t = this.getField(27);
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
* OBR-27: "Quantity / timing" 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 insertQuantityTiming(int rep) throws HL7Exception {
return (TQ) super.insertRepetition(27, rep);
}
/**
* Inserts a repetition of
* OBR-27: "Quantity / timing" 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 insertObr27_QuantityTiming(int rep) throws HL7Exception {
return (TQ) super.insertRepetition(27, rep);
}
/**
* Removes a repetition of
* OBR-27: "Quantity / timing" 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 removeQuantityTiming(int rep) throws HL7Exception {
return (TQ) super.removeRepetition(27, rep);
}
/**
* Removes a repetition of
* OBR-27: "Quantity / timing" 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 removeObr27_QuantityTiming(int rep) throws HL7Exception {
return (TQ) super.removeRepetition(27, rep);
}
/**
* Returns all repetitions of Result Copies To (OBR-28).
*/
public CN[] getResultCopiesTo() {
CN[] ret = null;
try {
Type[] t = this.getField(28);
ret = new CN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CN)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 Result Copies To (OBR-28).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getResultCopiesToReps() {
CN[] ret = null;
try {
Type[] t = this.getField(28);
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
* OBR-28: "Result Copies To" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getResultCopiesTo(int rep) {
CN ret = null;
try {
Type t = this.getField(28, rep);
ret = (CN)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
* OBR-28: "Result Copies To" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getObr28_ResultCopiesTo(int rep) {
CN ret = null;
try {
Type t = this.getField(28, rep);
ret = (CN)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 Result Copies To (OBR-28).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr28_ResultCopiesToReps() {
CN[] ret = null;
try {
Type[] t = this.getField(28);
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
* OBR-28: "Result Copies To" 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 CN insertResultCopiesTo(int rep) throws HL7Exception {
return (CN) super.insertRepetition(28, rep);
}
/**
* Inserts a repetition of
* OBR-28: "Result Copies To" 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 CN insertObr28_ResultCopiesTo(int rep) throws HL7Exception {
return (CN) super.insertRepetition(28, rep);
}
/**
* Removes a repetition of
* OBR-28: "Result Copies To" 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 CN removeResultCopiesTo(int rep) throws HL7Exception {
return (CN) super.removeRepetition(28, rep);
}
/**
* Removes a repetition of
* OBR-28: "Result Copies To" 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 CN removeObr28_ResultCopiesTo(int rep) throws HL7Exception {
return (CN) super.removeRepetition(28, rep);
}
/**
* Returns
* OBR-29: "Parent Number" - creates it if necessary
*/
public CM_EIP getParentNumber() {
CM_EIP ret = null;
try {
Type t = this.getField(29, 0);
ret = (CM_EIP)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
* OBR-29: "Parent Number" - creates it if necessary
*/
public CM_EIP getObr29_ParentNumber() {
CM_EIP ret = null;
try {
Type t = this.getField(29, 0);
ret = (CM_EIP)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
* OBR-30: "Transportation Mode" - creates it if necessary
*/
public ID getTransportationMode() {
ID ret = null;
try {
Type t = this.getField(30, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* OBR-30: "Transportation Mode" - creates it if necessary
*/
public ID getObr30_TransportationMode() {
ID ret = null;
try {
Type t = this.getField(30, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Reason for Study (OBR-31).
*/
public CE[] getReasonForStudy() {
CE[] ret = null;
try {
Type[] t = this.getField(31);
ret = new CE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CE)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 Reason for Study (OBR-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getReasonForStudyReps() {
CE[] ret = null;
try {
Type[] t = this.getField(31);
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
* OBR-31: "Reason for Study" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getReasonForStudy(int rep) {
CE ret = null;
try {
Type t = this.getField(31, rep);
ret = (CE)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
* OBR-31: "Reason for Study" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getObr31_ReasonForStudy(int rep) {
CE ret = null;
try {
Type t = this.getField(31, rep);
ret = (CE)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 Reason for Study (OBR-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr31_ReasonForStudyReps() {
CE[] ret = null;
try {
Type[] t = this.getField(31);
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
* OBR-31: "Reason for Study" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertReasonForStudy(int rep) throws HL7Exception {
return (CE) super.insertRepetition(31, rep);
}
/**
* Inserts a repetition of
* OBR-31: "Reason for Study" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertObr31_ReasonForStudy(int rep) throws HL7Exception {
return (CE) super.insertRepetition(31, rep);
}
/**
* Removes a repetition of
* OBR-31: "Reason for Study" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeReasonForStudy(int rep) throws HL7Exception {
return (CE) super.removeRepetition(31, rep);
}
/**
* Removes a repetition of
* OBR-31: "Reason for Study" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeObr31_ReasonForStudy(int rep) throws HL7Exception {
return (CE) super.removeRepetition(31, rep);
}
/**
* Returns
* OBR-32: "Principal Result Interpreter" - creates it if necessary
*/
public CM_NDL getPrincipalResultInterpreter() {
CM_NDL ret = null;
try {
Type t = this.getField(32, 0);
ret = (CM_NDL)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
* OBR-32: "Principal Result Interpreter" - creates it if necessary
*/
public CM_NDL getObr32_PrincipalResultInterpreter() {
CM_NDL ret = null;
try {
Type t = this.getField(32, 0);
ret = (CM_NDL)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 Assistant Result Interpreter (OBR-33).
*/
public CM_NDL[] getAssistantResultInterpreter() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(33);
ret = new CM_NDL[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CM_NDL)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 Assistant Result Interpreter (OBR-33).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAssistantResultInterpreterReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(33);
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
* OBR-33: "Assistant Result Interpreter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getAssistantResultInterpreter(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(33, rep);
ret = (CM_NDL)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
* OBR-33: "Assistant Result Interpreter" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getObr33_AssistantResultInterpreter(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(33, rep);
ret = (CM_NDL)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 Assistant Result Interpreter (OBR-33).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr33_AssistantResultInterpreterReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(33);
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
* OBR-33: "Assistant Result Interpreter" 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 CM_NDL insertAssistantResultInterpreter(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(33, rep);
}
/**
* Inserts a repetition of
* OBR-33: "Assistant Result Interpreter" 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 CM_NDL insertObr33_AssistantResultInterpreter(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(33, rep);
}
/**
* Removes a repetition of
* OBR-33: "Assistant Result Interpreter" 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 CM_NDL removeAssistantResultInterpreter(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(33, rep);
}
/**
* Removes a repetition of
* OBR-33: "Assistant Result Interpreter" 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 CM_NDL removeObr33_AssistantResultInterpreter(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(33, rep);
}
/**
* Returns all repetitions of Technician (OBR-34).
*/
public CM_NDL[] getTechnician() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(34);
ret = new CM_NDL[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CM_NDL)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 Technician (OBR-34).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getTechnicianReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(34);
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
* OBR-34: "Technician" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getTechnician(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(34, rep);
ret = (CM_NDL)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
* OBR-34: "Technician" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getObr34_Technician(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(34, rep);
ret = (CM_NDL)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 Technician (OBR-34).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr34_TechnicianReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(34);
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
* OBR-34: "Technician" 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 CM_NDL insertTechnician(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(34, rep);
}
/**
* Inserts a repetition of
* OBR-34: "Technician" 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 CM_NDL insertObr34_Technician(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(34, rep);
}
/**
* Removes a repetition of
* OBR-34: "Technician" 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 CM_NDL removeTechnician(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(34, rep);
}
/**
* Removes a repetition of
* OBR-34: "Technician" 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 CM_NDL removeObr34_Technician(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(34, rep);
}
/**
* Returns all repetitions of Transcriptionist (OBR-35).
*/
public CM_NDL[] getTranscriptionist() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(35);
ret = new CM_NDL[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CM_NDL)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 Transcriptionist (OBR-35).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getTranscriptionistReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(35);
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
* OBR-35: "Transcriptionist" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getTranscriptionist(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(35, rep);
ret = (CM_NDL)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
* OBR-35: "Transcriptionist" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CM_NDL getObr35_Transcriptionist(int rep) {
CM_NDL ret = null;
try {
Type t = this.getField(35, rep);
ret = (CM_NDL)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 Transcriptionist (OBR-35).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getObr35_TranscriptionistReps() {
CM_NDL[] ret = null;
try {
Type[] t = this.getField(35);
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
* OBR-35: "Transcriptionist" 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 CM_NDL insertTranscriptionist(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(35, rep);
}
/**
* Inserts a repetition of
* OBR-35: "Transcriptionist" 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 CM_NDL insertObr35_Transcriptionist(int rep) throws HL7Exception {
return (CM_NDL) super.insertRepetition(35, rep);
}
/**
* Removes a repetition of
* OBR-35: "Transcriptionist" 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 CM_NDL removeTranscriptionist(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(35, rep);
}
/**
* Removes a repetition of
* OBR-35: "Transcriptionist" 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 CM_NDL removeObr35_Transcriptionist(int rep) throws HL7Exception {
return (CM_NDL) super.removeRepetition(35, rep);
}
/**
* Returns
* OBR-36: "Scheduled date / time" - creates it if necessary
*/
public TS getScheduledDateTime() {
TS ret = null;
try {
Type t = this.getField(36, 0);
ret = (TS)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
* OBR-36: "Scheduled date / time" - creates it if necessary
*/
public TS getObr36_ScheduledDateTime() {
TS ret = null;
try {
Type t = this.getField(36, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new SI(getMessage());
case 1: return new CM_PLACER(getMessage());
case 2: return new CM_FILLER(getMessage());
case 3: return new CE(getMessage());
case 4: return new ID(getMessage(), new Integer( 0 ));
case 5: return new TS(getMessage());
case 6: return new TS(getMessage());
case 7: return new TS(getMessage());
case 8: return new CQ_QUANTITY(getMessage());
case 9: return new CN(getMessage());
case 10: return new ID(getMessage(), new Integer( 65 ));
case 11: return new CE(getMessage());
case 12: return new ST(getMessage());
case 13: return new TS(getMessage());
case 14: return new CM_SPS(getMessage());
case 15: return new CN(getMessage());
case 16: return new TN(getMessage());
case 17: return new ST(getMessage());
case 18: return new ST(getMessage());
case 19: return new ST(getMessage());
case 20: return new ST(getMessage());
case 21: return new TS(getMessage());
case 22: return new CM_MOC(getMessage());
case 23: return new ID(getMessage(), new Integer( 74 ));
case 24: return new ID(getMessage(), new Integer( 123 ));
case 25: return new CM_PARENT_RESULT(getMessage());
case 26: return new TQ(getMessage());
case 27: return new CN(getMessage());
case 28: return new CM_EIP(getMessage());
case 29: return new ID(getMessage(), new Integer( 124 ));
case 30: return new CE(getMessage());
case 31: return new CM_NDL(getMessage());
case 32: return new CM_NDL(getMessage());
case 33: return new CM_NDL(getMessage());
case 34: return new CM_NDL(getMessage());
case 35: return new TS(getMessage());
default: return null;
}
}
}