Exemplo n.º 1
0
 //临床-大类信息
 public ActionResult ClinicInfoDetail(string PatientId, string keycode)
 {
     //初始化
     ClinicInfoDetailViewModel ei = new ClinicInfoDetailViewModel();
     PDCHPFunctions.GetClinicInfoDetail(_ServicesSoapClient, ref ei, PatientId, keycode);
     return View(ei);
 }
Exemplo n.º 2
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;
            }
        }