|
@@ -117,7 +117,11 @@ public class KlConceptStaticFacade {
|
|
|
scaleStaticAllVO.setHospitalId(-1L);
|
|
|
}
|
|
|
BeanUtil.copyProperties(staticKnowledgeVO, scaleStaticAllVO);
|
|
|
- RespDTO<StaticKnowledgeDTO> respDTO = cdssCoreClient.getStaticKnowledge(scaleStaticAllVO);
|
|
|
+ RespDTO<StaticKnowledgeDTO> respDTO;
|
|
|
+ if (staticKnowledgeVO.getType().equals(11))
|
|
|
+ respDTO = cdssCoreClient.getClassicCaseInfo(scaleStaticAllVO);
|
|
|
+ else
|
|
|
+ respDTO = cdssCoreClient.getStaticKnowledge(scaleStaticAllVO);
|
|
|
if (RespDTOUtil.respIsOK(respDTO)) {
|
|
|
StaticKnowledgeDTO staticKnowledgeDTO = respDTO.data;
|
|
|
return staticKnowledgeDTO;
|
|
@@ -126,38 +130,6 @@ public class KlConceptStaticFacade {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取经典病例
|
|
|
- *
|
|
|
- * @param staticKnowledgeVO
|
|
|
- * @return
|
|
|
- */
|
|
|
- public ClassicCaseDTO getClassicCaseInfo(StaticKnowledgeVO staticKnowledgeVO) {
|
|
|
- ScaleStaticAllVO scaleStaticAllVO = new ScaleStaticAllVO();
|
|
|
- if (staticKnowledgeVO.getType() == 8) {
|
|
|
- PushJoinVO mr = mrFacade.getMr(staticKnowledgeVO.getMrId());
|
|
|
- if (null != mr) {
|
|
|
- SearchData searchData = new SearchData();
|
|
|
- BeanUtil.copyProperties(mr, searchData);
|
|
|
- //入参映射
|
|
|
- searchData = assembleFacade.assembleData(searchData);
|
|
|
- BeanUtil.copyProperties(searchData, scaleStaticAllVO);
|
|
|
- } else {
|
|
|
- scaleStaticAllVO.setHospitalId(-1L);
|
|
|
- }
|
|
|
- } else {
|
|
|
- scaleStaticAllVO.setHospitalId(-1L);
|
|
|
- }
|
|
|
- BeanUtil.copyProperties(staticKnowledgeVO, scaleStaticAllVO);
|
|
|
- RespDTO<ClassicCaseDTO> respDTO = cdssCoreClient.getClassicCaseInfo(scaleStaticAllVO);
|
|
|
- if (RespDTOUtil.respIsOK(respDTO)) {
|
|
|
- ClassicCaseDTO classicCaseDTO = respDTO.data;
|
|
|
- return classicCaseDTO;
|
|
|
- } else {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 医院端获取静态知识(对接)
|
|
|
*
|