|
@@ -134,8 +134,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
@Autowired
|
|
|
StrWardRecordFacade strWardRecordFacade;
|
|
|
@Autowired
|
|
|
- MedTransferRecordFacade medTransferRecordFacade;
|
|
|
- @Autowired
|
|
|
MedNurseFacade medNurseFacade;
|
|
|
@Autowired
|
|
|
SysHospitalSetFacade sysHospitalSetFacade;
|
|
@@ -257,9 +255,9 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
.map(BehospitalStatusEnum::getDesc)
|
|
|
.orElse("状态未知")); // 如果 code 为 null,返回默认值
|
|
|
|
|
|
- List<MsgApiDTO> msgApiDTOStatusRejectedList = Lists.newLinkedList(); //驳回
|
|
|
- List<MsgApiDTO> msgApiDTOStatusUnreviewedList = Lists.newLinkedList(); //未审核
|
|
|
- List<MsgApiDTO> msgApiDTOStatusAlreadyPassedList = Lists.newLinkedList(); //通过
|
|
|
+// List<MsgApiDTO> msgApiDTOStatusRejectedList = Lists.newLinkedList(); //驳回
|
|
|
+// List<MsgApiDTO> msgApiDTOStatusUnreviewedList = Lists.newLinkedList(); //未审核
|
|
|
+// List<MsgApiDTO> msgApiDTOStatusAlreadyPassedList = Lists.newLinkedList(); //通过
|
|
|
if ("3".equals(behospitalInfo.getStatus())) { //已驳回
|
|
|
List<MedRejectedInfo> medRejectedInfos = medRejectedInfoFacade.list(new QueryWrapper<MedRejectedInfo>()
|
|
|
.eq("hospital_id", hospitalId)
|
|
@@ -270,28 +268,33 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
if (ListUtil.isNotEmpty(medRejectedInfos)) {
|
|
|
msgApiDTOList.forEach(msgApiDTO -> {
|
|
|
for (MedRejectedInfo medRejectedInfo : medRejectedInfos) {
|
|
|
- MsgApiDTO msgApiDTOStatus = new MsgApiDTO();
|
|
|
+// MsgApiDTO msgApiDTOStatus = new MsgApiDTO();
|
|
|
if (msgApiDTO.getCasesEntryId().equals(medRejectedInfo.getCasesEntryId())) {
|
|
|
msgApiDTO.setIsRejectedEntry("1"); //驳回条目
|
|
|
msgApiDTO.setRejectedReason(medRejectedInfo.getRejectedReason());
|
|
|
- msgApiDTOStatus.setMsg(msgApiDTO.getMsg());
|
|
|
- msgApiDTOStatus.setRuleType(msgApiDTO.getRuleType());
|
|
|
- msgApiDTOStatus.setScore(msgApiDTO.getScore());
|
|
|
- msgApiDTOStatusRejectedList.add(msgApiDTOStatus);
|
|
|
+ msgApiDTO.setCasesEntryStatus(3);
|
|
|
+// BeanUtil.copyProperties(msgApiDTO, msgApiDTOStatus);
|
|
|
+// msgApiDTOStatusRejectedList.add(msgApiDTOStatus);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
} else if ("1".equals(behospitalInfo.getStatus())) { // 未审核
|
|
|
- msgApiDTOStatusUnreviewedList = BeanUtil.listCopyTo(msgApiDTOList, MsgApiDTO.class);
|
|
|
+ msgApiDTOList.forEach(msgApiDTO -> {
|
|
|
+ msgApiDTO.setCasesEntryStatus(1); //未审核条目
|
|
|
+ });
|
|
|
+// msgApiDTOStatusUnreviewedList = BeanUtil.listCopyTo(msgApiDTOList, MsgApiDTO.class);
|
|
|
} else if ("2".equals(behospitalInfo.getStatus())) { // 已通过
|
|
|
- msgApiDTOStatusAlreadyPassedList = BeanUtil.listCopyTo(msgApiDTOList, MsgApiDTO.class);
|
|
|
+ msgApiDTOList.forEach(msgApiDTO -> {
|
|
|
+ msgApiDTO.setCasesEntryStatus(2); //已通过条目
|
|
|
+ });
|
|
|
+// msgApiDTOStatusAlreadyPassedList = BeanUtil.listCopyTo(msgApiDTOList, MsgApiDTO.class);
|
|
|
}
|
|
|
|
|
|
- res.put("Rejected", msgApiDTOStatusRejectedList);
|
|
|
- res.put("unreviewed", msgApiDTOStatusUnreviewedList);
|
|
|
- res.put("alreadyPassed", msgApiDTOStatusAlreadyPassedList);
|
|
|
+// res.put("Rejected", msgApiDTOStatusRejectedList);
|
|
|
+// res.put("unreviewed", msgApiDTOStatusUnreviewedList);
|
|
|
+// res.put("alreadyPassed", msgApiDTOStatusAlreadyPassedList);
|
|
|
|
|
|
Map<String, List<MsgApiDTO>> newMsgMap = msgApiDTOList.stream()
|
|
|
.collect(Collectors.groupingBy(
|
|
@@ -535,21 +538,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
List<LocalDateTime> transferInDate = new ArrayList<>();
|
|
|
Map<String, List<LocalDateTime>> transferMap = new HashMap<>();
|
|
|
|
|
|
- //转入转出时间表
|
|
|
- List<MedTransferRecord> medTransferRecordList = medTransferRecordFacade.list(new QueryWrapper<MedTransferRecord>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("hospital_id", hospitalId)
|
|
|
- .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
- .orderByDesc("id"));
|
|
|
- if (ListUtil.isNotEmpty(medTransferRecordList)) {
|
|
|
- medTransferRecordList.forEach(medTransferRecord -> {
|
|
|
- transferOutDate.add(medTransferRecord.getTransferOutDate());
|
|
|
- transferInDate.add(medTransferRecord.getTransferInDate());
|
|
|
- });
|
|
|
- }
|
|
|
- transferMap.put("转出时间", transferOutDate);
|
|
|
- transferMap.put("转入时间", transferInDate);
|
|
|
-
|
|
|
// 转入记录
|
|
|
List<StrTransferInNote> strTransferInNoteList = strTransferInNoteFacade.list(new QueryWrapper<StrTransferInNote>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
@@ -1587,23 +1575,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 处理定时任务入参
|
|
|
- *
|
|
|
- * @param param
|
|
|
- * @param taskVO
|
|
|
- */
|
|
|
- public void dealTaskVO(String param, TaskVO taskVO) {
|
|
|
- if (StringUtil.isNotBlank(param)) {
|
|
|
- String[] hos = param.split(",");
|
|
|
- List<Long> hosptialIdList = new ArrayList<>();
|
|
|
- for (String id : hos) {
|
|
|
- hosptialIdList.add(Long.parseLong(id));
|
|
|
- }
|
|
|
- taskVO.setHosptialIdList(hosptialIdList);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 评分
|
|
|
*/
|
|
@@ -1637,21 +1608,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- // /**
|
|
|
- // * 对出院日期之前3天的未评分的病历进行评分
|
|
|
- // */
|
|
|
- // public void execute2(TaskVO taskVO) {
|
|
|
- // List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
|
- // for (BehospitalInfo bean : behospitalInfoList) {
|
|
|
- // AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
- // analyzeVO.setIsTask(true);
|
|
|
- // analyzeVO.setHospitalId(bean.getHospitalId());
|
|
|
- // analyzeVO.setBehospitalCode(bean.getBehospitalCode());
|
|
|
- // authServiceClient.analyze_rpc(analyzeVO);
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
/**
|
|
|
* 评分api
|
|
|
*
|