|
@@ -1,11 +1,9 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.alibaba.fastjson.JSONPObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.client.AIServiceClient;
|
|
|
import com.diagbot.client.HighRiskServiceClient;
|
|
|
-import com.diagbot.client.bean.Feature;
|
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
|
import com.diagbot.client.bean.MedicalIndication;
|
|
@@ -38,14 +36,11 @@ import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.LisKYJVO;
|
|
|
import com.diagbot.vo.LisResult;
|
|
|
import com.diagbot.vo.LisResultVO;
|
|
|
-import com.diagbot.vo.MedicalIndicationVO;
|
|
|
import com.diagbot.vo.PushKYJVO;
|
|
|
import com.diagbot.vo.PushVO;
|
|
|
import com.diagbot.vo.QuestionVO;
|
|
|
import com.google.common.collect.Lists;
|
|
|
-import org.aspectj.weaver.patterns.TypePatternQuestions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Arrays;
|
|
@@ -158,6 +153,7 @@ public class PushFacade {
|
|
|
List<FeatureRate> dis = data.getDis();
|
|
|
List<FeatureRate> pacs = data.getPacs();
|
|
|
List<FeatureRate> labs = data.getLabs();
|
|
|
+ List<FeatureRate> vitals = data.getVitals();
|
|
|
List<FeatureRate> other = data.getHistory();
|
|
|
Map<String, JSONObject> treat = data.getTreat();
|
|
|
Map<String, JSONObject> scale = data.getScale();
|
|
@@ -165,9 +161,10 @@ public class PushFacade {
|
|
|
List<MedicalIndication> medicalIndicationList = data.getMedicalIndications();
|
|
|
|
|
|
Map<String, Object> symptomMap = list2Map(symptom);
|
|
|
+ Map<String, Object> otherMap = list2Map(other);
|
|
|
+ Map<String, Object> importantVital = list2Map(vitals);
|
|
|
Map<String, Object> labMap = list2Map(labs);
|
|
|
Map<String, Object> pacsMap = list2Map(pacs);
|
|
|
- Map<String, Object> otherMap = list2Map(other);
|
|
|
|
|
|
//症状 标签列表
|
|
|
if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.Symptom.getKey()))) {
|
|
@@ -192,10 +189,22 @@ public class PushFacade {
|
|
|
List<QuestionDTO> vitalDTO = getVitalModule(deptName, pushVO);
|
|
|
pushDTO.setVital(vitalDTO);
|
|
|
|
|
|
+ //查体标记项
|
|
|
+ List<QuestionDTO> importantVitalDTO = getTagListByMap(importantVital, pushVO, FeatureTypeEnum.Vital.getKey());
|
|
|
+ pushDTO.setImportantVital(importantVitalDTO);
|
|
|
}
|
|
|
//化验 标签列表
|
|
|
if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.Lis.getKey()))) {
|
|
|
- List<QuestionDTO> labDTO = getTagListByMap(labMap, pushVO, FeatureTypeEnum.Lis.getKey());
|
|
|
+ //公表项转套餐项
|
|
|
+ Map<String, List<String>> lisMapping = lisMappingFacade.getLisMappingByUniqueName();
|
|
|
+ Map<String, Object> mealLabMap = new LinkedHashMap<>();
|
|
|
+ for (Map.Entry<String, Object> entry : labMap.entrySet()) {
|
|
|
+ if (ListUtil.isNotEmpty(lisMapping.get(entry.getKey()))) {
|
|
|
+ //匹配出多个套餐项默认取第一个
|
|
|
+ mealLabMap.put(lisMapping.get(entry.getKey()).get(0), null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ List<QuestionDTO> labDTO = getTagListByMap(mealLabMap, pushVO, FeatureTypeEnum.Lis.getKey());
|
|
|
pushDTO.setLab(labDTO);
|
|
|
}
|
|
|
//辅检 标签列表
|