|
@@ -1,5 +1,7 @@
|
|
package org.jeecg.modules.medical.controller;
|
|
package org.jeecg.modules.medical.controller;
|
|
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -13,9 +15,7 @@ import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.modules.medical.common.bo.*;
|
|
import org.jeecg.modules.medical.common.bo.*;
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterDeptDetailRequest;
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterDeptDetailRequest;
|
|
import org.jeecg.modules.medical.common.bo.before.AuditAdvanceWarningAuditDetailResponse;
|
|
import org.jeecg.modules.medical.common.bo.before.AuditAdvanceWarningAuditDetailResponse;
|
|
-import org.jeecg.modules.medical.common.bo.mid.AuditMidDetailListResponse;
|
|
|
|
-import org.jeecg.modules.medical.common.bo.mid.MidDeptAuditListPageRequest;
|
|
|
|
-import org.jeecg.modules.medical.common.bo.mid.ViolateRuleChildExportResponse;
|
|
|
|
|
|
+import org.jeecg.modules.medical.common.bo.mid.*;
|
|
import org.jeecg.modules.medical.common.bo.mid.request.AuditMidDetailListRequest;
|
|
import org.jeecg.modules.medical.common.bo.mid.request.AuditMidDetailListRequest;
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditDetailResponse;
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditDetailResponse;
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditViolateProjectStatisticsResponse;
|
|
import org.jeecg.modules.medical.common.bo.mid.response.MidAuditViolateProjectStatisticsResponse;
|
|
@@ -29,6 +29,7 @@ import org.jeecg.modules.medical.service.IAfterwardsAuditService;
|
|
import org.jeecg.modules.medical.service.IViolationAnalysisService;
|
|
import org.jeecg.modules.medical.service.IViolationAnalysisService;
|
|
import org.jeecg.modules.medical.service.impl.ExportUtilHelperService;
|
|
import org.jeecg.modules.medical.service.impl.ExportUtilHelperService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -196,6 +197,41 @@ public class ViolationAnalysisController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="事中-科室事中审查-明细详情-导出", notes="事中-科室事中审查-明细详情-导出")
|
|
|
|
+ @GetMapping(value = "/mid/dept/child/exportXls")
|
|
|
|
+ public ModelAndView midDeptAuditByDeptDetailExportXls(
|
|
|
|
+ @RequestParam("projectSearch") String projectSearch, //项目编码/名称
|
|
|
|
+ @RequestParam("medicalDeptCode") String medicalDeptCode, // 科室代码
|
|
|
|
+ @RequestParam("medicalInsRuleInfoCode") String medicalInsRuleInfoCode, //违反规则编码
|
|
|
|
+ @RequestParam("medicalInsRuleInfoName") String medicalInsRuleInfoName, // 违反规则名称
|
|
|
|
+ @RequestParam("reminderLevel") String reminderLevel, // 违反规则级别
|
|
|
|
+ HttpServletRequest req) {
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ AuditMidDetailListRequest request = new AuditMidDetailListRequest();
|
|
|
|
+ request.setMedicalDeptCode(medicalDeptCode);
|
|
|
|
+ request.setProjectSearch(projectSearch);
|
|
|
|
+ request.setMedicalInsRuleInfoCode(medicalInsRuleInfoCode);
|
|
|
|
+ request.setMedicalInsRuleInfoName(medicalInsRuleInfoName);
|
|
|
|
+ request.setReminderLevel(reminderLevel);
|
|
|
|
+
|
|
|
|
+ Map<String, String[]> parameterMap = req.getParameterMap();
|
|
|
|
+ List<AuditMidDetailListResponse> result = violationAnalysisService.loadMidAuditPageList(request, parameterMap);
|
|
|
|
+ List<ViolationMIdChildExportResponse> exportList2 = new ArrayList<>();
|
|
|
|
+ if (!CollectionUtil.isEmpty(result)) {
|
|
|
|
+ for (AuditMidDetailListResponse e : result) {
|
|
|
|
+ ViolationMIdChildExportResponse v = new ViolationMIdChildExportResponse();
|
|
|
|
+ BeanUtil.copyProperties(e, v);
|
|
|
|
+ exportList2.add(v);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> ViolationMIdChildExportResponse.class, "事中-科室事中审查-明细详情", exportList2);
|
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation(value="违规分析-事中违规项目统计-列表", notes="违规分析-违规项目统计")
|
|
@ApiOperation(value="违规分析-事中违规项目统计-列表", notes="违规分析-违规项目统计")
|
|
@GetMapping(value = "/mid/project/list")
|
|
@GetMapping(value = "/mid/project/list")
|
|
public Result<IPage<MidAuditViolateProjectStatisticsResponse>> midViolateProjectStatisticsList(String projectSearch, //项目类别
|
|
public Result<IPage<MidAuditViolateProjectStatisticsResponse>> midViolateProjectStatisticsList(String projectSearch, //项目类别
|
|
@@ -253,6 +289,38 @@ public class ViolationAnalysisController {
|
|
return ok;
|
|
return ok;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value="事中-事中违规项目统计-明细详情-导出", notes="事中-事中违规项目统计-明细详情")
|
|
|
|
+ @GetMapping(value = "/mid/project/child/exportXls")
|
|
|
|
+ public ModelAndView midDeptAuditByDeptDetailExportList(
|
|
|
|
+ @RequestParam("medicalProjectCode") String medicalProjectCode, //医保项目编码
|
|
|
|
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
|
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
|
+ HttpServletRequest req) {
|
|
|
|
+
|
|
|
|
+ if (!StringUtils.hasText( medicalProjectCode)) {
|
|
|
|
+ throw new JeecgBootException("违规项目编码不可为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ AuditMidDetailListRequest request = new AuditMidDetailListRequest();
|
|
|
|
+ request.setMedicalProjectCode(medicalProjectCode);
|
|
|
|
+
|
|
|
|
+ Map<String, String[]> parameterMap = req.getParameterMap();
|
|
|
|
+ List<AuditMidDetailListResponse> result = violationAnalysisService.loadMidAuditList(request, parameterMap);
|
|
|
|
+ List<ViolationMidProjectChildExportResponse> exportList2 = new ArrayList<>();
|
|
|
|
+ if (!CollectionUtils.isEmpty(result)) {
|
|
|
|
+ for (AuditMidDetailListResponse e : result) {
|
|
|
|
+ ViolationMidProjectChildExportResponse v = new ViolationMidProjectChildExportResponse();
|
|
|
|
+ BeanUtil.copyProperties(e, v);
|
|
|
|
+ exportList2.add(v);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> ViolationMidProjectChildExportResponse.class, "事中-事中违规项目统计-明细详情", exportList2);
|
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value="违规分析-事中规则类型统计-列表", notes="违规分析-事中规则类型统计-列表")
|
|
@ApiOperation(value="违规分析-事中规则类型统计-列表", notes="违规分析-事中规则类型统计-列表")
|
|
@GetMapping(value = "/mid/rule/list")
|
|
@GetMapping(value = "/mid/rule/list")
|
|
@@ -306,6 +374,35 @@ public class ViolationAnalysisController {
|
|
return ok;
|
|
return ok;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value="事中-规则类型统计-明细详情-导出", notes="事中-规则类型统计-明细详情-导出")
|
|
|
|
+ @GetMapping(value = "/mid/rule/child/exportXls")
|
|
|
|
+ public ModelAndView midRuleAuditByDeptDetailExportXls(
|
|
|
|
+ @RequestParam("medicalInsRuleInfoCode") String medicalInsRuleInfoCode, //违反规则code
|
|
|
|
+ HttpServletRequest req) {
|
|
|
|
+
|
|
|
|
+ if (!StringUtils.hasText(medicalInsRuleInfoCode)) {
|
|
|
|
+// return Result.error("违反规则代码不可为空");
|
|
|
|
+ throw new JeecgBootException("违反规则代码不可为空");
|
|
|
|
+ }
|
|
|
|
+ try {
|
|
|
|
+ AuditMidDetailListRequest request = new AuditMidDetailListRequest();
|
|
|
|
+ request.setMedicalInsRuleInfoCode(medicalInsRuleInfoCode);
|
|
|
|
+ Map<String, String[]> parameterMap = req.getParameterMap();
|
|
|
|
+ List<AuditMidDetailListResponse> export = violationAnalysisService.loadMidAuditPageList(request, parameterMap);
|
|
|
|
+ List<ViolationMidRuleChildExportResponse> exportList2 = new ArrayList<>();
|
|
|
|
+ if (!CollectionUtils.isEmpty(export)) {
|
|
|
|
+ for (AuditMidDetailListResponse e : export) {
|
|
|
|
+ ViolationMidRuleChildExportResponse v = new ViolationMidRuleChildExportResponse();
|
|
|
|
+ BeanUtil.copyProperties(e, v);
|
|
|
|
+ exportList2.add(v);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return exportUtilHelperService.commonExportXml(item -> ViolationMidRuleChildExportResponse.class, "事中-规则类型统计-明细详情-导出", exportList2);
|
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "违规分析-医嘱信息")
|
|
@ApiOperation(value = "违规分析-医嘱信息")
|
|
@GetMapping(value = "/audit/medicalorder/info")
|
|
@GetMapping(value = "/audit/medicalorder/info")
|
|
public Result<List<PrescriptionOrder>> loadMedicalOrderInfoResponseInfo(HttpServletRequest request, @RequestParam(value = "detialId", required = false) Integer detialId) {
|
|
public Result<List<PrescriptionOrder>> loadMedicalOrderInfoResponseInfo(HttpServletRequest request, @RequestParam(value = "detialId", required = false) Integer detialId) {
|
|
@@ -440,7 +537,7 @@ public class ViolationAnalysisController {
|
|
return Result.OK(result2);
|
|
return Result.OK(result2);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="事后-违规项目统计导出", notes="违规项目统计导出")
|
|
|
|
|
|
+ @ApiOperation(value="事后-违规项目统计-明细详情-导出", notes="违规项目统计导出")
|
|
@RequestMapping(value = "/after/project/exportXls")
|
|
@RequestMapping(value = "/after/project/exportXls")
|
|
public ModelAndView afterProjectExportXls(HttpServletRequest req,
|
|
public ModelAndView afterProjectExportXls(HttpServletRequest req,
|
|
String projectCode, //项目类别
|
|
String projectCode, //项目类别
|
|
@@ -549,7 +646,15 @@ public class ViolationAnalysisController {
|
|
afterDeptDetailRequest.setMedicalInsRuleInfoCode(medicalInsRuleInfoCode);
|
|
afterDeptDetailRequest.setMedicalInsRuleInfoCode(medicalInsRuleInfoCode);
|
|
Map<String, String[]> parameterMap = req.getParameterMap();
|
|
Map<String, String[]> parameterMap = req.getParameterMap();
|
|
List<AuditMidDetailListResponse> exportList = violationAnalysisService.loadAfterAuditPageList(request, parameterMap);
|
|
List<AuditMidDetailListResponse> exportList = violationAnalysisService.loadAfterAuditPageList(request, parameterMap);
|
|
- return exportUtilHelperService.commonExportXml(e -> ViolateRuleChildExportResponse.class, "事后-规则类型统计-明细详情", exportList);
|
|
|
|
|
|
+ List<ViolateRuleChildExportResponse> exportList2 = new ArrayList<>();
|
|
|
|
+ if (!CollectionUtils.isEmpty(exportList)) {
|
|
|
|
+ for (AuditMidDetailListResponse e : exportList) {
|
|
|
|
+ ViolateRuleChildExportResponse v = new ViolateRuleChildExportResponse();
|
|
|
|
+ BeanUtil.copyProperties(e, v);
|
|
|
|
+ exportList2.add(v);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return exportUtilHelperService.commonExportXml(e -> ViolateRuleChildExportResponse.class, "事后-规则类型统计-明细详情", exportList2);
|
|
} catch (UnsupportedEncodingException e) {
|
|
} catch (UnsupportedEncodingException e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|