Esempio n. 1
0
        ///<summary>
        /// Returns a single repetition of Delta Check Criteria(OM2-10).
        /// throws HL7Exception if the repetition number is invalid.
        /// <param name="rep">The repetition number (this is a repeating field)</param>
        ///</summary>
        public CM_DLT GetDeltaCheckCriteria(int rep)
        {
            CM_DLT ret = null;

            try
            {
                IType t = this.GetField(10, rep);
                ret = (CM_DLT)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);
        }
Esempio n. 2
0
        /// <summary> Returns a single repetition of Delta Check Criteria (OM2-10).</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_DLT getDeltaCheckCriteria(int rep)
        {
            CM_DLT ret = null;

            try
            {
                Type t = this.getField(10, rep);
                ret = (CM_DLT)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
Esempio n. 3
0
 ///<summary>
 /// Returns all repetitions of Delta Check Criteria (OM2-10).
 ///</summary>
 public CM_DLT[] GetDeltaCheckCriteria()
 {
     CM_DLT[] ret = null;
     try {
         IType[] t = this.GetField(10);
         ret = new CM_DLT[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_DLT)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);
 }
Esempio n. 4
0
 /// <summary> Returns all repetitions of Delta Check Criteria (OM2-10).</summary>
 public virtual CM_DLT[] getDeltaCheckCriteria()
 {
     CM_DLT[] ret = null;
     try
     {
         Type[] t = this.getField(10);
         ret = new CM_DLT[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_DLT)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }