ca.uhn.hl7v2.model.v25.segment.IIM 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.v25.segment;
// import ca.uhn.hl7v2.model.v25.group.*;
import ca.uhn.hl7v2.model.v25.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 IIM message segment (Inventory Item Master).
* This segment has the following fields:
*
* - IIM-1: Primary Key Value - IIM (CWE)
*
- IIM-2: Service Item Code (CWE)
*
- IIM-3: Inventory Lot Number (ST) optional
*
- IIM-4: Inventory Expiration Date (TS) optional
*
- IIM-5: Inventory Manufacturer Name (CWE) optional
*
- IIM-6: Inventory Location (CWE) optional
*
- IIM-7: Inventory Received Date (TS) optional
*
- IIM-8: Inventory Received Quantity (NM) optional
*
- IIM-9: Inventory Received Quantity Unit (CWE) optional
*
- IIM-10: Inventory Received Item Cost (MO) optional
*
- IIM-11: Inventory On Hand Date (TS) optional
*
- IIM-12: Inventory On Hand Quantity (NM) optional
*
- IIM-13: Inventory On Hand Quantity Unit (CWE) optional
*
- IIM-14: Procedure Code (CE) optional
*
- IIM-15: Procedure Code Modifier (CE) optional repeating
*
*/
public class IIM extends AbstractSegment {
/**
* Creates a new IIM segment
*/
public IIM(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(CWE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Primary Key Value - IIM");
this.add(CWE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Service Item Code");
this.add(ST.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Inventory Lot Number");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Inventory Expiration Date");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Inventory Manufacturer Name");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Inventory Location");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Inventory Received Date");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Inventory Received Quantity");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Inventory Received Quantity Unit");
this.add(MO.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Inventory Received Item Cost");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Inventory On Hand Date");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Inventory On Hand Quantity");
this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Inventory On Hand Quantity Unit");
this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(88) }, "Procedure Code");
this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(340) }, "Procedure Code Modifier");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating IIM - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* IIM-1: "Primary Key Value - IIM" - creates it if necessary
*/
public CWE getPrimaryKeyValueIIM() {
CWE ret = null;
try {
Type t = this.getField(1, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-1: "Primary Key Value - IIM" - creates it if necessary
*/
public CWE getIim1_PrimaryKeyValueIIM() {
CWE ret = null;
try {
Type t = this.getField(1, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-2: "Service Item Code" - creates it if necessary
*/
public CWE getServiceItemCode() {
CWE ret = null;
try {
Type t = this.getField(2, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-2: "Service Item Code" - creates it if necessary
*/
public CWE getIim2_ServiceItemCode() {
CWE ret = null;
try {
Type t = this.getField(2, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-3: "Inventory Lot Number" - creates it if necessary
*/
public ST getInventoryLotNumber() {
ST ret = null;
try {
Type t = this.getField(3, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-3: "Inventory Lot Number" - creates it if necessary
*/
public ST getIim3_InventoryLotNumber() {
ST ret = null;
try {
Type t = this.getField(3, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-4: "Inventory Expiration Date" - creates it if necessary
*/
public TS getInventoryExpirationDate() {
TS ret = null;
try {
Type t = this.getField(4, 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
* IIM-4: "Inventory Expiration Date" - creates it if necessary
*/
public TS getIim4_InventoryExpirationDate() {
TS ret = null;
try {
Type t = this.getField(4, 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
* IIM-5: "Inventory Manufacturer Name" - creates it if necessary
*/
public CWE getInventoryManufacturerName() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-5: "Inventory Manufacturer Name" - creates it if necessary
*/
public CWE getIim5_InventoryManufacturerName() {
CWE ret = null;
try {
Type t = this.getField(5, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-6: "Inventory Location" - creates it if necessary
*/
public CWE getInventoryLocation() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-6: "Inventory Location" - creates it if necessary
*/
public CWE getIim6_InventoryLocation() {
CWE ret = null;
try {
Type t = this.getField(6, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-7: "Inventory Received Date" - creates it if necessary
*/
public TS getInventoryReceivedDate() {
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
* IIM-7: "Inventory Received Date" - creates it if necessary
*/
public TS getIim7_InventoryReceivedDate() {
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
* IIM-8: "Inventory Received Quantity" - creates it if necessary
*/
public NM getInventoryReceivedQuantity() {
NM ret = null;
try {
Type t = this.getField(8, 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
* IIM-8: "Inventory Received Quantity" - creates it if necessary
*/
public NM getIim8_InventoryReceivedQuantity() {
NM ret = null;
try {
Type t = this.getField(8, 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
* IIM-9: "Inventory Received Quantity Unit" - creates it if necessary
*/
public CWE getInventoryReceivedQuantityUnit() {
CWE ret = null;
try {
Type t = this.getField(9, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-9: "Inventory Received Quantity Unit" - creates it if necessary
*/
public CWE getIim9_InventoryReceivedQuantityUnit() {
CWE ret = null;
try {
Type t = this.getField(9, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-10: "Inventory Received Item Cost" - creates it if necessary
*/
public MO getInventoryReceivedItemCost() {
MO ret = null;
try {
Type t = this.getField(10, 0);
ret = (MO)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-10: "Inventory Received Item Cost" - creates it if necessary
*/
public MO getIim10_InventoryReceivedItemCost() {
MO ret = null;
try {
Type t = this.getField(10, 0);
ret = (MO)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-11: "Inventory On Hand Date" - creates it if necessary
*/
public TS getInventoryOnHandDate() {
TS ret = null;
try {
Type t = this.getField(11, 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
* IIM-11: "Inventory On Hand Date" - creates it if necessary
*/
public TS getIim11_InventoryOnHandDate() {
TS ret = null;
try {
Type t = this.getField(11, 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
* IIM-12: "Inventory On Hand Quantity" - creates it if necessary
*/
public NM getInventoryOnHandQuantity() {
NM ret = null;
try {
Type t = this.getField(12, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-12: "Inventory On Hand Quantity" - creates it if necessary
*/
public NM getIim12_InventoryOnHandQuantity() {
NM ret = null;
try {
Type t = this.getField(12, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-13: "Inventory On Hand Quantity Unit" - creates it if necessary
*/
public CWE getInventoryOnHandQuantityUnit() {
CWE ret = null;
try {
Type t = this.getField(13, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-13: "Inventory On Hand Quantity Unit" - creates it if necessary
*/
public CWE getIim13_InventoryOnHandQuantityUnit() {
CWE ret = null;
try {
Type t = this.getField(13, 0);
ret = (CWE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* IIM-14: "Procedure Code" - creates it if necessary
*/
public CE getProcedureCode() {
CE ret = null;
try {
Type t = this.getField(14, 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
* IIM-14: "Procedure Code" - creates it if necessary
*/
public CE getIim14_ProcedureCode() {
CE ret = null;
try {
Type t = this.getField(14, 0);
ret = (CE)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of Procedure Code Modifier (IIM-15).
*/
public CE[] getProcedureCodeModifier() {
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 specific repetition of
* IIM-15: "Procedure Code Modifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getProcedureCodeModifier(int rep) {
CE ret = null;
try {
Type t = this.getField(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
* IIM-15: "Procedure Code Modifier" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CE getIim15_ProcedureCodeModifier(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;
}
/**
* Inserts a repetition of
* IIM-15: "Procedure Code Modifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertProcedureCodeModifier(int rep) throws HL7Exception {
return (CE) super.insertRepetition(15, rep);
}
/**
* Inserts a repetition of
* IIM-15: "Procedure Code Modifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE insertIim15_ProcedureCodeModifier(int rep) throws HL7Exception {
return (CE) super.insertRepetition(15, rep);
}
/**
* Removes a repetition of
* IIM-15: "Procedure Code Modifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeProcedureCodeModifier(int rep) throws HL7Exception {
return (CE) super.removeRepetition(15, rep);
}
/**
* Removes a repetition of
* IIM-15: "Procedure Code Modifier" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CE removeIim15_ProcedureCodeModifier(int rep) throws HL7Exception {
return (CE) super.removeRepetition(15, rep);
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new CWE(getMessage());
case 1: return new CWE(getMessage());
case 2: return new ST(getMessage());
case 3: return new TS(getMessage());
case 4: return new CWE(getMessage());
case 5: return new CWE(getMessage());
case 6: return new TS(getMessage());
case 7: return new NM(getMessage());
case 8: return new CWE(getMessage());
case 9: return new MO(getMessage());
case 10: return new TS(getMessage());
case 11: return new NM(getMessage());
case 12: return new CWE(getMessage());
case 13: return new CE(getMessage());
case 14: return new CE(getMessage());
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy