|
@@ -154,16 +154,54 @@ public class GraphCalculate {
|
|
|
String pacsOrder = searchData.getPacsOrder();
|
|
|
//指标推送
|
|
|
if (featureTypeList.contains("22") ) {
|
|
|
- List<MedicalIndication> pacsMi = getPacsMi(pacsOrder, inputList,webDiag);
|
|
|
+// List<MedicalIndication> pacsMi = getPacsMi(pacsOrder, inputList,webDiag);
|
|
|
+ Set<String> newindSet = new HashSet<>();
|
|
|
+ Set<String> newindSet1 = new HashSet<>();
|
|
|
//查找指标
|
|
|
Set<String> indSet = neo4jAPI.getInd((String[]) inputList.toArray(new String[inputList.size()]));
|
|
|
- logger.info("featureTypeList 包含22,走指标推送!!!,图谱推出的指标为:" + indSet);
|
|
|
if(indSet.contains("肾功能不全")){
|
|
|
- List<MedicalIndication> idn = neo4jAPI.getIdn(indSet, age, sex);
|
|
|
- pacsMi.addAll(idn);
|
|
|
- responseData.setMedicalIndications(pacsMi);
|
|
|
+ for (String ind:indSet
|
|
|
+ ) {
|
|
|
+ if("肾功能不全".equals(ind)){
|
|
|
+ newindSet.add(ind);
|
|
|
+
|
|
|
+ }else {
|
|
|
+ newindSet1.add(ind);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Map<String, String> indLiang =null;
|
|
|
+ if(newindSet1 != null && newindSet1.size()>0){
|
|
|
+ indLiang =neo4jAPI.getIndLiang(newindSet1);
|
|
|
+
|
|
|
+ }
|
|
|
+ logger.info("featureTypeList 包含22,走指标推送!!!,图谱推出的指标为:" + indSet);
|
|
|
+ if(newindSet.contains("肾功能不全")){
|
|
|
+ List<MedicalIndication> idn = neo4jAPI.getIdn(newindSet, age, sex);
|
|
|
+// pacsMi.addAll(idn);
|
|
|
+ responseData.setMedicalIndications(idn);
|
|
|
+ }
|
|
|
+ if(newindSet1 != null && newindSet1.size()>0){
|
|
|
+ for (String ind:newindSet1
|
|
|
+ ) {
|
|
|
+ MedicalIndication medicalIndication= new MedicalIndication();
|
|
|
+ medicalIndication.setName(ind);
|
|
|
+ List<MedicalIndicationDetail> ds = new ArrayList<>();
|
|
|
+ MedicalIndicationDetail medicalIndicationDetail = new MedicalIndicationDetail();
|
|
|
+ medicalIndicationDetail.setType(1);
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ if(indLiang != null){
|
|
|
+ jsonObject.put("name",indLiang.get(ind));
|
|
|
+ }
|
|
|
+
|
|
|
+ medicalIndicationDetail.setContent(jsonObject);
|
|
|
+ ds.add(medicalIndicationDetail);
|
|
|
+ medicalIndication.setDetails(ds);
|
|
|
+ boolean add = responseData.getMedicalIndications().add(medicalIndication);
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
- responseData.setMedicalIndications(pacsMi);
|
|
|
+// responseData.setMedicalIndications(pacsMi);
|
|
|
|
|
|
}
|
|
|
|