|
@@ -879,11 +879,12 @@ public class Neo4jAPI {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //判断急诊
|
|
|
- Set<String> disSet = diseaseCondition.keySet();
|
|
|
List<String> newDis = new ArrayList<>();
|
|
|
- if(disSet.size()>0){
|
|
|
- for (String dis:disSet) {
|
|
|
+ //判断急诊和警惕
|
|
|
+ for (Map.Entry<String, Map<String, String>> fs:diseaseCondition.entrySet()) {
|
|
|
+ String dis = fs.getKey();
|
|
|
+ Set<String> leiSet = fs.getValue().keySet();
|
|
|
+ if(leiSet.contains("确诊")){
|
|
|
newDis.add("\""+dis+"\"");
|
|
|
}
|
|
|
}
|
|
@@ -893,10 +894,18 @@ public class Neo4jAPI {
|
|
|
while (result.hasNext()) {
|
|
|
Record record = result.next();
|
|
|
String emDis = record.get("emDis").toString();
|
|
|
+ int em = record.get("em").asInt();//急诊
|
|
|
+ int hi = record.get("hi").asInt();//警惕
|
|
|
Map<String, String> stringStringMap = diseaseCondition.get(emDis.replace("\"", ""));
|
|
|
- stringStringMap.put("急诊", "");
|
|
|
+ if(em == 1){
|
|
|
+ stringStringMap.put("急诊", "");
|
|
|
+ }
|
|
|
+ if(hi == 1){
|
|
|
+ stringStringMap.put("警惕", "");
|
|
|
+ }
|
|
|
diseaseCondition.put(emDis.replace("\"", ""), stringStringMap);
|
|
|
}
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
} finally {
|