|
@@ -822,6 +822,7 @@ public class Neo4jAPI {
|
|
|
while (newList.size() > 0) {
|
|
|
query = propertiesUtil.getProperty("searchNewCondition").replace("newList", newList.toString()).replace("fildList", startList.toString());
|
|
|
System.out.println("第" + i + "次查询conditon语句 \n" + query);
|
|
|
+ i++;
|
|
|
result = session.run(query);
|
|
|
newList.clear();
|
|
|
while (result.hasNext()) {
|
|
@@ -876,6 +877,24 @@ public class Neo4jAPI {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //判断急诊
|
|
|
+ Set<String> disSet = diseaseCondition.keySet();
|
|
|
+ List<String> newDis = new ArrayList<>();
|
|
|
+ if(disSet.size()>0){
|
|
|
+ for (String dis:disSet) {
|
|
|
+ newDis.add("\""+dis+"\"");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ query =propertiesUtil.getProperty("searchEmergency").replace("disList",newDis.toString());
|
|
|
+ logger.info("判断图谱推出的诊断中是否有急诊,判断语句为:\n"+query);
|
|
|
+ result = session.run(query);
|
|
|
+ while (result.hasNext()) {
|
|
|
+ Record record = result.next();
|
|
|
+ String emDis = record.get("emDis").toString();
|
|
|
+ Map<String, String> stringStringMap = diseaseCondition.get(emDis.replace("\"", ""));
|
|
|
+ stringStringMap.put("急诊", "");
|
|
|
+ diseaseCondition.put(emDis.replace("\"", ""), stringStringMap);
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|