/// <summary> Returns a single repetition of Financial Class (PV1-20).</summary> /// <param name="rep">the repetition number (this is a repeating field) /// </param> /// <throws> HL7Exception if the repetition number is invalid. </throws> public virtual CM_FINANCE getFinancialClass(int rep) { CM_FINANCE ret = null; try { Type t = this.getField(20, rep); ret = (CM_FINANCE)t; } catch (System.InvalidCastException) { throw new Exception(); } return(ret); }
/// <summary> Returns all repetitions of Financial Class (PV1-20).</summary> public virtual CM_FINANCE[] getFinancialClass() { CM_FINANCE[] ret = null; try { Type[] t = this.getField(20); ret = new CM_FINANCE[t.Length]; for (int i = 0; i < ret.Length; i++) { ret[i] = (CM_FINANCE)t[i]; } } catch (System.InvalidCastException) { throw new Exception(); } catch (NuGenHL7Exception) { throw new Exception(); } return(ret); }