163 lines
5.0 KiB
C#
163 lines
5.0 KiB
C#
using HL_FristAidPlatform_Bussiness;
|
|
using HL_FristAidPlatform_Help;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HL_FristAidPlatform_Service.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 院内干预表
|
|
/// </summary>
|
|
[Route("api/service/[controller]")]
|
|
[ApiController]
|
|
[ApiExplorerSettings(GroupName = "CZ")]
|
|
[HiddenApiFilter.HiddenApi]
|
|
public class T_Service_InterventionController : Controller
|
|
{
|
|
private T_Service_InterventionBLL bll = new T_Service_InterventionBLL();
|
|
|
|
/// <summary>
|
|
/// 保存急性脑梗死登记表
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveCerebralInfarction")]
|
|
[Authorize(Roles = "UPDATE")]
|
|
public JsonResult SaveCerebralInfarction(T_Service_Intervention_CerebralInfarctionModel model = null)
|
|
{
|
|
if (model == null)
|
|
{
|
|
return Json("参数为空");
|
|
}
|
|
return Json(bll.SaveCerebralInfarction(model));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据患者GUID查询急性脑梗死登记表
|
|
/// </summary>
|
|
/// <param name="patientGuid"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCerebralInfarctionByPatientGuid")]
|
|
[Authorize(Roles = "GET")]
|
|
public JsonResult GetCerebralInfarctionByPatientGuid(string patientGuid = "")
|
|
{
|
|
if (string.IsNullOrEmpty(patientGuid))
|
|
{
|
|
return Json("患者GUID不能为空");
|
|
}
|
|
return Json(bll.GetCerebralInfarctionByPatientGuid(patientGuid));
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 根据患者GUID查询脑出血登记表信息
|
|
/// </summary>
|
|
/// <param name="patientGuid"></param>
|
|
/// <param name="flag"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetHematencephalonByPatientGuid")]
|
|
[Authorize(Roles = "GET")]
|
|
public JsonResult GetHematencephalonByPatientGuid(string patientGuid = "")
|
|
{
|
|
if (string.IsNullOrEmpty(patientGuid))
|
|
{
|
|
return Json("患者GUID不能为空");
|
|
}
|
|
return Json(bll.GetHematencephalonByPatientGuid(patientGuid));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保存急性脑出血登记表
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveHematencephalon")]
|
|
[Authorize(Roles = "UPDATE")]
|
|
public JsonResult SaveHematencephalon(T_Service_Intervention_HematencephalonModel model = null)
|
|
{
|
|
if (model == null)
|
|
{
|
|
return Json("参数为空");
|
|
}
|
|
return Json(bll.SaveHematencephalon(model));
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 根据患者GUID查询动脉瘤诊疗登记表信息
|
|
/// </summary>
|
|
/// <param name="patientGuid"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetAneurysmByPatientGuid")]
|
|
[Authorize(Roles = "GET")]
|
|
public JsonResult GetAneurysmByPatientGuid(string patientGuid = "")
|
|
{
|
|
if (string.IsNullOrEmpty(patientGuid))
|
|
{
|
|
return Json("患者GUID不能为空");
|
|
}
|
|
return Json(bll.GetAneurysmByPatientGuid(patientGuid));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保存动脉瘤诊疗登记表
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveAneurysm")]
|
|
[Authorize(Roles = "UPDATE")]
|
|
public JsonResult SaveAneurysm(T_Service_Intervention_AneurysmModel model = null)
|
|
{
|
|
if (model == null)
|
|
{
|
|
return Json("参数为空");
|
|
}
|
|
return Json(bll.SaveAneurysm(model));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据患者GUID查询CEACAS登记表信息
|
|
/// </summary>
|
|
/// <param name="patientGuid"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCEACASByPatientGuid")]
|
|
[Authorize(Roles = "GET")]
|
|
public JsonResult GetCEACASByPatientGuid(string patientGuid = "")
|
|
{
|
|
if (string.IsNullOrEmpty(patientGuid))
|
|
{
|
|
return Json("患者GUID不能为空");
|
|
}
|
|
return Json(bll.GetCEACASByPatientGuid(patientGuid));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保存CEACAS登记表
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("SaveCEACAS")]
|
|
[Authorize(Roles = "UPDATE")]
|
|
public JsonResult SaveCEACAS(T_Service_Intervention_CEACASModel model = null)
|
|
{
|
|
if (model == null)
|
|
{
|
|
return Json("参数为空");
|
|
}
|
|
return Json(bll.SaveCEACAS(model));
|
|
}
|
|
}
|
|
}
|