using HL_FristAidPlatform_Bussiness; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace HL_FristAidPlatform_Service.Controllers { /// /// 卒中患者信息上报 /// [Route("api/service/[controller]")] [ApiController] [ApiExplorerSettings(GroupName = "CZ")] [HiddenApiFilter.HiddenApi] public class ApoplexyPatientReportController : Controller { private T_Service_PatientBLL bll = new T_Service_PatientBLL(); /// /// 卒中可上报患者列表(填报完成) /// /// /// /// /// /// /// /// /// /// [HttpGet] [Route("GetApoplexyReportPatientList")] [Authorize(Roles = "GET")] public JsonResult GetApoplexyReportPatientList(string hospitalGuid = "", string acZLType = "", string name = "", string acHzCode = "", string cytimeOne = "", string cytimeTwo = "", int pageSize = 20, int pageIndex = 1) { if (string.IsNullOrEmpty(hospitalGuid) ) { return Json("医院GUID不能为空"); } return Json(bll.GetApoplexyReportPatientList(hospitalGuid, acZLType, name, acHzCode, cytimeOne, cytimeTwo, pageSize, pageIndex)); } /// /// 单个患者上报 XML格式数据 /// /// /// [HttpGet] [Route("ReportSinglePatientXML")] [Authorize(Roles = "GET")] public JsonResult ReportSinglePatientXML(string patientGuid) { return Json(bll.ReportSinglePatientXML(patientGuid)); } } }