|
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.client.AiptServiceClient;
|
|
|
import com.diagbot.client.TranServiceClient;
|
|
|
-import com.diagbot.client.bean.CalcResult;
|
|
|
import com.diagbot.client.bean.FeatureRate;
|
|
|
import com.diagbot.client.bean.GdbResponse;
|
|
|
import com.diagbot.client.bean.MedicalIndication;
|
|
@@ -172,7 +171,8 @@ public class PushFacade {
|
|
|
public Map<String, Object> scale(SearchData searchData) {
|
|
|
Response<Map<String, Object>> res = aiptServiceClient.scale(searchData);
|
|
|
if (null == res || null == res.getData()) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "中间层没有返回结果");
|
|
|
+// throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "中间层没有返回结果");
|
|
|
+ return new HashMap<String, Object>();
|
|
|
}
|
|
|
return res.getData();
|
|
|
}
|
|
@@ -653,6 +653,32 @@ public class PushFacade {
|
|
|
String[] featureTypes = featureType.split(",|,");
|
|
|
Set<String> featureTypeSet = new HashSet(Arrays.asList(featureTypes));
|
|
|
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Symptom.getKey()))) {
|
|
|
+ List<FeatureRate> symptomFeature = data.getSymptom();
|
|
|
+ if (symptomFeature.size() > 0) {
|
|
|
+ List<EMRQuestionDTO> symptomList = Lists.newLinkedList();
|
|
|
+ for (FeatureRate featureRate : symptomFeature) {
|
|
|
+ EMRQuestionDTO symptom = new EMRQuestionDTO();
|
|
|
+ symptom.setName(featureRate.getFeatureName());
|
|
|
+ symptom.setUniqueName(featureRate.getFeatureName());
|
|
|
+ symptomList.add(symptom);
|
|
|
+ }
|
|
|
+ pushEMRDTO.setSymptomList(symptomList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Vital.getKey()))) {
|
|
|
+ List<FeatureRate> vitalFeature = data.getVitals();
|
|
|
+ if (vitalFeature.size() > 0) {
|
|
|
+ List<EMRQuestionDTO> vitalList = Lists.newLinkedList();
|
|
|
+ for (FeatureRate featureRate : vitalFeature) {
|
|
|
+ EMRQuestionDTO vital = new EMRQuestionDTO();
|
|
|
+ vital.setName(featureRate.getFeatureName());
|
|
|
+ vital.setUniqueName(featureRate.getFeatureName());
|
|
|
+ vitalList.add(vital);
|
|
|
+ }
|
|
|
+ pushEMRDTO.setVitalList(vitalList);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Lis.getKey()))) {
|
|
|
List<FeatureRate> lisFeatures = data.getLabs();
|
|
|
if (lisFeatures.size() > 0) {
|