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

ca.uhn.hl7v2.model.v25.segment.OBR Maven / Gradle / Ivy

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

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

// import ca.uhn.hl7v2.model.v25.group.*;
import ca.uhn.hl7v2.model.v25.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 - OBR (SI) optional *
  • OBR-2: Placer Order Number (EI) optional *
  • OBR-3: Filler Order Number (EI) optional *
  • OBR-4: Universal Service Identifier (CE) *
  • OBR-5: Priority _ OBR (ID) optional *
  • OBR-6: Requested Date/Time (TS) optional *
  • OBR-7: Observation Date/Time (TS) optional *
  • OBR-8: Observation End Date/Time (TS) optional *
  • OBR-9: Collection Volume (CQ) optional *
  • OBR-10: Collector Identifier (XCN) 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 (SPS) optional *
  • OBR-16: Ordering Provider (XCN) optional repeating *
  • OBR-17: Order Callback Phone Number (XTN) 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 Rpt/Status Chng - Date/Time (TS) optional *
  • OBR-23: Charge to Practice (MOC) optional *
  • OBR-24: Diagnostic Serv Sect ID (ID) optional *
  • OBR-25: Result Status (ID) optional *
  • OBR-26: Parent Result (PRL) optional *
  • OBR-27: Quantity/Timing (TQ) optional repeating *
  • OBR-28: Result Copies To (XCN) optional repeating *
  • OBR-29: Parent Number (EIP) optional *
  • OBR-30: Transportation Mode (ID) optional *
  • OBR-31: Reason for Study (CE) optional repeating *
  • OBR-32: Principal Result Interpreter (NDL) optional *
  • OBR-33: Assistant Result Interpreter (NDL) optional repeating *
  • OBR-34: Technician (NDL) optional repeating *
  • OBR-35: Transcriptionist (NDL) optional repeating *
  • OBR-36: Scheduled Date/Time (TS) optional *
  • OBR-37: Number of Sample Containers * (NM) optional *
  • OBR-38: Transport Logistics of Collected Sample (CE) optional repeating *
  • OBR-39: Collector's Comment * (CE) optional repeating *
  • OBR-40: Transport Arrangement Responsibility (CE) optional *
  • OBR-41: Transport Arranged (ID) optional *
  • OBR-42: Escort Required (ID) optional *
  • OBR-43: Planned Patient Transport Comment (CE) optional repeating *
  • OBR-44: Procedure Code (CE) optional *
  • OBR-45: Procedure Code Modifier (CE) optional repeating *
  • OBR-46: Placer Supplemental Service Information (CE) optional repeating *
  • OBR-47: Filler Supplemental Service Information (CE) optional repeating *
  • OBR-48: Medically Necessary Duplicate Procedure Reason. (CWE) optional *
  • OBR-49: Result Handling (IS) 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 - OBR"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage(), new Integer(0) }, "Placer Order Number"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage(), new Integer(0) }, "Filler Order Number"); this.add(CE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Universal Service Identifier"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Priority _ OBR"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Requested Date/Time"); 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.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Collection Volume"); this.add(XCN.class, false, 0, 250, 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, 250, 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(SPS.class, false, 1, 300, new Object[]{ getMessage(), new Integer(0) }, "Specimen Source"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Ordering Provider"); this.add(XTN.class, false, 0, 250, 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 Rpt/Status Chng - Date/Time"); this.add(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 Serv Sect ID"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Result Status"); this.add(PRL.class, false, 1, 400, 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(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Result Copies To"); this.add(EIP.class, false, 1, 200, 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, 250, new Object[]{ getMessage(), new Integer(0) }, "Reason for Study"); this.add(NDL.class, false, 1, 200, new Object[]{ getMessage(), new Integer(0) }, "Principal Result Interpreter"); this.add(NDL.class, false, 0, 200, new Object[]{ getMessage(), new Integer(0) }, "Assistant Result Interpreter"); this.add(NDL.class, false, 0, 200, new Object[]{ getMessage(), new Integer(0) }, "Technician"); this.add(NDL.class, false, 0, 200, new Object[]{ getMessage(), new Integer(0) }, "Transcriptionist"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Scheduled Date/Time"); this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Number of Sample Containers *"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Transport Logistics of Collected Sample"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Collector's Comment *"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Transport Arrangement Responsibility"); this.add(ID.class, false, 1, 30, new Object[]{ getMessage() }, "Transport Arranged"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Escort Required"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Planned Patient Transport Comment"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(88) }, "Procedure Code"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(340) }, "Procedure Code Modifier"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(411) }, "Placer Supplemental Service Information"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(411) }, "Filler Supplemental Service Information"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(476) }, "Medically Necessary Duplicate Procedure Reason."); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Result Handling"); } 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 - OBR" - creates it if necessary */ public SI getSetIDOBR() { 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 - OBR" - creates it if necessary */ public SI getObr1_SetIDOBR() { 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 EI getPlacerOrderNumber() { EI ret = null; try { Type t = this.getField(2, 0); ret = (EI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-2: "Placer Order Number" - creates it if necessary */ public EI getObr2_PlacerOrderNumber() { EI ret = null; try { Type t = this.getField(2, 0); ret = (EI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-3: "Filler Order Number" - creates it if necessary */ public EI getFillerOrderNumber() { EI ret = null; try { Type t = this.getField(3, 0); ret = (EI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-3: "Filler Order Number" - creates it if necessary */ public EI getObr3_FillerOrderNumber() { EI ret = null; try { Type t = this.getField(3, 0); ret = (EI)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-4: "Universal Service Identifier" - creates it if necessary */ public CE getUniversalServiceIdentifier() { 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 Identifier" - creates it if necessary */ public CE getObr4_UniversalServiceIdentifier() { 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 _ OBR" - creates it if necessary */ public ID getPriorityOBR() { 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 _ OBR" - creates it if necessary */ public ID getObr5_PriorityOBR() { 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" - creates it if necessary */ public TS getRequestedDateTime() { 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" - creates it if necessary */ public TS getObr6_RequestedDateTime() { 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 getCollectionVolume() { CQ ret = null; try { Type t = this.getField(9, 0); ret = (CQ)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 getObr9_CollectionVolume() { CQ ret = null; try { Type t = this.getField(9, 0); ret = (CQ)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 XCN[] getCollectorIdentifier() { XCN[] ret = null; try { Type[] t = this.getField(10); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XCN[] 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 XCN getCollectorIdentifier(int rep) { XCN ret = null; try { Type t = this.getField(10, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * OBR-10: "Collector Identifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getObr10_CollectorIdentifier(int rep) { XCN ret = null; try { Type t = this.getField(10, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XCN[] 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 XCN insertCollectorIdentifier(int rep) throws HL7Exception { return (XCN) 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 XCN insertObr10_CollectorIdentifier(int rep) throws HL7Exception { return (XCN) 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 XCN removeCollectorIdentifier(int rep) throws HL7Exception { return (XCN) 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 XCN removeObr10_CollectorIdentifier(int rep) throws HL7Exception { return (XCN) 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 SPS getSpecimenSource() { SPS ret = null; try { Type t = this.getField(15, 0); ret = (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 SPS getObr15_SpecimenSource() { SPS ret = null; try { Type t = this.getField(15, 0); ret = (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 all repetitions of Ordering Provider (OBR-16). */ public XCN[] getOrderingProvider() { 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new 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 Ordering Provider (OBR-16). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getOrderingProviderReps() { XCN[] ret = null; try { Type[] t = this.getField(16); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * OBR-16: "Ordering Provider" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getOrderingProvider(int rep) { XCN ret = null; try { Type t = this.getField(16, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * OBR-16: "Ordering Provider" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getObr16_OrderingProvider(int rep) { XCN ret = null; try { Type t = this.getField(16, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Ordering Provider (OBR-16). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr16_OrderingProviderReps() { XCN[] ret = null; try { Type[] t = this.getField(16); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * OBR-16: "Ordering Provider" 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 insertOrderingProvider(int rep) throws HL7Exception { return (XCN) super.insertRepetition(16, rep); } /** * Inserts a repetition of * OBR-16: "Ordering Provider" 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 insertObr16_OrderingProvider(int rep) throws HL7Exception { return (XCN) super.insertRepetition(16, rep); } /** * Removes a repetition of * OBR-16: "Ordering Provider" 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 removeOrderingProvider(int rep) throws HL7Exception { return (XCN) super.removeRepetition(16, rep); } /** * Removes a repetition of * OBR-16: "Ordering Provider" 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 removeObr16_OrderingProvider(int rep) throws HL7Exception { return (XCN) super.removeRepetition(16, rep); } /** * Returns all repetitions of Order Callback Phone Number (OBR-17). */ public XTN[] getOrderCallbackPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(17); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XTN[] 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 XTN getOrderCallbackPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(17, rep); ret = (XTN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * OBR-17: "Order Callback Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getObr17_OrderCallbackPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(17, rep); ret = (XTN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XTN[] 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 XTN insertOrderCallbackPhoneNumber(int rep) throws HL7Exception { return (XTN) 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 XTN insertObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { return (XTN) 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 XTN removeOrderCallbackPhoneNumber(int rep) throws HL7Exception { return (XTN) 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 XTN removeObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { return (XTN) 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 Rpt/Status Chng - Date/Time" - creates it if necessary */ public TS getResultsRptStatusChngDateTime() { 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 Rpt/Status Chng - Date/Time" - creates it if necessary */ public TS getObr22_ResultsRptStatusChngDateTime() { 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 MOC getChargeToPractice() { MOC ret = null; try { Type t = this.getField(23, 0); ret = (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 MOC getObr23_ChargeToPractice() { MOC ret = null; try { Type t = this.getField(23, 0); ret = (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 Serv Sect ID" - creates it if necessary */ public ID getDiagnosticServSectID() { 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 Serv Sect ID" - creates it if necessary */ public ID getObr24_DiagnosticServSectID() { 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 PRL getParentResult() { PRL ret = null; try { Type t = this.getField(26, 0); ret = (PRL)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 PRL getObr26_ParentResult() { PRL ret = null; try { Type t = this.getField(26, 0); ret = (PRL)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 XCN[] getResultCopiesTo() { XCN[] ret = null; try { Type[] t = this.getField(28); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XCN[] 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 XCN getResultCopiesTo(int rep) { XCN ret = null; try { Type t = this.getField(28, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * OBR-28: "Result Copies To" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getObr28_ResultCopiesTo(int rep) { XCN ret = null; try { Type t = this.getField(28, rep); ret = (XCN)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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() { XCN[] 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 XCN insertResultCopiesTo(int rep) throws HL7Exception { return (XCN) 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 XCN insertObr28_ResultCopiesTo(int rep) throws HL7Exception { return (XCN) 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 XCN removeResultCopiesTo(int rep) throws HL7Exception { return (XCN) 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 XCN removeObr28_ResultCopiesTo(int rep) throws HL7Exception { return (XCN) super.removeRepetition(28, rep); } /** * Returns * OBR-29: "Parent Number" - creates it if necessary */ public EIP getParentNumber() { EIP ret = null; try { Type t = this.getField(29, 0); ret = (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 EIP getObr29_ParentNumber() { EIP ret = null; try { Type t = this.getField(29, 0); ret = (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 NDL getPrincipalResultInterpreter() { NDL ret = null; try { Type t = this.getField(32, 0); ret = (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 NDL getObr32_PrincipalResultInterpreter() { NDL ret = null; try { Type t = this.getField(32, 0); ret = (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 NDL[] getAssistantResultInterpreter() { NDL[] ret = null; try { Type[] t = this.getField(33); ret = new NDL[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (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() { 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 NDL getAssistantResultInterpreter(int rep) { NDL ret = null; try { Type t = this.getField(33, rep); ret = (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 NDL getObr33_AssistantResultInterpreter(int rep) { NDL ret = null; try { Type t = this.getField(33, rep); ret = (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() { 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 NDL insertAssistantResultInterpreter(int rep) throws HL7Exception { return (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 NDL insertObr33_AssistantResultInterpreter(int rep) throws HL7Exception { return (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 NDL removeAssistantResultInterpreter(int rep) throws HL7Exception { return (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 NDL removeObr33_AssistantResultInterpreter(int rep) throws HL7Exception { return (NDL) super.removeRepetition(33, rep); } /** * Returns all repetitions of Technician (OBR-34). */ public NDL[] getTechnician() { NDL[] ret = null; try { Type[] t = this.getField(34); ret = new NDL[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (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() { 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 NDL getTechnician(int rep) { NDL ret = null; try { Type t = this.getField(34, rep); ret = (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 NDL getObr34_Technician(int rep) { NDL ret = null; try { Type t = this.getField(34, rep); ret = (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() { 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 NDL insertTechnician(int rep) throws HL7Exception { return (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 NDL insertObr34_Technician(int rep) throws HL7Exception { return (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 NDL removeTechnician(int rep) throws HL7Exception { return (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 NDL removeObr34_Technician(int rep) throws HL7Exception { return (NDL) super.removeRepetition(34, rep); } /** * Returns all repetitions of Transcriptionist (OBR-35). */ public NDL[] getTranscriptionist() { NDL[] ret = null; try { Type[] t = this.getField(35); ret = new NDL[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (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() { 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 NDL getTranscriptionist(int rep) { NDL ret = null; try { Type t = this.getField(35, rep); ret = (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 NDL getObr35_Transcriptionist(int rep) { NDL ret = null; try { Type t = this.getField(35, rep); ret = (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() { 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 NDL insertTranscriptionist(int rep) throws HL7Exception { return (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 NDL insertObr35_Transcriptionist(int rep) throws HL7Exception { return (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 NDL removeTranscriptionist(int rep) throws HL7Exception { return (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 NDL removeObr35_Transcriptionist(int rep) throws HL7Exception { return (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; } /** * Returns * OBR-37: "Number of Sample Containers *" - creates it if necessary */ public NM getNumberOfSampleContainers() { NM ret = null; try { Type t = this.getField(37, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-37: "Number of Sample Containers *" - creates it if necessary */ public NM getObr37_NumberOfSampleContainers() { NM ret = null; try { Type t = this.getField(37, 0); ret = (NM)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Transport Logistics of Collected Sample (OBR-38). */ public CE[] getTransportLogisticsOfCollectedSample() { CE[] ret = null; try { Type[] t = this.getField(38); 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 Transport Logistics of Collected Sample (OBR-38). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTransportLogisticsOfCollectedSampleReps() { CE[] ret = null; try { Type[] t = this.getField(38); 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-38: "Transport Logistics of Collected Sample" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getTransportLogisticsOfCollectedSample(int rep) { CE ret = null; try { Type t = this.getField(38, 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-38: "Transport Logistics of Collected Sample" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr38_TransportLogisticsOfCollectedSample(int rep) { CE ret = null; try { Type t = this.getField(38, 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 Transport Logistics of Collected Sample (OBR-38). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr38_TransportLogisticsOfCollectedSampleReps() { CE[] ret = null; try { Type[] t = this.getField(38); 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-38: "Transport Logistics of Collected Sample" 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 insertTransportLogisticsOfCollectedSample(int rep) throws HL7Exception { return (CE) super.insertRepetition(38, rep); } /** * Inserts a repetition of * OBR-38: "Transport Logistics of Collected Sample" 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 insertObr38_TransportLogisticsOfCollectedSample(int rep) throws HL7Exception { return (CE) super.insertRepetition(38, rep); } /** * Removes a repetition of * OBR-38: "Transport Logistics of Collected Sample" 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 removeTransportLogisticsOfCollectedSample(int rep) throws HL7Exception { return (CE) super.removeRepetition(38, rep); } /** * Removes a repetition of * OBR-38: "Transport Logistics of Collected Sample" 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 removeObr38_TransportLogisticsOfCollectedSample(int rep) throws HL7Exception { return (CE) super.removeRepetition(38, rep); } /** * Returns all repetitions of Collector's Comment * (OBR-39). */ public CE[] getCollectorSComment() { CE[] ret = null; try { Type[] t = this.getField(39); 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 Collector's Comment * (OBR-39). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCollectorSCommentReps() { CE[] ret = null; try { Type[] t = this.getField(39); 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-39: "Collector's Comment *" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCollectorSComment(int rep) { CE ret = null; try { Type t = this.getField(39, 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-39: "Collector's Comment *" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr39_CollectorSComment(int rep) { CE ret = null; try { Type t = this.getField(39, 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 Collector's Comment * (OBR-39). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr39_CollectorSCommentReps() { CE[] ret = null; try { Type[] t = this.getField(39); 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-39: "Collector's Comment *" 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 insertCollectorSComment(int rep) throws HL7Exception { return (CE) super.insertRepetition(39, rep); } /** * Inserts a repetition of * OBR-39: "Collector's Comment *" 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 insertObr39_CollectorSComment(int rep) throws HL7Exception { return (CE) super.insertRepetition(39, rep); } /** * Removes a repetition of * OBR-39: "Collector's Comment *" 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 removeCollectorSComment(int rep) throws HL7Exception { return (CE) super.removeRepetition(39, rep); } /** * Removes a repetition of * OBR-39: "Collector's Comment *" 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 removeObr39_CollectorSComment(int rep) throws HL7Exception { return (CE) super.removeRepetition(39, rep); } /** * Returns * OBR-40: "Transport Arrangement Responsibility" - creates it if necessary */ public CE getTransportArrangementResponsibility() { CE ret = null; try { Type t = this.getField(40, 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-40: "Transport Arrangement Responsibility" - creates it if necessary */ public CE getObr40_TransportArrangementResponsibility() { CE ret = null; try { Type t = this.getField(40, 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-41: "Transport Arranged" - creates it if necessary */ public ID getTransportArranged() { ID ret = null; try { Type t = this.getField(41, 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-41: "Transport Arranged" - creates it if necessary */ public ID getObr41_TransportArranged() { ID ret = null; try { Type t = this.getField(41, 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-42: "Escort Required" - creates it if necessary */ public ID getEscortRequired() { ID ret = null; try { Type t = this.getField(42, 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-42: "Escort Required" - creates it if necessary */ public ID getObr42_EscortRequired() { ID ret = null; try { Type t = this.getField(42, 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 Planned Patient Transport Comment (OBR-43). */ public CE[] getPlannedPatientTransportComment() { CE[] ret = null; try { Type[] t = this.getField(43); 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 Planned Patient Transport Comment (OBR-43). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPlannedPatientTransportCommentReps() { CE[] ret = null; try { Type[] t = this.getField(43); 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-43: "Planned Patient Transport Comment" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getPlannedPatientTransportComment(int rep) { CE ret = null; try { Type t = this.getField(43, 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-43: "Planned Patient Transport Comment" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr43_PlannedPatientTransportComment(int rep) { CE ret = null; try { Type t = this.getField(43, 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 Planned Patient Transport Comment (OBR-43). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr43_PlannedPatientTransportCommentReps() { CE[] ret = null; try { Type[] t = this.getField(43); 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-43: "Planned Patient Transport Comment" 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 insertPlannedPatientTransportComment(int rep) throws HL7Exception { return (CE) super.insertRepetition(43, rep); } /** * Inserts a repetition of * OBR-43: "Planned Patient Transport Comment" 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 insertObr43_PlannedPatientTransportComment(int rep) throws HL7Exception { return (CE) super.insertRepetition(43, rep); } /** * Removes a repetition of * OBR-43: "Planned Patient Transport Comment" 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 removePlannedPatientTransportComment(int rep) throws HL7Exception { return (CE) super.removeRepetition(43, rep); } /** * Removes a repetition of * OBR-43: "Planned Patient Transport Comment" 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 removeObr43_PlannedPatientTransportComment(int rep) throws HL7Exception { return (CE) super.removeRepetition(43, rep); } /** * Returns * OBR-44: "Procedure Code" - creates it if necessary */ public CE getProcedureCode() { CE ret = null; try { Type t = this.getField(44, 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-44: "Procedure Code" - creates it if necessary */ public CE getObr44_ProcedureCode() { CE ret = null; try { Type t = this.getField(44, 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 all repetitions of Procedure Code Modifier (OBR-45). */ public CE[] getProcedureCodeModifier() { CE[] ret = null; try { Type[] t = this.getField(45); 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 Procedure Code Modifier (OBR-45). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getProcedureCodeModifierReps() { CE[] ret = null; try { Type[] t = this.getField(45); 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-45: "Procedure Code Modifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getProcedureCodeModifier(int rep) { CE ret = null; try { Type t = this.getField(45, 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-45: "Procedure Code Modifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr45_ProcedureCodeModifier(int rep) { CE ret = null; try { Type t = this.getField(45, 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 Procedure Code Modifier (OBR-45). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr45_ProcedureCodeModifierReps() { CE[] ret = null; try { Type[] t = this.getField(45); 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-45: "Procedure Code Modifier" 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 insertProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.insertRepetition(45, rep); } /** * Inserts a repetition of * OBR-45: "Procedure Code Modifier" 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 insertObr45_ProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.insertRepetition(45, rep); } /** * Removes a repetition of * OBR-45: "Procedure Code Modifier" 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 removeProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.removeRepetition(45, rep); } /** * Removes a repetition of * OBR-45: "Procedure Code Modifier" 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 removeObr45_ProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.removeRepetition(45, rep); } /** * Returns all repetitions of Placer Supplemental Service Information (OBR-46). */ public CE[] getPlacerSupplementalServiceInformation() { CE[] ret = null; try { Type[] t = this.getField(46); 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 Placer Supplemental Service Information (OBR-46). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPlacerSupplementalServiceInformationReps() { CE[] ret = null; try { Type[] t = this.getField(46); 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-46: "Placer Supplemental Service Information" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getPlacerSupplementalServiceInformation(int rep) { CE ret = null; try { Type t = this.getField(46, 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-46: "Placer Supplemental Service Information" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr46_PlacerSupplementalServiceInformation(int rep) { CE ret = null; try { Type t = this.getField(46, 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 Placer Supplemental Service Information (OBR-46). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr46_PlacerSupplementalServiceInformationReps() { CE[] ret = null; try { Type[] t = this.getField(46); 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-46: "Placer Supplemental Service Information" 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 insertPlacerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.insertRepetition(46, rep); } /** * Inserts a repetition of * OBR-46: "Placer Supplemental Service Information" 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 insertObr46_PlacerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.insertRepetition(46, rep); } /** * Removes a repetition of * OBR-46: "Placer Supplemental Service Information" 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 removePlacerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.removeRepetition(46, rep); } /** * Removes a repetition of * OBR-46: "Placer Supplemental Service Information" 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 removeObr46_PlacerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.removeRepetition(46, rep); } /** * Returns all repetitions of Filler Supplemental Service Information (OBR-47). */ public CE[] getFillerSupplementalServiceInformation() { CE[] ret = null; try { Type[] t = this.getField(47); 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 Filler Supplemental Service Information (OBR-47). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFillerSupplementalServiceInformationReps() { CE[] ret = null; try { Type[] t = this.getField(47); 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-47: "Filler Supplemental Service Information" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getFillerSupplementalServiceInformation(int rep) { CE ret = null; try { Type t = this.getField(47, 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-47: "Filler Supplemental Service Information" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getObr47_FillerSupplementalServiceInformation(int rep) { CE ret = null; try { Type t = this.getField(47, 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 Filler Supplemental Service Information (OBR-47). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getObr47_FillerSupplementalServiceInformationReps() { CE[] ret = null; try { Type[] t = this.getField(47); 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-47: "Filler Supplemental Service Information" 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 insertFillerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.insertRepetition(47, rep); } /** * Inserts a repetition of * OBR-47: "Filler Supplemental Service Information" 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 insertObr47_FillerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.insertRepetition(47, rep); } /** * Removes a repetition of * OBR-47: "Filler Supplemental Service Information" 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 removeFillerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.removeRepetition(47, rep); } /** * Removes a repetition of * OBR-47: "Filler Supplemental Service Information" 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 removeObr47_FillerSupplementalServiceInformation(int rep) throws HL7Exception { return (CE) super.removeRepetition(47, rep); } /** * Returns * OBR-48: "Medically Necessary Duplicate Procedure Reason." - creates it if necessary */ public CWE getMedicallyNecessaryDuplicateProcedureReason() { CWE ret = null; try { Type t = this.getField(48, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-48: "Medically Necessary Duplicate Procedure Reason." - creates it if necessary */ public CWE getObr48_MedicallyNecessaryDuplicateProcedureReason() { CWE ret = null; try { Type t = this.getField(48, 0); ret = (CWE)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * OBR-49: "Result Handling" - creates it if necessary */ public IS getResultHandling() { IS ret = null; try { Type t = this.getField(49, 0); ret = (IS)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-49: "Result Handling" - creates it if necessary */ public IS getObr49_ResultHandling() { IS ret = null; try { Type t = this.getField(49, 0); ret = (IS)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 EI(getMessage()); case 2: return new EI(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(getMessage()); case 9: return new XCN(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 SPS(getMessage()); case 15: return new XCN(getMessage()); case 16: return new XTN(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 MOC(getMessage()); case 23: return new ID(getMessage(), new Integer( 74 )); case 24: return new ID(getMessage(), new Integer( 123 )); case 25: return new PRL(getMessage()); case 26: return new TQ(getMessage()); case 27: return new XCN(getMessage()); case 28: return new EIP(getMessage()); case 29: return new ID(getMessage(), new Integer( 124 )); case 30: return new CE(getMessage()); case 31: return new NDL(getMessage()); case 32: return new NDL(getMessage()); case 33: return new NDL(getMessage()); case 34: return new NDL(getMessage()); case 35: return new TS(getMessage()); case 36: return new NM(getMessage()); case 37: return new CE(getMessage()); case 38: return new CE(getMessage()); case 39: return new CE(getMessage()); case 40: return new ID(getMessage(), new Integer( 224 )); case 41: return new ID(getMessage(), new Integer( 225 )); case 42: return new CE(getMessage()); case 43: return new CE(getMessage()); case 44: return new CE(getMessage()); case 45: return new CE(getMessage()); case 46: return new CE(getMessage()); case 47: return new CWE(getMessage()); case 48: return new IS(getMessage(), new Integer( 507 )); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy