示例#1
0
        //传入患者Id
        public ActionResult ClinicalProfileLoadByVisitId(string UserId, string VisitId)
        {
            Models.PatientBasicInfo model = new Models.PatientBasicInfo();
            model.UserId = UserId;
            model.VisitId = VisitId;

            return View(model);
        }
示例#2
0
        //传入患者Id
        public ActionResult ClinicalProfile(string UserId, string Newer)
        {
            bool Set = true;
            Models.PatientBasicInfo ClinicalProfile = new Models.PatientBasicInfo();
            if (Newer == "new")
            {
                string VisitId = _ServicesSoapClient.GetNoByNumberingType(8);
                DateTime ClinicDate = Convert.ToDateTime(_ServicesSoapClient.GetServerTime());
                string HospitalCode = "HJZYY";
                string Department = "41";
                var user = Session["CurrentUser"] as UserAndRole;
                bool flag = _ServicesSoapClient.SetOutPatientInfo(UserId, VisitId, ClinicDate, HospitalCode, Department, user.UserName, user.UserId, user.TerminalName, user.TerminalIP, user.DeviceType);
                if (flag == false)
                {
                    Set = false;
                }
            }
            //加载患者基本信息
            ClinicalProfile = GetPatientBasicInfo(UserId);
            //加载患者就诊信息列表,下拉框
            ClinicalProfile.ClinicalInfoList = GetClinicalInfoList(UserId);
            if (Newer == "new" && Set == true)
            {
                ClinicalProfile.LatestClinicalInfo = ClinicalProfile.ClinicalInfoList[ClinicalProfile.ClinicalInfoList.Count - 1].Value;
            }

            return View(ClinicalProfile);
        }
示例#3
0
        //加载操作医生未负责患者列表
        public List<Models.PatientBasicInfo> GetPotentialPatientList(string DoctorId)
        {
            DataSet patientListDs = _ServicesSoapClient.GetPatListByDoctorId(DoctorId);
            List<Models.PatientBasicInfo> patientList = new List<Models.PatientBasicInfo>();
            if (patientListDs.Tables.Count != 0)
            {
                DataTable patientListDt = patientListDs.Tables[0];

                foreach (DataRow dr in patientListDt.Rows)
                {
                    Models.PatientBasicInfo item = new Models.PatientBasicInfo();
                    item.UserId = dr["UserId"].ToString();
                    item.UserName = dr["UserName"].ToString();
                    item.Gender = dr["Gender"].ToString();
                    item.Age = Convert.ToInt32(dr["Age"]);
                    item.Module = dr["Module"].ToString();

                    patientList.Add(item);
                }
            }
            return patientList;
        }
示例#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
        //传入患者Id
        public ActionResult ClinicalProfile(string UserId)
        {
            Models.PatientBasicInfo ClinicalProfile = new Models.PatientBasicInfo();
            //加载患者基本信息
            ClinicalProfile = GetPatientBasicInfo(UserId);
            //加载患者就诊信息列表,下拉框
            ClinicalProfile.ClinicalInfoList = GetClinicalInfoList(UserId);

            return View(ClinicalProfile);
        }
示例#6
0
 //初始化ViewModel中的患者列表
 public List<Models.PatientBasicInfo> InitialPatientList(DataTable Patients)
 {
     List<Models.PatientBasicInfo> PatientList = new List<Models.PatientBasicInfo>();
     //string module = Patients.TableName;
     foreach (DataRow item in Patients.Rows)
     {
         Models.PatientBasicInfo patientbasic = new Models.PatientBasicInfo();
         patientbasic.UserName = item["PatientName"].ToString();
         patientbasic.UserId = item["PatientId"].ToString();
         if (item["Age"] != null && item["Age"].ToString() != "")
         {
             patientbasic.Age = Convert.ToInt32(item["Age"].ToString());
         }
         patientbasic.Gender = item["Gender"].ToString();
         patientbasic.Diagnosis = item["Diagnosis"].ToString();
         patientbasic.Module = item["Module"].ToString();
         patientbasic.AlertNumber = Convert.ToInt32(item["AlertNumber"]);
         patientbasic.CareLevel = Convert.ToInt32(item["CareLevel"]);
         //patientbasic.singleModule = Patients.TableName != "" ? Patients.TableName : "";
         patientbasic.singleModule = item["ModuleType"].ToString();
         PatientList.Add(patientbasic);
     }
     return PatientList;
 }