|
@@ -70,19 +70,6 @@ public class RuleTestController {
|
|
|
@Autowired
|
|
|
private ResultOtherTransfusionFacade resultOtherTransfusionFacade;
|
|
|
|
|
|
- /**
|
|
|
- * 数据导出
|
|
|
- *
|
|
|
- * @param response
|
|
|
- * @param hospitalIdVO
|
|
|
- */
|
|
|
- @ApiOperation(value = "导出规则未使用映射关系[by:zhaops]",
|
|
|
- notes = "")
|
|
|
- @PostMapping("/exportExcel")
|
|
|
- @SysLogger("exportExcel")
|
|
|
- public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
|
|
|
- ruleTestFacade.exportExcel(response, hospitalIdVO);
|
|
|
- }
|
|
|
|
|
|
@ApiOperation(value = "全规则测试[zhaops]",
|
|
|
notes = "hospitalId: 医院Id <br>" +
|
|
@@ -103,16 +90,8 @@ public class RuleTestController {
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "开单合理性测试列表[zhaops]",
|
|
|
- notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
- "resultId: 结果id <br>" +
|
|
|
- "billType: 开单项类型(1:通用,2:输血) <br>")
|
|
|
- @PostMapping("/getResultBillPage")
|
|
|
- @SysLogger("getResultBillPage")
|
|
|
- public RespDTO<IPage<ResultBill>> getResultBillPage(@Valid @RequestBody ResultBillPageVO resultBillPageVO) {
|
|
|
- IPage<ResultBill> data = resultBillFacade.getPage(resultBillPageVO);
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
+
|
|
|
+ //region --------------------------规则测试------------------------------
|
|
|
|
|
|
@ApiOperation(value = "开单合理性规则测试[zhaops]",
|
|
|
notes = "hospitalId: 医院Id <br>" +
|
|
@@ -130,17 +109,6 @@ public class RuleTestController {
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "危急值测试列表[zhaops]",
|
|
|
- notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
- "resultId: 结果id <br>" +
|
|
|
- "criticalType: 危急值测试规则类型(1:检验,2:检查) <br>")
|
|
|
- @PostMapping("/getResultCriticalPage")
|
|
|
- @SysLogger("getResultCriticalPage")
|
|
|
- public RespDTO<IPage<ResultCritical>> getResultCriticalPage(@Valid @RequestBody ResultCriticalPageVO resultCriticalPageVO) {
|
|
|
- IPage<ResultCritical> data = resultCriticalFacade.getPage(resultCriticalPageVO);
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "危急值规则测试[zhaops]",
|
|
|
notes = "hospitalId: 医院Id <br>" +
|
|
|
"caseId: 测试用例id<br>" +
|
|
@@ -157,6 +125,67 @@ public class RuleTestController {
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "高危药品、手术规则测试[zhaops]",
|
|
|
+ notes = "hospitalId: 医院Id <br>" +
|
|
|
+ "caseId: 测试用例id<br>" +
|
|
|
+ "highriskType:高危测试规则类型(1:药品,2:手术) <br>")
|
|
|
+ @PostMapping("/highRiskRuleTest")
|
|
|
+ @SysLogger("highRiskRuleTest")
|
|
|
+ public RespDTO<Boolean> highRiskRuleTest(@Valid @RequestBody HighriskRuleVO highriskRuleVO) {
|
|
|
+ Boolean data = false;
|
|
|
+ if (highriskRuleVO.getHighriskType().equals(1)) {
|
|
|
+ data = ruleTestFacade.highriskDrugRuleTest(highriskRuleVO);
|
|
|
+ } else if (highriskRuleVO.getHighriskType().equals(2)) {
|
|
|
+ data = ruleTestFacade.highriskOperationRuleTest(highriskRuleVO);
|
|
|
+ }
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "其他值提醒规则测试[zhaops]",
|
|
|
+ notes = "hospitalId: 医院Id <br>" +
|
|
|
+ "caseId: 测试用例id<br>" +
|
|
|
+ "otherType:其他提醒测试规则类型(1:化验,2:辅检,3:输血) <br>")
|
|
|
+ @PostMapping("/otherRuleTest")
|
|
|
+ @SysLogger("otherRuleTest")
|
|
|
+ public RespDTO<Boolean> otherRuleTest(@Valid @RequestBody OtherRuleVO otherRuleVO) {
|
|
|
+ Boolean data = false;
|
|
|
+ if (otherRuleVO.getOtherType().equals(1)) {
|
|
|
+ data = ruleTestFacade.otherLisRuleTest(otherRuleVO);
|
|
|
+ } else if (otherRuleVO.getOtherType().equals(2)) {
|
|
|
+ data = ruleTestFacade.otherPacsRuleTest(otherRuleVO);
|
|
|
+ } else if (otherRuleVO.getOtherType().equals(3)) {
|
|
|
+ data = ruleTestFacade.otherTransfusionRuleTest(otherRuleVO);
|
|
|
+ }
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+ //endregion --------------------------规则测试------------------------------
|
|
|
+
|
|
|
+ //region --------------------------分页查询------------------------------
|
|
|
+
|
|
|
+ @ApiOperation(value = "开单合理性测试列表[zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>" +
|
|
|
+ "billType: 开单项类型(1:通用,2:输血) <br>")
|
|
|
+ @PostMapping("/getResultBillPage")
|
|
|
+ @SysLogger("getResultBillPage")
|
|
|
+ public RespDTO<IPage<ResultBill>> getResultBillPage(@Valid @RequestBody ResultBillPageVO resultBillPageVO) {
|
|
|
+ IPage<ResultBill> data = resultBillFacade.getPage(resultBillPageVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "危急值测试列表[zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>" +
|
|
|
+ "criticalType: 危急值测试规则类型(1:检验,2:检查) <br>")
|
|
|
+ @PostMapping("/getResultCriticalPage")
|
|
|
+ @SysLogger("getResultCriticalPage")
|
|
|
+ public RespDTO<IPage<ResultCritical>> getResultCriticalPage(@Valid @RequestBody ResultCriticalPageVO resultCriticalPageVO) {
|
|
|
+ IPage<ResultCritical> data = resultCriticalFacade.getPage(resultCriticalPageVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "高危药品测试列表[zhaops]",
|
|
|
notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
"resultId: 结果id <br>")
|
|
@@ -177,22 +206,6 @@ public class RuleTestController {
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "高危药品、手术规则测试[zhaops]",
|
|
|
- notes = "hospitalId: 医院Id <br>" +
|
|
|
- "caseId: 测试用例id<br>" +
|
|
|
- "highriskType:高危测试规则类型(1:药品,2:手术) <br>")
|
|
|
- @PostMapping("/highRiskRuleTest")
|
|
|
- @SysLogger("highRiskRuleTest")
|
|
|
- public RespDTO<Boolean> highRiskRuleTest(@Valid @RequestBody HighriskRuleVO highriskRuleVO) {
|
|
|
- Boolean data = false;
|
|
|
- if (highriskRuleVO.getHighriskType().equals(1)) {
|
|
|
- data = ruleTestFacade.highriskDrugRuleTest(highriskRuleVO);
|
|
|
- } else if (highriskRuleVO.getHighriskType().equals(2)) {
|
|
|
- data = ruleTestFacade.highriskOperationRuleTest(highriskRuleVO);
|
|
|
- }
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "其他值提醒(化验)测试列表[zhaops]",
|
|
|
notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
"resultId: 结果id <br>")
|
|
@@ -222,22 +235,82 @@ public class RuleTestController {
|
|
|
IPage<ResultOtherTransfusion> data = resultOtherTransfusionFacade.getPage(resultPageVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
+ //endregion --------------------------分页查询------------------------------
|
|
|
|
|
|
- @ApiOperation(value = "其他值提醒规则测试[zhaops]",
|
|
|
+ //region --------------------------导出------------------------------
|
|
|
+
|
|
|
+ @ApiOperation(value = "导出规则未使用映射关系[by:zhaops]",
|
|
|
+ notes = "")
|
|
|
+ @PostMapping("/exportExcel")
|
|
|
+ @SysLogger("exportExcel")
|
|
|
+ public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
|
|
|
+ ruleTestFacade.exportExcel(response, hospitalIdVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "开单合理性规则测试结果导出[by:zhaops]",
|
|
|
notes = "hospitalId: 医院Id <br>" +
|
|
|
"caseId: 测试用例id<br>" +
|
|
|
- "otherType:其他提醒测试规则类型(1:化验,2:辅检,3:输血) <br>")
|
|
|
- @PostMapping("/otherRuleTest")
|
|
|
- @SysLogger("otherRuleTest")
|
|
|
- public RespDTO<Boolean> otherRuleTest(@Valid @RequestBody OtherRuleVO otherRuleVO) {
|
|
|
- Boolean data = false;
|
|
|
- if (otherRuleVO.getOtherType().equals(1)) {
|
|
|
- data = ruleTestFacade.otherLisRuleTest(otherRuleVO);
|
|
|
- } else if (otherRuleVO.getOtherType().equals(2)) {
|
|
|
- data = ruleTestFacade.otherPacsRuleTest(otherRuleVO);
|
|
|
- } else if (otherRuleVO.getOtherType().equals(3)) {
|
|
|
- data = ruleTestFacade.otherTransfusionRuleTest(otherRuleVO);
|
|
|
- }
|
|
|
- return RespDTO.onSuc(data);
|
|
|
+ "billType: 开单项测试规则类型(1:通用,2:输血) <br>")
|
|
|
+ @PostMapping("/billExportExcel")
|
|
|
+ @SysLogger("billExportExcel")
|
|
|
+ public void billExportExcel(HttpServletResponse response, @RequestBody @Valid ResultBillPageVO resultBillPageVO) {
|
|
|
+ resultBillFacade.exportExcel(response, resultBillPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "危急值规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "hospitalId: 医院Id <br>" +
|
|
|
+ "caseId: 测试用例id<br>" +
|
|
|
+ "criticalType: 危急值测试规则类型(1:检验,2:检查) <br>")
|
|
|
+ @PostMapping("/criticalExportExcel")
|
|
|
+ @SysLogger("criticalExportExcel")
|
|
|
+ public void criticalExportExcel(HttpServletResponse response, @RequestBody @Valid ResultCriticalPageVO resultCriticalPageVO) {
|
|
|
+ resultCriticalFacade.exportExcel(response, resultCriticalPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "高危药品规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>")
|
|
|
+ @PostMapping("/highriskDrugExportExcel")
|
|
|
+ @SysLogger("highriskDrugExportExcel")
|
|
|
+ public void highriskDrugExportExcel(HttpServletResponse response, @RequestBody @Valid ResultHighriskDrugPageVO resultHighriskDrugPageVO) {
|
|
|
+ resultHighriskDrugFacade.exportExcel(response, resultHighriskDrugPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "高危手术规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>")
|
|
|
+ @PostMapping("/highriskOperationExportExcel")
|
|
|
+ @SysLogger("highriskOperationExportExcel")
|
|
|
+ public void highriskOperationExportExcel(HttpServletResponse response, @RequestBody @Valid ResultHighriskOperationPageVO resultHighriskOperationPageVO) {
|
|
|
+ resultHighriskOperationFacade.exportExcel(response, resultHighriskOperationPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "化验其他提醒规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>")
|
|
|
+ @PostMapping("/otherLisExportExcel")
|
|
|
+ @SysLogger("otherLisExportExcel")
|
|
|
+ public void otherLisExportExcel(HttpServletResponse response, @RequestBody @Valid ResultPageVO resultPageVO) {
|
|
|
+ resultOtherLisFacade.exportExcel(response, resultPageVO);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "辅检其他提醒规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>")
|
|
|
+ @PostMapping("/otherPacsExportExcel")
|
|
|
+ @SysLogger("otherPacsExportExcel")
|
|
|
+ public void otherPacsExportExcel(HttpServletResponse response, @RequestBody @Valid ResultPageVO resultPageVO) {
|
|
|
+ resultOtherPacsFacade.exportExcel(response, resultPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "输血其他提醒规则测试结果导出[by:zhaops]",
|
|
|
+ notes = "success: 成功标志(0:失败,1:成功) <br>" +
|
|
|
+ "resultId: 结果id <br>")
|
|
|
+ @PostMapping("/otherTransfusionExportExcel")
|
|
|
+ @SysLogger("otherTransfusionExportExcel")
|
|
|
+ public void otherTransfusionExportExcel(HttpServletResponse response, @RequestBody @Valid ResultPageVO resultPageVO) {
|
|
|
+ resultOtherTransfusionFacade.exportExcel(response, resultPageVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ //endregion --------------------------导出------------------------------
|
|
|
}
|