|
@@ -121,21 +121,49 @@ public class PushFacade {
|
|
List<FeatureRate> dis = data.getDis();
|
|
List<FeatureRate> dis = data.getDis();
|
|
List<FeatureRate> pacs = data.getPacs();
|
|
List<FeatureRate> pacs = data.getPacs();
|
|
List<FeatureRate> labs = data.getLabs();
|
|
List<FeatureRate> labs = data.getLabs();
|
|
|
|
+ List<FeatureRate> other = data.getHistory();
|
|
Map<String, String> treat = data.getTreat();
|
|
Map<String, String> treat = data.getTreat();
|
|
|
|
|
|
Map<String, Object> symptomMap = list2Map(symptom);
|
|
Map<String, Object> symptomMap = list2Map(symptom);
|
|
Map<String, Object> labMap = list2Map(labs);
|
|
Map<String, Object> labMap = list2Map(labs);
|
|
Map<String, Object> pacsMap = list2Map(pacs);
|
|
Map<String, Object> pacsMap = list2Map(pacs);
|
|
|
|
+ Map<String, Object> otherMap = list2Map(other);
|
|
|
|
|
|
|
|
+ //症状 标签列表
|
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Symptom.getKey()))) {
|
|
|
|
+ //文本模式不推症状,仅结构化模式推症状
|
|
|
|
+ //if (mode.equals(InputModeEnum.Structured.getKey())) {
|
|
|
|
+ List<QuestionDTO> symptomDTO = getTagListByMap(symptomMap, pushVO, QuestionTypeEnum.Symptom.getKey());
|
|
|
|
+ pushDTO.setSymptom(symptomDTO);
|
|
|
|
+ //}
|
|
|
|
+ }
|
|
|
|
+ //其他史 标签列表
|
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Other.getKey()))) {
|
|
|
|
+ List<QuestionDTO> otherDTO = getTagListByMap(otherMap, pushVO, QuestionTypeEnum.Other.getKey());
|
|
|
|
+ pushDTO.setOther(otherDTO);
|
|
|
|
+ }
|
|
|
|
+ //查体 返回模板(标签列表)
|
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Vital.getKey()))) {
|
|
|
|
+ //没有推送信息时,默认取全科模板
|
|
|
|
+ String deptName = "全科";
|
|
|
|
+ if (dis != null && dis.size() > 0) {
|
|
|
|
+ deptName = dis.get(0).getExtraProperty();
|
|
|
|
+ }
|
|
|
|
+ List<QuestionDTO> vitalDTO = getVitalModule(deptName, pushVO);
|
|
|
|
+ pushDTO.setVital(vitalDTO);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ //化验 标签列表
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Lis.getKey()))) {
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Lis.getKey()))) {
|
|
List<QuestionDTO> labDTO = getTagListByMap(labMap, pushVO, QuestionTypeEnum.Lis.getKey());
|
|
List<QuestionDTO> labDTO = getTagListByMap(labMap, pushVO, QuestionTypeEnum.Lis.getKey());
|
|
pushDTO.setLab(labDTO);
|
|
pushDTO.setLab(labDTO);
|
|
}
|
|
}
|
|
|
|
+ //辅检 标签列表
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Pacs.getKey()))) {
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Pacs.getKey()))) {
|
|
List<QuestionDTO> pacsDTO = getTagListByMap(pacsMap, pushVO, QuestionTypeEnum.Pacs.getKey());
|
|
List<QuestionDTO> pacsDTO = getTagListByMap(pacsMap, pushVO, QuestionTypeEnum.Pacs.getKey());
|
|
pushDTO.setPacs(pacsDTO);
|
|
pushDTO.setPacs(pacsDTO);
|
|
}
|
|
}
|
|
- //诊断 返回tagName+标签
|
|
|
|
|
|
+ //诊断 返回分类+标签列表
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Disease.getKey()))) {
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Disease.getKey()))) {
|
|
Map<String, List<QuestionDTO>> disMapDTO = new LinkedHashMap<>();
|
|
Map<String, List<QuestionDTO>> disMapDTO = new LinkedHashMap<>();
|
|
Map<String, List<FeatureRate>> disFeatureMap = new LinkedHashMap<>();
|
|
Map<String, List<FeatureRate>> disFeatureMap = new LinkedHashMap<>();
|
|
@@ -180,25 +208,6 @@ public class PushFacade {
|
|
}
|
|
}
|
|
pushDTO.setDis(disMapDTO);
|
|
pushDTO.setDis(disMapDTO);
|
|
}
|
|
}
|
|
- //症状(主诉 type=1;现病史 type=2) 返回 tagName+填写单
|
|
|
|
- if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Symptom.getKey()))) {
|
|
|
|
- //文本模式不推症状,仅结构化模式推症状
|
|
|
|
- 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()))) {
|
|
|
|
- //没有推送信息时,默认取全科模板
|
|
|
|
- String deptName = "全科";
|
|
|
|
- if (dis != null && dis.size() > 0) {
|
|
|
|
- deptName = dis.get(0).getExtraProperty();
|
|
|
|
- }
|
|
|
|
- List<QuestionDTO> vitalDTO = getVitalModule(deptName, pushVO);
|
|
|
|
- pushDTO.setVital(vitalDTO);
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
//治疗方案
|
|
//治疗方案
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Drug.getKey()))) {
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Drug.getKey()))) {
|
|
if (pushVO.getDiseaseId() == null) {
|
|
if (pushVO.getDiseaseId() == null) {
|