113 lines
4.2 KiB
C#
113 lines
4.2 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 急诊分诊统计
|
|
/// </summary>
|
|
[Route("api/service/[controller]")]
|
|
[ApiController]
|
|
[ApiExplorerSettings(GroupName = "JZFZ")]
|
|
[HiddenApiFilter.HiddenApi]
|
|
public class T_Service_EmergencyStatisticsController : Controller
|
|
{
|
|
T_Service_EmergencyStatisticsBLL BLL = new T_Service_EmergencyStatisticsBLL();
|
|
|
|
/// <summary>
|
|
/// 分诊统计
|
|
/// </summary>
|
|
/// <param name="hospitalGuid"></param>
|
|
/// <param name="starTime"></param>
|
|
/// <param name="endTime"></param>
|
|
/// <param name="type">1.分诊人数统计 2 三无人员统计 3 死亡人数统计</param>
|
|
/// <returns></returns>
|
|
[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));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 分诊人数总数统计
|
|
/// </summary>
|
|
/// <param name="hospitalGuid"></param>
|
|
/// <param name="starTime"></param>
|
|
/// <param name="endTime"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[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));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 急诊分诊统计 三无人员占比统计 病情等级统计 死亡人数统计
|
|
/// </summary>
|
|
/// <param name="starTime"></param>
|
|
/// <param name="endTime"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetTriageProportion")]
|
|
[Authorize(Roles = "GET")]
|
|
public JsonResult GetTriageProportion(string starTime, string endTime)
|
|
{
|
|
return Json(BLL.GetTriageProportion(starTime, endTime));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 病因例数统计
|
|
/// </summary>
|
|
/// <param name="hospitalGuid"></param>
|
|
/// <param name="starTime"></param>
|
|
/// <param name="endTime"></param>
|
|
/// <returns></returns>
|
|
[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));
|
|
}
|
|
|
|
/// <summary>
|
|
/// 病种统计个数 按月分组
|
|
/// </summary>
|
|
/// <param name="hospitalGuid"></param>
|
|
/// <param name="pathogenyID"></param>
|
|
/// <param name="startTime"></param>
|
|
/// <param name="endTime"></param>
|
|
/// <returns></returns>
|
|
[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));
|
|
}
|
|
}
|
|
}
|