|
@@ -39,7 +39,6 @@ import com.diagbot.vo.PushVO;
|
|
|
import com.diagbot.vo.QuestionVO;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Arrays;
|
|
@@ -526,6 +525,30 @@ public class PushFacade {
|
|
|
pushEMRDTO.setPacsList(pacsList);
|
|
|
}
|
|
|
}
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Disease.getKey()))) {
|
|
|
+ List<FeatureRate> dis = data.getDis();
|
|
|
+ Map<String, List<String>> retDisMap = new LinkedHashMap<>();
|
|
|
+ RespDTO<Map<String, String>> respDisDTO = tranServiceClient.getDiseaseIcdByHosCode(hosCodeVO);
|
|
|
+ Map<String, String> disMap = respDisDTO.data;
|
|
|
+
|
|
|
+ //诊断分类
|
|
|
+ for (FeatureRate featureRate : dis) {
|
|
|
+ if (StringUtil.isBlank(featureRate.getDesc())) {
|
|
|
+ featureRate.setDesc("{\"可能诊断\":\"\"}");
|
|
|
+ }
|
|
|
+ Map<String, Object> descMap = FastJsonUtils.getJsonToMap(featureRate.getDesc());
|
|
|
+ for (String disClass : descMap.keySet()) {
|
|
|
+ List<String> retDisList = Lists.newLinkedList();
|
|
|
+ if (retDisMap.get(disClass) != null) {
|
|
|
+ retDisList = retDisMap.get(disClass);
|
|
|
+ }
|
|
|
+ //转icd10名称
|
|
|
+ retDisList.add(disMap.get(featureRate.getFeatureName()));
|
|
|
+ retDisMap.put(disClass, retDisList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ pushEMRDTO.setDis(retDisMap);
|
|
|
+ }
|
|
|
return pushEMRDTO;
|
|
|
}
|
|
|
}
|