|
@@ -7,6 +7,8 @@ import com.diagbot.client.StandConvertServiceClient;
|
|
|
import com.diagbot.dto.IndicationDTO;
|
|
|
import com.diagbot.dto.StandConvertCrfBatchDTO;
|
|
|
import com.diagbot.dto.StandConvertCrfDTO;
|
|
|
+import com.diagbot.exception.CommonErrorCode;
|
|
|
+import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.util.ExcelUtils;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
@@ -95,97 +97,79 @@ public class TestFacade {
|
|
|
|
|
|
if (StringUtil.isNotEmpty(bean.getNeoType())) {
|
|
|
switch (bean.getNeoType()) {
|
|
|
- // case "1" : // 性别
|
|
|
- // if ("男性".equals(bean.getNeoName())) {
|
|
|
- // indicationPushVO.setSex(1);
|
|
|
- // } else if ("女性".equals(bean.getNeoName())) {
|
|
|
- // indicationPushVO.setSex(2);
|
|
|
- // }
|
|
|
- // break;
|
|
|
- // case "2" : // 化验, 示例:血小板计数,<,50,10^9/L
|
|
|
- // String lisStr = bean.getNeoName();
|
|
|
- // String[] lisArr = lisStr.split(",");
|
|
|
- //
|
|
|
- // List<Lis> lisList = new ArrayList<>();
|
|
|
- // Lis lisBean = new Lis();
|
|
|
- // lisBean.setUniqueName(lisArr[0]);
|
|
|
- // lisBean.setName(lisArr[0]);
|
|
|
- // lisBean.setDetailName(lisArr[0]);
|
|
|
- // lisBean.setValue(getValue(lisArr));
|
|
|
- // lisList.add(lisBean);
|
|
|
- // indicationPushVO.setLis(lisList);
|
|
|
- // break;
|
|
|
- // case "3" : // 临床表现
|
|
|
- // indicationPushVO.setChief(bean.getNeoName());
|
|
|
- // break;
|
|
|
- // case "4": //辅助检查描述
|
|
|
- // indicationPushVO.setSymptom("B超:提示"+bean.getNeoName());
|
|
|
- // break;
|
|
|
- // case "5" : // 诊断
|
|
|
- // List<Item> diag = new ArrayList<>();
|
|
|
- // Item diagItem = new Item();
|
|
|
- // diagItem.setName(bean.getNeoName());
|
|
|
- // diagItem.setUniqueName(bean.getNeoName());
|
|
|
- // diag.add(diagItem);
|
|
|
- // indicationPushVO.setDiag(diag);
|
|
|
- // break;
|
|
|
- // case "6" : // 服用药品
|
|
|
- // StringBuffer symptom = new StringBuffer("发病来,神志清,精神可,胃纳一般,睡眠可,二便无殊。一直服用");
|
|
|
- // symptom.append(bean.getNeoName()).append("。");
|
|
|
- // indicationPushVO.setSymptom(symptom.toString());
|
|
|
- // break;
|
|
|
- // case "12": // 体征
|
|
|
- // StringBuffer sbVital = new StringBuffer();
|
|
|
- // String[] vitalArr = bean.getNeoName().split(",");
|
|
|
- // if (vitalArr.length > 1) {
|
|
|
- // if ("收缩压".equals(vitalArr[0]) || "舒张压".equals(vitalArr[0])) {
|
|
|
- // if ("收缩压".equals(vitalArr[0])) {
|
|
|
- // sbVital.append("血压");
|
|
|
- // sbVital.append(getValue(vitalArr) + "/100mmHg");
|
|
|
- // indicationPushVO.setVital(sbVital.toString());
|
|
|
- // } else if ("舒张压".equals(vitalArr[0])) {
|
|
|
- // sbVital.append("血压");
|
|
|
- // sbVital.append("100/" + getValue(vitalArr) + "mmHg");
|
|
|
- // indicationPushVO.setVital(sbVital.toString());
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // // 其他数值类型
|
|
|
- // sbVital.append(vitalArr[0]);
|
|
|
- // sbVital.append(getValue(vitalArr));
|
|
|
- // sbVital.append(vitalArr[3]);
|
|
|
- // indicationPushVO.setVital(sbVital.toString());
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // sbVital.append(vitalArr[0]);
|
|
|
- // indicationPushVO.setVital(sbVital.toString());
|
|
|
- // }
|
|
|
- // break;
|
|
|
- // default:
|
|
|
- // continue;
|
|
|
+ case "1" : // 性别
|
|
|
+ if ("男性".equals(bean.getNeoName())) {
|
|
|
+ indicationPushVO.setSex(1);
|
|
|
+ } else if ("女性".equals(bean.getNeoName())) {
|
|
|
+ indicationPushVO.setSex(2);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "2" : // 化验, 示例:血小板计数,<,50,10^9/L
|
|
|
+ String lisStr = bean.getNeoName();
|
|
|
+ String[] lisArr = lisStr.split(",");
|
|
|
+
|
|
|
+ List<Lis> lisList = new ArrayList<>();
|
|
|
+ Lis lisBean = new Lis();
|
|
|
+ lisBean.setUniqueName(lisArr[0]);
|
|
|
+ lisBean.setName(lisArr[0]);
|
|
|
+ lisBean.setDetailName(lisArr[0]);
|
|
|
+ lisBean.setValue(getValue(lisArr));
|
|
|
+ lisList.add(lisBean);
|
|
|
+ indicationPushVO.setLis(lisList);
|
|
|
+ break;
|
|
|
+ case "3" : // 临床表现
|
|
|
+ indicationPushVO.setChief(bean.getNeoName());
|
|
|
+ break;
|
|
|
+ case "4": //辅助检查描述
|
|
|
+ indicationPushVO.setSymptom("B超:提示"+bean.getNeoName());
|
|
|
+ break;
|
|
|
+ case "5" : // 诊断
|
|
|
+ List<Item> diag = new ArrayList<>();
|
|
|
+ Item diagItem = new Item();
|
|
|
+ diagItem.setName(bean.getNeoName());
|
|
|
+ diagItem.setUniqueName(bean.getNeoName());
|
|
|
+ diag.add(diagItem);
|
|
|
+ indicationPushVO.setDiag(diag);
|
|
|
+ break;
|
|
|
+ case "6" : // 服用药品
|
|
|
+ StringBuffer symptom = new StringBuffer("发病来,神志清,精神可,胃纳一般,睡眠可,二便无殊。一直服用");
|
|
|
+ symptom.append(bean.getNeoName()).append("。");
|
|
|
+ indicationPushVO.setSymptom(symptom.toString());
|
|
|
+ break;
|
|
|
+ case "12": // 体征
|
|
|
+ StringBuffer sbVital = new StringBuffer();
|
|
|
+ String[] vitalArr = bean.getNeoName().split(",");
|
|
|
+ if (vitalArr.length > 1) {
|
|
|
+ if ("收缩压".equals(vitalArr[0]) || "舒张压".equals(vitalArr[0])) {
|
|
|
+ if ("收缩压".equals(vitalArr[0])) {
|
|
|
+ sbVital.append("血压");
|
|
|
+ sbVital.append(getValue(vitalArr) + "/100mmHg");
|
|
|
+ indicationPushVO.setVital(sbVital.toString());
|
|
|
+ } else if ("舒张压".equals(vitalArr[0])) {
|
|
|
+ sbVital.append("血压");
|
|
|
+ sbVital.append("100/" + getValue(vitalArr) + "mmHg");
|
|
|
+ indicationPushVO.setVital(sbVital.toString());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 其他数值类型
|
|
|
+ sbVital.append(vitalArr[0]);
|
|
|
+ sbVital.append(getValue(vitalArr));
|
|
|
+ sbVital.append(vitalArr[3]);
|
|
|
+ indicationPushVO.setVital(sbVital.toString());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ sbVital.append(vitalArr[0]);
|
|
|
+ indicationPushVO.setVital(sbVital.toString());
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ continue;
|
|
|
}
|
|
|
}
|
|
|
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.getBillMsgList())) {
|
|
|
- msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- System.out.println(indicationPushVO.getIdNum() + "行出错了!" + e.getMessage());
|
|
|
- errMsg.add(indicationPushVO.getIdNum() + "行出错了");
|
|
|
- }
|
|
|
- }
|
|
|
- map.put("总条数", indicationPushVOList.size() + "条");
|
|
|
- map.put("出错条数", msg.size() + "条");
|
|
|
- map.put("出错信息", msg);
|
|
|
- map.put("程序报错", errMsg);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "2");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -251,25 +235,7 @@ public class TestFacade {
|
|
|
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.getBillMsgList())) {
|
|
|
- msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- System.out.println(indicationPushVO.getIdNum() + "行出错了!" + e.getMessage());
|
|
|
- errMsg.add(indicationPushVO.getIdNum() + "行出错了");
|
|
|
- }
|
|
|
- }
|
|
|
- map.put("总条数", indicationPushVOList.size() + "条");
|
|
|
- map.put("出错条数", msg.size() + "条");
|
|
|
- map.put("出错信息", msg);
|
|
|
- map.put("程序报错", errMsg);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "2");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -301,25 +267,7 @@ public class TestFacade {
|
|
|
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.getHighRiskList())) {
|
|
|
- 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);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "3");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -365,25 +313,7 @@ public class TestFacade {
|
|
|
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);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "4");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -450,25 +380,7 @@ public class TestFacade {
|
|
|
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);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "4");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -517,24 +429,7 @@ public class TestFacade {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- 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);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "4");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -566,34 +461,16 @@ public class TestFacade {
|
|
|
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.getHighRiskList())) {
|
|
|
- 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);
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "3");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 危急值数据测试
|
|
|
+ * 危急值数据测试——化验
|
|
|
*
|
|
|
* @param file
|
|
|
*/
|
|
|
- public Map<String, Object> importCriticalExcel(MultipartFile file, TestLineVO testLineVO) {
|
|
|
+ public Map<String, Object> importCriticalLisExcel(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) {
|
|
@@ -633,25 +510,38 @@ public class TestFacade {
|
|
|
indicationPushVOList.add(indicationPushVO);
|
|
|
}
|
|
|
|
|
|
- Map<String, Object> map = new LinkedHashMap<>();
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "1");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
|
|
|
- List<String> msg = new ArrayList<>();
|
|
|
- List<String> errMsg = new ArrayList<>();
|
|
|
- for (IndicationPushVO indicationPushVO : indicationPushVOList) {
|
|
|
- try {
|
|
|
- IndicationDTO indicationDTO = indicationFacade.indicationFac(indicationPushVO);
|
|
|
- if (ListUtil.isEmpty(indicationDTO.getCriticalValList())) {
|
|
|
- msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- System.out.println(e.getMessage());
|
|
|
- errMsg.add(indicationPushVO.getIdNum() + "行出错了");
|
|
|
+ /**
|
|
|
+ * 危急值数据测试——辅检
|
|
|
+ *
|
|
|
+ * @param file
|
|
|
+ */
|
|
|
+ public Map<String, Object> importCriticalPacsExcel(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("1");
|
|
|
+
|
|
|
+ List<Pacs> pacsList = new ArrayList<>();
|
|
|
+ Pacs pacs = new Pacs();
|
|
|
+ pacs.setName("腹部B超");
|
|
|
+ pacs.setUniqueName("腹部B超");
|
|
|
+ pacs.setResult(bean.getRuleText());
|
|
|
+ pacsList.add(pacs);
|
|
|
+ indicationPushVO.setPacs(pacsList);
|
|
|
+ indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
+
|
|
|
+ indicationPushVOList.add(indicationPushVO);
|
|
|
}
|
|
|
- map.put("总条数", indicationPushVOList.size() + "条");
|
|
|
- map.put("出错条数", msg.size() + "条");
|
|
|
- map.put("出错信息", msg);
|
|
|
- map.put("程序报错", errMsg);
|
|
|
+
|
|
|
+ Map<String, Object> map = getDebugMap(indicationPushVOList, "1");
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -722,6 +612,13 @@ public class TestFacade {
|
|
|
return standConvertCrfBatchDTO;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 复杂高危手术测试API
|
|
|
+ *
|
|
|
+ * @param file
|
|
|
+ * @param testLineVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public Map<String, Object> testHighRiskProcess(MultipartFile file, TestLineVO testLineVO) {
|
|
|
List<IndicationPushVO> indicationPushVOList = new ArrayList<>();
|
|
|
List<TestIndicationVO> data = ExcelUtils.importExcelMultiSheets(file, 0, 1, testLineVO.getSheetIndex(), TestIndicationVO.class);
|
|
@@ -735,14 +632,25 @@ public class TestFacade {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
|
+ String operationName = bean.getOperationName();
|
|
|
+ List<Item> operation = new ArrayList<>();
|
|
|
+ String[] operationStrArray = operationName.split(",");
|
|
|
+ for(String str :operationStrArray){
|
|
|
+ Item item = new Item();
|
|
|
+ item.setName(str);
|
|
|
+ item.setUniqueName(str);
|
|
|
+ operation.add(item);
|
|
|
+ }
|
|
|
+/* indicationPushVO.setOperation(operation);
|
|
|
//年龄
|
|
|
String[] split = bean.getAgeAll().split(",");
|
|
|
indicationPushVO.setAge((int) getValueNum(split));
|
|
|
indicationPushVO.setMsg("年龄");
|
|
|
indicationPushVO.setRuleType("3");
|
|
|
- indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
+ indicationPushVO.setIdNum(bean.getIdNum());*/
|
|
|
+
|
|
|
+ /* //体格
|
|
|
|
|
|
- //体格
|
|
|
String physique = bean.getPhysique();
|
|
|
String[] physiqueStrArray = physique.split(",");
|
|
|
for (String str : physiqueStrArray) {
|
|
@@ -759,18 +667,17 @@ public class TestFacade {
|
|
|
indphysiquePushVO.setMsg("体格"+str);
|
|
|
indicationPushVOList.add(indicationPushVO);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
//化验
|
|
|
String lisAll = bean.getLisAll();
|
|
|
String[] physiquelisAll = lisAll.split(",");
|
|
|
-
|
|
|
for (String str : physiquelisAll) {
|
|
|
IndicationPushVO indicationPushVOlisList = new IndicationPushVO();
|
|
|
+ setname(indicationPushVOlisList,bean);
|
|
|
List<Lis> lisList = new ArrayList<>();
|
|
|
if (str.contains(",")) {
|
|
|
//包含英文逗号
|
|
|
String[] strArray = str.split(",");
|
|
|
- String lisStr = bean.getNeoName();
|
|
|
Lis lisBean = new Lis();
|
|
|
lisBean.setUniqueName(strArray[0]);
|
|
|
lisBean.setName(strArray[0]);
|
|
@@ -783,7 +690,7 @@ public class TestFacade {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //辅检
|
|
|
+ /* //辅检
|
|
|
String pacsAll = bean.getPacsAll();
|
|
|
String[] physiquepacsAll = pacsAll.split(",");
|
|
|
indicationPushVO.setSymptom(pacsAll);
|
|
@@ -814,13 +721,13 @@ public class TestFacade {
|
|
|
indicationPushVOpacs.setMsg("诊断"+diseaseStr);
|
|
|
indicationPushVOpacs.setDiag(diag);
|
|
|
indicationPushVOList.add(indicationPushVOpacs);
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<Item> operationOrder = new ArrayList<>();
|
|
|
Item item = new Item();
|
|
|
item.setUniqueName(bean.getOperationName());
|
|
|
item.setName(bean.getOperationName());
|
|
|
operationOrder.add(item);
|
|
|
- //indicationPushVO.setOperationOrder(operationOrder);
|
|
|
+ indicationPushVO.setOperationOrder(operationOrder);
|
|
|
indicationPushVOList.add(indicationPushVO);
|
|
|
}
|
|
|
|
|
@@ -845,4 +752,62 @@ public class TestFacade {
|
|
|
map.put("程序报错", errMsg);
|
|
|
return map;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 提示方法
|
|
|
+ *
|
|
|
+ * @param indicationPushVOList
|
|
|
+ * @param ruleType
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Map getDebugMap(List<IndicationPushVO> indicationPushVOList, String ruleType) {
|
|
|
+ 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);
|
|
|
+ switch (ruleType) {
|
|
|
+ case "1":
|
|
|
+ if (ListUtil.isEmpty(indicationDTO.getCriticalValList())) {
|
|
|
+ msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ if (ListUtil.isEmpty(indicationDTO.getBillMsgList())) {
|
|
|
+ msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "3":
|
|
|
+ if (ListUtil.isEmpty(indicationDTO.getHighRiskList())) {
|
|
|
+ msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "4":
|
|
|
+ if (ListUtil.isEmpty(indicationDTO.getOtherList())) {
|
|
|
+ msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配");
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "ruleType格式不对");
|
|
|
+ }
|
|
|
+ } 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;
|
|
|
+ }
|
|
|
+ public void setname(IndicationPushVO indicationPushVO,TestIndicationVO bean){
|
|
|
+ List<Item> operationOrder = new ArrayList<>();
|
|
|
+ Item item = new Item();
|
|
|
+ item.setUniqueName(bean.getOperationName());
|
|
|
+ item.setName(bean.getOperationName());
|
|
|
+ operationOrder.add(item);
|
|
|
+ indicationPushVO.setOperationOrder(operationOrder);
|
|
|
+ }
|
|
|
}
|