示例#1
0
        /*
         * Only pull out the methods below as you need them.  Otherwise, leave them commented out.
         *
         * ///<summary></summary>
         * public static List<LabResult> Refresh(long patNum){
         *      if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
         *              return Meth.GetObject<List<LabResult>>(MethodBase.GetCurrentMethod(),patNum);
         *      }
         *      string command="SELECT * FROM labresult WHERE PatNum = "+POut.Long(patNum);
         *      return Crud.LabResultCrud.SelectMany(command);
         * }
         *
         * ///<summary>Gets one LabResult from the db.</summary>
         * public static LabResult GetOne(long labResultNum){
         *      if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
         *              return Meth.GetObject<LabResult>(MethodBase.GetCurrentMethod(),labResultNum);
         *      }
         *      return Crud.LabResultCrud.SelectOne(labResultNum);
         * }
         *
         *
         *
         */

        /// <summary>Returns the text for a SnomedAllergy Enum as it should appear in human readable form for a CCD.</summary>
        public static string GetAbnormalFlagDesc(LabAbnormalFlag abnormalFlag)
        {
            string result;

            switch (abnormalFlag)
            {
            case LabAbnormalFlag.Above:
                result = "above high normal";
                break;

            case LabAbnormalFlag.Normal:
                result = "normal";
                break;

            case LabAbnormalFlag.Below:
                result = "below normal";
                break;

            case LabAbnormalFlag.None:
                result = "";
                break;

            default:
                result = "Error";
                break;
            }
            return(result);
        }
示例#2
0
        /*
        Only pull out the methods below as you need them.  Otherwise, leave them commented out.

        ///<summary></summary>
        public static List<LabResult> Refresh(long patNum){
            if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
                return Meth.GetObject<List<LabResult>>(MethodBase.GetCurrentMethod(),patNum);
            }
            string command="SELECT * FROM labresult WHERE PatNum = "+POut.Long(patNum);
            return Crud.LabResultCrud.SelectMany(command);
        }

        ///<summary>Gets one LabResult from the db.</summary>
        public static LabResult GetOne(long labResultNum){
            if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
                return Meth.GetObject<LabResult>(MethodBase.GetCurrentMethod(),labResultNum);
            }
            return Crud.LabResultCrud.SelectOne(labResultNum);
        }

        */
        /// <summary>Returns the text for a SnomedAllergy Enum as it should appear in human readable form for a CCD.</summary>
        public static string GetAbnormalFlagDesc(LabAbnormalFlag abnormalFlag)
        {
            string result;
            switch(abnormalFlag){
                case LabAbnormalFlag.Above:
                    result="above high normal";
                    break;
                case LabAbnormalFlag.Normal:
                    result="normal";
                    break;
                case LabAbnormalFlag.Below:
                    result="below normal";
                    break;
                case LabAbnormalFlag.None:
                    result="";
                    break;
                default:
                    result="Error";
                    break;
            }
            return result;
        }
		public void SetInterpretation(LabAbnormalFlag laf) {
			switch(laf) {
				case LabAbnormalFlag.Above:
					SetInterpretation("H");
					return;
				case LabAbnormalFlag.Below:
					SetInterpretation("L");
					return;
				case LabAbnormalFlag.Normal:
					SetInterpretation("N");
					return;
				case LabAbnormalFlag.None:
				default:
					SetInterpretation("");
					return;
			}
		}