feat(health): 班次管理与护士分配 — Shift/PatientAssignment/HandoffLog CRUD
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 新增 3 张数据表迁移 (shifts, patient_assignments, shift_handoff_log)
- 3 个 SeaORM Entity (shift, patient_assignment, handoff_log)
- 完整 CRUD 服务层:班次管理、患者分配(含批量分配)、交接记录
- 12 个 API 端点 + health.shifts.list/manage 权限
- 班次列表含患者分配摘要 (patient_count/critical_count/attention_count)
- 乐观锁、软删除、审计日志、事件发布
- 输入验证:period/shift_status/care_level 白名单
This commit is contained in:
iven
2026-05-04 20:11:07 +08:00
parent 3ff17382ff
commit 7b17f94bc0
14 changed files with 1554 additions and 2 deletions

View File

@@ -23,4 +23,5 @@ pub mod health_data_handler;
pub mod patient_handler;
pub mod points_handler;
pub mod stats_handler;
pub mod shift_handler;
pub mod vital_signs_daily_handler;