|
@@ -13,6 +13,7 @@ import com.diagbot.entity.DeptInfo;
|
|
|
import com.diagbot.entity.DeptVital;
|
|
|
import com.diagbot.entity.QuestionInfo;
|
|
|
import com.diagbot.entity.VitalOrder;
|
|
|
+import com.diagbot.enums.InputModeEnum;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.QuantitativeTypeEnum;
|
|
|
import com.diagbot.enums.QuestionTypeEnum;
|
|
@@ -95,7 +96,7 @@ public class PushFacade {
|
|
|
* @param pushVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public PushDTO pushInner(PushVO pushVO) {
|
|
|
+ public PushDTO pushInner(PushVO pushVO,Integer mode) {
|
|
|
PushDTO pushDTO = new PushDTO();
|
|
|
ResponseData data = pushAI(pushVO);
|
|
|
|
|
@@ -125,13 +126,17 @@ public class PushFacade {
|
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Disease.getKey()))) {
|
|
|
List<QuestionDTO> disDTO = getTagListByMap(disMap, pushVO, QuestionTypeEnum.Disease.getKey());
|
|
|
Map<String, List<QuestionDTO>> disMapDTO = new LinkedHashMap<>();
|
|
|
+ //当前返回诊断都按疑似诊断处理,待大数据提供诊断分类
|
|
|
disMapDTO.put("疑似诊断:", disDTO);
|
|
|
pushDTO.setDis(disMapDTO);
|
|
|
}
|
|
|
//症状(主诉 type=1;现病史 type=2) 返回 tagName+填写单
|
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Symptom.getKey()))) {
|
|
|
- List<QuestionDTO> symptomDTO = getTagListByMap(symptomMap, pushVO, QuestionTypeEnum.Symptom.getKey());
|
|
|
- pushDTO.setSymptom(symptomDTO);
|
|
|
+ //文本模式不推症状,仅结构化模式推症状
|
|
|
+ if (mode.equals(InputModeEnum.Structured.getKey())) {
|
|
|
+ List<QuestionDTO> symptomDTO = getTagListByMap(symptomMap, pushVO, QuestionTypeEnum.Symptom.getKey());
|
|
|
+ pushDTO.setSymptom(symptomDTO);
|
|
|
+ }
|
|
|
}
|
|
|
//查体 返回模板
|
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Vital.getKey()))) {
|