コード例 #1
0
ファイル: GetHmJsonStr.cs プロジェクト: lingxibai0108/HM_Cdss
        /// <summary>
        /// 惠每初始化结构参数
        /// </summary>
        /// <param name="_BrInfo">病人实体类</param>
        /// <returns></returns>
        public static string GetHMBrInfo_Json(ClsBrInfo _BrInfo)
        {
            HMCSInfo HMBrxx = new HMCSInfo();

            HMBrxx.autherKey    = GlobalConfigFile.AutherKey;
            HMBrxx.userGuid     = _BrInfo.Brid.ToString();
            HMBrxx.serialNumber = _BrInfo.Brid.ToString();
            HMBrxx.doctorGuid   = _BrInfo.ZzysId.ToString();
            HMBrxx.doctorName   = _BrInfo.ZzysMc;
            HMBrxx.department   = _BrInfo.SybqMc.ToString();
            HMBrxx.hospitalGuid = GlobalConfigFile.HospitalGuid;
            HMBrxx.hospitalName = GlobalConfigFile.HospitalName;
            HMBrxx.customEnv    = 1;//
            HMBrxx.flag         = "m";
            string json = JsonConvert.SerializeObject(HMBrxx);

            return(json);
        }
コード例 #2
0
ファイル: frmMayson.cs プロジェクト: lingxibai0108/HM_Cdss
        /// <summary>
        /// 参数病人数据和诊断
        /// </summary>
        /// <param name="brid"></param>
        /// <param name="zyh"></param>
        private Common_HMEntity InitPatitenBaseInfo(string brid, string zyh)
        {
            ClsBrInfoBLL hmbll     = new ClsBrInfoBLL();
            ClsBrInfo    clsBrInfo = hmbll.GetBrInfo(int.Parse(brid), zyh)[0];
            DataTable    dt1       = hmbll.GetHmDiagnose(Convert.ToInt32(brid));
            //病人基本信息
            Common_HMEntity _common_HMEntity = new Common_HMEntity();
            string          strZyh           = clsBrInfo.ZYID;

            _common_HMEntity.userGuid            = clsBrInfo.ZYID;
            _common_HMEntity.serialNumber        = brid;
            _common_HMEntity.patientName         = clsBrInfo.XM;
            _common_HMEntity.doctorGuid          = Convert.ToString(clsBrInfo.ZYYS);
            _common_HMEntity.doctorName          = clsBrInfo.YSXM;
            _common_HMEntity.enableQCRemind      = 1;
            _common_HMEntity.admissionTime       = clsBrInfo.RYSJ;
            _common_HMEntity.inpatientDepartment = clsBrInfo.KSMC;
            _common_HMEntity.patientInfo         = new PatientInfo();
            _common_HMEntity.patientInfo.age     = double.Parse(clsBrInfo.NL);
            string ageType = GetAge(clsBrInfo.CSRQ, DateTime.Now);

            _common_HMEntity.patientInfo.ageType = ageType;
            if (clsBrInfo.XBMC == "男")
            {
                _common_HMEntity.patientInfo.gender = 1;
            }
            else if (clsBrInfo.XBMC == "女")
            {
                _common_HMEntity.patientInfo.gender = 0;
            }
            else
            {
                _common_HMEntity.patientInfo.gender = 2;
            }
            if (clsBrInfo.HYZK == "已婚")
            {
                _common_HMEntity.patientInfo.maritalStatus = 1;
            }
            else if (clsBrInfo.HYZK == "未婚")
            {
                _common_HMEntity.patientInfo.maritalStatus = 0;
            }
            else
            {
                _common_HMEntity.patientInfo.maritalStatus = 2;
            }
            //ClsHuiMei._common_HMEntity.patientInfo.pregnancyStatus = int.Parse(clsBrInfo.Rows[0][""].ToString());
            //已经明确诊断
            if (dt1 != null && dt1.Rows.Count > 0)
            {
                _common_HMEntity.definiteDiagnosis = new List <DefiniteDiagnosis>();
                for (int i = 0; i < dt1.Rows.Count; i++)
                {
                    DefiniteDiagnosis dd = new DefiniteDiagnosis();
                    dd.diseaseType    = int.Parse(dt1.Rows[i]["DiagnoseType"].ToString());
                    dd.id             = dt1.Rows[i]["ICDCode"].ToString();
                    dd.name           = dt1.Rows[i]["ICDTitle"].ToString();
                    dd.narecordTimeme = dt1.Rows[i]["DiagnoseDate"].ToString();
                    _common_HMEntity.definiteDiagnosis.Add(dd);
                }
            }
            return(_common_HMEntity);
        }
コード例 #3
0
ファイル: GetHmJsonStr.cs プロジェクト: lingxibai0108/HM_Cdss
 public GetHmJsonStr(ClsBrInfo _brInfo)
 {
     brInfo = _brInfo;
 }