|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.diagbot.client.AiptServiceClient;
|
|
import com.diagbot.client.AiptServiceClient;
|
|
import com.diagbot.client.TranServiceClient;
|
|
import com.diagbot.client.TranServiceClient;
|
|
import com.diagbot.client.bean.ConceptBaseVO;
|
|
import com.diagbot.client.bean.ConceptBaseVO;
|
|
|
|
+import com.diagbot.client.bean.ConceptExistVO;
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
import com.diagbot.client.bean.ResponseData;
|
|
import com.diagbot.client.bean.ResponseData;
|
|
@@ -63,8 +64,6 @@ public class PushFacade {
|
|
@Autowired
|
|
@Autowired
|
|
private QuestionFacade questionFacade;
|
|
private QuestionFacade questionFacade;
|
|
@Autowired
|
|
@Autowired
|
|
- private DeptInfoFacade deptInfoFacade;
|
|
|
|
- @Autowired
|
|
|
|
private DeptVitalFacade deptVitalFacade;
|
|
private DeptVitalFacade deptVitalFacade;
|
|
@Autowired
|
|
@Autowired
|
|
private TreatmentFacade treatmentFacade;
|
|
private TreatmentFacade treatmentFacade;
|
|
@@ -73,10 +72,6 @@ public class PushFacade {
|
|
@Autowired
|
|
@Autowired
|
|
private DisTypeFacade disTypeFacade;
|
|
private DisTypeFacade disTypeFacade;
|
|
@Autowired
|
|
@Autowired
|
|
- private ScaleContentFacade scaleContentFacade;
|
|
|
|
- @Autowired
|
|
|
|
- private EvaluationModuleMappingFacade evaluationModuleMappingFacade;
|
|
|
|
- @Autowired
|
|
|
|
private TranServiceClient tranServiceClient;
|
|
private TranServiceClient tranServiceClient;
|
|
@Autowired
|
|
@Autowired
|
|
private AiptServiceClient aiptServiceClient;
|
|
private AiptServiceClient aiptServiceClient;
|
|
@@ -182,6 +177,8 @@ public class PushFacade {
|
|
//公表项转套餐项
|
|
//公表项转套餐项
|
|
Map<String, List<String>> lisMapping = lisMappingFacade.getLisMappingByUniqueName();
|
|
Map<String, List<String>> lisMapping = lisMappingFacade.getLisMappingByUniqueName();
|
|
List<String> nameList = Lists.newLinkedList();
|
|
List<String> nameList = Lists.newLinkedList();
|
|
|
|
+ Map<String, Long> lisMap = new LinkedHashMap<>();
|
|
|
|
+ List<ConceptPushDTO> lisDTO = Lists.newLinkedList();
|
|
for (ConceptPushDTO lab : labs) {
|
|
for (ConceptPushDTO lab : labs) {
|
|
if (ListUtil.isNotEmpty(lisMapping.get(lab.getName()))) {
|
|
if (ListUtil.isNotEmpty(lisMapping.get(lab.getName()))) {
|
|
//匹配出多个套餐项默认取第一个
|
|
//匹配出多个套餐项默认取第一个
|
|
@@ -192,7 +189,25 @@ public class PushFacade {
|
|
nameList.add(name);
|
|
nameList.add(name);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- List<ConceptPushDTO> lisDTO = Lists.newLinkedList();
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(nameList)) {
|
|
|
|
+ ConceptExistVO conceptExistVO = new ConceptExistVO();
|
|
|
|
+ conceptExistVO.setNameList(nameList);
|
|
|
|
+ conceptExistVO.setType(ConceptTypeEnum.Lis.getKey());
|
|
|
|
+ RespDTO<Map<String, Long>> respDTO = aiptServiceClient.getConceptMapByNameAndType(conceptExistVO);
|
|
|
|
+ if (RespDTOUtil.respIsOK(respDTO)) {
|
|
|
|
+ lisMap = respDTO.data;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ for (Map.Entry<String, Long> entry : lisMap.entrySet()) {
|
|
|
|
+ ConceptPushDTO conceptPushDTO = new ConceptPushDTO();
|
|
|
|
+ conceptPushDTO.setConceptId(entry.getValue());
|
|
|
|
+ conceptPushDTO.setName(entry.getKey());
|
|
|
|
+ conceptPushDTO.setLibType(ConceptTypeEnum.Lis.getKey());
|
|
|
|
+ lisDTO.add(conceptPushDTO);
|
|
|
|
+ }
|
|
|
|
+ if (ListUtil.isNotEmpty(lisDTO)) {
|
|
|
|
+ lisDTO = addQuestionId(lisDTO, ConceptTypeEnum.Lis.getKey());
|
|
|
|
+ }
|
|
pushDTO.setLab(lisDTO);
|
|
pushDTO.setLab(lisDTO);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -208,25 +223,6 @@ public class PushFacade {
|
|
if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.MedicalIndication.getKey()))) {
|
|
if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.MedicalIndication.getKey()))) {
|
|
pushDTO.setMedicalIndications(data.getMedicalIndications());
|
|
pushDTO.setMedicalIndications(data.getMedicalIndications());
|
|
}
|
|
}
|
|
- //量表内容 featuretype=21
|
|
|
|
- /*if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.Scale.getKey()))) {
|
|
|
|
- Map<String, Object> scale = scale(aiSearchData);
|
|
|
|
- String scaleContent = "";
|
|
|
|
- if (scale != null && scale.size() > 0) {
|
|
|
|
- scaleContent = JSON.toJSONString(scale);
|
|
|
|
- }
|
|
|
|
- List<ScaleContent> scaleContentList = scaleContentFacade.getContent(pushVO.getScaleId(), scaleContent);
|
|
|
|
- pushDTO.setScale(scaleContentList);
|
|
|
|
- }*/
|
|
|
|
-
|
|
|
|
- //管理评估 featuretype=11 && disType=1(慢病)
|
|
|
|
- /*if (featureTypeSet.contains(String.valueOf(FeatureTypeEnum.ManagementEvaluation.getKey()))) {
|
|
|
|
- Map<String, JSONObject> managementEvaluation = data.getManagementEvaluation();
|
|
|
|
- if (pushVO.getDisType().equals(DisTypeEnum.CHRONIC.getKey())) {
|
|
|
|
- List<EvaluationDTO> evaluationModule = evaluationModuleMappingFacade.getEvaluationModule(pushVO.getDiseaseId(), managementEvaluation);
|
|
|
|
- pushDTO.setEvaluationModule(evaluationModule);
|
|
|
|
- }
|
|
|
|
- }*/
|
|
|
|
return pushDTO;
|
|
return pushDTO;
|
|
}
|
|
}
|
|
|
|
|