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

ca.uhn.hl7v2.model.v24.segment.SAC Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
/*
 * This class is an auto-generated source file for a HAPI
 * HL7 v2.x standard structure class.
 *
 * For more information, visit: http://hl7api.sourceforge.net/
 * 
 * The contents of this file are subject to the Mozilla Public License Version 1.1 
 * (the "License"); you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
 * Software distributed under the License is distributed on an "AS IS" basis, 
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
 * specific language governing rights and limitations under the License. 
 * 
 * The Original Code is "[file_name]".  Description: 
 * "[one_line_description]" 
 * 
 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
 * 2002.  All Rights Reserved. 
 * 
 * Contributor(s): ______________________________________. 
 * 
 * Alternatively, the contents of this file may be used under the terms of the 
 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
 * applicable instead of those above.  If you wish to allow use of your version of this 
 * file only under the terms of the GPL and not to allow others to use your version 
 * of this file under the MPL, indicate your decision by deleting  the provisions above 
 * and replace  them with the notice and other provisions required by the GPL License.  
 * If you do not delete the provisions above, a recipient may use your version of 
 * this file under either the MPL or the GPL. 
 * 
 */


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

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.datatype.*;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;

/**
 *

Represents an HL7 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 *
*/ @SuppressWarnings("unused") 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() }, "External Accession Identifier"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Accession Identifier"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Container Identifier"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Primary (parent) Container Identifier"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Equipment Container Identifier"); this.add(SPS.class, false, 1, 300, new Object[]{ getMessage() }, "Specimen Source"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Registration Date/Time"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Container Status"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Carrier Type"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Carrier Identifier"); this.add(NA.class, false, 1, 80, new Object[]{ getMessage() }, "Position in Carrier"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Tray Type - SAC"); this.add(EI.class, false, 1, 80, new Object[]{ getMessage() }, "Tray Identifier"); this.add(NA.class, false, 1, 80, new Object[]{ getMessage() }, "Position in Tray"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Location"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Container Height"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Container Diameter"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Barrier Delta"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Bottom Delta"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Container Height/Diameter/Delta Units"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Container Volume"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Available Volume"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Initial Specimen Volume"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Volume Units"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Separator Type"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Cap Type"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Additive"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Specimen Component"); this.add(SN.class, false, 1, 20, new Object[]{ getMessage() }, "Dilution Factor"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Treatment"); this.add(SN.class, false, 1, 20, new Object[]{ getMessage() }, "Temperature"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Hemolysis Index"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Hemolysis Index Units"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Lipemia Index"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Lipemia Index Units"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Icterus Index"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Icterus Index Units"); this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Fibrin Index"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Fibrin Index Units"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "System Induced Contaminants"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Drug Interference"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Artificial Blood"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Special Handling Considerations"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Other Environmental Factors"); } catch(HL7Exception e) { LoggerFactory.getLogger(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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of 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) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * 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; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy