示例#1
0
        public static void GetClinicInfoDetail(ServicesSoapClient _ServicesSoapClient, ref ClinicInfoDetailViewModel ei, string PatientId, string keycode)
        {
            string[] s     = keycode.Split(new char[] { '|' });
            string   type  = s[0];
            string   vid   = s[1];
            string   date  = s[2];
            string   date1 = date.Substring(0, 10) + " " + date.Substring(10, 8);

            ei.UserId  = PatientId;
            ei.NowType = type;
            ei.VisitId = vid;
            ServiceReference.PatientBasicInfo zn = _ServicesSoapClient.GetPatBasicInfo(PatientId);  //获取基本信息
            ei.UserName = zn.UserName;

            string DateShow = Convert.ToDateTime(date1).ToString("yyyy年MM月dd日");

            ei.NowDate = DateShow;

            ei.DiagnosisInfoTable   = new DataTable();
            ei.ExaminationInfoTable = new DataTable();
            ei.LabTestInfoTable     = new DataTable();
            ei.DrugRecordTable      = new DataTable();

            DataSet set = new DataSet();

            set = _ServicesSoapClient.GetClinicInfoDetail(PatientId, type, vid, date);

            switch (type)
            {
            //case "ClinicalInfo": ; //就诊表
            //break;
            case "DiagnosisInfo": ei.DiagnosisInfoTable = set.Tables[0];     //诊断表
                break;

            case "ExaminationInfo": ei.ExaminationInfoTable = set.Tables[0];     //检查表(有子表)
                break;

            case "LabTestInfo": ei.LabTestInfoTable = set.Tables[0];     //化验表(有子表)
                break;

            case "DrugRecord": ei.DrugRecordTable = set.Tables[0];     //用药
                break;

            default: break;
            }
        }
示例#2
0
        //首页-基本信息和tab
        public ActionResult Index(string PatientId, string TabNo)
        {
            //PatientId = "P4444";
            Session["PatientId"] = PatientId;
            ServiceReference.PatientBasicInfo pbi = _ServicesSoapClient.GetPatBasicInfo(PatientId);  //获取基本信息

            PatientBasicInfoViewModel pbiModel = new PatientBasicInfoViewModel();

            pbiModel.PatientBasicInfo.UserId      = pbi.UserId;
            pbiModel.PatientBasicInfo.UserName    = pbi.UserName;
            pbiModel.PatientBasicInfo.Gender      = pbi.Gender;
            pbiModel.PatientBasicInfo.Age         = Convert.ToInt32(pbi.Age);
            pbiModel.PatientBasicInfo.BloodType   = pbi.BloodType;
            pbiModel.PatientBasicInfo.Module      = pbi.Module;
            pbiModel.PatientBasicInfo.AlertNumber = _ServicesSoapClient.GetUntreatedAlertAmount(PatientId);   //获取警报数
            ViewBag.TabNo = TabNo;
            return(View(pbiModel));
        }
示例#3
0
        public ActionResult PatientBasicInfo()
        {
            //PatientId = "P4444";
            string PatientId = Session["PatientId"] as String;

            ServiceReference.PatientBasicInfo pbi = _ServicesSoapClient.GetPatBasicInfo(PatientId);  //获取基本信息

            PatientBasicInfoViewModel pbiModel = new PatientBasicInfoViewModel();

            pbiModel.PatientBasicInfo.UserId        = pbi.UserId;
            pbiModel.PatientBasicInfo.UserName      = pbi.UserName;
            pbiModel.PatientBasicInfo.Gender        = pbi.GenderText;
            pbiModel.PatientBasicInfo.Age           = Convert.ToInt32(pbi.Age);
            pbiModel.PatientBasicInfo.BloodType     = pbi.BloodTypeText;
            pbiModel.PatientBasicInfo.InsuranceType = pbi.InsuranceTypeText;
            pbiModel.PatientBasicInfo.Module        = pbi.Module;
            pbiModel.PatientBasicInfo.AlertNumber   = _ServicesSoapClient.GetUntreatedAlertAmount(PatientId); //获取警报数
            return(View(pbiModel));
        }
示例#4
0
 //获取患者个人信息
 public Models.PatientBasicInfo GetPatientBasicInfo(string UserId)
 {
     Models.PatientBasicInfo Patient = new Models.PatientBasicInfo();
     ServiceReference.PatientBasicInfo basicInfo = new ServiceReference.PatientBasicInfo();
     basicInfo = _ServicesSoapClient.GetPatBasicInfo(UserId);
     Patient.UserId = basicInfo.UserId;
     Patient.UserName = basicInfo.UserName;
     Patient.Birthday = basicInfo.Birthday;
     Patient.Age = Convert.ToInt32(basicInfo.Age);
     Patient.Gender = basicInfo.Gender;
     Patient.GenderText = basicInfo.GenderText;
     Patient.BloodType = basicInfo.BloodTypeText;
     Patient.InsuranceType = basicInfo.InsuranceTypeText;
     Patient.Module = basicInfo.Module;
     return Patient;
 }
示例#5
0
        public ActionResult BasicProfile(string PatientId, string Role)
        {
            var user = Session["CurrentUser"] as UserAndRole;
            string DoctorId = user.UserId;
            Session["PatientId"] = PatientId;

            BasicProfileViewModel model = new BasicProfileViewModel();

            if (PatientId != null)
            {
                ViewBag.OperationInvalidFlag = "false";   //手机号输入框不显示

                if (Role == "Patient")
                {
                    //加载患者基本信息
                    ServiceReference.PatientBasicInfo basicInfo = new ServiceReference.PatientBasicInfo();
                    basicInfo = _ServicesSoapClient.GetPatBasicInfo(PatientId);
                    model.Patient.UserId = basicInfo.UserId;
                    model.Patient.UserName = basicInfo.UserName;
                    model.Patient.Birthday = basicInfo.Birthday;
                    model.Patient.Gender = basicInfo.Gender;
                    model.Patient.BloodType = basicInfo.BloodType;
                    model.Patient.InsuranceType = basicInfo.InsuranceType;

                    //加载患者详细信息
                    GetPatientInfoDetail(ref model);
                }
                else
                {
                    DataSet basicInfoDs = _ServicesSoapClient.GetDoctorInfo(PatientId);
                    if (basicInfoDs.Tables.Count > 0)
                    {
                        DataTable basicInfoDt = basicInfoDs.Tables[0];
                        model.Patient.UserId = basicInfoDt.Rows[0]["DoctorId"].ToString();
                        model.Patient.UserName = basicInfoDt.Rows[0]["DoctorName"].ToString();
                        model.Patient.Birthday = basicInfoDt.Rows[0]["Birthday"].ToString();
                        model.Patient.Gender = basicInfoDt.Rows[0]["Gender"].ToString();
                        model.Patient.BloodType = "";
                        model.Patient.InsuranceType = "";
                    }

                    var DetailInfo = _ServicesSoapClient.GetDoctorInfoDetail(PatientId);
                    if (DetailInfo!=null)
                    {
                        model.Patient.IDNo = DetailInfo.IDNo;
                        model.Occupation = DetailInfo.Occupation;
                        model.Nationality = DetailInfo.Nationality;
                        model.Phone = DetailInfo.PhoneNumber;
                        model.Address = DetailInfo.HomeAddress;
                        model.EmergencyContact = DetailInfo.EmergencyContact;
                        model.EmergencyContactNumber = DetailInfo.EmergencyContactPhoneNumber;
                    }
                }

                //加载操作医生未负责患者列表      20150629
                //model.PatientList = GetPotentialPatientList(DoctorId);

                return View(model);
            }
            else
            {
                ViewBag.OperationInvalidFlag = "true";        //显示手机号输入框

                //加载操作医生未负责患者列表           20150629
                //model.PatientList = GetPotentialPatientList(DoctorId);

                return View(model);
            }
        }
示例#6
0
        public ActionResult BasicProfile(string PatientId)
        {
            var user = Session["CurrentUser"] as UserAndRole;
            string DoctorId = user.UserId;
            Session["PatientId"] = PatientId;

            BasicProfileViewModel model = new BasicProfileViewModel();

            if (PatientId != null)
            {
                ViewBag.OperationInvalidFlag = "false";   //新建按钮的权限

                //加载患者基本信息
                ServiceReference.PatientBasicInfo basicInfo = new ServiceReference.PatientBasicInfo();
                basicInfo = _ServicesSoapClient.GetPatBasicInfo(PatientId);
                model.Patient.UserId = basicInfo.UserId;
                model.Patient.UserName = basicInfo.UserName;
                model.Patient.Birthday = basicInfo.Birthday;
                model.Patient.Gender = basicInfo.Gender;
                model.Patient.BloodType = basicInfo.BloodType;
                model.Patient.InsuranceType = basicInfo.InsuranceType;

                //加载患者详细信息
                GetPatientInfoDetail(ref model);

                //加载操作医生未负责患者列表
                model.PatientList = GetPotentialPatientList(DoctorId);

                return View(model);
            }
            else
            {
                ViewBag.OperationInvalidFlag = "true";        //新建按钮的权限

                //加载操作医生未负责患者列表
                model.PatientList = GetPotentialPatientList(DoctorId);

                return View(model);
            }
        }