| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.PatMedOuthosp; |
| | | import com.ruoyi.common.core.domain.entity.PatArchive; |
| | | import com.ruoyi.outpatientvisit.domain.PatMedOuthosp; |
| | | |
| | | /** |
| | | * 专科档案生成Service接口。 |
| | |
| | | * @return 本次生成/更新的档案数量 |
| | | */ |
| | | int generateByOuthosp(PatMedOuthosp patMedOuthosp, PatArchive patArchive); |
| | | |
| | | /** |
| | | * 根据住院随访子任务生成专科档案。 |
| | | * |
| | | * <p>仅处理已完成的住院随访(hosp_type 2/6 + service_type 白名单), |
| | | * 且仅对丽水市妇幼保健院生效。生成前按“患者 + 专科 + 档案类型”判断是否已有档案。</p> |
| | | * |
| | | * @param subId 随访子任务ID |
| | | * @return 本次生成数量 |
| | | */ |
| | | int generateByInhospFollowup(Long subId); |
| | | |
| | | /** |
| | | * 补偿扫描:查询近 7 天已完成但尚未处理的住院随访并尝试生成档案。 |
| | | * |
| | | * @return 本次生成数量 |
| | | */ |
| | | int compensateInhospFollowups(); |
| | | } |