|
@@ -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())) {
|