refactor(dialysis): 透析模块拆分为独立 erp-dialysis crate
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

- 创建 erp-dialysis crate(DialysisState + DialysisError + DialysisModule)
- 迁移 2 Entity + 2 Service + 2 Handler + 2 DTO 共 8 个文件
- Entity 移除跨 crate patient Relation(FK 列保留)
- Service 内联 validation 逻辑,移除 patient 存在性检查(FK 约束保证)
- erp-health 的 stats/consultation 中 dialysis 查询改为 raw SQL
- ReviewLabReportReq 从 dialysis_dto 移至 health_data_dto(正确归属)
- workspace 全量编译通过
This commit is contained in:
iven
2026-04-28 12:37:23 +08:00
parent e00c2abdcd
commit fa9278590d
30 changed files with 441 additions and 190 deletions

View File

@@ -18,6 +18,7 @@ members = [
"crates/erp-health",
"crates/erp-ai",
"crates/erp-plugin-assessment",
"crates/erp-dialysis",
]
[workspace.package]