|
@@ -240,7 +240,7 @@ public class TestFacade {
|
|
|
lisBean.setUniqueName(bean.getStandName());
|
|
|
lisBean.setName(bean.getStandName());
|
|
|
lisBean.setDetailName(bean.getStandName());
|
|
|
- lisBean.setValue(getValue(bean.getOtherTipLisSymbol(), bean.getOtherTipLisValue()));
|
|
|
+ lisBean.setValue(getValue(bean.getSymbol(), bean.getValue()));
|
|
|
lisList.add(lisBean);
|
|
|
indicationPushVO.setLis(lisList);
|
|
|
break;
|
|
@@ -294,8 +294,8 @@ public class TestFacade {
|
|
|
indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
List<Item> operationOrder = new ArrayList<>();
|
|
|
Item item = new Item();
|
|
|
- item.setUniqueName(bean.getOperationHighRisk());
|
|
|
- item.setName(bean.getOperationHighRisk());
|
|
|
+ item.setUniqueName(bean.getOperationName());
|
|
|
+ item.setName(bean.getOperationName());
|
|
|
operationOrder.add(item);
|
|
|
indicationPushVO.setOperationOrder(operationOrder);
|
|
|
indicationPushVOList.add(indicationPushVO);
|
|
@@ -359,7 +359,7 @@ public class TestFacade {
|
|
|
lis.setName("套餐");
|
|
|
lis.setDetailName("明细");
|
|
|
lis.setUniqueName(bean.getOtherTipLisName());
|
|
|
- lis.setValue(getValue(bean.getOtherTipLisSymbol(), bean.getOtherTipLisValue()));
|
|
|
+ lis.setValue(getValue(bean.getSymbol(), bean.getValue()));
|
|
|
lisList.add(lis);
|
|
|
indicationPushVO.setLis(lisList);
|
|
|
indicationPushVOList.add(indicationPushVO);
|
|
@@ -387,6 +387,71 @@ public class TestFacade {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 其他值提醒测试——输血
|
|
|
+ *
|
|
|
+ * @param file
|
|
|
+ */
|
|
|
+ public Map<String, Object> testOtherTipTransfusion(MultipartFile file, TestLineVO testLineVO) {
|
|
|
+ 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("4");
|
|
|
+ indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
+
|
|
|
+ if (StringUtil.isNotBlank(bean.getDisName())) {
|
|
|
+ List<Item> diag = new ArrayList<>();
|
|
|
+ Item item = new Item();
|
|
|
+ item.setUniqueName(bean.getDisName());
|
|
|
+ item.setName(bean.getDisName());
|
|
|
+ diag.add(item);
|
|
|
+ indicationPushVO.setDiag(diag);
|
|
|
+ }
|
|
|
+ if (StringUtil.isNotBlank(bean.getOperationName())) {
|
|
|
+ List<Item> operation = new ArrayList<>();
|
|
|
+ Item item = new Item();
|
|
|
+ item.setUniqueName(bean.getOperationName());
|
|
|
+ item.setName(bean.getOperationName());
|
|
|
+ operation.add(item);
|
|
|
+ indicationPushVO.setOperation(operation);
|
|
|
+ }
|
|
|
+ if("实验室检查名称".equals(bean.getItemNodeName())) {
|
|
|
+ List<Lis> lisList = new ArrayList<>();
|
|
|
+ Lis lis = new Lis();
|
|
|
+ lis.setName("套餐");
|
|
|
+ lis.setDetailName("明细");
|
|
|
+ lis.setUniqueName(bean.getItemName());
|
|
|
+ lis.setValue(getValue(bean.getSymbol(), bean.getValue()));
|
|
|
+ lisList.add(lis);
|
|
|
+ indicationPushVO.setLis(lisList);
|
|
|
+ indicationPushVOList.add(indicationPushVO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, Object> map = new LinkedHashMap<>();
|
|
|
+ List<String> msg = new ArrayList<>();
|
|
|
+ List<String> errMsg = new ArrayList<>();
|
|
|
+ for (IndicationPushVO indicationPushVO : indicationPushVOList) {
|
|
|
+ try {
|
|
|
+ IndicationDTO indicationDTO = indicationFacade.indicationFac(indicationPushVO);
|
|
|
+ if (ListUtil.isEmpty(indicationDTO.getOtherList())) {
|
|
|
+ msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ System.out.println(e.getMessage());
|
|
|
+ errMsg.add(indicationPushVO.getIdNum() + "行出错了");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("总条数", indicationPushVOList.size() + "条");
|
|
|
+ map.put("出错条数", msg.size() + "条");
|
|
|
+ map.put("出错信息", msg);
|
|
|
+ map.put("程序报错", errMsg);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 高危药品测试API
|