|
@@ -85,9 +85,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
//过滤没有静态知识的检索结果
|
|
//过滤没有静态知识的检索结果
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList
|
|
.stream()
|
|
.stream()
|
|
- .filter(i -> i.getHasInfomation().equals(1)
|
|
|
|
- || i.getHasNotice().equals(1)
|
|
|
|
- || i.getHasClinicalPathway().equals(1))
|
|
|
|
|
|
+ .filter(i -> i.getHasInfo().equals(1))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
return staticKnowledgeIndexDTOList;
|
|
return staticKnowledgeIndexDTOList;
|
|
}
|
|
}
|
|
@@ -103,9 +101,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
//过滤没有静态知识的检索结果
|
|
//过滤没有静态知识的检索结果
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList
|
|
.stream()
|
|
.stream()
|
|
- .filter(i -> i.getHasInfomation().equals(0)
|
|
|
|
- && i.getHasNotice().equals(0)
|
|
|
|
- && i.getHasClinicalPathway().equals(0))
|
|
|
|
|
|
+ .filter(i -> i.getHasInfo().equals(0))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
return staticKnowledgeIndexDTOList;
|
|
return staticKnowledgeIndexDTOList;
|
|
}
|
|
}
|
|
@@ -166,15 +162,18 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
for (StaticKnowledgeIndexDTO item : staticKnowledgeIndexDTOList) {
|
|
for (StaticKnowledgeIndexDTO item : staticKnowledgeIndexDTOList) {
|
|
if (item.getId() == null
|
|
if (item.getId() == null
|
|
|| !detailMap.containsKey(item.getId())) {
|
|
|| !detailMap.containsKey(item.getId())) {
|
|
- item.setHasInfomation(0);
|
|
|
|
|
|
+ item.setHasInfo(0);
|
|
|
|
+ item.setHasStaticKnowledge(0);
|
|
item.setHasClinicalPathway(0);
|
|
item.setHasClinicalPathway(0);
|
|
item.setHasNotice((0));
|
|
item.setHasNotice((0));
|
|
|
|
+ item.setHasTreatInfo(0);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
for (ConceptDetail detail : detailMap.get(item.getId())) {
|
|
for (ConceptDetail detail : detailMap.get(item.getId())) {
|
|
|
|
+ item.setHasInfo(1);
|
|
List<String> contentTypeList = Arrays.asList(detail.getContentType().split(","));
|
|
List<String> contentTypeList = Arrays.asList(detail.getContentType().split(","));
|
|
if (contentTypeList.contains("1")) {
|
|
if (contentTypeList.contains("1")) {
|
|
- item.setHasInfomation(1);
|
|
|
|
|
|
+ item.setHasStaticKnowledge(1);
|
|
}
|
|
}
|
|
if (contentTypeList.contains("2")) {
|
|
if (contentTypeList.contains("2")) {
|
|
item.setHasNotice(1);
|
|
item.setHasNotice(1);
|
|
@@ -182,6 +181,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (contentTypeList.contains("3")) {
|
|
if (contentTypeList.contains("3")) {
|
|
item.setHasClinicalPathway(1);
|
|
item.setHasClinicalPathway(1);
|
|
}
|
|
}
|
|
|
|
+ if (contentTypeList.contains("4")) {
|
|
|
|
+ item.setHasTreatInfo(1);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -267,6 +269,10 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
.stream()
|
|
.stream()
|
|
.filter(i -> Arrays.asList(i.getContentType().split(",")).contains("3"))
|
|
.filter(i -> Arrays.asList(i.getContentType().split(",")).contains("3"))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
|
+ List<StaticKnowledgeDetailDTO> treatInfoList = detailList
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(i -> Arrays.asList(i.getContentType().split(",")).contains("4"))
|
|
|
|
+ .collect(Collectors.toList());
|
|
Map<String, List<StaticKnowledgeDetailDTO>> detailMap = new HashMap<>();
|
|
Map<String, List<StaticKnowledgeDetailDTO>> detailMap = new HashMap<>();
|
|
if (ListUtil.isEmpty(staticKnowledgeVO.getContentTypes()) || staticKnowledgeVO.getContentTypes().contains(0)) {
|
|
if (ListUtil.isEmpty(staticKnowledgeVO.getContentTypes()) || staticKnowledgeVO.getContentTypes().contains(0)) {
|
|
if (ListUtil.isNotEmpty(introduceList)) {
|
|
if (ListUtil.isNotEmpty(introduceList)) {
|
|
@@ -278,6 +284,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList)) {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList)) {
|
|
detailMap.put("临床路径", clinicalPathwayList);
|
|
detailMap.put("临床路径", clinicalPathwayList);
|
|
}
|
|
}
|
|
|
|
+ if (ListUtil.isNotEmpty(treatInfoList)) {
|
|
|
|
+ detailMap.put("治疗方案", treatInfoList);
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (ListUtil.isNotEmpty(introduceList) && staticKnowledgeVO.getContentTypes().contains(1)) {
|
|
if (ListUtil.isNotEmpty(introduceList) && staticKnowledgeVO.getContentTypes().contains(1)) {
|
|
detailMap.put("静态知识", introduceList);
|
|
detailMap.put("静态知识", introduceList);
|
|
@@ -288,6 +297,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList) && staticKnowledgeVO.getContentTypes().contains(3)) {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList) && staticKnowledgeVO.getContentTypes().contains(3)) {
|
|
detailMap.put("临床路径", clinicalPathwayList);
|
|
detailMap.put("临床路径", clinicalPathwayList);
|
|
}
|
|
}
|
|
|
|
+ if (ListUtil.isNotEmpty(treatInfoList) && staticKnowledgeVO.getContentTypes().contains(4)) {
|
|
|
|
+ detailMap.put("治疗方案", treatInfoList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
staticKnowledgeDTO.setDetails(detailMap);
|
|
staticKnowledgeDTO.setDetails(detailMap);
|
|
return staticKnowledgeDTO;
|
|
return staticKnowledgeDTO;
|
|
@@ -365,6 +377,10 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
.stream()
|
|
.stream()
|
|
.filter(i -> Arrays.asList(i.getContentType().split(",")).contains("3"))
|
|
.filter(i -> Arrays.asList(i.getContentType().split(",")).contains("3"))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
|
+ List<StaticKnowledgeDetailDTO> treatInfoList = subDetailList
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(i -> Arrays.asList(i.getContentType().split(",")).contains("4"))
|
|
|
|
+ .collect(Collectors.toList());
|
|
Map<String, List<StaticKnowledgeDetailDTO>> subDetailMap = new HashMap<>();
|
|
Map<String, List<StaticKnowledgeDetailDTO>> subDetailMap = new HashMap<>();
|
|
if (ListUtil.isEmpty(staticKnowledgeHISVO.getContentTypes()) || staticKnowledgeHISVO.getContentTypes().contains(0)) {
|
|
if (ListUtil.isEmpty(staticKnowledgeHISVO.getContentTypes()) || staticKnowledgeHISVO.getContentTypes().contains(0)) {
|
|
if (ListUtil.isNotEmpty(introduceList)) {
|
|
if (ListUtil.isNotEmpty(introduceList)) {
|
|
@@ -376,6 +392,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList)) {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList)) {
|
|
subDetailMap.put("临床路径", clinicalPathwayList);
|
|
subDetailMap.put("临床路径", clinicalPathwayList);
|
|
}
|
|
}
|
|
|
|
+ if (ListUtil.isNotEmpty(treatInfoList)) {
|
|
|
|
+ subDetailMap.put("治疗方案", treatInfoList);
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if (ListUtil.isNotEmpty(introduceList) && staticKnowledgeHISVO.getContentTypes().contains(1)) {
|
|
if (ListUtil.isNotEmpty(introduceList) && staticKnowledgeHISVO.getContentTypes().contains(1)) {
|
|
subDetailMap.put("静态知识", introduceList);
|
|
subDetailMap.put("静态知识", introduceList);
|
|
@@ -386,6 +405,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList) && staticKnowledgeHISVO.getContentTypes().contains(3)) {
|
|
if (ListUtil.isNotEmpty(clinicalPathwayList) && staticKnowledgeHISVO.getContentTypes().contains(3)) {
|
|
subDetailMap.put("临床路径", clinicalPathwayList);
|
|
subDetailMap.put("临床路径", clinicalPathwayList);
|
|
}
|
|
}
|
|
|
|
+ if (ListUtil.isNotEmpty(treatInfoList) && staticKnowledgeHISVO.getContentTypes().contains(4)) {
|
|
|
|
+ subDetailMap.put("治疗方案", treatInfoList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
staticKnowledgeDTO.setDetails(subDetailMap);
|
|
staticKnowledgeDTO.setDetails(subDetailMap);
|
|
}
|
|
}
|