ca.uhn.hl7v2.model.v24.segment.SAC 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.v24.segment;
// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.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 SAC message segment (Specimen and container detail).
* This segment has the following fields:
*
* - SAC-1: External Accession Identifier (EI) optional
*
- SAC-2: Accession Identifier (EI) optional
*
- SAC-3: Container Identifier (EI) optional
*
- SAC-4: Primary (parent) Container Identifier (EI) optional
*
- SAC-5: Equipment Container Identifier (EI) optional
*
- SAC-6: Specimen Source (SPS) optional
*
- SAC-7: Registration Date/Time (TS) optional
*
- SAC-8: Container Status (CE) optional
*
- SAC-9: Carrier Type (CE) optional
*
- SAC-10: Carrier Identifier (EI) optional
*
- SAC-11: Position in Carrier (NA) optional
*
- SAC-12: Tray Type - SAC (CE) optional
*
- SAC-13: Tray Identifier (EI) optional
*
- SAC-14: Position in Tray (NA) optional
*
- SAC-15: Location (CE) optional repeating
*
- SAC-16: Container Height (NM) optional
*
- SAC-17: Container Diameter (NM) optional
*
- SAC-18: Barrier Delta (NM) optional
*
- SAC-19: Bottom Delta (NM) optional
*
- SAC-20: Container Height/Diameter/Delta Units (CE) optional
*
- SAC-21: Container Volume (NM) optional
*
- SAC-22: Available Volume (NM) optional
*
- SAC-23: Initial Specimen Volume (NM) optional
*
- SAC-24: Volume Units (CE) optional
*
- SAC-25: Separator Type (CE) optional
*
- SAC-26: Cap Type (CE) optional
*
- SAC-27: Additive (CE) optional repeating
*
- SAC-28: Specimen Component (CE) optional
*
- SAC-29: Dilution Factor (SN) optional
*
- SAC-30: Treatment (CE) optional
*
- SAC-31: Temperature (SN) optional
*
- SAC-32: Hemolysis Index (NM) optional
*
- SAC-33: Hemolysis Index Units (CE) optional
*
- SAC-34: Lipemia Index (NM) optional
*
- SAC-35: Lipemia Index Units (CE) optional
*
- SAC-36: Icterus Index (NM) optional
*
- SAC-37: Icterus Index Units (CE) optional
*
- SAC-38: Fibrin Index (NM) optional
*
- SAC-39: Fibrin Index Units (CE) optional
*
- SAC-40: System Induced Contaminants (CE) optional repeating
*
- SAC-41: Drug Interference (CE) optional repeating
*
- SAC-42: Artificial Blood (CE) optional
*
- SAC-43: Special Handling Considerations (CE) optional repeating
*
- SAC-44: Other Environmental Factors (CE) optional repeating
*
*/
public class SAC extends AbstractSegment {
/**
* Creates a new SAC segment
*/
public SAC(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "External Accession Identifier");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Accession Identifier");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Container Identifier");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Primary (parent) Container Identifier");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Equipment Container Identifier");
this.add(SPS.class, false, 1, 300, new Object[]{ getMessage(), new Integer(70) }, "Specimen Source");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Registration Date/Time");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(370) }, "Container Status");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(378) }, "Carrier Type");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Carrier Identifier");
this.add(NA.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Position in Carrier");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(379) }, "Tray Type - SAC");
this.add(EI.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Tray Identifier");
this.add(NA.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Position in Tray");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Location");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Container Height");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Container Diameter");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Barrier Delta");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Bottom Delta");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Container Height/Diameter/Delta Units");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Container Volume");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Available Volume");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Initial Specimen Volume");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Volume Units");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(380) }, "Separator Type");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(381) }, "Cap Type");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(371) }, "Additive");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Specimen Component");
this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Dilution Factor");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(373) }, "Treatment");
this.add(SN.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Temperature");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Hemolysis Index");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Hemolysis Index Units");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Lipemia Index");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Lipemia Index Units");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Icterus Index");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Icterus Index Units");
this.add(NM.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Fibrin Index");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Fibrin Index Units");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(374) }, "System Induced Contaminants");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(382) }, "Drug Interference");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(375) }, "Artificial Blood");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(376) }, "Special Handling Considerations");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(377) }, "Other Environmental Factors");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating SAC - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* SAC-1: "External Accession Identifier" - creates it if necessary
*/
public EI getExternalAccessionIdentifier() {
EI ret = null;
try {
Type t = this.getField(1, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-1: "External Accession Identifier" - creates it if necessary
*/
public EI getSac1_ExternalAccessionIdentifier() {
EI ret = null;
try {
Type t = this.getField(1, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-2: "Accession Identifier" - creates it if necessary
*/
public EI getAccessionIdentifier() {
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
* SAC-2: "Accession Identifier" - creates it if necessary
*/
public EI getSac2_AccessionIdentifier() {
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
* SAC-3: "Container Identifier" - creates it if necessary
*/
public EI getContainerIdentifier() {
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
* SAC-3: "Container Identifier" - creates it if necessary
*/
public EI getSac3_ContainerIdentifier() {
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
* SAC-4: "Primary (parent) Container Identifier" - creates it if necessary
*/
public EI getPrimaryParentContainerIdentifier() {
EI ret = null;
try {
Type t = this.getField(4, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-4: "Primary (parent) Container Identifier" - creates it if necessary
*/
public EI getSac4_PrimaryParentContainerIdentifier() {
EI ret = null;
try {
Type t = this.getField(4, 0);
ret = (EI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-5: "Equipment Container Identifier" - creates it if necessary
*/
public EI getEquipmentContainerIdentifier() {
EI ret = null;
try {
Type t = this.getField(5, 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
* SAC-5: "Equipment Container Identifier" - creates it if necessary
*/
public EI getSac5_EquipmentContainerIdentifier() {
EI ret = null;
try {
Type t = this.getField(5, 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
* SAC-6: "Specimen Source" - creates it if necessary
*/
public SPS getSpecimenSource() {
SPS ret = null;
try {
Type t = this.getField(6, 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
* SAC-6: "Specimen Source" - creates it if necessary
*/
public SPS getSac6_SpecimenSource() {
SPS ret = null;
try {
Type t = this.getField(6, 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
* SAC-7: "Registration Date/Time" - creates it if necessary
*/
public TS getRegistrationDateTime() {
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
* SAC-7: "Registration Date/Time" - creates it if necessary
*/
public TS getSac7_RegistrationDateTime() {
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
* SAC-8: "Container Status" - creates it if necessary
*/
public CE getContainerStatus() {
CE ret = null;
try {
Type t = this.getField(8, 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
* SAC-8: "Container Status" - creates it if necessary
*/
public CE getSac8_ContainerStatus() {
CE ret = null;
try {
Type t = this.getField(8, 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
* SAC-9: "Carrier Type" - creates it if necessary
*/
public CE getCarrierType() {
CE ret = null;
try {
Type t = this.getField(9, 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
* SAC-9: "Carrier Type" - creates it if necessary
*/
public CE getSac9_CarrierType() {
CE ret = null;
try {
Type t = this.getField(9, 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
* SAC-10: "Carrier Identifier" - creates it if necessary
*/
public EI getCarrierIdentifier() {
EI ret = null;
try {
Type t = this.getField(10, 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
* SAC-10: "Carrier Identifier" - creates it if necessary
*/
public EI getSac10_CarrierIdentifier() {
EI ret = null;
try {
Type t = this.getField(10, 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
* SAC-11: "Position in Carrier" - creates it if necessary
*/
public NA getPositionInCarrier() {
NA ret = null;
try {
Type t = this.getField(11, 0);
ret = (NA)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-11: "Position in Carrier" - creates it if necessary
*/
public NA getSac11_PositionInCarrier() {
NA ret = null;
try {
Type t = this.getField(11, 0);
ret = (NA)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-12: "Tray Type - SAC" - creates it if necessary
*/
public CE getTrayTypeSAC() {
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
* SAC-12: "Tray Type - SAC" - creates it if necessary
*/
public CE getSac12_TrayTypeSAC() {
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
* SAC-13: "Tray Identifier" - creates it if necessary
*/
public EI getTrayIdentifier() {
EI ret = null;
try {
Type t = this.getField(13, 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
* SAC-13: "Tray Identifier" - creates it if necessary
*/
public EI getSac13_TrayIdentifier() {
EI ret = null;
try {
Type t = this.getField(13, 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
* SAC-14: "Position in Tray" - creates it if necessary
*/
public NA getPositionInTray() {
NA ret = null;
try {
Type t = this.getField(14, 0);
ret = (NA)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-14: "Position in Tray" - creates it if necessary
*/
public NA getSac14_PositionInTray() {
NA ret = null;
try {
Type t = this.getField(14, 0);
ret = (NA)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (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 Location (SAC-15).
*/
public CE[] getLocation() {
CE[] ret = null;
try {
Type[] t = this.getField(15);
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 Location (SAC-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getLocationReps() {
CE[] ret = null;
try {
Type[] t = this.getField(15);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Returns a specific repetition of
* SAC-15: "Location" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getLocation(int rep) {
CE ret = null;
try {
Type t = this.getField(15, 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
* SAC-15: "Location" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac15_Location(int rep) {
CE ret = null;
try {
Type t = this.getField(15, 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 Location (SAC-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac15_LocationReps() {
CE[] ret = null;
try {
Type[] t = this.getField(15);
return t.length;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
}
/**
* Inserts a repetition of
* SAC-15: "Location" 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 insertLocation(int rep) throws HL7Exception {
return (CE) super.insertRepetition(15, rep);
}
/**
* Inserts a repetition of
* SAC-15: "Location" 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 insertSac15_Location(int rep) throws HL7Exception {
return (CE) super.insertRepetition(15, rep);
}
/**
* Removes a repetition of
* SAC-15: "Location" 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 removeLocation(int rep) throws HL7Exception {
return (CE) super.removeRepetition(15, rep);
}
/**
* Removes a repetition of
* SAC-15: "Location" 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 removeSac15_Location(int rep) throws HL7Exception {
return (CE) super.removeRepetition(15, rep);
}
/**
* Returns
* SAC-16: "Container Height" - creates it if necessary
*/
public NM getContainerHeight() {
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
* SAC-16: "Container Height" - creates it if necessary
*/
public NM getSac16_ContainerHeight() {
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
* SAC-17: "Container Diameter" - creates it if necessary
*/
public NM getContainerDiameter() {
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
* SAC-17: "Container Diameter" - creates it if necessary
*/
public NM getSac17_ContainerDiameter() {
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
* SAC-18: "Barrier Delta" - creates it if necessary
*/
public NM getBarrierDelta() {
NM ret = null;
try {
Type t = this.getField(18, 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
* SAC-18: "Barrier Delta" - creates it if necessary
*/
public NM getSac18_BarrierDelta() {
NM ret = null;
try {
Type t = this.getField(18, 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
* SAC-19: "Bottom Delta" - creates it if necessary
*/
public NM getBottomDelta() {
NM ret = null;
try {
Type t = this.getField(19, 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
* SAC-19: "Bottom Delta" - creates it if necessary
*/
public NM getSac19_BottomDelta() {
NM ret = null;
try {
Type t = this.getField(19, 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
* SAC-20: "Container Height/Diameter/Delta Units" - creates it if necessary
*/
public CE getContainerHeightDiameterDeltaUnits() {
CE ret = null;
try {
Type t = this.getField(20, 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
* SAC-20: "Container Height/Diameter/Delta Units" - creates it if necessary
*/
public CE getSac20_ContainerHeightDiameterDeltaUnits() {
CE ret = null;
try {
Type t = this.getField(20, 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
* SAC-21: "Container Volume" - creates it if necessary
*/
public NM getContainerVolume() {
NM ret = null;
try {
Type t = this.getField(21, 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
* SAC-21: "Container Volume" - creates it if necessary
*/
public NM getSac21_ContainerVolume() {
NM ret = null;
try {
Type t = this.getField(21, 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
* SAC-22: "Available Volume" - creates it if necessary
*/
public NM getAvailableVolume() {
NM ret = null;
try {
Type t = this.getField(22, 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
* SAC-22: "Available Volume" - creates it if necessary
*/
public NM getSac22_AvailableVolume() {
NM ret = null;
try {
Type t = this.getField(22, 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
* SAC-23: "Initial Specimen Volume" - creates it if necessary
*/
public NM getInitialSpecimenVolume() {
NM ret = null;
try {
Type t = this.getField(23, 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
* SAC-23: "Initial Specimen Volume" - creates it if necessary
*/
public NM getSac23_InitialSpecimenVolume() {
NM ret = null;
try {
Type t = this.getField(23, 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
* SAC-24: "Volume Units" - creates it if necessary
*/
public CE getVolumeUnits() {
CE ret = null;
try {
Type t = this.getField(24, 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
* SAC-24: "Volume Units" - creates it if necessary
*/
public CE getSac24_VolumeUnits() {
CE ret = null;
try {
Type t = this.getField(24, 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
* SAC-25: "Separator Type" - creates it if necessary
*/
public CE getSeparatorType() {
CE ret = null;
try {
Type t = this.getField(25, 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
* SAC-25: "Separator Type" - creates it if necessary
*/
public CE getSac25_SeparatorType() {
CE ret = null;
try {
Type t = this.getField(25, 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
* SAC-26: "Cap Type" - creates it if necessary
*/
public CE getCapType() {
CE ret = null;
try {
Type t = this.getField(26, 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
* SAC-26: "Cap Type" - creates it if necessary
*/
public CE getSac26_CapType() {
CE ret = null;
try {
Type t = this.getField(26, 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 Additive (SAC-27).
*/
public CE[] getAdditive() {
CE[] ret = null;
try {
Type[] t = this.getField(27);
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 Additive (SAC-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAdditiveReps() {
CE[] 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
* SAC-27: "Additive" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getAdditive(int rep) {
CE ret = null;
try {
Type t = this.getField(27, 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
* SAC-27: "Additive" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac27_Additive(int rep) {
CE ret = null;
try {
Type t = this.getField(27, 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 Additive (SAC-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac27_AdditiveReps() {
CE[] 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
* SAC-27: "Additive" 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 insertAdditive(int rep) throws HL7Exception {
return (CE) super.insertRepetition(27, rep);
}
/**
* Inserts a repetition of
* SAC-27: "Additive" 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 insertSac27_Additive(int rep) throws HL7Exception {
return (CE) super.insertRepetition(27, rep);
}
/**
* Removes a repetition of
* SAC-27: "Additive" 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 removeAdditive(int rep) throws HL7Exception {
return (CE) super.removeRepetition(27, rep);
}
/**
* Removes a repetition of
* SAC-27: "Additive" 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 removeSac27_Additive(int rep) throws HL7Exception {
return (CE) super.removeRepetition(27, rep);
}
/**
* Returns
* SAC-28: "Specimen Component" - creates it if necessary
*/
public CE getSpecimenComponent() {
CE ret = null;
try {
Type t = this.getField(28, 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
* SAC-28: "Specimen Component" - creates it if necessary
*/
public CE getSac28_SpecimenComponent() {
CE ret = null;
try {
Type t = this.getField(28, 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
* SAC-29: "Dilution Factor" - creates it if necessary
*/
public SN getDilutionFactor() {
SN ret = null;
try {
Type t = this.getField(29, 0);
ret = (SN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-29: "Dilution Factor" - creates it if necessary
*/
public SN getSac29_DilutionFactor() {
SN ret = null;
try {
Type t = this.getField(29, 0);
ret = (SN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-30: "Treatment" - creates it if necessary
*/
public CE getTreatment() {
CE ret = null;
try {
Type t = this.getField(30, 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
* SAC-30: "Treatment" - creates it if necessary
*/
public CE getSac30_Treatment() {
CE ret = null;
try {
Type t = this.getField(30, 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
* SAC-31: "Temperature" - creates it if necessary
*/
public SN getTemperature() {
SN ret = null;
try {
Type t = this.getField(31, 0);
ret = (SN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-31: "Temperature" - creates it if necessary
*/
public SN getSac31_Temperature() {
SN ret = null;
try {
Type t = this.getField(31, 0);
ret = (SN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* SAC-32: "Hemolysis Index" - creates it if necessary
*/
public NM getHemolysisIndex() {
NM ret = null;
try {
Type t = this.getField(32, 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
* SAC-32: "Hemolysis Index" - creates it if necessary
*/
public NM getSac32_HemolysisIndex() {
NM ret = null;
try {
Type t = this.getField(32, 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
* SAC-33: "Hemolysis Index Units" - creates it if necessary
*/
public CE getHemolysisIndexUnits() {
CE ret = null;
try {
Type t = this.getField(33, 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
* SAC-33: "Hemolysis Index Units" - creates it if necessary
*/
public CE getSac33_HemolysisIndexUnits() {
CE ret = null;
try {
Type t = this.getField(33, 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
* SAC-34: "Lipemia Index" - creates it if necessary
*/
public NM getLipemiaIndex() {
NM ret = null;
try {
Type t = this.getField(34, 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
* SAC-34: "Lipemia Index" - creates it if necessary
*/
public NM getSac34_LipemiaIndex() {
NM ret = null;
try {
Type t = this.getField(34, 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
* SAC-35: "Lipemia Index Units" - creates it if necessary
*/
public CE getLipemiaIndexUnits() {
CE ret = null;
try {
Type t = this.getField(35, 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
* SAC-35: "Lipemia Index Units" - creates it if necessary
*/
public CE getSac35_LipemiaIndexUnits() {
CE ret = null;
try {
Type t = this.getField(35, 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
* SAC-36: "Icterus Index" - creates it if necessary
*/
public NM getIcterusIndex() {
NM ret = null;
try {
Type t = this.getField(36, 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
* SAC-36: "Icterus Index" - creates it if necessary
*/
public NM getSac36_IcterusIndex() {
NM ret = null;
try {
Type t = this.getField(36, 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
* SAC-37: "Icterus Index Units" - creates it if necessary
*/
public CE getIcterusIndexUnits() {
CE ret = null;
try {
Type t = this.getField(37, 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
* SAC-37: "Icterus Index Units" - creates it if necessary
*/
public CE getSac37_IcterusIndexUnits() {
CE ret = null;
try {
Type t = this.getField(37, 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
* SAC-38: "Fibrin Index" - creates it if necessary
*/
public NM getFibrinIndex() {
NM ret = null;
try {
Type t = this.getField(38, 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
* SAC-38: "Fibrin Index" - creates it if necessary
*/
public NM getSac38_FibrinIndex() {
NM ret = null;
try {
Type t = this.getField(38, 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
* SAC-39: "Fibrin Index Units" - creates it if necessary
*/
public CE getFibrinIndexUnits() {
CE ret = null;
try {
Type t = this.getField(39, 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
* SAC-39: "Fibrin Index Units" - creates it if necessary
*/
public CE getSac39_FibrinIndexUnits() {
CE ret = null;
try {
Type t = this.getField(39, 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 System Induced Contaminants (SAC-40).
*/
public CE[] getSystemInducedContaminants() {
CE[] ret = null;
try {
Type[] t = this.getField(40);
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 System Induced Contaminants (SAC-40).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSystemInducedContaminantsReps() {
CE[] ret = null;
try {
Type[] t = this.getField(40);
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
* SAC-40: "System Induced Contaminants" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSystemInducedContaminants(int rep) {
CE ret = null;
try {
Type t = this.getField(40, 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
* SAC-40: "System Induced Contaminants" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac40_SystemInducedContaminants(int rep) {
CE ret = null;
try {
Type t = this.getField(40, 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 System Induced Contaminants (SAC-40).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac40_SystemInducedContaminantsReps() {
CE[] ret = null;
try {
Type[] t = this.getField(40);
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
* SAC-40: "System Induced Contaminants" 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 insertSystemInducedContaminants(int rep) throws HL7Exception {
return (CE) super.insertRepetition(40, rep);
}
/**
* Inserts a repetition of
* SAC-40: "System Induced Contaminants" 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 insertSac40_SystemInducedContaminants(int rep) throws HL7Exception {
return (CE) super.insertRepetition(40, rep);
}
/**
* Removes a repetition of
* SAC-40: "System Induced Contaminants" 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 removeSystemInducedContaminants(int rep) throws HL7Exception {
return (CE) super.removeRepetition(40, rep);
}
/**
* Removes a repetition of
* SAC-40: "System Induced Contaminants" 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 removeSac40_SystemInducedContaminants(int rep) throws HL7Exception {
return (CE) super.removeRepetition(40, rep);
}
/**
* Returns all repetitions of Drug Interference (SAC-41).
*/
public CE[] getDrugInterference() {
CE[] ret = null;
try {
Type[] t = this.getField(41);
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 Drug Interference (SAC-41).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getDrugInterferenceReps() {
CE[] ret = null;
try {
Type[] t = this.getField(41);
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
* SAC-41: "Drug Interference" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getDrugInterference(int rep) {
CE ret = null;
try {
Type t = this.getField(41, 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
* SAC-41: "Drug Interference" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac41_DrugInterference(int rep) {
CE ret = null;
try {
Type t = this.getField(41, 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 Drug Interference (SAC-41).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac41_DrugInterferenceReps() {
CE[] ret = null;
try {
Type[] t = this.getField(41);
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
* SAC-41: "Drug Interference" 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 insertDrugInterference(int rep) throws HL7Exception {
return (CE) super.insertRepetition(41, rep);
}
/**
* Inserts a repetition of
* SAC-41: "Drug Interference" 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 insertSac41_DrugInterference(int rep) throws HL7Exception {
return (CE) super.insertRepetition(41, rep);
}
/**
* Removes a repetition of
* SAC-41: "Drug Interference" 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 removeDrugInterference(int rep) throws HL7Exception {
return (CE) super.removeRepetition(41, rep);
}
/**
* Removes a repetition of
* SAC-41: "Drug Interference" 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 removeSac41_DrugInterference(int rep) throws HL7Exception {
return (CE) super.removeRepetition(41, rep);
}
/**
* Returns
* SAC-42: "Artificial Blood" - creates it if necessary
*/
public CE getArtificialBlood() {
CE ret = null;
try {
Type t = this.getField(42, 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
* SAC-42: "Artificial Blood" - creates it if necessary
*/
public CE getSac42_ArtificialBlood() {
CE ret = null;
try {
Type t = this.getField(42, 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 Special Handling Considerations (SAC-43).
*/
public CE[] getSpecialHandlingConsiderations() {
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 Special Handling Considerations (SAC-43).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSpecialHandlingConsiderationsReps() {
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
* SAC-43: "Special Handling Considerations" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSpecialHandlingConsiderations(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
* SAC-43: "Special Handling Considerations" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac43_SpecialHandlingConsiderations(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 Special Handling Considerations (SAC-43).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac43_SpecialHandlingConsiderationsReps() {
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
* SAC-43: "Special Handling Considerations" 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 insertSpecialHandlingConsiderations(int rep) throws HL7Exception {
return (CE) super.insertRepetition(43, rep);
}
/**
* Inserts a repetition of
* SAC-43: "Special Handling Considerations" 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 insertSac43_SpecialHandlingConsiderations(int rep) throws HL7Exception {
return (CE) super.insertRepetition(43, rep);
}
/**
* Removes a repetition of
* SAC-43: "Special Handling Considerations" 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 removeSpecialHandlingConsiderations(int rep) throws HL7Exception {
return (CE) super.removeRepetition(43, rep);
}
/**
* Removes a repetition of
* SAC-43: "Special Handling Considerations" 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 removeSac43_SpecialHandlingConsiderations(int rep) throws HL7Exception {
return (CE) super.removeRepetition(43, rep);
}
/**
* Returns all repetitions of Other Environmental Factors (SAC-44).
*/
public CE[] getOtherEnvironmentalFactors() {
CE[] ret = null;
try {
Type[] t = this.getField(44);
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 Other Environmental Factors (SAC-44).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOtherEnvironmentalFactorsReps() {
CE[] ret = null;
try {
Type[] t = this.getField(44);
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
* SAC-44: "Other Environmental Factors" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getOtherEnvironmentalFactors(int rep) {
CE ret = null;
try {
Type t = this.getField(44, 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
* SAC-44: "Other Environmental Factors" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getSac44_OtherEnvironmentalFactors(int rep) {
CE ret = null;
try {
Type t = this.getField(44, 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 Other Environmental Factors (SAC-44).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getSac44_OtherEnvironmentalFactorsReps() {
CE[] ret = null;
try {
Type[] t = this.getField(44);
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
* SAC-44: "Other Environmental Factors" 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 insertOtherEnvironmentalFactors(int rep) throws HL7Exception {
return (CE) super.insertRepetition(44, rep);
}
/**
* Inserts a repetition of
* SAC-44: "Other Environmental Factors" 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 insertSac44_OtherEnvironmentalFactors(int rep) throws HL7Exception {
return (CE) super.insertRepetition(44, rep);
}
/**
* Removes a repetition of
* SAC-44: "Other Environmental Factors" 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 removeOtherEnvironmentalFactors(int rep) throws HL7Exception {
return (CE) super.removeRepetition(44, rep);
}
/**
* Removes a repetition of
* SAC-44: "Other Environmental Factors" 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 removeSac44_OtherEnvironmentalFactors(int rep) throws HL7Exception {
return (CE) super.removeRepetition(44, rep);
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new EI(getMessage());
case 1: return new EI(getMessage());
case 2: return new EI(getMessage());
case 3: return new EI(getMessage());
case 4: return new EI(getMessage());
case 5: return new SPS(getMessage());
case 6: return new TS(getMessage());
case 7: return new CE(getMessage());
case 8: return new CE(getMessage());
case 9: return new EI(getMessage());
case 10: return new NA(getMessage());
case 11: return new CE(getMessage());
case 12: return new EI(getMessage());
case 13: return new NA(getMessage());
case 14: return new CE(getMessage());
case 15: return new NM(getMessage());
case 16: return new NM(getMessage());
case 17: return new NM(getMessage());
case 18: return new NM(getMessage());
case 19: return new CE(getMessage());
case 20: return new NM(getMessage());
case 21: return new NM(getMessage());
case 22: return new NM(getMessage());
case 23: return new CE(getMessage());
case 24: return new CE(getMessage());
case 25: return new CE(getMessage());
case 26: return new CE(getMessage());
case 27: return new CE(getMessage());
case 28: return new SN(getMessage());
case 29: return new CE(getMessage());
case 30: return new SN(getMessage());
case 31: return new NM(getMessage());
case 32: return new CE(getMessage());
case 33: return new NM(getMessage());
case 34: return new CE(getMessage());
case 35: return new NM(getMessage());
case 36: return new CE(getMessage());
case 37: return new NM(getMessage());
case 38: return new CE(getMessage());
case 39: return new CE(getMessage());
case 40: return new CE(getMessage());
case 41: return new CE(getMessage());
case 42: return new CE(getMessage());
case 43: return new CE(getMessage());
default: return null;
}
}
}