Пример #1
0
        public ResultPakage <CurrentInfoReturnDto> GetExcpetRecordInfoList(string startDate, string endDate, int patientId)
        {
            Db  db     = new Db();
            var openid = db.Patients.Where(a => a.Id == patientId).Select(a => a.User.OpenId).FirstOrDefault();

            PatientInfo patientInfo = new PatientInfo();
            var         list        = patientInfo.GetCurrentDayInfoList(startDate, endDate, openid);
            List <CurrentInfoListDto> dulToRemove = new List <CurrentInfoListDto>();
            //移除正常指标,只看异常的


            var newrecord = list.Result.MyRecord.Select(a => a.Where(b => b.IsNomoal == false).ToList()).Where(a => a.Count > 0).ToList();

            list.Result.MyRecord = newrecord;



            var newreport = list.Result.MyReport.Select(a => a.Where(b => b.IsNomoal == false || b.ReportName != null).ToList()).Where(a => a.Count > 1).ToList();

            list.Result.MyReport = newreport;
            return(list);
        }
Пример #2
0
        public ResultPakage <CurrentInfoReturnDto> GetCurrentDayInfoList(string queryDate, string openId)
        {
            PatientInfo patientInfo = new PatientInfo();

            return(patientInfo.GetCurrentDayInfoList(queryDate, queryDate, openId));
        }