liuyun 19876fdadd chore(openspec): 归档 C1/C2/C3 change,spec 合并进主 specs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-15 01:13:08 +08:00

31 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Why
C0 已落地服务机构端基础骨架(机构=租户、RBAC、目录、菜单)。C1 交付 PRD 的第一块业务「待遇档案」:老人档案建档、十态待遇状态机与变更留痕、评估结论副本上传——为 C2 派单(消费 L1 硬锁)与 C3 留痕提供老人数据与状态基础。
## What Changes
- 新增 `elder` 老人档案表 + `elder_status_log` 状态变更日志表(含评估结论副本字段)。
- 十态待遇状态机(pending_file/waiting_period/active/hosp_pause/review_waiting/transferring/dead/long_away/benefit_expired/terminated)+ 变更接口(change_reason 必填、留痕)。
- 评估结论副本上传到 MinIO(bucket carelink);**等级唯一来源=评估结论,禁止建档人自行填写**。
- 身份证服务端掩码 + 明文查看留痕;同机构身份证防重。
- 前端「服务对象」列表/建档/详情/状态变更页。
## Capabilities
### New Capabilities
- `backend/elder`: 待遇档案后端域——老人档案 CRUD、十态状态机、评估结论上传、身份证防重与掩码。
- `frontend/ad/elder`: 服务对象页面——列表/建档表单/详情/状态变更。
### Modified Capabilities
- `shared/data-model`: 新增 `elder` 老人档案实体、`elder_status_log` 状态日志实体。
- `shared/api-contract`: 新增 elder 接口(list/create/detail/status-change/status-log/assess-evidence-upload)。
## Impact
- 后端 ec-nest:新增 `elder` 模块 + MinIO 存储模块(纯新增,不侵入脚手架)。
- 前端 ec-admin:服务对象页面 + api。
- 数据:新增 2 张表(迁移,utf8mb4_general_ci)。
- 依赖:MinIO(本机 Docker,bucket carelink)。