|
@@ -390,15 +390,15 @@ public class KnowledgeServiceImpl implements KnowledgeService {
|
|
|
List<String> bigdataDiagList = new LinkedList<>();//大数据诊断
|
|
|
if (bigdataDiagFeature.size() > 0) {
|
|
|
for (FeatureRate fe : bigdataDiagFeature) {
|
|
|
- if ("neo4j".equals(fe.getRate()) && fe.getDesc().contains("确诊")) {
|
|
|
+ if ("neo4j".equals(fe.getRate()) && fe.getDesc().contains("初步诊断")) {
|
|
|
neo4jDiagList.add(fe.getFeatureName());
|
|
|
- logger.info("图谱推出的诊断为: " + fe.getFeatureName());
|
|
|
} else if (fe.getDesc() == null) {
|
|
|
bigdataDiagList.add(fe.getFeatureName());
|
|
|
- logger.info("大数据推出的诊断为: " + fe.getFeatureName());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ logger.info("图谱推出的诊断为: " + neo4jDiagList);
|
|
|
+ logger.info("大数据推出的诊断为: " + bigdataDiagList);
|
|
|
if (webDiagList != null) {
|
|
|
for (String web : webDiagList) {
|
|
|
for (int i = 0; i < bigdataDiagList.size(); i++) {
|
|
@@ -408,7 +408,7 @@ public class KnowledgeServiceImpl implements KnowledgeService {
|
|
|
}
|
|
|
for (int i = 0; i < neo4jDiagList.size(); i++) {
|
|
|
if (neo4jDiagList.get(i).equals(web)) {
|
|
|
- neo4jDiagList.remove(bigdataDiagList.get(i));
|
|
|
+ neo4jDiagList.remove(neo4jDiagList.get(i));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -426,49 +426,47 @@ public class KnowledgeServiceImpl implements KnowledgeService {
|
|
|
if (bigdataDiagList != null && bigdataDiagList.size() > 0) {
|
|
|
biglisPacs = processLisPacs(bigdataDiagList);
|
|
|
}
|
|
|
- Set<String> lis = null;
|
|
|
- Set<String> pacs = null;
|
|
|
+ Set<String> lis = new LinkedHashSet<>();
|
|
|
+ Set<String> pacs = new LinkedHashSet<>();
|
|
|
+ Set<String> webLis = null;
|
|
|
+ Set<String> webPacs = null;
|
|
|
+ Set<String> neoLis = null;
|
|
|
+ Set<String> neoPacs = null;
|
|
|
+ Set<String> bigLis = null;
|
|
|
+ Set<String> bigPacs = null;
|
|
|
//如果界面有诊断
|
|
|
if (weblisPacs != null && weblisPacs.values().size() > 0) {
|
|
|
- lis = weblisPacs.get("LIS");
|
|
|
- pacs = weblisPacs.get("PACS");
|
|
|
- logger.info("界面有诊断的情况下,界面诊断推出的lis为: " + lis);
|
|
|
- logger.info("界面有诊断的情况下,界面诊断推出的pacs为: " + pacs);
|
|
|
- if (neo4jlisPacs != null && neo4jlisPacs.values().size() > 0) {
|
|
|
- Set<String> bl = neo4jlisPacs.get("LIS");
|
|
|
- Set<String> bp = neo4jlisPacs.get("PACS");
|
|
|
- logger.info("疑诊推出的lis为: " + bl);
|
|
|
- logger.info("疑诊推出的pacs为: " + bp);
|
|
|
- lis.addAll(bl);
|
|
|
- pacs.addAll(bp);
|
|
|
+ webLis = weblisPacs.get("LIS");
|
|
|
+ webPacs = weblisPacs.get("PACS");
|
|
|
+ logger.info("界面有诊断的情况下,界面诊断推出的lis为: " + webLis);
|
|
|
+ logger.info("界面有诊断的情况下,界面诊断推出的pacs为: " + webPacs);
|
|
|
+ if(webLis != null){
|
|
|
+ lis.addAll(webLis);
|
|
|
}
|
|
|
- if (biglisPacs != null && biglisPacs.values().size() > 0) {
|
|
|
- Set<String> bl = biglisPacs.get("LIS");
|
|
|
- Set<String> bp = biglisPacs.get("PACS");
|
|
|
- logger.info("可能诊断推出的lis为: " + bl);
|
|
|
- logger.info("可能诊断推出的pacs为: " + bp);
|
|
|
- lis.addAll(bl);
|
|
|
- pacs.addAll(bp);
|
|
|
+ if(webPacs != null){
|
|
|
+ pacs.addAll(webPacs);
|
|
|
}
|
|
|
- } else {
|
|
|
- if (neo4jlisPacs != null || biglisPacs != null) {
|
|
|
- lis = new HashSet<>();
|
|
|
- pacs = new HashSet<>();
|
|
|
- if (neo4jlisPacs != null) {
|
|
|
- Set<String> neo4jLis = neo4jlisPacs.get("LIS");
|
|
|
- Set<String> neo4jpacs = neo4jlisPacs.get("PACS");
|
|
|
- lis.addAll(neo4jLis);
|
|
|
- pacs.addAll(neo4jpacs);
|
|
|
- } else if (biglisPacs != null) {
|
|
|
- Set<String> biglis = biglisPacs.get("LIS");
|
|
|
- Set<String> bigpacs = biglisPacs.get("PACS");
|
|
|
- lis.addAll(biglis);
|
|
|
- pacs.addAll(bigpacs);
|
|
|
+ }
|
|
|
+ if(neo4jlisPacs != null){
|
|
|
+ neoLis = neo4jlisPacs.get("LIS");
|
|
|
+ neoPacs = neo4jlisPacs.get("PACS");
|
|
|
+ if(neoLis != null){
|
|
|
+ lis.addAll(neoLis);
|
|
|
+ }
|
|
|
+ if(neoPacs != null){
|
|
|
+ pacs.addAll(neoPacs);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(biglisPacs != null){
|
|
|
+ bigLis = biglisPacs.get("LIS");
|
|
|
+ bigPacs = biglisPacs.get("PACS");
|
|
|
+ if(bigLis != null){
|
|
|
+ lis.addAll(bigLis);
|
|
|
+ }
|
|
|
+ if(bigPacs != null){
|
|
|
+ pacs.addAll(bigPacs);
|
|
|
}
|
|
|
- logger.info("界面无诊断的情况下,推出诊断的lis为: " + lis);
|
|
|
- logger.info("界面无诊断的情况下,推出诊断的lis为: " + pacs);
|
|
|
}
|
|
|
- }
|
|
|
logger.info("推出的合并lis为: " + lis);
|
|
|
logger.info("推出的合并pacs为: " + pacs);
|
|
|
ArrayList<FeatureRate> lisFeature = new ArrayList<>();
|