/** * Returns a count of the current number of repetitions of Error Code and Location (ERR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getErrorCodeAndLocationReps() { return this.getReps(1); }
/** * Returns all repetitions of Error Code and Location (ERR-1). */ public CM_ELD[] getErr1_ErrorCodeAndLocation() { CM_ELD[] retVal = this.getTypedField(1, new CM_ELD[0]); return retVal; }
/** * Creates a new ERR segment */ public ERR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(CM_ELD.class, true, 0, 80, new Object[]{ getMessage() }, "Error Code and Location"); } catch(HL7Exception e) { log.error("Unexpected error creating ERR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CM_ELD(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(CM_ELD.class, true, 0, 80, new Object[]{ getMessage() }, "Error Code and Location"); } catch(HL7Exception e) { log.error("Unexpected error creating ERR - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CM_ELD(getMessage()); default: return null; } }
/** * Returns all repetitions of Error Code and Location (ERR-1). */ public CM_ELD[] getErrorCodeAndLocation() { CM_ELD[] retVal = this.getTypedField(1, new CM_ELD[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Error Code and Location (ERR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getErrorCodeAndLocationReps() { return this.getReps(1); }
/** * Creates a new ERR segment */ public ERR(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns a specific repetition of * ERR-1: "Error Code and Location" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_ELD getErrorCodeAndLocation(int rep) { CM_ELD retVal = this.getTypedField(1, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Error Code and Location (ERR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getErr1_ErrorCodeAndLocationReps() { return this.getReps(1); }
/** * Returns a specific repetition of * ERR-1: "Error Code and Location" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_ELD getErr1_ErrorCodeAndLocation(int rep) { CM_ELD retVal = this.getTypedField(1, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Error Code and Location (ERR-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getErr1_ErrorCodeAndLocationReps() { return this.getReps(1); }
/** * Returns all repetitions of Error Code and Location (ERR-1). */ public CM_ELD[] getErrorCodeAndLocation() { CM_ELD[] retVal = this.getTypedField(1, new CM_ELD[0]); return retVal; }
/** * Returns a specific repetition of * ERR-1: "Error Code and Location" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_ELD getErrorCodeAndLocation(int rep) { CM_ELD retVal = this.getTypedField(1, rep); return retVal; }
/** * Returns all repetitions of Error Code and Location (ERR-1). */ public CM_ELD[] getErr1_ErrorCodeAndLocation() { CM_ELD[] retVal = this.getTypedField(1, new CM_ELD[0]); return retVal; }
/** * Returns a specific repetition of * ERR-1: "Error Code and Location" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_ELD getErr1_ErrorCodeAndLocation(int rep) { CM_ELD retVal = this.getTypedField(1, rep); return retVal; }