ca.uhn.hl7v2.model.v26.segment.RXE Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*/
package ca.uhn.hl7v2.model.v26.segment;
// import ca.uhn.hl7v2.model.v26.group.*;
import ca.uhn.hl7v2.model.v26.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 RXE message segment (Pharmacy/Treatment Encoded Order).
* This segment has the following fields:
*
* - RXE-1: Quantity/Timing (TQ) optional
*
- RXE-2: Give Code (CWE)
*
- RXE-3: Give Amount - Minimum (NM)
*
- RXE-4: Give Amount - Maximum (NM) optional
*
- RXE-5: Give Units (CWE)
*
- RXE-6: Give Dosage Form (CWE) optional
*
- RXE-7: Provider's Administration Instructions (CWE) optional repeating
*
- RXE-8: Deliver-To Location (LA1) optional
*
- RXE-9: Substitution Status (ID) optional
*
- RXE-10: Dispense Amount (NM) optional
*
- RXE-11: Dispense Units (CWE) optional
*
- RXE-12: Number Of Refills (NM) optional
*
- RXE-13: Ordering Provider's DEA Number (XCN) optional repeating
*
- RXE-14: Pharmacist/Treatment Supplier's Verifier ID (XCN) optional repeating
*
- RXE-15: Prescription Number (ST) optional
*
- RXE-16: Number of Refills Remaining (NM) optional
*
- RXE-17: Number of Refills/Doses Dispensed (NM) optional
*
- RXE-18: D/T of Most Recent Refill or Dose Dispensed (DTM) optional
*
- RXE-19: Total Daily Dose (CQ) optional
*
- RXE-20: Needs Human Review (ID) optional
*
- RXE-21: Pharmacy/Treatment Supplier's Special Dispensing Instructions (CWE) optional repeating
*
- RXE-22: Give Per (Time Unit) (ST) optional
*
- RXE-23: Give Rate Amount (ST) optional
*
- RXE-24: Give Rate Units (CWE) optional
*
- RXE-25: Give Strength (NM) optional
*
- RXE-26: Give Strength Units (CWE) optional
*
- RXE-27: Give Indication (CWE) optional repeating
*
- RXE-28: Dispense Package Size (NM) optional
*
- RXE-29: Dispense Package Size Unit (CWE) optional
*
- RXE-30: Dispense Package Method (ID) optional
*
- RXE-31: Supplementary Code (CWE) optional repeating
*
- RXE-32: Original Order Date/Time (DTM) optional
*
- RXE-33: Give Drug Strength Volume (NM) optional
*
- RXE-34: Give Drug Strength Volume Units (CWE) optional
*
- RXE-35: Controlled Substance Schedule (CWE) optional
*
- RXE-36: Formulary Status (ID) optional
*
- RXE-37: Pharmaceutical Substance Alternative (CWE) optional repeating
*
- RXE-38: Pharmacy of Most Recent Fill (CWE) optional
*
- RXE-39: Initial Dispense Amount (NM) optional
*
- RXE-40: Dispensing Pharmacy (CWE) optional
*
- RXE-41: Dispensing Pharmacy Address (XAD) optional
*
- RXE-42: Deliver-to Patient Location (PL) optional
*
- RXE-43: Deliver-to Address (XAD) optional
*
- RXE-44: Pharmacy Order Type (ID) optional
*
*/
public class RXE extends AbstractSegment {
/**
* Creates a new RXE segment
*/
public RXE(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(TQ.class, false, 1, 0, new Object[]{ getMessage(), new Integer(0) }, "Quantity/Timing");
this.add(CWE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(292) }, "Give Code");
this.add(NM.class, true, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Give Amount - Minimum");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Give Amount - Maximum");
this.add(CWE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Units");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Dosage Form");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(9999) }, "Provider's Administration Instructions");
this.add(LA1.class, false, 1, 0, new Object[]{ getMessage(), new Integer(0) }, "Deliver-To Location");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Substitution Status");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Dispense Amount");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Dispense Units");
this.add(NM.class, false, 1, 3, new Object[]{ getMessage(), new Integer(0) }, "Number Of Refills");
this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Ordering Provider's DEA Number");
this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Pharmacist/Treatment Supplier's Verifier ID");
this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Prescription Number");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Number of Refills Remaining");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Number of Refills/Doses Dispensed");
this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "D/T of Most Recent Refill or Dose Dispensed");
this.add(CQ.class, false, 1, 10, new Object[]{ getMessage(), new Integer(0) }, "Total Daily Dose");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Needs Human Review");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(9999) }, "Pharmacy/Treatment Supplier's Special Dispensing Instructions");
this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Give Per (Time Unit)");
this.add(ST.class, false, 1, 6, new Object[]{ getMessage(), new Integer(0) }, "Give Rate Amount");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Rate Units");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Give Strength");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Strength Units");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Indication");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Dispense Package Size");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Dispense Package Size Unit");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Dispense Package Method");
this.add(CWE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(9999) }, "Supplementary Code");
this.add(DTM.class, false, 1, 24, new Object[]{ getMessage(), new Integer(0) }, "Original Order Date/Time");
this.add(NM.class, false, 1, 5, new Object[]{ getMessage(), new Integer(0) }, "Give Drug Strength Volume");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Give Drug Strength Volume Units");
this.add(CWE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(477) }, "Controlled Substance Schedule");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Formulary Status");
this.add(CWE.class, false, 0, 60, new Object[]{ getMessage(), new Integer(9999) }, "Pharmaceutical Substance Alternative");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Pharmacy of Most Recent Fill");
this.add(NM.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Initial Dispense Amount");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(9999) }, "Dispensing Pharmacy");
this.add(XAD.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Dispensing Pharmacy Address");
this.add(PL.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Deliver-to Patient Location");
this.add(XAD.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Deliver-to Address");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Pharmacy Order Type");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating RXE - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* RXE-1: "Quantity/Timing" - creates it if necessary
*/
public TQ getQuantityTiming() {
TQ ret = null;
try {
Type t = this.getField(1, 0);
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
* RXE-1: "Quantity/Timing" - creates it if necessary
*/
public TQ getRxe1_QuantityTiming() {
TQ ret = null;
try {
Type t = this.getField(1, 0);
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
* RXE-2: "Give Code" - creates it if necessary
*/
public CWE getGiveCode() {
CWE ret = null;
try {
Type t = this.getField(2, 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
* RXE-2: "Give Code" - creates it if necessary
*/
public CWE getRxe2_GiveCode() {
CWE ret = null;
try {
Type t = this.getField(2, 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
* RXE-3: "Give Amount - Minimum" - creates it if necessary
*/
public NM getGiveAmountMinimum() {
NM ret = null;
try {
Type t = this.getField(3, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-3: "Give Amount - Minimum" - creates it if necessary
*/
public NM getRxe3_GiveAmountMinimum() {
NM ret = null;
try {
Type t = this.getField(3, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-4: "Give Amount - Maximum" - creates it if necessary
*/
public NM getGiveAmountMaximum() {
NM ret = null;
try {
Type t = this.getField(4, 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
* RXE-4: "Give Amount - Maximum" - creates it if necessary
*/
public NM getRxe4_GiveAmountMaximum() {
NM ret = null;
try {
Type t = this.getField(4, 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
* RXE-5: "Give Units" - creates it if necessary
*/
public CWE getGiveUnits() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-5: "Give Units" - creates it if necessary
*/
public CWE getRxe5_GiveUnits() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-6: "Give Dosage Form" - creates it if necessary
*/
public CWE getGiveDosageForm() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-6: "Give Dosage Form" - creates it if necessary
*/
public CWE getRxe6_GiveDosageForm() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Provider's Administration Instructions (RXE-7).
*/
public CWE[] getProviderSAdministrationInstructions() {
CWE[] ret = null;
try {
Type[] t = this.getField(7);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Provider's Administration Instructions (RXE-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getProviderSAdministrationInstructionsReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(7);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* RXE-7: "Provider's Administration Instructions" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getProviderSAdministrationInstructions(int rep) {
CWE ret = null;
try {
Type t = this.getField(7, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* RXE-7: "Provider's Administration Instructions" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getRxe7_ProviderSAdministrationInstructions(int rep) {
CWE ret = null;
try {
Type t = this.getField(7, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Provider's Administration Instructions (RXE-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe7_ProviderSAdministrationInstructionsReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(7);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* RXE-7: "Provider's Administration Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertProviderSAdministrationInstructions(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(7, rep);
}
/**
* Inserts a repetition of
* RXE-7: "Provider's Administration Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertRxe7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(7, rep);
}
/**
* Removes a repetition of
* RXE-7: "Provider's Administration Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeProviderSAdministrationInstructions(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(7, rep);
}
/**
* Removes a repetition of
* RXE-7: "Provider's Administration Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeRxe7_ProviderSAdministrationInstructions(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(7, rep);
}
/**
* Returns
* RXE-8: "Deliver-To Location" - creates it if necessary
*/
public LA1 getDeliverToLocation() {
LA1 ret = null;
try {
Type t = this.getField(8, 0);
ret = (LA1)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-8: "Deliver-To Location" - creates it if necessary
*/
public LA1 getRxe8_DeliverToLocation() {
LA1 ret = null;
try {
Type t = this.getField(8, 0);
ret = (LA1)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-9: "Substitution Status" - creates it if necessary
*/
public ID getSubstitutionStatus() {
ID ret = null;
try {
Type t = this.getField(9, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-9: "Substitution Status" - creates it if necessary
*/
public ID getRxe9_SubstitutionStatus() {
ID ret = null;
try {
Type t = this.getField(9, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-10: "Dispense Amount" - creates it if necessary
*/
public NM getDispenseAmount() {
NM ret = null;
try {
Type t = this.getField(10, 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
* RXE-10: "Dispense Amount" - creates it if necessary
*/
public NM getRxe10_DispenseAmount() {
NM ret = null;
try {
Type t = this.getField(10, 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
* RXE-11: "Dispense Units" - creates it if necessary
*/
public CWE getDispenseUnits() {
CWE ret = null;
try {
Type t = this.getField(11, 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
* RXE-11: "Dispense Units" - creates it if necessary
*/
public CWE getRxe11_DispenseUnits() {
CWE ret = null;
try {
Type t = this.getField(11, 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
* RXE-12: "Number Of Refills" - creates it if necessary
*/
public NM getNumberOfRefills() {
NM ret = null;
try {
Type t = this.getField(12, 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
* RXE-12: "Number Of Refills" - creates it if necessary
*/
public NM getRxe12_NumberOfRefills() {
NM ret = null;
try {
Type t = this.getField(12, 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 Ordering Provider's DEA Number (RXE-13).
*/
public XCN[] getOrderingProviderSDEANumber() {
XCN[] ret = null;
try {
Type[] t = this.getField(13);
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's DEA Number (RXE-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOrderingProviderSDEANumberReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(13);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* RXE-13: "Ordering Provider's DEA Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getOrderingProviderSDEANumber(int rep) {
XCN ret = null;
try {
Type t = this.getField(13, 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
* RXE-13: "Ordering Provider's DEA Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getRxe13_OrderingProviderSDEANumber(int rep) {
XCN ret = null;
try {
Type t = this.getField(13, 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's DEA Number (RXE-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe13_OrderingProviderSDEANumberReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(13);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* RXE-13: "Ordering Provider's DEA 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 XCN insertOrderingProviderSDEANumber(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(13, rep);
}
/**
* Inserts a repetition of
* RXE-13: "Ordering Provider's DEA 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 XCN insertRxe13_OrderingProviderSDEANumber(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(13, rep);
}
/**
* Removes a repetition of
* RXE-13: "Ordering Provider's DEA 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 XCN removeOrderingProviderSDEANumber(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(13, rep);
}
/**
* Removes a repetition of
* RXE-13: "Ordering Provider's DEA 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 XCN removeRxe13_OrderingProviderSDEANumber(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(13, rep);
}
/**
* Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
*/
public XCN[] getPharmacistTreatmentSupplierSVerifierID() {
XCN[] ret = null;
try {
Type[] t = this.getField(14);
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 Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPharmacistTreatmentSupplierSVerifierIDReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(14);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPharmacistTreatmentSupplierSVerifierID(int rep) {
XCN ret = null;
try {
Type t = this.getField(14, 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
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) {
XCN ret = null;
try {
Type t = this.getField(14, 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 Pharmacist/Treatment Supplier's Verifier ID (RXE-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe14_PharmacistTreatmentSupplierSVerifierIDReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(14);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" 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 insertPharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" 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 insertRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" 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 removePharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* RXE-14: "Pharmacist/Treatment Supplier's Verifier ID" 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 removeRxe14_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(14, rep);
}
/**
* Returns
* RXE-15: "Prescription Number" - creates it if necessary
*/
public ST getPrescriptionNumber() {
ST ret = null;
try {
Type t = this.getField(15, 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
* RXE-15: "Prescription Number" - creates it if necessary
*/
public ST getRxe15_PrescriptionNumber() {
ST ret = null;
try {
Type t = this.getField(15, 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
* RXE-16: "Number of Refills Remaining" - creates it if necessary
*/
public NM getNumberOfRefillsRemaining() {
NM ret = null;
try {
Type t = this.getField(16, 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
* RXE-16: "Number of Refills Remaining" - creates it if necessary
*/
public NM getRxe16_NumberOfRefillsRemaining() {
NM ret = null;
try {
Type t = this.getField(16, 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
* RXE-17: "Number of Refills/Doses Dispensed" - creates it if necessary
*/
public NM getNumberOfRefillsDosesDispensed() {
NM ret = null;
try {
Type t = this.getField(17, 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
* RXE-17: "Number of Refills/Doses Dispensed" - creates it if necessary
*/
public NM getRxe17_NumberOfRefillsDosesDispensed() {
NM ret = null;
try {
Type t = this.getField(17, 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
* RXE-18: "D/T of Most Recent Refill or Dose Dispensed" - creates it if necessary
*/
public DTM getDTOfMostRecentRefillOrDoseDispensed() {
DTM ret = null;
try {
Type t = this.getField(18, 0);
ret = (DTM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-18: "D/T of Most Recent Refill or Dose Dispensed" - creates it if necessary
*/
public DTM getRxe18_DTOfMostRecentRefillOrDoseDispensed() {
DTM ret = null;
try {
Type t = this.getField(18, 0);
ret = (DTM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-19: "Total Daily Dose" - creates it if necessary
*/
public CQ getTotalDailyDose() {
CQ ret = null;
try {
Type t = this.getField(19, 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
* RXE-19: "Total Daily Dose" - creates it if necessary
*/
public CQ getRxe19_TotalDailyDose() {
CQ ret = null;
try {
Type t = this.getField(19, 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
* RXE-20: "Needs Human Review" - creates it if necessary
*/
public ID getNeedsHumanReview() {
ID ret = null;
try {
Type t = this.getField(20, 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
* RXE-20: "Needs Human Review" - creates it if necessary
*/
public ID getRxe20_NeedsHumanReview() {
ID ret = null;
try {
Type t = this.getField(20, 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 Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
*/
public CWE[] getPharmacyTreatmentSupplierSSpecialDispensingInstructions() {
CWE[] ret = null;
try {
Type[] t = this.getField(21);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPharmacyTreatmentSupplierSSpecialDispensingInstructionsReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(21);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) {
CWE ret = null;
try {
Type t = this.getField(21, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) {
CWE ret = null;
try {
Type t = this.getField(21, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Pharmacy/Treatment Supplier's Special Dispensing Instructions (RXE-21).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructionsReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(21);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertPharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(21, rep);
}
/**
* Inserts a repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(21, rep);
}
/**
* Removes a repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removePharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(21, rep);
}
/**
* Removes a repetition of
* RXE-21: "Pharmacy/Treatment Supplier's Special Dispensing Instructions" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeRxe21_PharmacyTreatmentSupplierSSpecialDispensingInstructions(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(21, rep);
}
/**
* Returns
* RXE-22: "Give Per (Time Unit)" - creates it if necessary
*/
public ST getGivePerTimeUnit() {
ST ret = null;
try {
Type t = this.getField(22, 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
* RXE-22: "Give Per (Time Unit)" - creates it if necessary
*/
public ST getRxe22_GivePerTimeUnit() {
ST ret = null;
try {
Type t = this.getField(22, 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
* RXE-23: "Give Rate Amount" - creates it if necessary
*/
public ST getGiveRateAmount() {
ST ret = null;
try {
Type t = this.getField(23, 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
* RXE-23: "Give Rate Amount" - creates it if necessary
*/
public ST getRxe23_GiveRateAmount() {
ST ret = null;
try {
Type t = this.getField(23, 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
* RXE-24: "Give Rate Units" - creates it if necessary
*/
public CWE getGiveRateUnits() {
CWE ret = null;
try {
Type t = this.getField(24, 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
* RXE-24: "Give Rate Units" - creates it if necessary
*/
public CWE getRxe24_GiveRateUnits() {
CWE ret = null;
try {
Type t = this.getField(24, 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
* RXE-25: "Give Strength" - creates it if necessary
*/
public NM getGiveStrength() {
NM ret = null;
try {
Type t = this.getField(25, 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
* RXE-25: "Give Strength" - creates it if necessary
*/
public NM getRxe25_GiveStrength() {
NM ret = null;
try {
Type t = this.getField(25, 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
* RXE-26: "Give Strength Units" - creates it if necessary
*/
public CWE getGiveStrengthUnits() {
CWE ret = null;
try {
Type t = this.getField(26, 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
* RXE-26: "Give Strength Units" - creates it if necessary
*/
public CWE getRxe26_GiveStrengthUnits() {
CWE ret = null;
try {
Type t = this.getField(26, 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 all repetitions of Give Indication (RXE-27).
*/
public CWE[] getGiveIndication() {
CWE[] ret = null;
try {
Type[] t = this.getField(27);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Give Indication (RXE-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getGiveIndicationReps() {
CWE[] 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
* RXE-27: "Give Indication" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getGiveIndication(int rep) {
CWE ret = null;
try {
Type t = this.getField(27, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* RXE-27: "Give Indication" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getRxe27_GiveIndication(int rep) {
CWE ret = null;
try {
Type t = this.getField(27, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Give Indication (RXE-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe27_GiveIndicationReps() {
CWE[] 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
* RXE-27: "Give Indication" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertGiveIndication(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(27, rep);
}
/**
* Inserts a repetition of
* RXE-27: "Give Indication" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertRxe27_GiveIndication(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(27, rep);
}
/**
* Removes a repetition of
* RXE-27: "Give Indication" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeGiveIndication(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(27, rep);
}
/**
* Removes a repetition of
* RXE-27: "Give Indication" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeRxe27_GiveIndication(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(27, rep);
}
/**
* Returns
* RXE-28: "Dispense Package Size" - creates it if necessary
*/
public NM getDispensePackageSize() {
NM ret = null;
try {
Type t = this.getField(28, 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
* RXE-28: "Dispense Package Size" - creates it if necessary
*/
public NM getRxe28_DispensePackageSize() {
NM ret = null;
try {
Type t = this.getField(28, 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
* RXE-29: "Dispense Package Size Unit" - creates it if necessary
*/
public CWE getDispensePackageSizeUnit() {
CWE ret = null;
try {
Type t = this.getField(29, 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
* RXE-29: "Dispense Package Size Unit" - creates it if necessary
*/
public CWE getRxe29_DispensePackageSizeUnit() {
CWE ret = null;
try {
Type t = this.getField(29, 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
* RXE-30: "Dispense Package Method" - creates it if necessary
*/
public ID getDispensePackageMethod() {
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
* RXE-30: "Dispense Package Method" - creates it if necessary
*/
public ID getRxe30_DispensePackageMethod() {
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 Supplementary Code (RXE-31).
*/
public CWE[] getSupplementaryCode() {
CWE[] ret = null;
try {
Type[] t = this.getField(31);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Supplementary Code (RXE-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSupplementaryCodeReps() {
CWE[] 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
* RXE-31: "Supplementary Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getSupplementaryCode(int rep) {
CWE ret = null;
try {
Type t = this.getField(31, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* RXE-31: "Supplementary Code" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getRxe31_SupplementaryCode(int rep) {
CWE ret = null;
try {
Type t = this.getField(31, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Supplementary Code (RXE-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe31_SupplementaryCodeReps() {
CWE[] 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
* RXE-31: "Supplementary Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertSupplementaryCode(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(31, rep);
}
/**
* Inserts a repetition of
* RXE-31: "Supplementary Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertRxe31_SupplementaryCode(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(31, rep);
}
/**
* Removes a repetition of
* RXE-31: "Supplementary Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeSupplementaryCode(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(31, rep);
}
/**
* Removes a repetition of
* RXE-31: "Supplementary Code" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeRxe31_SupplementaryCode(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(31, rep);
}
/**
* Returns
* RXE-32: "Original Order Date/Time" - creates it if necessary
*/
public DTM getOriginalOrderDateTime() {
DTM ret = null;
try {
Type t = this.getField(32, 0);
ret = (DTM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-32: "Original Order Date/Time" - creates it if necessary
*/
public DTM getRxe32_OriginalOrderDateTime() {
DTM ret = null;
try {
Type t = this.getField(32, 0);
ret = (DTM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-33: "Give Drug Strength Volume" - creates it if necessary
*/
public NM getGiveDrugStrengthVolume() {
NM ret = null;
try {
Type t = this.getField(33, 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
* RXE-33: "Give Drug Strength Volume" - creates it if necessary
*/
public NM getRxe33_GiveDrugStrengthVolume() {
NM ret = null;
try {
Type t = this.getField(33, 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
* RXE-34: "Give Drug Strength Volume Units" - creates it if necessary
*/
public CWE getGiveDrugStrengthVolumeUnits() {
CWE ret = null;
try {
Type t = this.getField(34, 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
* RXE-34: "Give Drug Strength Volume Units" - creates it if necessary
*/
public CWE getRxe34_GiveDrugStrengthVolumeUnits() {
CWE ret = null;
try {
Type t = this.getField(34, 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
* RXE-35: "Controlled Substance Schedule" - creates it if necessary
*/
public CWE getControlledSubstanceSchedule() {
CWE ret = null;
try {
Type t = this.getField(35, 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
* RXE-35: "Controlled Substance Schedule" - creates it if necessary
*/
public CWE getRxe35_ControlledSubstanceSchedule() {
CWE ret = null;
try {
Type t = this.getField(35, 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
* RXE-36: "Formulary Status" - creates it if necessary
*/
public ID getFormularyStatus() {
ID ret = null;
try {
Type t = this.getField(36, 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
* RXE-36: "Formulary Status" - creates it if necessary
*/
public ID getRxe36_FormularyStatus() {
ID ret = null;
try {
Type t = this.getField(36, 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 Pharmaceutical Substance Alternative (RXE-37).
*/
public CWE[] getPharmaceuticalSubstanceAlternative() {
CWE[] ret = null;
try {
Type[] t = this.getField(37);
ret = new CWE[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CWE)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Pharmaceutical Substance Alternative (RXE-37).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPharmaceuticalSubstanceAlternativeReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(37);
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
* RXE-37: "Pharmaceutical Substance Alternative" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getPharmaceuticalSubstanceAlternative(int rep) {
CWE ret = null;
try {
Type t = this.getField(37, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* RXE-37: "Pharmaceutical Substance Alternative" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CWE getRxe37_PharmaceuticalSubstanceAlternative(int rep) {
CWE ret = null;
try {
Type t = this.getField(37, rep);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Pharmaceutical Substance Alternative (RXE-37).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getRxe37_PharmaceuticalSubstanceAlternativeReps() {
CWE[] ret = null;
try {
Type[] t = this.getField(37);
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
* RXE-37: "Pharmaceutical Substance Alternative" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertPharmaceuticalSubstanceAlternative(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(37, rep);
}
/**
* Inserts a repetition of
* RXE-37: "Pharmaceutical Substance Alternative" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE insertRxe37_PharmaceuticalSubstanceAlternative(int rep) throws HL7Exception {
return (CWE) super.insertRepetition(37, rep);
}
/**
* Removes a repetition of
* RXE-37: "Pharmaceutical Substance Alternative" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removePharmaceuticalSubstanceAlternative(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(37, rep);
}
/**
* Removes a repetition of
* RXE-37: "Pharmaceutical Substance Alternative" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CWE removeRxe37_PharmaceuticalSubstanceAlternative(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(37, rep);
}
/**
* Returns
* RXE-38: "Pharmacy of Most Recent Fill" - creates it if necessary
*/
public CWE getPharmacyOfMostRecentFill() {
CWE ret = null;
try {
Type t = this.getField(38, 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
* RXE-38: "Pharmacy of Most Recent Fill" - creates it if necessary
*/
public CWE getRxe38_PharmacyOfMostRecentFill() {
CWE ret = null;
try {
Type t = this.getField(38, 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
* RXE-39: "Initial Dispense Amount" - creates it if necessary
*/
public NM getInitialDispenseAmount() {
NM ret = null;
try {
Type t = this.getField(39, 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
* RXE-39: "Initial Dispense Amount" - creates it if necessary
*/
public NM getRxe39_InitialDispenseAmount() {
NM ret = null;
try {
Type t = this.getField(39, 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
* RXE-40: "Dispensing Pharmacy" - creates it if necessary
*/
public CWE getDispensingPharmacy() {
CWE ret = null;
try {
Type t = this.getField(40, 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
* RXE-40: "Dispensing Pharmacy" - creates it if necessary
*/
public CWE getRxe40_DispensingPharmacy() {
CWE ret = null;
try {
Type t = this.getField(40, 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
* RXE-41: "Dispensing Pharmacy Address" - creates it if necessary
*/
public XAD getDispensingPharmacyAddress() {
XAD ret = null;
try {
Type t = this.getField(41, 0);
ret = (XAD)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-41: "Dispensing Pharmacy Address" - creates it if necessary
*/
public XAD getRxe41_DispensingPharmacyAddress() {
XAD ret = null;
try {
Type t = this.getField(41, 0);
ret = (XAD)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-42: "Deliver-to Patient Location" - creates it if necessary
*/
public PL getDeliverToPatientLocation() {
PL ret = null;
try {
Type t = this.getField(42, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-42: "Deliver-to Patient Location" - creates it if necessary
*/
public PL getRxe42_DeliverToPatientLocation() {
PL ret = null;
try {
Type t = this.getField(42, 0);
ret = (PL)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-43: "Deliver-to Address" - creates it if necessary
*/
public XAD getDeliverToAddress() {
XAD ret = null;
try {
Type t = this.getField(43, 0);
ret = (XAD)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-43: "Deliver-to Address" - creates it if necessary
*/
public XAD getRxe43_DeliverToAddress() {
XAD ret = null;
try {
Type t = this.getField(43, 0);
ret = (XAD)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* RXE-44: "Pharmacy Order Type" - creates it if necessary
*/
public ID getPharmacyOrderType() {
ID ret = null;
try {
Type t = this.getField(44, 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
* RXE-44: "Pharmacy Order Type" - creates it if necessary
*/
public ID getRxe44_PharmacyOrderType() {
ID ret = null;
try {
Type t = this.getField(44, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new TQ(getMessage());
case 1: return new CWE(getMessage());
case 2: return new NM(getMessage());
case 3: return new NM(getMessage());
case 4: return new CWE(getMessage());
case 5: return new CWE(getMessage());
case 6: return new CWE(getMessage());
case 7: return new LA1(getMessage());
case 8: return new ID(getMessage(), new Integer( 167 ));
case 9: return new NM(getMessage());
case 10: return new CWE(getMessage());
case 11: return new NM(getMessage());
case 12: return new XCN(getMessage());
case 13: return new XCN(getMessage());
case 14: return new ST(getMessage());
case 15: return new NM(getMessage());
case 16: return new NM(getMessage());
case 17: return new DTM(getMessage());
case 18: return new CQ(getMessage());
case 19: return new ID(getMessage(), new Integer( 136 ));
case 20: return new CWE(getMessage());
case 21: return new ST(getMessage());
case 22: return new ST(getMessage());
case 23: return new CWE(getMessage());
case 24: return new NM(getMessage());
case 25: return new CWE(getMessage());
case 26: return new CWE(getMessage());
case 27: return new NM(getMessage());
case 28: return new CWE(getMessage());
case 29: return new ID(getMessage(), new Integer( 321 ));
case 30: return new CWE(getMessage());
case 31: return new DTM(getMessage());
case 32: return new NM(getMessage());
case 33: return new CWE(getMessage());
case 34: return new CWE(getMessage());
case 35: return new ID(getMessage(), new Integer( 478 ));
case 36: return new CWE(getMessage());
case 37: return new CWE(getMessage());
case 38: return new NM(getMessage());
case 39: return new CWE(getMessage());
case 40: return new XAD(getMessage());
case 41: return new PL(getMessage());
case 42: return new XAD(getMessage());
case 43: return new ID(getMessage(), new Integer( 480 ));
default: return null;
}
}
}