|
@@ -8,6 +8,7 @@ import com.diagbot.dto.LisDetailDTO;
|
|
|
import com.diagbot.dto.OperationInfoDTO;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.dto.StaticKnowledgeIndexDTO;
|
|
|
+import com.diagbot.enums.LexiconEnum;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.EntityUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -142,6 +143,14 @@ public class MedRetrievalFacade {
|
|
|
retrievalDTO.setSymptomNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
}
|
|
|
break;
|
|
|
+ case 10:
|
|
|
+ medRetrievalVO.setTypeId(124);
|
|
|
+ medRetrievalVO.getTypeIds().add(124);
|
|
|
+ indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
+ if (ListUtil.isNotEmpty(indexList)) {
|
|
|
+ retrievalDTO.setSymptomNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
return retrievalDTO;
|
|
|
}
|
|
@@ -164,27 +173,37 @@ public class MedRetrievalFacade {
|
|
|
Map<String, String> dicTypeMap = EntityUtil.makeMapWithKeyValue(dicType, "name", "val");
|
|
|
List<DictionaryInfoDTO> dicTypeName = dictionaryFacade.getListByGroupType(13);
|
|
|
|
|
|
- //检索类型(多选):0-全部、1-诊断、2-药品、3-检验、4-检查、5-手术和操作
|
|
|
+ //检索类型(多选):0-全部、1-诊断、2-药品、3-检验、5-检查、6-手术和操作、8-量表
|
|
|
if (ListUtil.isEmpty(types)
|
|
|
|| (ListUtil.isNotEmpty(types) && types.contains(0))) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().addAll(Arrays.asList(new Integer[] { 100, 101, 106, 107, 108, 109, 110 }));
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().addAll(Arrays.asList(new Integer[] { LexiconEnum.Disease.getKey(),
|
|
|
+ LexiconEnum.Disease.getKey(),
|
|
|
+ LexiconEnum.LisName.getKey(),
|
|
|
+ LexiconEnum.LisSubName.getKey(),
|
|
|
+ LexiconEnum.PacsName.getKey(),
|
|
|
+ LexiconEnum.PacsSubName.getKey(),
|
|
|
+ LexiconEnum.Operation.getKey(),
|
|
|
+ LexiconEnum.Scale.getKey() }));
|
|
|
} else {
|
|
|
if (types.contains(1)) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(100);
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.Disease.getKey());
|
|
|
}
|
|
|
if (types.contains(2)) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(101);
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.Medicine.getKey());
|
|
|
}
|
|
|
if (types.contains(3)) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(107);
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(108);
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.LisName.getKey());
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.LisSubName.getKey());
|
|
|
}
|
|
|
if (types.contains(5)) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(109);
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(110);
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.PacsName.getKey());
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.PacsSubName.getKey());
|
|
|
}
|
|
|
if (types.contains(6)) {
|
|
|
- staticKnowledgeIndexVO.getTypeIds().add(106);
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.Operation.getKey());
|
|
|
+ }
|
|
|
+ if (types.contains(8)) {
|
|
|
+ staticKnowledgeIndexVO.getTypeIds().add(LexiconEnum.Scale.getKey());
|
|
|
}
|
|
|
}
|
|
|
|