/** * This method does NOT append a trailing repetition, but will instead throw an {@link IndexOutOfBoundsException} * * @param name name of the structure * @param rep repetition (zero-based) * @return element of the repeating structure * @throws HL7Exception if name does not exist * @throws IndexOutOfBoundsException if repetition does not exist */ public Structure get(String name, int rep) throws HL7Exception { return getAll(name)[rep]; }
/** * This method does NOT append a trailing repetition, but will instead throw an {@link IndexOutOfBoundsException} * * @param name name of the structure * @param rep repetition (zero-based) * @return element of the repeating structure * @throws HL7Exception if name does not exist * @throws IndexOutOfBoundsException if repetition does not exist */ public Structure get(String name, int rep) throws HL7Exception { return getAll(name)[rep]; }