/** * Returns a count of the current number of repetitions of Charge Code Alias (CDM-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getChargeCodeAliasReps() { return this.getReps(2); }
/** * Returns a specific repetition of * CDM-7: "Procedure Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getProcedureCode(int rep) { CE retVal = this.getTypedField(7, rep); return retVal; }
/** * Creates a new CDM segment */ public CDM(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Primary Key Value - CDM"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Charge Code Alias"); this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "Charge Description Short"); this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Charge Description Long"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(268) }, "Description Override Indicator"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Exploding Charges"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Inventory Number"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Resource Load"); this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Number"); this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Organization"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Room Fee Indicator"); } catch(HL7Exception e) { log.error("Unexpected error creating CDM - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new IS(getMessage(), new Integer( 268 )); case 5: return new CE(getMessage()); case 6: return new CE(getMessage()); case 7: return new ID(getMessage(), new Integer( 183 )); case 8: return new CE(getMessage()); case 9: return new NM(getMessage()); case 10: return new CX(getMessage()); case 11: return new XON(getMessage()); case 12: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Primary Key Value - CDM"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Charge Code Alias"); this.add(ST.class, true, 1, 20, new Object[]{ getMessage() }, "Charge Description Short"); this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Charge Description Long"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(268) }, "Description Override Indicator"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Exploding Charges"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Inventory Number"); this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Resource Load"); this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Number"); this.add(XON.class, false, 0, 250, new Object[]{ getMessage() }, "Contract Organization"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Room Fee Indicator"); } catch(HL7Exception e) { log.error("Unexpected error creating CDM - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new CE(getMessage()); case 2: return new ST(getMessage()); case 3: return new ST(getMessage()); case 4: return new IS(getMessage(), new Integer( 268 )); case 5: return new CE(getMessage()); case 6: return new CE(getMessage()); case 7: return new ID(getMessage(), new Integer( 183 )); case 8: return new CE(getMessage()); case 9: return new NM(getMessage()); case 10: return new CX(getMessage()); case 11: return new XON(getMessage()); case 12: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
/** * Returns a specific repetition of * CDM-7: "Procedure Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCdm7_ProcedureCode(int rep) { CE retVal = this.getTypedField(7, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Charge Code Alias (CDM-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCdm2_ChargeCodeAliasReps() { return this.getReps(2); }
/** * Creates a new CDM segment */ public CDM(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * CDM-8: "Active/Inactive Flag" - creates it if necessary */ public ID getActiveInactiveFlag() { ID retVal = this.getTypedField(8, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Procedure Code (CDM-7). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getProcedureCodeReps() { return this.getReps(7); }
/** * Returns a specific repetition of * CDM-9: "Inventory Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getCdm9_InventoryNumber(int rep) { CE retVal = this.getTypedField(9, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Inventory Number (CDM-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCdm9_InventoryNumberReps() { return this.getReps(9); }
/** * Returns all repetitions of Contract Number (CDM-11). */ public CX[] getCdm11_ContractNumber() { CX[] retVal = this.getTypedField(11, new CX[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Exploding Charges (CDM-6). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCdm6_ExplodingChargesReps() { return this.getReps(6); }
/** * Returns all repetitions of Contract Organization (CDM-12). */ public XON[] getContractOrganization() { XON[] retVal = this.getTypedField(12, new XON[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Inventory Number (CDM-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCdm9_InventoryNumberReps() { return this.getReps(9); }
/** * Returns all repetitions of Charge Code Alias (CDM-2). */ public CE[] getCdm2_ChargeCodeAlias() { CE[] retVal = this.getTypedField(2, new CE[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Contract Number (CDM-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCdm11_ContractNumberReps() { return this.getReps(11); }