修改心电首页统计
This commit is contained in:
parent
0e2a385d1b
commit
50563837dd
@ -352,6 +352,16 @@ public class PatientexamlistController {
|
|||||||
return success(patientexamlistCountVO);
|
return success(patientexamlistCountVO);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@GetMapping("/EcgWholeDiagFlagCount")
|
||||||
|
@Operation(summary = "心电首页饼状图统计")
|
||||||
|
public CommonResult<PatientexamlistCountVO> GetEcgWholeDiagFlagCount() {
|
||||||
|
//获取当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
PatientexamlistCountVO patientexamlistCountVO = patientexamlistService.GetEcgAnalysisData(user.getOrgId());
|
||||||
|
return success(patientexamlistCountVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/GetDateYYZDYXCount")
|
@GetMapping("/GetDateYYZDYXCount")
|
||||||
@Operation(summary = "首页折线图统计")
|
@Operation(summary = "首页折线图统计")
|
||||||
@ -363,6 +373,16 @@ public class PatientexamlistController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/GetEcgDateYYZDYXCount")
|
||||||
|
@Operation(summary = "心电首页折线图统计")
|
||||||
|
public CommonResult<List<PatientexamlistCountVO>> GetEcgDateYYZDYXCount() {
|
||||||
|
//获取当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
List<PatientexamlistCountVO> patientexamlistCountVO = patientexamlistService.GetEcgDateWholeDiagFlagCount(user.getOrgId());
|
||||||
|
return success(patientexamlistCountVO);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/CollectAndCancellation")
|
@GetMapping("/CollectAndCancellation")
|
||||||
@Operation(summary = "收藏以及取消")
|
@Operation(summary = "收藏以及取消")
|
||||||
public CommonResult<Boolean> CollectAndCancellation(@RequestParam("id") String id, @RequestParam("type") String type) {
|
public CommonResult<Boolean> CollectAndCancellation(@RequestParam("id") String id, @RequestParam("type") String type) {
|
||||||
|
@ -27,4 +27,9 @@ public class PatientexamlistCountVO {
|
|||||||
|
|
||||||
@Schema(description = "日期")
|
@Schema(description = "日期")
|
||||||
private String date;
|
private String date;
|
||||||
|
@Schema(description = "危急值")
|
||||||
|
private String wjz;
|
||||||
|
|
||||||
|
@Schema(description = "申请")
|
||||||
|
private String sq;
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,20 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
@Select(" SELECT COUNT(*) AS totalcount, SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx " +
|
@Select(" SELECT COUNT(*) AS totalcount, SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx " +
|
||||||
" ,SUM( CASE WHEN gender = '男' THEN 1 ELSE 0 END ) AS F,SUM( CASE WHEN gender = '女' THEN 1 ELSE 0 END ) AS M FROM tb_patientexamlist WHERE examDate IS NOT NULL and orgId=#{orgId}")
|
" ,SUM( CASE WHEN gender = '男' THEN 1 ELSE 0 END ) AS F,SUM( CASE WHEN gender = '女' THEN 1 ELSE 0 END ) AS M FROM tb_patientexamlist WHERE examDate IS NOT NULL and orgId=#{orgId}")
|
||||||
PatientexamlistCountVO GetWholeDiagFlagCount(@Param("orgId") String orgId);
|
PatientexamlistCountVO GetWholeDiagFlagCount(@Param("orgId") String orgId);
|
||||||
|
//查询心电的已分析数据的男女是否申请危急值统计
|
||||||
|
@Select("SELECT\n" +
|
||||||
|
" COUNT(*) AS totalcount,\n" +
|
||||||
|
" SUM( CASE WHEN gender = '男' THEN 1 ELSE 0 END ) AS F,\n" +
|
||||||
|
" SUM( CASE WHEN gender = '女' THEN 1 ELSE 0 END ) AS M ,\n" +
|
||||||
|
" SUM( CASE WHEN warning = '1' THEN 1 ELSE 0 END ) AS wjz ,\n" +
|
||||||
|
" SUM( CASE WHEN applicationDate is not null THEN 1 ELSE 0 END ) AS sq \n" +
|
||||||
|
"FROM\n" +
|
||||||
|
" tb_patientexamlist \n" +
|
||||||
|
"WHERE\n" +
|
||||||
|
" examDate IS NOT NULL and deviceType='ECG'\n" +
|
||||||
|
" AND orgId = #{orgId}")
|
||||||
|
PatientexamlistCountVO GetEcgPatientAnalysisData(@Param("orgId") String orgId);
|
||||||
|
|
||||||
|
|
||||||
//统计一周内的数据已检查数据的阴性阳性重大阳性
|
//统计一周内的数据已检查数据的阴性阳性重大阳性
|
||||||
@Select("SELECT "
|
@Select("SELECT "
|
||||||
@ -119,6 +133,27 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
+ " ORDER BY date")
|
+ " ORDER BY date")
|
||||||
List<PatientexamlistCountVO> GetDateYYZDCount(@Param("orgId") String orgId);
|
List<PatientexamlistCountVO> GetDateYYZDCount(@Param("orgId") String orgId);
|
||||||
|
|
||||||
|
//统计一周内的心电上级申请和危急值统计
|
||||||
|
@Select("SELECT\n" +
|
||||||
|
" DATE_FORMAT( examDate, '%Y-%m-%d' ) AS DATE,\n" +
|
||||||
|
" COUNT(*) AS totalcount,\n" +
|
||||||
|
" SUM( CASE WHEN warning = '1' THEN 1 ELSE 0 END ) AS wjz,\n" +
|
||||||
|
" SUM( CASE WHEN applicationDate IS NOT NULL THEN 1 ELSE 0 END ) AS sq \n" +
|
||||||
|
"FROM\n" +
|
||||||
|
" tb_patientexamlist \n" +
|
||||||
|
"WHERE\n" +
|
||||||
|
" examDate IS NOT NULL \n" +
|
||||||
|
" AND deviceType = 'ECG' \n" +
|
||||||
|
" AND examDate >= CURDATE() - INTERVAL 7 DAY \n" +
|
||||||
|
" AND orgId = #{orgId}\n" +
|
||||||
|
"GROUP BY\n" +
|
||||||
|
"DATE \n" +
|
||||||
|
"ORDER BY\n" +
|
||||||
|
"DATE")
|
||||||
|
List<PatientexamlistCountVO> GetEcgDateYYZDCount(@Param("orgId") String orgId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//云胶片功能
|
//云胶片功能
|
||||||
@Select(" SELECT\n" +
|
@Select(" SELECT\n" +
|
||||||
" t1.ID as id, \n" +
|
" t1.ID as id, \n" +
|
||||||
|
@ -126,9 +126,13 @@ public interface PatientexamlistService extends IService<PatientexamlistDO> {
|
|||||||
//获取已检查的阴性阳性重大阳性统计
|
//获取已检查的阴性阳性重大阳性统计
|
||||||
PatientexamlistCountVO GetWholeDiagFlagCount(String orgId);
|
PatientexamlistCountVO GetWholeDiagFlagCount(String orgId);
|
||||||
|
|
||||||
|
PatientexamlistCountVO GetEcgAnalysisData(String orgId);
|
||||||
|
|
||||||
//获取一周已检查的阴性阳性重大阳性统计
|
//获取一周已检查的阴性阳性重大阳性统计
|
||||||
List<PatientexamlistCountVO> GetDateWholeDiagFlagCount(String orgId);
|
List<PatientexamlistCountVO> GetDateWholeDiagFlagCount(String orgId);
|
||||||
|
|
||||||
|
//获取一周心电的上级申请和危急值统计
|
||||||
|
List<PatientexamlistCountVO> GetEcgDateWholeDiagFlagCount(String orgId);
|
||||||
/**
|
/**
|
||||||
* 云胶片功能
|
* 云胶片功能
|
||||||
* getCheckRecord
|
* getCheckRecord
|
||||||
|
@ -347,12 +347,22 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
|
|||||||
return patientexamlistMapper.GetWholeDiagFlagCount(orgId);
|
return patientexamlistMapper.GetWholeDiagFlagCount(orgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PatientexamlistCountVO GetEcgAnalysisData(String orgId) {
|
||||||
|
return patientexamlistMapper.GetEcgPatientAnalysisData(orgId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PatientexamlistCountVO> GetDateWholeDiagFlagCount(String orgId) {
|
public List<PatientexamlistCountVO> GetDateWholeDiagFlagCount(String orgId) {
|
||||||
return patientexamlistMapper.GetDateYYZDCount(orgId);
|
return patientexamlistMapper.GetDateYYZDCount(orgId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PatientexamlistCountVO> GetEcgDateWholeDiagFlagCount(String orgId) {
|
||||||
|
return patientexamlistMapper.GetEcgDateYYZDCount(orgId);
|
||||||
|
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getCheckRecord(String regId, String orgId) {
|
public Map<String, Object> getCheckRecord(String regId, String orgId) {
|
||||||
Map<String, Object> _out = new HashMap<>();
|
Map<String, Object> _out = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user