|
@@ -342,11 +342,25 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
|
|
|
List<StaticKnowledgeHISDTO> retList = Lists.newArrayList();
|
|
|
List<DictionaryInfoDTO> dicStaticTypeList = dictionaryFacade.getListByGroupType(10);
|
|
|
+ List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
|
Map<String, String> dicStaticTypeValNameMap =
|
|
|
EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
|
|
|
- String typeName = dicStaticTypeValNameMap.get(staticKnowledgeHISVO.getType().toString());
|
|
|
- List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
|
- typeName = convertTypeName(typeName, 1, dicList);
|
|
|
+
|
|
|
+ List<String> typeNames = ListUtil.newArrayList();
|
|
|
+ List<Integer> types = ListUtil.newArrayList();
|
|
|
+ types.add(staticKnowledgeHISVO.getType());
|
|
|
+ if (staticKnowledgeHISVO.getType().equals(5)) {
|
|
|
+ types.add(6);
|
|
|
+ } else if (staticKnowledgeHISVO.getType().equals(6)) {
|
|
|
+ types.add(5);
|
|
|
+ }
|
|
|
+
|
|
|
+ for (Integer type : types) {
|
|
|
+ String typeName = dicStaticTypeValNameMap.get(type.toString());
|
|
|
+ typeName = convertTypeName(typeName, 1, dicList);
|
|
|
+ typeNames.add(typeName);
|
|
|
+ }
|
|
|
+
|
|
|
//术语映射
|
|
|
List<String> uniqueNameList = getUniqueNames(staticKnowledgeHISVO);
|
|
|
if (ListUtil.isEmpty(uniqueNameList)) {
|
|
@@ -356,7 +370,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
conceptInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.in("name", uniqueNameList)
|
|
|
.eq("status", StatusEnum.Enable.getKey())
|
|
|
- .eq("type", typeName);
|
|
|
+ .in("type", typeNames);
|
|
|
List<ConceptInfo> conceptInfoList = this.list(conceptInfoQueryWrapper);
|
|
|
|
|
|
if (ListUtil.isEmpty(conceptInfoList)) {
|
|
@@ -393,7 +407,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
= EntityUtil.makeEntityListMap(detailList, "conceptId");
|
|
|
for (StaticKnowledgeHISDTO staticKnowledgeDTO : retList) {
|
|
|
staticKnowledgeDTO.setHisName(staticKnowledgeHISVO.getHisName());
|
|
|
- staticKnowledgeDTO.setHisName(staticKnowledgeHISVO.getHisDetailName());
|
|
|
+ staticKnowledgeDTO.setHisDetailName(staticKnowledgeHISVO.getHisDetailName());
|
|
|
List<StaticKnowledgeDetailDTO> subDetailList = conceptMap.get(staticKnowledgeDTO.getId());
|
|
|
if (ListUtil.isNotEmpty(subDetailList)) {
|
|
|
List<StaticKnowledgeDetailDTO> introduceList = subDetailList
|
|
@@ -481,7 +495,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
Map<String, Map<String, Long>> disConfigMap
|
|
|
= diseaseConfigFacade.getConfigMap(hospitalId,
|
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
|
- if (disConfigMap != null) {
|
|
|
+ if (disConfigMap != null
|
|
|
+ && disConfigMap.get(staticKnowledgeHISVO.getHisName()) != null) {
|
|
|
nameList = new ArrayList<>(disConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
|
}
|
|
|
break;
|
|
@@ -489,7 +504,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
Map<String, Map<String, Long>> drugConfigMap
|
|
|
= drugConfigFacade.getConfigMapWithoutForm(hospitalId,
|
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
|
- if (drugConfigMap != null) {
|
|
|
+ if (drugConfigMap != null
|
|
|
+ && drugConfigMap.get(staticKnowledgeHISVO.getHisName()) != null) {
|
|
|
nameList = new ArrayList<>(drugConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
|
}
|
|
|
break;
|
|
@@ -511,26 +527,21 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
}
|
|
|
break;
|
|
|
case 5:
|
|
|
+ case 6:
|
|
|
Map<String, Map<String, Long>> pacsConfigMap
|
|
|
= pacsConfigFacade.getConfigMap(hospitalId,
|
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
|
- if (pacsConfigMap != null) {
|
|
|
+ if (pacsConfigMap != null
|
|
|
+ && pacsConfigMap.get(staticKnowledgeHISVO.getHisName()) != null) {
|
|
|
nameList = new ArrayList<>(pacsConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
|
}
|
|
|
break;
|
|
|
- case 6:
|
|
|
- Map<String, Map<String, Long>> subPacsConfigMap
|
|
|
- = pacsConfigFacade.getConfigMap(hospitalId,
|
|
|
- ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
|
- if (subPacsConfigMap != null) {
|
|
|
- nameList = new ArrayList<>(subPacsConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
|
- }
|
|
|
- break;
|
|
|
case 7:
|
|
|
Map<String, Map<String, Long>> operationConfigMap
|
|
|
= operationConfigFacade.getConfigMap(hospitalId,
|
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
|
- if (operationConfigMap != null) {
|
|
|
+ if (operationConfigMap != null &&
|
|
|
+ operationConfigMap.get(staticKnowledgeHISVO.getHisName()) != null) {
|
|
|
nameList = new ArrayList<>(operationConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
|
}
|
|
|
break;
|
|
@@ -538,10 +549,12 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
- nameList = nameList
|
|
|
- .stream()
|
|
|
- .distinct()
|
|
|
- .collect(Collectors.toList());
|
|
|
+ if (ListUtil.isNotEmpty(nameList)) {
|
|
|
+ nameList = nameList
|
|
|
+ .stream()
|
|
|
+ .distinct()
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ }
|
|
|
return nameList;
|
|
|
}
|
|
|
|