Просмотр исходного кода

高危诊断改成只判断初步诊断

Zhaops 5 лет назад
Родитель
Сommit
222370e647

+ 0 - 9
aipt-service/src/main/java/com/diagbot/client/AIServiceClient.java

@@ -37,15 +37,6 @@ public interface AIServiceClient {
     @PostMapping(value = "/push-web/graph/scale")
     Map<String, Object> scale(@RequestBody SearchVo searchVo);
 
-    /**
-     * 高危诊断
-     *
-     * @param searchVo
-     * @return
-     */
-    @PostMapping(value = "/push-web/graph/highRisk")
-    Response<GdbResponse> highRiskPageData(@RequestBody SearchVo searchVo);
-
     /**
      * 计算接口
      *

+ 1 - 13
aipt-service/src/main/java/com/diagbot/client/hystrix/AIServiceHystrix.java

@@ -44,18 +44,6 @@ public class AIServiceHystrix implements AIServiceClient {
         return null;
     }
 
-    /**
-     * 高危诊断
-     *
-     * @param searchVo
-     * @return
-     */
-    @Override
-    public Response<GdbResponse> highRiskPageData(@RequestBody SearchVo searchVo) {
-        log.error("【hystrix】调用{}异常", "highRiskPageData");
-        return null;
-    }
-
     /**
      * 计算接口
      *
@@ -67,4 +55,4 @@ public class AIServiceHystrix implements AIServiceClient {
         log.error("【hystrix】调用{}异常", "scaleCalc");
         return null;
     }
-}
+}

+ 0 - 15
aipt-service/src/main/java/com/diagbot/facade/ClinicalFacade.java

@@ -168,21 +168,6 @@ public class ClinicalFacade {
         return list;
     }
 
-    /**
-     * 高危诊断
-     *
-     * @param searchVo
-     * @return
-     */
-    public GdbResponse highRiskPageData(SearchVo searchVo) {
-        Response<GdbResponse> response = aiServiceClient.highRiskPageData(searchVo);
-        if (response == null || response.getData() == null) {
-            return null;
-            //throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "高危没有返回结果");
-        }
-        return response.getData();
-    }
-
     /**
      * 计算接口
      *

+ 0 - 25
aipt-service/src/main/java/com/diagbot/facade/PushFacade.java

@@ -166,33 +166,8 @@ public class PushFacade {
         //诊断 map
         if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.Feature_Type_Disease.getKey()))) {
             if (ListUtil.isNotEmpty(dis)) {
-                List<String> nameList = dis.stream().map(featureRate -> featureRate.getFeatureName()).distinct().collect(Collectors.toList());
                 Map<String, List<ConceptPushDTO>> disMapDTO = new LinkedHashMap<>();
                 Map<String, List<FeatureRate>> disFeatureMap = new LinkedHashMap<>();
-                //警惕
-                Map<String, String> highRiskMap = new HashMap<>();
-                highRiskMap.put("disease", String.join(",", nameList));
-                SearchVo hrSearchVo = new SearchVo();
-                hrSearchVo.setDiag(String.join(",", nameList));
-                GdbResponse graphRes = clinicalFacade.highRiskPageData(hrSearchVo);
-                if (graphRes != null) {
-                    Map<String, String> graphResult = graphRes.getResult();
-                    if (graphResult.size() > 0) {
-                        List<String> hrNameList = Lists.newLinkedList();
-                        for (Map.Entry<String, String> entry : graphResult.entrySet()) {
-                            if (entry.getValue().equals("1")) {
-                                hrNameList.add(entry.getKey());
-                            }
-                        }
-                        if (ListUtil.isNotEmpty(hrNameList)) {
-                            List<ConceptPushDTO> hrDisDTO = getConceptDTOList(hrNameList, LexiconTypeEnum.DIAGNOSIS.getKey());
-                            if (isConnect) {
-                                hrDisDTO = addClientName(hrDisDTO, searchVo.getHosCode(), ConceptTypeEnum.Disease.getKey());
-                            }
-                            disMapDTO.put("警惕", hrDisDTO);
-                        }
-                    }
-                }
                 //诊断分类
                 for (FeatureRate featureRate : dis) {
                     if (StringUtil.isBlank(featureRate.getDesc())) {

+ 1 - 11
aipt-service/src/main/java/com/diagbot/web/ClinicalController.java

@@ -3,7 +3,6 @@ package com.diagbot.web;
 
 import com.diagbot.annotation.SysLogger;
 import com.diagbot.client.bean.CalculateData;
-import com.diagbot.client.bean.GdbResponse;
 import com.diagbot.client.bean.ResponseData;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.ScaleContent;
@@ -63,15 +62,6 @@ public class ClinicalController {
         return RespDTO.onSuc(data);
     }
 
-    @ApiOperation(value = "高危诊断", notes = "")
-    @PostMapping("/highRisk")
-    @SysLogger("highRisk")
-    @ApiIgnore
-    public RespDTO<GdbResponse> highRisk(@RequestBody SearchVo searchVo) {
-        GdbResponse data = clinicalFacade.highRiskPageData(searchVo);
-        return RespDTO.onSuc(data);
-    }
-
     @ApiOperation(value = "知识库标准化-计算接口", notes = "")
     @PostMapping("/scaleCalc")
     @SysLogger("scaleCalc")
@@ -79,4 +69,4 @@ public class ClinicalController {
         Map<String, Object> data = clinicalFacade.scaleCalc(calculateData);
         return RespDTO.onSuc(data);
     }
-}
+}