StableVersion4.3/HL_FristAidPlatform_Service/Controllers/卒中系统/ApoplexyPatientReportContro...

56 lines
2.0 KiB
C#

using HL_FristAidPlatform_Bussiness;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace HL_FristAidPlatform_Service.Controllers
{
/// <summary>
/// 卒中患者信息上报
/// </summary>
[Route("api/service/[controller]")]
[ApiController]
[ApiExplorerSettings(GroupName = "CZ")]
[HiddenApiFilter.HiddenApi]
public class ApoplexyPatientReportController : Controller
{
private T_Service_PatientBLL bll = new T_Service_PatientBLL();
/// <summary>
/// 卒中可上报患者列表(填报完成)
/// </summary>
/// <param name="hospitalGuid"></param>
/// <param name="acZLType"></param>
/// <param name="name"></param>
/// <param name="acHzCode"></param>
/// <param name="cytimeOne"></param>
/// <param name="cytimeTwo"></param>
/// <param name="pageSize"></param>
/// <param name="pageIndex"></param>
/// <returns></returns>
[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));
}
/// <summary>
/// 单个患者上报 XML格式数据
/// </summary>
/// <param name="patientGuid"></param>
/// <returns></returns>
[HttpGet]
[Route("ReportSinglePatientXML")]
[Authorize(Roles = "GET")]
public JsonResult ReportSinglePatientXML(string patientGuid)
{
return Json(bll.ReportSinglePatientXML(patientGuid));
}
}
}