|
@@ -1192,7 +1192,7 @@ public class Neo4jAPI {
|
|
return diagTreat;
|
|
return diagTreat;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ //治疗方案
|
|
public Map<String, Filnlly> getMulDiseaseTreat_new(String disName, String disease, Integer diseaseType, Set<String> disSet, Map<String, List<String>> disUE, Map<String,String> ueSet, String filds, Map<String, List<CrisisDetail>> crisisDetails) {
|
|
public Map<String, Filnlly> getMulDiseaseTreat_new(String disName, String disease, Integer diseaseType, Set<String> disSet, Map<String, List<String>> disUE, Map<String,String> ueSet, String filds, Map<String, List<CrisisDetail>> crisisDetails) {
|
|
Map<String, Filnlly> newTret = new HashMap<>();
|
|
Map<String, Filnlly> newTret = new HashMap<>();
|
|
Session session = null;
|
|
Session session = null;
|
|
@@ -1213,6 +1213,7 @@ public class Neo4jAPI {
|
|
Map<String, List<String>> medicatonMap = new LinkedHashMap<>();//全部的药集合
|
|
Map<String, List<String>> medicatonMap = new LinkedHashMap<>();//全部的药集合
|
|
String diseaseName = df.getKey();//疾病
|
|
String diseaseName = df.getKey();//疾病
|
|
ArrayList value = df.getValue();//其他条件
|
|
ArrayList value = df.getValue();//其他条件
|
|
|
|
+
|
|
// TODO: 2019/11/12 处理规则判断的用药情况
|
|
// TODO: 2019/11/12 处理规则判断的用药情况
|
|
JSONObject jsonObject = medicationRule(tx, medicaton_ji, medicatonMap,diseaseName,value);
|
|
JSONObject jsonObject = medicationRule(tx, medicaton_ji, medicatonMap,diseaseName,value);
|
|
drugsList = (List<Drugs>)jsonObject.get("drugs");
|
|
drugsList = (List<Drugs>)jsonObject.get("drugs");
|
|
@@ -1220,16 +1221,20 @@ public class Neo4jAPI {
|
|
if(treatCate.getType() == null){
|
|
if(treatCate.getType() == null){
|
|
treatCate = null;
|
|
treatCate = null;
|
|
}
|
|
}
|
|
|
|
+
|
|
//规则不成立,返回全部用药
|
|
//规则不成立,返回全部用药
|
|
if(drugsList == null || drugsList.size() == 0){
|
|
if(drugsList == null || drugsList.size() == 0){
|
|
drugsList = allMedication(tx,medicaton_ji, medicatonMap, diseaseName, value,1,null);
|
|
drugsList = allMedication(tx,medicaton_ji, medicatonMap, diseaseName, value,1,null);
|
|
}
|
|
}
|
|
|
|
+
|
|
Filnlly filnlly = new Filnlly();
|
|
Filnlly filnlly = new Filnlly();
|
|
|
|
+
|
|
//显示不良反应
|
|
//显示不良反应
|
|
if (diseaseType != null && 1 == diseaseType) {
|
|
if (diseaseType != null && 1 == diseaseType) {
|
|
List<Indicators> indicators = sideEffect(diseaseName, disUE, ueSet, crisisDetails, disSet);
|
|
List<Indicators> indicators = sideEffect(diseaseName, disUE, ueSet, crisisDetails, disSet);
|
|
filnlly.setAdverseEvent(indicators);
|
|
filnlly.setAdverseEvent(indicators);
|
|
}
|
|
}
|
|
|
|
+
|
|
filnlly.setTreatCate(treatCate);
|
|
filnlly.setTreatCate(treatCate);
|
|
filnlly.setTreatment(drugsList);
|
|
filnlly.setTreatment(drugsList);
|
|
newTret.put(diseaseName, filnlly);
|
|
newTret.put(diseaseName, filnlly);
|