|
@@ -1278,8 +1278,10 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
* @param analyzeCdsVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public OutputInfo analyzeCds(AnalyzeCdsVO analyzeCdsVO) {
|
|
|
+ public Map<String,String> analyzeCds(AnalyzeCdsVO analyzeCdsVO) {
|
|
|
+ Map<String,String> ret = Maps.newHashMap();
|
|
|
List<QcCasesEntryDTO> qcCasesEntryDTOList = qcCasesEntryFacade.getQcCasesEntryCds(analyzeCdsVO);
|
|
|
+ Map<String,String> codeMsgMap = qcCasesEntryDTOList.stream().collect(Collectors.toMap(i->i.getCode(),i->i.getMsg()));
|
|
|
|
|
|
QueryVo queryVo = new QueryVo();
|
|
|
queryVo.setCid(basHospitalInfoFacade.getHosCode(analyzeCdsVO.getHospitalId())); // 设置医院编码
|
|
@@ -1323,7 +1325,13 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.RPC_ERROR, "远程质控接口没有返回数据!错误原因:" + response.getMsg());
|
|
|
}
|
|
|
}
|
|
|
- return response.getData();
|
|
|
+
|
|
|
+ OutputInfo outputInfo = response.getData();
|
|
|
+ outputInfo.getResult().keySet().forEach(key->{
|
|
|
+ ret.put(codeMsgMap.get(key),outputInfo.getResult().get(key).get("info"));
|
|
|
+ });
|
|
|
+
|
|
|
+ return ret;
|
|
|
}
|
|
|
|
|
|
}
|