|
|
|
@ -86,16 +86,8 @@ public class ReportJob {
|
|
|
|
|
if (basicList.size() < pageSize) {
|
|
|
|
|
loopCondition = false;
|
|
|
|
|
}
|
|
|
|
|
for (TBasic tBasic : basicList) {
|
|
|
|
|
List<ReportDto> reportDtoList = getLisReportList(tBasic);
|
|
|
|
|
if (reportDtoList.isEmpty()) {
|
|
|
|
|
log.warn("病案主键 patientId {} 未查询 LIS 检验报告!", tBasic.getPatientId());
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
reportDtoList.forEach(reportDto -> {
|
|
|
|
|
reportService.report(reportDto);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
queryLisReport(basicList);
|
|
|
|
|
|
|
|
|
|
offset += pageSize;
|
|
|
|
|
} while (loopCondition);
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
@ -107,6 +99,19 @@ public class ReportJob {
|
|
|
|
|
log.info("LIS检验报告报告查询 任务结束了,本次查询出院时间段 {} - {}", "", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void queryLisReport(List<TBasic> basicList) {
|
|
|
|
|
for (TBasic tBasic : basicList) {
|
|
|
|
|
List<ReportDto> reportDtoList = getLisReportList(tBasic);
|
|
|
|
|
if (reportDtoList.isEmpty()) {
|
|
|
|
|
log.warn("病案主键 patientId {} 未查询 LIS 检验报告!", tBasic.getPatientId());
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
reportDtoList.forEach(reportDto -> {
|
|
|
|
|
reportService.report(reportDto);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 检查报告查询,查询入院时间前 3天的检验报告
|
|
|
|
@ -136,16 +141,7 @@ public class ReportJob {
|
|
|
|
|
if (basicList.size() < pageSize) {
|
|
|
|
|
loopCondition = false;
|
|
|
|
|
}
|
|
|
|
|
for (TBasic tBasic : basicList) {
|
|
|
|
|
List<ReportDto> reportDtoList = getInspectReportList(tBasic);
|
|
|
|
|
if (reportDtoList.isEmpty()) {
|
|
|
|
|
log.warn("病案主键 patientId {} 未查询 检查报告!", tBasic.getPatientId());
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
reportDtoList.forEach(reportDto -> {
|
|
|
|
|
reportService.report(reportDto);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
queryInspectReport(basicList);
|
|
|
|
|
offset += pageSize;
|
|
|
|
|
} while (loopCondition);
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
@ -157,6 +153,19 @@ public class ReportJob {
|
|
|
|
|
log.info("检查报告报告查询 任务结束了,本次查询出院时间段 {} - {}", "", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void queryInspectReport(List<TBasic> basicList) {
|
|
|
|
|
for (TBasic tBasic : basicList) {
|
|
|
|
|
List<ReportDto> reportDtoList = getInspectReportList(tBasic);
|
|
|
|
|
if (reportDtoList.isEmpty()) {
|
|
|
|
|
log.warn("病案主键 patientId {} 未查询 检查报告!", tBasic.getPatientId());
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
reportDtoList.forEach(reportDto -> {
|
|
|
|
|
reportService.report(reportDto);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<ReportDto> getInspectReportList(TBasic tBasic) {
|
|
|
|
|
// 根据基础信息查顺德报告业务系统索引,查 交叉索引
|
|
|
|
|
List<String> sdRyReportPatientIds = getSdRyReportPatientIds(tBasic.getPatientId());
|
|
|
|
|