/** * Returns a single repetition of Value Amount & Code(UB2-6). * @param rep the repetition number (this is a repeating field) * @throws HL7Exception if the repetition number is invalid. */ public UVC getValueAmountCode(int rep) { UVC ret = null; try { Type t = this.getField(6, rep); ret = (UVC)t; } catch (System.Exception ex) { HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex); throw new System.Exception("An unexpected error ocurred", ex); } return(ret); }
/// <summary> Returns a single repetition of Value Amount & Code (UB2-6).</summary> /// <param name="rep">the repetition number (this is a repeating field) /// </param> /// <throws> HL7Exception if the repetition number is invalid. </throws> public virtual UVC getValueAmountCode(int rep) { UVC ret = null; try { Type t = this.getField(6, rep); ret = (UVC)t; } catch (System.InvalidCastException) { throw new Exception(); } return(ret); }
/** * Returns all repetitions of Value Amount & Code (UB2-6). */ public UVC[] getValueAmountCode() { UVC[] ret = null; try { Type[] t = this.getField(6); ret = new UVC[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (UVC)t[i]; } } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new System.Exception("An unexpected error ocurred", he); } catch (System.Exception cce) { HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new System.Exception("An unexpected error ocurred", cce); } return(ret); }
/// <summary> Returns all repetitions of Value Amount & Code (UB2-6).</summary> public virtual UVC[] getValueAmountCode() { UVC[] ret = null; try { Type[] t = this.getField(6); ret = new UVC[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (UVC)t[i]; } } catch (System.InvalidCastException) { throw new Exception(); } catch (NuGenHL7Exception) { throw new Exception(); } return(ret); }
/// <summary> Returns all repetitions of Value Amount & Code (UB2-6).</summary> public virtual UVC[] getValueAmountCode() { UVC[] ret = null; try { Type[] t = this.getField(6); ret = new UVC[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (UVC) t[i]; } } catch (System.InvalidCastException ) { throw new Exception(); } catch (NuGenHL7Exception) { throw new Exception(); } return ret; }