using HL_FristAidPlatform_Bussiness;
using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_Help.Model;
using HL_FristAidPlatform_Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace HL_FristAidPlatform_Service.Controllers
{
///
/// 急诊分诊统计
///
[Route("api/service/[controller]")]
[ApiController]
[ApiExplorerSettings(GroupName = "JZFZ")]
[HiddenApiFilter.HiddenApi]
public class T_Service_EmergencyStatisticsController : Controller
{
T_Service_EmergencyStatisticsBLL BLL = new T_Service_EmergencyStatisticsBLL();
///
/// 分诊统计
///
///
///
///
/// 1.分诊人数统计 2 三无人员统计 3 死亡人数统计
///
[HttpGet]
[Route("GetTriageStatistics")]
[Authorize(Roles = "GET")]
public JsonResult GetTriageStatistics(string hospitalGuid, string starTime, string endTime, int type)
{
if (string.IsNullOrEmpty(hospitalGuid))
return Json("医院唯一标识不能为空");
if (type <= 0)
return Json("查询类型不能为空");
return Json(BLL.GetTriageStatistics(hospitalGuid, starTime, endTime, type));
}
///
/// 分诊人数总数统计
///
///
///
///
///
///
[HttpGet]
[Route("GetQuantityModel")]
[Authorize(Roles = "GET")]
public JsonResult GetQuantityModel(string hospitalGuid, string starTime, string endTime)
{
if (string.IsNullOrEmpty(hospitalGuid))
return Json("医院唯一标识不能为空");
return Json(BLL.GetQuantityModel(hospitalGuid, starTime, endTime));
}
///
/// 急诊分诊统计 三无人员占比统计 病情等级统计 死亡人数统计
///
///
///
///
///
[HttpGet]
[Route("GetTriageProportion")]
[Authorize(Roles = "GET")]
public JsonResult GetTriageProportion(string starTime, string endTime)
{
return Json(BLL.GetTriageProportion(starTime, endTime));
}
///
/// 病因例数统计
///
///
///
///
///
[HttpGet]
[Route("GetEtiologicalStatistics")]
[Authorize(Roles = "GET")]
public JsonResult GetEtiologicalStatistics(string hospitalGuid, string starTime, string endTime)
{
if (string.IsNullOrEmpty(hospitalGuid))
return Json("医院唯一标识不能为空");
return Json(BLL.GetEtiologicalStatistics(hospitalGuid, starTime, endTime));
}
///
/// 病种统计个数 按月分组
///
///
///
///
///
///
[HttpGet]
[Route("GetPathogenyStatistics")]
[Authorize(Roles = "GET")]
public JsonResult GetPathogenyStatistics(string hospitalGuid="", int pathogenyID = 0, string startTime="" , string endTime = "")
{
if (string.IsNullOrEmpty(hospitalGuid))
return Json("医院唯一标识不能为空");
if (pathogenyID<=0)
return Json("病种ID不能为空");
return Json(BLL.GetPathogenyStatistics(hospitalGuid, pathogenyID, startTime, endTime));
}
}
}