예제 #1
0
        //得到病人详细信息 LY 2015-10-10
        public PatDetailInfo PsBasicInfoDetailGetPatientDetailInfo(DataConnection pclsCache, string UserId)
        {
            PatDetailInfo ret = new PatDetailInfo();

            try
            {
                if (!pclsCache.Connect())
                {
                    return(ret);
                }
                ret.PhoneNumber                 = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[0].ToString();
                ret.HomeAddress                 = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[1].ToString();
                ret.Occupation                  = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[2].ToString();
                ret.Nationality                 = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[3].ToString();
                ret.EmergencyContact            = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[4].ToString();
                ret.EmergencyContactPhoneNumber = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[5].ToString();
                ret.PhotoAddress                = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[6].ToString();
                ret.IDNo   = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[7].ToString();
                ret.Height = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[8].ToString();
                ret.Weight = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId)[9].ToString();
                return(ret);
            }
            catch (Exception ex)
            {
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsBasicInfoDetail.GetPatientDetailInfo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return(ret);
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
예제 #2
0
        /// <summary>
        /// 得到病人详细信息 LY 2015-10-10
        /// </summary>
        /// <param name="pclsCache"></param>
        /// <param name="UserId"></param>
        /// <returns></returns>
        public PatDetailInfo PsBasicInfoDetailGetPatientDetailInfo(DataConnection pclsCache, string UserId)
        {
            PatDetailInfo ret = new PatDetailInfo();

            try
            {
                if (!pclsCache.Connect())
                {
                    return(ret);
                }
                InterSystems.Data.CacheTypes.CacheSysList list = null;
                list = Ps.BasicInfoDetail.GetPatientDetailInfo(pclsCache.CacheConnectionObject, UserId);
                if (list != null)
                {
                    ret.PhoneNumber                 = list[0];
                    ret.HomeAddress                 = list[1];
                    ret.Occupation                  = list[2];
                    ret.Nationality                 = list[3];
                    ret.EmergencyContact            = list[4];
                    ret.EmergencyContactPhoneNumber = list[5];
                    ret.PhotoAddress                = list[6];
                    ret.IDNo   = list[7];
                    ret.Height = list[8];
                    ret.Weight = list[9];
                }
                return(ret);
            }
            catch (Exception ex)
            {
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "ModuleInfoMethod.PsBasicInfoDetailGetPatientDetailInfo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return(ret);
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
예제 #3
0
        public PatientDetailInfo GetPatientDetailInfo(DataConnection pclsCache, string UserId)
        {
            try
            {
                string            module                   = "";
                PatientDetailInfo PatientDetailInfo        = new PatientDetailInfo();
                PatDetailInfo     GetPatientDetailInfoList = moduleInfoMethod.PsBasicInfoDetailGetPatientDetailInfo(pclsCache, UserId);
                PatientDetailInfo.UserId = UserId;
                if (GetPatientDetailInfoList != null)
                {
                    PatientDetailInfo.PhoneNumber = GetPatientDetailInfoList.PhoneNumber;
                    if (PatientDetailInfo.PhoneNumber == null)
                    {
                        PatientDetailInfo.PhoneNumber = "";
                    }
                    PatientDetailInfo.HomeAddress = GetPatientDetailInfoList.HomeAddress;
                    if (PatientDetailInfo.HomeAddress == null)
                    {
                        PatientDetailInfo.HomeAddress = "";
                    }
                    PatientDetailInfo.Occupation = GetPatientDetailInfoList.Occupation;
                    if (PatientDetailInfo.Occupation == null)
                    {
                        PatientDetailInfo.Occupation = "";
                    }
                    PatientDetailInfo.Nationality = GetPatientDetailInfoList.Nationality;
                    if (PatientDetailInfo.Nationality == null)
                    {
                        PatientDetailInfo.Nationality = "";
                    }
                    PatientDetailInfo.EmergencyContact = GetPatientDetailInfoList.EmergencyContact;
                    if (PatientDetailInfo.EmergencyContact == null)
                    {
                        PatientDetailInfo.EmergencyContact = "";
                    }
                    PatientDetailInfo.EmergencyContactPhoneNumber = GetPatientDetailInfoList.EmergencyContactPhoneNumber;
                    if (PatientDetailInfo.EmergencyContactPhoneNumber == null)
                    {
                        PatientDetailInfo.EmergencyContactPhoneNumber = "";
                    }
                    PatientDetailInfo.PhotoAddress = GetPatientDetailInfoList.PhotoAddress;
                    if (PatientDetailInfo.PhotoAddress == null)
                    {
                        PatientDetailInfo.PhotoAddress = "";
                    }
                    PatientDetailInfo.IDNo = GetPatientDetailInfoList.IDNo;
                    if (PatientDetailInfo.IDNo == null)
                    {
                        PatientDetailInfo.IDNo = "";
                    }
                    PatientDetailInfo.Height = GetPatientDetailInfoList.Height;
                    if (PatientDetailInfo.Height == null)
                    {
                        PatientDetailInfo.Height = "";
                    }
                    PatientDetailInfo.Weight = GetPatientDetailInfoList.Weight;
                    if (PatientDetailInfo.Weight == null)
                    {
                        PatientDetailInfo.Weight = "";
                    }
                }

                List <TypeAndName> modules = moduleInfoMethod.PsBasicInfoDetailGetModulesByPID(pclsCache, UserId);
                for (int i = 0; i < modules.Count; i++)
                {
                    module = module + "|" + modules[i].Name;
                }
                if (module != "")
                {
                    module = module.Substring(1, module.Length - 1);
                }
                PatientDetailInfo.Module = module;
                return(PatientDetailInfo);
            }
            catch (Exception ex)
            {
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "Ps.BasicInfoDetail.GetPatientDetailInfo", "WebService调用异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return(null);

                throw (ex);
            }
        }