|
@@ -207,7 +207,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
Map<Integer, String> staticTypeDicMap =
|
|
Map<Integer, String> staticTypeDicMap =
|
|
EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
|
|
EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
|
|
for (DictionaryInfoDTO dic : dicStaticIndexList) {
|
|
for (DictionaryInfoDTO dic : dicStaticIndexList) {
|
|
- if (dic.getName().equals("检验")) {
|
|
|
|
|
|
+ if (dic.getVal().equals("3")) {//检验
|
|
//3-检验套餐、4-检验细项
|
|
//3-检验套餐、4-检验细项
|
|
if (map.containsKey(staticTypeDicMap.get("3"))) {
|
|
if (map.containsKey(staticTypeDicMap.get("3"))) {
|
|
retList.addAll(map.get(staticTypeDicMap.get("3")));
|
|
retList.addAll(map.get(staticTypeDicMap.get("3")));
|
|
@@ -215,7 +215,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (map.containsKey(staticTypeDicMap.get("4"))) {
|
|
if (map.containsKey(staticTypeDicMap.get("4"))) {
|
|
retList.addAll(map.get(staticTypeDicMap.get("4")));
|
|
retList.addAll(map.get(staticTypeDicMap.get("4")));
|
|
}
|
|
}
|
|
- } else if (dic.getName().equals("检查")) {
|
|
|
|
|
|
+ } else if (dic.getVal().equals("5")) {//检查
|
|
//5-检查、6-检查子项
|
|
//5-检查、6-检查子项
|
|
if (map.containsKey(staticTypeDicMap.get("5"))) {
|
|
if (map.containsKey(staticTypeDicMap.get("5"))) {
|
|
retList.addAll(map.get(staticTypeDicMap.get("5")));
|
|
retList.addAll(map.get(staticTypeDicMap.get("5")));
|
|
@@ -342,11 +342,25 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
|
|
|
List<StaticKnowledgeHISDTO> retList = Lists.newArrayList();
|
|
List<StaticKnowledgeHISDTO> retList = Lists.newArrayList();
|
|
List<DictionaryInfoDTO> dicStaticTypeList = dictionaryFacade.getListByGroupType(10);
|
|
List<DictionaryInfoDTO> dicStaticTypeList = dictionaryFacade.getListByGroupType(10);
|
|
|
|
+ List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
|
|
Map<String, String> dicStaticTypeValNameMap =
|
|
Map<String, String> dicStaticTypeValNameMap =
|
|
EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
|
|
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);
|
|
List<String> uniqueNameList = getUniqueNames(staticKnowledgeHISVO);
|
|
if (ListUtil.isEmpty(uniqueNameList)) {
|
|
if (ListUtil.isEmpty(uniqueNameList)) {
|
|
@@ -356,7 +370,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
conceptInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
conceptInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.in("name", uniqueNameList)
|
|
.in("name", uniqueNameList)
|
|
.eq("status", StatusEnum.Enable.getKey())
|
|
.eq("status", StatusEnum.Enable.getKey())
|
|
- .eq("type", typeName);
|
|
|
|
|
|
+ .in("type", typeNames);
|
|
List<ConceptInfo> conceptInfoList = this.list(conceptInfoQueryWrapper);
|
|
List<ConceptInfo> conceptInfoList = this.list(conceptInfoQueryWrapper);
|
|
|
|
|
|
if (ListUtil.isEmpty(conceptInfoList)) {
|
|
if (ListUtil.isEmpty(conceptInfoList)) {
|
|
@@ -393,7 +407,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
= EntityUtil.makeEntityListMap(detailList, "conceptId");
|
|
= EntityUtil.makeEntityListMap(detailList, "conceptId");
|
|
for (StaticKnowledgeHISDTO staticKnowledgeDTO : retList) {
|
|
for (StaticKnowledgeHISDTO staticKnowledgeDTO : retList) {
|
|
staticKnowledgeDTO.setHisName(staticKnowledgeHISVO.getHisName());
|
|
staticKnowledgeDTO.setHisName(staticKnowledgeHISVO.getHisName());
|
|
- staticKnowledgeDTO.setHisName(staticKnowledgeHISVO.getHisDetailName());
|
|
|
|
|
|
+ staticKnowledgeDTO.setHisDetailName(staticKnowledgeHISVO.getHisDetailName());
|
|
List<StaticKnowledgeDetailDTO> subDetailList = conceptMap.get(staticKnowledgeDTO.getId());
|
|
List<StaticKnowledgeDetailDTO> subDetailList = conceptMap.get(staticKnowledgeDTO.getId());
|
|
if (ListUtil.isNotEmpty(subDetailList)) {
|
|
if (ListUtil.isNotEmpty(subDetailList)) {
|
|
List<StaticKnowledgeDetailDTO> introduceList = subDetailList
|
|
List<StaticKnowledgeDetailDTO> introduceList = subDetailList
|
|
@@ -481,7 +495,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
Map<String, Map<String, Long>> disConfigMap
|
|
Map<String, Map<String, Long>> disConfigMap
|
|
= diseaseConfigFacade.getConfigMap(hospitalId,
|
|
= diseaseConfigFacade.getConfigMap(hospitalId,
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
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());
|
|
nameList = new ArrayList<>(disConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -489,7 +504,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
Map<String, Map<String, Long>> drugConfigMap
|
|
Map<String, Map<String, Long>> drugConfigMap
|
|
= drugConfigFacade.getConfigMapWithoutForm(hospitalId,
|
|
= drugConfigFacade.getConfigMapWithoutForm(hospitalId,
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
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());
|
|
nameList = new ArrayList<>(drugConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -511,18 +527,21 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 5:
|
|
case 5:
|
|
|
|
+ case 6:
|
|
Map<String, Map<String, Long>> pacsConfigMap
|
|
Map<String, Map<String, Long>> pacsConfigMap
|
|
= pacsConfigFacade.getConfigMap(hospitalId,
|
|
= pacsConfigFacade.getConfigMap(hospitalId,
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
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());
|
|
nameList = new ArrayList<>(pacsConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case 6:
|
|
|
|
|
|
+ case 7:
|
|
Map<String, Map<String, Long>> operationConfigMap
|
|
Map<String, Map<String, Long>> operationConfigMap
|
|
= operationConfigFacade.getConfigMap(hospitalId,
|
|
= operationConfigFacade.getConfigMap(hospitalId,
|
|
ListUtil.arrayToList(new String[] { staticKnowledgeHISVO.getHisName() }), null);
|
|
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());
|
|
nameList = new ArrayList<>(operationConfigMap.get(staticKnowledgeHISVO.getHisName()).keySet());
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -530,10 +549,12 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
- nameList = nameList
|
|
|
|
- .stream()
|
|
|
|
- .distinct()
|
|
|
|
- .collect(Collectors.toList());
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(nameList)) {
|
|
|
|
+ nameList = nameList
|
|
|
|
+ .stream()
|
|
|
|
+ .distinct()
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ }
|
|
return nameList;
|
|
return nameList;
|
|
}
|
|
}
|
|
|
|
|