|
@@ -1,6 +1,7 @@
|
|
|
package org.diagbot.graphWeb.work;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import org.diagbot.common.javabean.MangementEvaluation;
|
|
|
import org.diagbot.common.work.FeatureRate;
|
|
|
import org.diagbot.common.javabean.Filnlly;
|
|
|
import org.diagbot.common.work.ResponseData;
|
|
@@ -45,7 +46,7 @@ public class GraphCalculate {
|
|
|
featureRate.setExtraProperty("");
|
|
|
if("低血糖反应".equals(d.getKey()) || "胃肠道不良反应".equals(d.getKey())
|
|
|
|| "肾功能不全".equals(d.getKey())){
|
|
|
- featureRate.setDesc("不良反应");
|
|
|
+ featureRate.setDesc(d.getValue());
|
|
|
featureRate.setRate("治疗影响");
|
|
|
}else {
|
|
|
featureRate.setDesc(d.getValue());
|
|
@@ -55,12 +56,17 @@ public class GraphCalculate {
|
|
|
}
|
|
|
String webDiag = searchData.getDiag();
|
|
|
Set<String> diseaseSet = condition.keySet();
|
|
|
+ String featureType = searchData.getFeatureType();
|
|
|
Integer diseaseType = searchData.getDisType();
|
|
|
//走治疗
|
|
|
- if(webDiag.trim()!=null && "8".equals(searchData.getFeatureType())){
|
|
|
+ if(webDiag.trim()!=null && "8".equals(featureType)){
|
|
|
//走平常诊断治疗
|
|
|
Map<String, Filnlly> mulDiseaseTreat = neo4jAPI.getMulDiseaseTreat_2(webDiag,diseaseType,diseaseSet,String.join(",", inputList));
|
|
|
responseData.setTreat(mulDiseaseTreat);
|
|
|
+ }
|
|
|
+ //管理评估
|
|
|
+ if("11".equals(featureType) && diseaseType == 1){
|
|
|
+
|
|
|
}
|
|
|
List<MedicalIndication> medicalIndicationList = new ArrayList<>();
|
|
|
MedicalIndication medicalIndication = this.getMedicalIndication(diseaseSet);
|
|
@@ -208,6 +214,11 @@ public class GraphCalculate {
|
|
|
return sortedMap;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 量表和指标
|
|
|
+ * @param diseaseSet
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public MedicalIndication getMedicalIndication(Set diseaseSet){
|
|
|
MedicalIndication medicalIndication = new MedicalIndication();
|
|
|
if(diseaseSet.contains("肾功能不全")){
|
|
@@ -261,7 +272,7 @@ public class GraphCalculate {
|
|
|
gongshiJson.put("details",detailList);
|
|
|
JSONObject resultJson = new JSONObject();
|
|
|
resultJson.put("value","");
|
|
|
- resultJson.put("unit","ml/min•1.73m2");
|
|
|
+ resultJson.put("unit","");
|
|
|
resultJson.put("text","");
|
|
|
gongshiJson.put("result",resultJson);
|
|
|
medicalIndicationDetail2.setContent(gongshiJson);
|
|
@@ -288,4 +299,30 @@ public class GraphCalculate {
|
|
|
}
|
|
|
return medicalIndication;
|
|
|
}
|
|
|
+ public MangementEvaluation getMangementEvaluation(){
|
|
|
+ MangementEvaluation mangementEvaluation = new MangementEvaluation();
|
|
|
+ Map<String,JSONObject> mangementMap = new HashMap<>();
|
|
|
+ JSONObject curativeJson = new JSONObject();
|
|
|
+ List<JSONObject> itemJson = new ArrayList<>();
|
|
|
+ JSONObject bloodPressure = new JSONObject();
|
|
|
+ bloodPressure.put("controltype",0);
|
|
|
+ bloodPressure.put("name","血压控制情况");
|
|
|
+ List<JSONObject> bloodPressureLevelList = new ArrayList<>();
|
|
|
+ String[] items= {"正常","1级","2级","3级"};
|
|
|
+ for (String item:items) {
|
|
|
+ JSONObject iJson = new JSONObject();
|
|
|
+ iJson.put("detailName",item);
|
|
|
+ iJson.put("state",0);
|
|
|
+ bloodPressureLevelList.add(iJson);
|
|
|
+ }
|
|
|
+ bloodPressure.put("details",bloodPressureLevelList);
|
|
|
+ itemJson.add(bloodPressure);
|
|
|
+ curativeJson.put("rows",itemJson);
|
|
|
+ mangementMap.put("疗效评估",curativeJson);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ mangementEvaluation.setMangementEvaluation(mangementMap);
|
|
|
+ return mangementEvaluation;
|
|
|
+ }
|
|
|
}
|