|
@@ -266,6 +266,22 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
queryVo.setInputCatalogueMap(getInputCatalogueMap(qcCasesEntryDTOList)); // 设置质控条目编码
|
|
queryVo.setInputCatalogueMap(getInputCatalogueMap(qcCasesEntryDTOList)); // 设置质控条目编码
|
|
List<MedrecVo> medrecVoList = new ArrayList<>(); // 设置内容
|
|
List<MedrecVo> medrecVoList = new ArrayList<>(); // 设置内容
|
|
|
|
|
|
|
|
+
|
|
|
|
+ // 添加住院病历信息
|
|
|
|
+ List<BehospitalInfo> behospitalInfoList = this.list(new QueryWrapper<BehospitalInfo>()
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
|
+ .eq("hospital_id", hospitalId)
|
|
|
|
+ .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
|
+ );
|
|
|
|
+ if (ListUtil.isNotEmpty(behospitalInfoList)) {
|
|
|
|
+ MedrecVo medrecVo = new MedrecVo();
|
|
|
|
+ medrecVo.setTitle("住院病历信息");
|
|
|
|
+ Map<String, Object> content = new HashMap<>();
|
|
|
|
+ content.put("content", behospitalInfoList);
|
|
|
|
+ medrecVo.setContent(content);
|
|
|
|
+ medrecVoList.add(medrecVo);
|
|
|
|
+ }
|
|
|
|
+
|
|
addData("入院记录", recMap, medrecVoList);
|
|
addData("入院记录", recMap, medrecVoList);
|
|
addData("病危通知书", recMap, medrecVoList);
|
|
addData("病危通知书", recMap, medrecVoList);
|
|
addData("阶段小结", recMap, medrecVoList);
|
|
addData("阶段小结", recMap, medrecVoList);
|
|
@@ -647,11 +663,30 @@ 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);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 执行未评分的病历
|
|
* 执行未评分的病历
|
|
*/
|
|
*/
|
|
- public void execute() {
|
|
|
|
|
|
+ public void execute(String param) {
|
|
TaskVO taskVO = new TaskVO();
|
|
TaskVO taskVO = new TaskVO();
|
|
|
|
+ // 处理入参
|
|
|
|
+ dealTaskVO(param, taskVO);
|
|
List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
for (BehospitalInfo bean : behospitalInfoList) {
|
|
for (BehospitalInfo bean : behospitalInfoList) {
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
@@ -682,10 +717,11 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
/**
|
|
/**
|
|
* 对出院日期之前3天的未评分的病历进行评分
|
|
* 对出院日期之前3天的未评分的病历进行评分
|
|
*/
|
|
*/
|
|
- public void execute2() {
|
|
|
|
|
|
+ public void execute2(String param) {
|
|
TaskVO taskVO = new TaskVO();
|
|
TaskVO taskVO = new TaskVO();
|
|
Date date = DateUtil.addDay(DateUtil.now(), -3);
|
|
Date date = DateUtil.addDay(DateUtil.now(), -3);
|
|
taskVO.setLeaveDate(date);
|
|
taskVO.setLeaveDate(date);
|
|
|
|
+ dealTaskVO(param, taskVO);
|
|
List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
for (BehospitalInfo bean : behospitalInfoList) {
|
|
for (BehospitalInfo bean : behospitalInfoList) {
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|