|
@@ -1034,6 +1034,49 @@ public class TestFacade {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 检查结果与项目重复开立规则测试API
|
|
|
+ *
|
|
|
+ * @param file
|
|
|
+ */
|
|
|
+ public Map<String, Object> testPacsOrderNeedlessProcess(MultipartFile file, TestLineVO testLineVO) {
|
|
|
+ long start = System.currentTimeMillis();
|
|
|
+ List<IndicationPushVO> indicationPushVOList = new ArrayList<>();
|
|
|
+ List<TestIndicationVO> data = ExcelUtils.importExcelMultiSheets(file, 0, 1, testLineVO.getSheetIndex(), TestIndicationVO.class);
|
|
|
+ for (TestIndicationVO bean : data) {
|
|
|
+ if (StringUtil.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
|
+ indicationPushVO.setRuleType("2");
|
|
|
+ indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
+ if (StringUtil.isNotBlank(bean.getPacsOrderName())) {
|
|
|
+ List<Pacs> pacsOrder = new ArrayList<>();
|
|
|
+ Pacs pacsBean = new Pacs();
|
|
|
+ pacsBean.setName(bean.getPacsOrderName());
|
|
|
+ pacsBean.setUniqueName(bean.getPacsOrderName());
|
|
|
+ pacsBean.setDateValue("2021-01-28 00:00:00");
|
|
|
+ pacsOrder.add(pacsBean);
|
|
|
+ indicationPushVO.setPacsOrder(pacsOrder);
|
|
|
+ }
|
|
|
+
|
|
|
+ List<Pacs> pacsList = new ArrayList<>();
|
|
|
+ Pacs pacsBean = new Pacs();
|
|
|
+ pacsBean.setName(bean.getPacsOrderName());
|
|
|
+ pacsBean.setUniqueName(bean.getPacsOrderName());
|
|
|
+ pacsBean.setResult(bean.getRuleContent());
|
|
|
+ pacsBean.setDateValue("2021-01-27 00:00:00");
|
|
|
+ pacsList.add(pacsBean);
|
|
|
+ indicationPushVO.setPacs(pacsList);
|
|
|
+ indicationPushVOList.add(indicationPushVO);
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "2", start);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 提示方法
|
|
|
*
|
|
@@ -1175,6 +1218,7 @@ public class TestFacade {
|
|
|
mapPath.put("【高危手术整合】", path + File.separator + "【高危手术整合】.xlsx");
|
|
|
mapPath.put("【开单合理性】", path + File.separator + "【开单合理性】.xlsx");
|
|
|
mapPath.put("【开单合理性_输血】", path + File.separator + "【开单合理性_输血】.xlsx");
|
|
|
+ mapPath.put("【检查结果与项目重复开立规则】", path + File.separator + "【检查结果与项目重复开立规则】.xlsx");
|
|
|
paramMap.put("mapPath", mapPath);
|
|
|
|
|
|
try {
|