|
@@ -4,8 +4,8 @@ import com.alibaba.druid.support.json.JSONUtils;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import org.diagbot.common.javabean.*;
|
|
|
import org.diagbot.common.work.*;
|
|
|
-import org.diagbot.graph.javabean.BackLisPacs;
|
|
|
import org.diagbot.pub.utils.PropertiesUtil;
|
|
|
import org.neo4j.driver.v1.*;
|
|
|
import org.neo4j.driver.v1.types.Node;
|
|
@@ -1133,22 +1133,54 @@ public class Neo4jAPI {
|
|
|
drugsList.add(drugs);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
Filnlly filnlly = new Filnlly();
|
|
|
- Map<String, Map<String, Integer>> fuzhen1 = new HashMap<>();
|
|
|
- Map<String, Integer> fildsMap1 = new HashMap<>();
|
|
|
- fildsMap1.put("无", 0);
|
|
|
- fildsMap1.put("偶尔", 0);
|
|
|
- fildsMap1.put("频", 0);
|
|
|
- fuzhen1.put("低血糖反应", fildsMap1);
|
|
|
- Map<String, Integer> fildsMap2 = new HashMap<>();
|
|
|
- fildsMap2.put("腹胀", 0);
|
|
|
- fildsMap2.put("厌食", 0);
|
|
|
- fildsMap2.put("嗳气", 0);
|
|
|
- fildsMap2.put("恶心", 0);
|
|
|
- fildsMap2.put("呕吐", 0);
|
|
|
- fuzhen1.put("胃肠道不良反应", fildsMap2);
|
|
|
- filnlly.setAdverseEvent(fuzhen1);
|
|
|
+ List<Indicators> indicatorsList1 = new ArrayList<>();
|
|
|
+ List<Detail> detailList1 = new ArrayList<>();
|
|
|
+ Detail detail1 = new Detail();
|
|
|
+ detail1.setName("无");
|
|
|
+ detail1.setValue(0);
|
|
|
+ Detail detail2 = new Detail();
|
|
|
+ detail2.setName("偶尔");
|
|
|
+ detail2.setValue(0);
|
|
|
+ Detail detail3 = new Detail();
|
|
|
+ detail3.setName("频");
|
|
|
+ detail3.setValue(0);
|
|
|
+ detailList1.add(detail1);
|
|
|
+ detailList1.add(detail2);
|
|
|
+ detailList1.add(detail3);
|
|
|
+ Indicators indicators1 = new Indicators();
|
|
|
+ indicators1.setName("低血糖反应");
|
|
|
+ indicators1.setControlType(2);
|
|
|
+ indicators1.setDetails(detailList1);
|
|
|
+ indicatorsList1.add(indicators1);
|
|
|
+
|
|
|
+ List<Detail> detailList2 = new ArrayList<>();
|
|
|
+ Detail detail11 = new Detail();
|
|
|
+ detail11.setName("腹胀");
|
|
|
+ detail11.setValue(0);
|
|
|
+ Detail detail12 = new Detail();
|
|
|
+ detail12.setName("厌食");
|
|
|
+ detail12.setValue(0);
|
|
|
+ Detail detail13 = new Detail();
|
|
|
+ detail13.setName("嗳气");
|
|
|
+ detail13.setValue(0);
|
|
|
+ Detail detail14 = new Detail();
|
|
|
+ detail14.setName("恶心");
|
|
|
+ detail14.setValue(0);
|
|
|
+ Detail detail15 = new Detail();
|
|
|
+ detail15.setName("呕吐");
|
|
|
+ detail15.setValue(0);
|
|
|
+ detailList2.add(detail11);
|
|
|
+ detailList2.add(detail12);
|
|
|
+ detailList2.add(detail13);
|
|
|
+ detailList2.add(detail14);
|
|
|
+ detailList2.add(detail15);
|
|
|
+ Indicators indicators11 = new Indicators();
|
|
|
+ indicators11.setName("胃肠道不良反应");
|
|
|
+ indicators11.setControlType(2);
|
|
|
+ indicators11.setDetails(detailList2);
|
|
|
+ indicatorsList1.add(indicators11);
|
|
|
+ filnlly.setAdverseEvent(indicatorsList1);
|
|
|
filnlly.setTreatment(drugsList);
|
|
|
diagTreat.put(diseaseName, filnlly);
|
|
|
|