| | |
| | | if (SpecificArchiveConstants.DEPT_CATEGORY_GYNECOLOGY.equals(deptCategory)) { |
| | | PatMaternityArchiveDetail detail = |
| | | buildMaternityDetail(patMedOuthosp, targetArchive, config, campusid); |
| | | patMaternityArchiveService.insertOrUpdateMaternityArchive(detail); |
| | | // 接诊完成自动建档:只建草稿,等人工保存档案后再生成随访计划 |
| | | patMaternityArchiveService.insertOrUpdateMaternityArchive(detail, false); |
| | | generatedCount++; |
| | | } else if (SpecificArchiveConstants.DEPT_CATEGORY_PEDIATRICS.equals(deptCategory)) { |
| | | PatChildArchiveDetail detail = |
| | | buildChildDetail(patMedOuthosp, targetArchive, config, campusid); |
| | | patChildArchiveService.insertOrUpdateChildArchive(detail); |
| | | // 接诊完成自动建档:只建草稿,等人工保存档案后再生成随访计划 |
| | | patChildArchiveService.insertOrUpdateChildArchive(detail, false); |
| | | generatedCount++; |
| | | } else { |
| | | log.warn("生成专科档案跳过:未知部门分类,configId={},deptCategory={}", |
| | |
| | | Long archiveId; |
| | | if (SpecificArchiveConstants.DEPT_CATEGORY_GYNECOLOGY.equals(deptCategory)) { |
| | | PatMaternityArchiveDetail detail = buildInhospMaternityDetail(context, config); |
| | | archiveId = (long) patMaternityArchiveService.insertOrUpdateMaternityArchive(detail); |
| | | // 住院随访完成自动建档:只建草稿,等人工保存档案后再生成随访计划 |
| | | archiveId = (long) patMaternityArchiveService.insertOrUpdateMaternityArchive(detail, false); |
| | | } else if (SpecificArchiveConstants.DEPT_CATEGORY_PEDIATRICS.equals(deptCategory)) { |
| | | PatChildArchiveDetail detail = buildInhospChildDetail(context, config); |
| | | archiveId = (long) patChildArchiveService.insertOrUpdateChildArchive(detail); |
| | | // 住院随访完成自动建档:只建草稿,等人工保存档案后再生成随访计划 |
| | | archiveId = (long) patChildArchiveService.insertOrUpdateChildArchive(detail, false); |
| | | } else { |
| | | log.warn("住院随访生成专科档案跳过:未知部门分类,configId={},deptCategory={}", |
| | | config.getId(), deptCategory); |