Пример #1
0
        //检查是否有异常指标
        public bool IsExceptionData(List <PatientsData> datas, Dal.Patient patient)
        {
            PatientInfo patientInfo = new PatientInfo();
            var         hospitalId  = "";

            if (patient.Hospital != null)
            {
                hospitalId = patient.Hospital.Id.ToString();
            }
            var indicator   = patientInfo.GetIndicatorInfo(hospitalId, patient.Id);
            var isException = false;

            datas.ForEach(a =>
            {
                var currentInfoListDto = Mapper.Map <CurrentInfoListDto>(a);
                //var currentInfoListDto =
                //   new CurrentInfoListDto() {DataCode = a.DataCode, Unit = a.Unit, DataValue = a.DataValue};
                patientInfo.IndicatorJudge(indicator, currentInfoListDto);
                if (!currentInfoListDto.IsNomoal)
                {
                    isException = true;
                }
            });
            return(isException);
        }