58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using HL_FristAidPlatform_Bussiness;
|
|
using HL_FristAidPlatform_Help;
|
|
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 ApoplexyPatientTranController : Controller
|
|
{
|
|
ApoplexyPatientServiceBLL bll = new ApoplexyPatientServiceBLL();
|
|
|
|
/// <summary>
|
|
/// 更新或新增住院治疗信息
|
|
/// 1.住院治疗表
|
|
/// 2.CEA/CAS 术后药物治疗表
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveHospitalization")]
|
|
[Authorize(Roles = "ADD")]
|
|
public JsonResult SaveHospitalization(HospitalizationModel model)
|
|
{
|
|
if (string.IsNullOrEmpty(model.PatientGuid))
|
|
{
|
|
return Json("参数错误:患者GUID不能为空");
|
|
}
|
|
return Json(bll.SaveHospitalization(model));
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 更新或新增患者转归信息
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveTurnOver")]
|
|
[Authorize(Roles = "ADD")]
|
|
public JsonResult SaveTurnOver(PatientTurnOverModel model)
|
|
{
|
|
if (string.IsNullOrEmpty(model.PatientGuid))
|
|
{
|
|
return Json("参数错误:患者GUID不能为空");
|
|
}
|
|
return Json(bll.SaveTurnOver(model));
|
|
|
|
}
|
|
}
|
|
}
|