using HL_FristAidPlatform_DataBase; using HL_FristAidPlatform_Help; using HL_FristAidPlatform_IDataBase; using HL_FristAidPlatform_Models; namespace HL_FristAidPlatform_Bussiness { public class T_Service_FirstAid_PatientGCSBLL { IT_Service_FirstAid_PatientGCS service = new T_Service_FirstAid_PatientGCSDB(); /// /// 新增CGS评分 /// /// /// public MessageModel Add(FirstAid_PatientGCSModel model) { T_Service_PatientGCS cgs = new T_Service_PatientGCS(); cgs.PatientGUID = model.PatientGUID; cgs.EyesOpenScore = model.EyesOpenScore; cgs.VerbalResponseScore = model.VerbalResponseScore; cgs.LimbExerciseScore = model.LimbExerciseScore; cgs.CreateUser = model.CreateUser; cgs.TotalScore = model.TotalScore; if (model.GCSLevel <= 0) { if (cgs.TotalScore >= 13 && cgs.TotalScore <= 14) { cgs.GCSLevel = 1; } else if (cgs.TotalScore >= 9 && cgs.TotalScore <= 12) { cgs.GCSLevel = 2; } else if (cgs.TotalScore >= 3 && cgs.TotalScore <= 8) { cgs.GCSLevel = 3; } } else { cgs.GCSLevel = model.GCSLevel; } if (service.Add(cgs)) { return new MessageModel { Success = true, Msg = "操作成功" }; } else { return new MessageModel { Success = true, Msg = "操作失败" }; } } /// /// 查看详情 /// /// /// public PatientGCSModel Get(string guid) { return service.Get(guid); } /// /// 查看所有评分列表 /// /// /// public TableModel GetList(string patientGuid) { return service.GetList(patientGuid); } /// /// 查看所有评分列表 /// /// /// public TableModel GetPatientCGSList(string patientGuid) { return service.GetPatientCGSList(patientGuid); } } }