Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <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);
 }