コード例 #1
0
ファイル: OBR.cs プロジェクト: henriquetomaz/nhapi-1
        /**
         * Returns a single repetition of Technician(OBR-34).
         * @param rep the repetition number (this is a repeating field)
         * @throws HL7Exception if the repetition number is invalid.
         */
        public CM_NDL getTechnician(int rep)
        {
            CM_NDL ret = null;

            try
            {
                Type t = this.getField(34, rep);
                ret = (CM_NDL)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
ファイル: OBR.cs プロジェクト: carlhuth/GenXSource
        /// <summary> Returns a single repetition of Technician (OBR-34).</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_NDL getTechnician(int rep)
        {
            CM_NDL ret = null;

            try
            {
                Type t = this.getField(34, rep);
                ret = (CM_NDL)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
コード例 #3
0
ファイル: OBR.cs プロジェクト: carlhuth/GenXSource
        /// <summary> Returns a single repetition of Assistant Result Interpreter (OBR-33).</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_NDL getAssistantResultInterpreter(int rep)
        {
            CM_NDL ret = null;

            try
            {
                Type t = this.getField(33, rep);
                ret = (CM_NDL)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
コード例 #4
0
ファイル: OBR.cs プロジェクト: henriquetomaz/nhapi-1
 /**
  * Returns all repetitions of Assistant Result Interpreter (OBR-33).
  */
 public CM_NDL[] getAssistantResultInterpreter()
 {
     CM_NDL[] ret = null;
     try {
         Type[] t = this.getField(33);
         ret = new CM_NDL[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_NDL)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);
 }
コード例 #5
0
ファイル: OBR.cs プロジェクト: carlhuth/GenXSource
 /// <summary> Returns all repetitions of Assistant Result Interpreter (OBR-33).</summary>
 public virtual CM_NDL[] getAssistantResultInterpreter()
 {
     CM_NDL[] ret = null;
     try
     {
         Type[] t = this.getField(33);
         ret = new CM_NDL[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_NDL)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }