コード例 #1
0
        /**
         * Returns a single repetition of Value amount and code (46-49)(UB1-10).
         * @param rep the repetition number (this is a repeating field)
         * @throws HL7Exception if the repetition number is invalid.
         */
        public CM_UVC getValueAmountAndCode4649(int rep)
        {
            CM_UVC ret = null;

            try
            {
                Type t = this.getField(10, rep);
                ret = (CM_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);
        }
コード例 #2
0
ファイル: UB2.cs プロジェクト: carlhuth/GenXSource
        /// <summary> Returns a single repetition of Value amount and code (39-41) (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 CM_UVC getValueAmountAndCode3941(int rep)
        {
            CM_UVC ret = null;

            try
            {
                Type t = this.getField(6, rep);
                ret = (CM_UVC)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
コード例 #3
0
 /**
  * Returns all repetitions of Value amount and code (46-49) (UB1-10).
  */
 public CM_UVC[] getValueAmountAndCode4649()
 {
     CM_UVC[] ret = null;
     try {
         Type[] t = this.getField(10);
         ret = new CM_UVC[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_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);
 }
コード例 #4
0
ファイル: UB2.cs プロジェクト: carlhuth/GenXSource
 /// <summary> Returns all repetitions of Value amount and code (39-41) (UB2-6).</summary>
 public virtual CM_UVC[] getValueAmountAndCode3941()
 {
     CM_UVC[] ret = null;
     try
     {
         Type[] t = this.getField(6);
         ret = new CM_UVC[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_UVC)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }