|
@@ -17,7 +17,7 @@ import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.ExcelUtils;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.RedisUtil;
|
|
|
-import com.diagbot.util.StringUtil;
|
|
|
+import com.diagbot.util.StringUtil2B;
|
|
|
import com.diagbot.vo.Drug;
|
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
|
import com.diagbot.vo.ItemExt;
|
|
@@ -98,7 +98,7 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
if ("删除".equals(bean.getStatus())) {
|
|
@@ -107,11 +107,11 @@ public class TestFacade {
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
|
indicationPushVO.setRuleType("2");
|
|
|
indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
- if (StringUtil.isBlank(bean.getStandName()) || bean.getNeoName().contains("本品")) {
|
|
|
+ if (StringUtil2B.isBlank(bean.getStandName()) || bean.getNeoName().contains("本品")) {
|
|
|
continue;
|
|
|
}
|
|
|
bean.setStandName(bean.getStandName().trim());
|
|
|
- if (StringUtil.isNotBlank(bean.getOrderType())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getOrderType())) {
|
|
|
switch (bean.getOrderType()) {
|
|
|
case "实验室检查名称": // 细项
|
|
|
List<Lis> lisDetailOrder = new ArrayList<>();
|
|
@@ -162,7 +162,7 @@ public class TestFacade {
|
|
|
|
|
|
indicationPushVO.setMsg(bean.getNeoName());
|
|
|
|
|
|
- if (StringUtil.isNotEmpty(bean.getNeoType())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(bean.getNeoType())) {
|
|
|
switch (bean.getNeoType()) {
|
|
|
case "1": // 性别
|
|
|
if ("男".equals(bean.getNeoName())) {
|
|
@@ -335,16 +335,16 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (StringUtil.isBlank(bean.getTransfusionNodeName())) {
|
|
|
+ if (StringUtil2B.isBlank(bean.getTransfusionNodeName())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
|
indicationPushVO.setRuleType("2");
|
|
|
indicationPushVO.setIdNum(bean.getIdNum());
|
|
|
- if (StringUtil.isNotBlank(bean.getTransfusionName())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getTransfusionName())) {
|
|
|
List<ItemExt> transfusionOrder = new ArrayList<>();
|
|
|
ItemExt item = new ItemExt();
|
|
|
item.setName(bean.getTransfusionName());
|
|
@@ -353,7 +353,7 @@ public class TestFacade {
|
|
|
indicationPushVO.setTransfusionOrder(transfusionOrder);
|
|
|
}
|
|
|
|
|
|
- if (StringUtil.isNotEmpty(bean.getTransfusionNodeName())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(bean.getTransfusionNodeName())) {
|
|
|
switch (bean.getTransfusionNodeName()) {
|
|
|
case "医保手术和操作名称": // 医保手术和操作名称
|
|
|
List<Item> operation = new ArrayList<>();
|
|
@@ -402,11 +402,11 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
// 3,4是高危手术
|
|
|
- if (StringUtil.isBlank(bean.getOperationLevel()) || "0".equals(bean.getOperationLevel()) || "1".equals(bean.getOperationLevel()) || "2".equals(bean.getOperationLevel())) {
|
|
|
+ if (StringUtil2B.isBlank(bean.getOperationLevel()) || "0".equals(bean.getOperationLevel()) || "1".equals(bean.getOperationLevel()) || "2".equals(bean.getOperationLevel())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
@@ -436,7 +436,7 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
@@ -490,7 +490,7 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
@@ -502,7 +502,7 @@ public class TestFacade {
|
|
|
} else if ("女".equals(bean.getSexStr())) {
|
|
|
indicationPushVO.setSex(2);
|
|
|
}
|
|
|
- if (StringUtil.isNotBlank(bean.getDisName())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getDisName())) {
|
|
|
List<Item> diag = new ArrayList<>();
|
|
|
Item item = new Item();
|
|
|
item.setUniqueName(bean.getDisName());
|
|
@@ -525,7 +525,7 @@ public class TestFacade {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (StringUtil.isNotBlank(bean.getPacsDesc())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getPacsDesc())) {
|
|
|
Pacs pacs = new Pacs();
|
|
|
pacs.setName("胸部CT");
|
|
|
pacs.setUniqueName("胸部CT");
|
|
@@ -533,7 +533,7 @@ public class TestFacade {
|
|
|
indicationPushVO.getPacs().add(pacs);
|
|
|
}
|
|
|
|
|
|
- if (StringUtil.isNotBlank(bean.getPacsDescHas())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getPacsDescHas())) {
|
|
|
Pacs pacs = new Pacs();
|
|
|
pacs.setName("CT");
|
|
|
pacs.setUniqueName("CT");
|
|
@@ -558,14 +558,14 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.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())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getDisName())) {
|
|
|
List<Item> diag = new ArrayList<>();
|
|
|
Item item = new Item();
|
|
|
item.setUniqueName(bean.getDisName());
|
|
@@ -573,7 +573,7 @@ public class TestFacade {
|
|
|
diag.add(item);
|
|
|
indicationPushVO.setDiag(diag);
|
|
|
}
|
|
|
- if (StringUtil.isNotBlank(bean.getOperationName())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getOperationName())) {
|
|
|
List<Item> operation = new ArrayList<>();
|
|
|
Item item = new Item();
|
|
|
item.setUniqueName(bean.getOperationName());
|
|
@@ -609,10 +609,10 @@ public class TestFacade {
|
|
|
List<TestIndicationVO> data = ExcelUtils.importExcelMultiSheets(file, 0, 1, testLineVO.getSheetIndex(), TestIndicationVO.class);
|
|
|
List<String> drugForm = Arrays.asList("注射剂", "片剂", "缓释剂", "胶囊剂", "滴丸剂");
|
|
|
for (TestIndicationVO bean : data) {
|
|
|
- if (StringUtil.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (StringUtil.isEmpty(bean.getDrugLevel())) {
|
|
|
+ if (StringUtil2B.isEmpty(bean.getDrugLevel())) {
|
|
|
continue;
|
|
|
}
|
|
|
if (!drugForm.contains(bean.getDrugForm())) {
|
|
@@ -646,14 +646,14 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
|
indicationPushVO.setRuleType("1");
|
|
|
- if (StringUtil.isNotBlank(bean.getCriticalAge()) && "成人".equals(bean.getCriticalAge())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getCriticalAge()) && "成人".equals(bean.getCriticalAge())) {
|
|
|
indicationPushVO.setAgeNum(20.0D);
|
|
|
- } else if (StringUtil.isNotBlank(bean.getCriticalAge()) && "新生儿".equals(bean.getCriticalAge())) {
|
|
|
+ } else if (StringUtil2B.isNotBlank(bean.getCriticalAge()) && "新生儿".equals(bean.getCriticalAge())) {
|
|
|
indicationPushVO.setAgeNum(1.0D);
|
|
|
} else {
|
|
|
indicationPushVO.setAgeNum(20.0D);
|
|
@@ -705,7 +705,7 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
IndicationPushVO indicationPushVO = new IndicationPushVO();
|
|
@@ -829,7 +829,7 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.isNotEmpty(testLineVO.getIdNum()) && !testLineVO.getIdNum().equals(bean.getIdNum())) {
|
|
|
continue;
|
|
|
}
|
|
|
// 只留下等级为2的数据
|
|
@@ -852,7 +852,7 @@ public class TestFacade {
|
|
|
//年龄
|
|
|
IndicationPushVO indicationPushVOAge = new IndicationPushVO();
|
|
|
String ageAll = bean.getAgeAll();
|
|
|
- if (StringUtil.isNotBlank(ageAll)) {
|
|
|
+ if (StringUtil2B.isNotBlank(ageAll)) {
|
|
|
String[] split = ageAll.split(",");
|
|
|
setname(indicationPushVOAge, bean);
|
|
|
indicationPushVOAge.setAgeNum(getValueNum(split));
|
|
@@ -863,7 +863,7 @@ public class TestFacade {
|
|
|
}
|
|
|
//体格
|
|
|
String physique = bean.getPhysique();
|
|
|
- if (StringUtil.isNotBlank(physique)) {
|
|
|
+ if (StringUtil2B.isNotBlank(physique)) {
|
|
|
String[] physiqueStrArray = physique.split(",");
|
|
|
for (int i = 0; i < physiqueStrArray.length; i++) {
|
|
|
String str = physiqueStrArray[i];
|
|
@@ -932,7 +932,7 @@ public class TestFacade {
|
|
|
}
|
|
|
//化验
|
|
|
String lisAll = bean.getLisAll();
|
|
|
- if (StringUtil.isNotBlank(lisAll)) {
|
|
|
+ if (StringUtil2B.isNotBlank(lisAll)) {
|
|
|
String[] physiquelisAll = lisAll.split(",");
|
|
|
for (int i = 0; i < physiquelisAll.length; i++) {
|
|
|
|
|
@@ -980,7 +980,7 @@ public class TestFacade {
|
|
|
}
|
|
|
//辅检
|
|
|
String pacsAll = bean.getPacsAll();
|
|
|
- if (StringUtil.isNotBlank(pacsAll)) {
|
|
|
+ if (StringUtil2B.isNotBlank(pacsAll)) {
|
|
|
String[] physiquepacsAll = pacsAll.split(",");
|
|
|
//indicationPushVO.setSymptom(pacsAll);
|
|
|
|
|
@@ -1012,7 +1012,7 @@ public class TestFacade {
|
|
|
}
|
|
|
//诊断"腹部CT"
|
|
|
String disease = bean.getDisease();
|
|
|
- if (StringUtil.isNotBlank(disease)) {
|
|
|
+ if (StringUtil2B.isNotBlank(disease)) {
|
|
|
String[] physiquedisease = disease.split("#");
|
|
|
|
|
|
for (int i = 0; i < physiquedisease.length; i++) {
|
|
@@ -1057,13 +1057,13 @@ public class TestFacade {
|
|
|
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())) {
|
|
|
+ if (StringUtil2B.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())) {
|
|
|
+ if (StringUtil2B.isNotBlank(bean.getPacsOrderName())) {
|
|
|
List<Pacs> pacsOrder = new ArrayList<>();
|
|
|
Pacs pacsBean = new Pacs();
|
|
|
pacsBean.setName(bean.getPacsOrderName());
|
|
@@ -1108,25 +1108,25 @@ public class TestFacade {
|
|
|
case "1":
|
|
|
if (ListUtil.isEmpty(indicationDTO.getCriticalValList())) {
|
|
|
msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配,"
|
|
|
- + (StringUtil.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
+ + (StringUtil2B.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
}
|
|
|
break;
|
|
|
case "2":
|
|
|
if (ListUtil.isEmpty(indicationDTO.getBillMsgList())) {
|
|
|
msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配。"
|
|
|
- + (StringUtil.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
+ + (StringUtil2B.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
}
|
|
|
break;
|
|
|
case "3":
|
|
|
if (ListUtil.isEmpty(indicationDTO.getHighRiskList())) {
|
|
|
msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配。"
|
|
|
- + (StringUtil.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
+ + (StringUtil2B.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
}
|
|
|
break;
|
|
|
case "4":
|
|
|
if (ListUtil.isEmpty(indicationDTO.getOtherList())) {
|
|
|
msg.add("第【" + indicationPushVO.getIdNum() + "】行未匹配。"
|
|
|
- + (StringUtil.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
+ + (StringUtil2B.isNotBlank(indicationPushVO.getMsg()) ? indicationPushVO.getMsg() : ""));
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
@@ -1214,7 +1214,7 @@ public class TestFacade {
|
|
|
}
|
|
|
|
|
|
public Map testAll(TestAllVO testAllVO) {
|
|
|
- if (StringUtil.isBlank(testAllVO.getPath())) {
|
|
|
+ if (StringUtil2B.isBlank(testAllVO.getPath())) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "参数为空,未填写【文件所在路径】");
|
|
|
}
|
|
|
long start = System.currentTimeMillis();
|
|
@@ -1349,7 +1349,7 @@ public class TestFacade {
|
|
|
String sc = "删除";
|
|
|
String idnum = "3";
|
|
|
|
|
|
- if (StringUtil.isNotBlank(testLineVO.getIdNum())) {
|
|
|
+ if (StringUtil2B.isNotBlank(testLineVO.getIdNum())) {
|
|
|
idnum = testLineVO.getIdNum();
|
|
|
}
|
|
|
|
|
@@ -1360,10 +1360,10 @@ public class TestFacade {
|
|
|
|
|
|
if (null != bean.getOrderType() && null != bean.getNeoName()) {
|
|
|
if (bean.getOrderType().contains(xg) || bean.getNeoName().contains(xg)
|
|
|
- || (StringUtil.isNotBlank(bean.getStatus()) && bean.getStatus().contains(xg))) {
|
|
|
+ || (StringUtil2B.isNotBlank(bean.getStatus()) && bean.getStatus().contains(xg))) {
|
|
|
item.put("status", xg);
|
|
|
} else if (bean.getOrderType().contains(sc) || bean.getNeoName().contains(sc)
|
|
|
- || (StringUtil.isNotBlank(bean.getStatus()) && bean.getStatus().contains(sc))) {
|
|
|
+ || (StringUtil2B.isNotBlank(bean.getStatus()) && bean.getStatus().contains(sc))) {
|
|
|
item.put("status", sc);
|
|
|
}
|
|
|
}
|