docs(wiki): 全量 wiki 更新 — C1 晚间血压已修复标记 + 数据校正

- miniprogram.md: 晚间血压 CRITICAL 标记为已修复
- index.md: 症状导航表更新
- architecture/database/erp-core/erp-health/frontend/testing: 同步更新
This commit is contained in:
iven
2026-05-03 19:32:30 +08:00
parent c208dcc6f5
commit ec87ae85cf
8 changed files with 187 additions and 47 deletions

View File

@@ -73,7 +73,7 @@ crates/erp-health/
| 积分商城 | points_account, points_rule, points_product, points_order, points_transaction, points_checkin |
| 线下活动 | offline_event, offline_event_registration |
### 权限码(22 个)
### 权限码(39 个)
| 权限码 | 说明 |
|--------|------|
@@ -87,19 +87,16 @@ crates/erp-health/
| `health.articles.review` | 文章审核 |
| `health.points.list` / `health.points.manage` | 积分查看/管理 |
| `health.device-readings.list` / `health.device-readings.manage` | 设备数据查看/管理 |
| `health.devices.list` / `health.devices.manage` | 设备查看/管理 |
| `health.alerts.list` / `health.alerts.manage` | 告警查看/管理 |
| `health.alert-rules.list` / `health.alert-rules.manage` | 告警规则查看/管理 |
| 权限码 | 说明 |
|--------|------|
| `health.patient.list` / `health.patient.manage` | 患者查看/管理 |
| `health.health-data.list` / `health.health-data.manage` | 健康数据查看/管理 |
| `health.appointment.list` / `health.appointment.manage` | 预约查看/管理 |
| `health.follow-up.list` / `health.follow-up.manage` | 随访查看/管理 |
| `health.consultation.list` / `health.consultation.manage` | 咨询查看/管理 |
| `health.doctor.list` / `health.doctor.manage` | 医护查看/管理 |
| `health.articles.list` / `health.articles.manage` | 文章查看/管理 |
| `health.articles.review` | 文章审核 |
| `health.critical-alerts.list` / `health.critical-alerts.manage` | 危急值告警查看/管理 |
| `health.critical-value-thresholds.list` / `health.critical-value-thresholds.manage` | 危急值阈值查看/管理 |
| `health.follow-up-templates.list` / `health.follow-up-templates.manage` | 随访模板查看/管理 |
| `health.daily-monitoring.list` / `health.daily-monitoring.manage` | 日常监测查看/管理 |
| `health.consent.list` / `health.consent.manage` | 知情同意查看/管理 |
| `health.medication-records.list` / `health.medication-records.manage` | 用药记录查看/管理 |
| `health.medication-reminders.list` / `health.medication-reminders.manage` | 用药提醒查看/管理 |
### 集成契约
@@ -236,6 +233,34 @@ draft → pending_review → published → draft (撤回)
| 健康趋势图 ECharts | P1 | 小程序已有 echarts 集成Web 端待接入 |
| 咨询导出 Excel | P2 | 后端已有 `rust_xlsxwriter` 依赖,导出端点已实现 |
### 2026-04-30 审计发现
**功能域评分**(审计报告 8 个域):
| 域 | 评分 | 关键问题 |
|----|------|---------|
| 患者管理 | 93% | 健康摘要仅 MP家庭医生管理仅 Web |
| 健康数据 | 85% | 小程序丢失晚间血压/体温/血氧字段 |
| 预约管理 | 95% | Web/MP 基本对齐 |
| 随访管理 | 88% | MP 仅列表+创建 |
| 咨询管理 | 94% | 高度对齐 |
| 内容管理 | 86% | MP 仅只读 published 文章 |
| 积分商城 | 90% | 角色分叉正常 |
| 告警系统 | 87% | 前端权限码拼写错误(`alert` vs `alerts` |
**关键审计发现**
| 发现 | 严重性 | 说明 |
|------|--------|------|
| 告警管理按钮不显示 | CRITICAL | 前端 `health.alert.manage` 缺 s应为 `health.alerts.manage` |
| 小程序晚间血压丢失 | CRITICAL | indicator_type 固定映射 `*_morning``*_evening` 从未写入 |
| 小程序透析管理缺失 | HIGH | 后端 12 路由完整,小程序 0 入口 |
| 小程序知情同意缺失 | HIGH | 后端完整,小程序 0 入口 |
| 运行时日志不足 | HIGH | 26 个 service 仅 11 处 tracing |
| 14 事件无消费者 | LOW | 发布到 EventBusSSE 推送仍有价值 |
| DTO 覆盖率 | 100% | 105 个 DTO 完整覆盖 23 个 handler |
| 调用链连通性 | 100% | Handler→Service→Entity 全部连通 |
### 全链路验证结果2026-04-25
| 链路 | API | 前端 UI | 状态 |
@@ -252,6 +277,7 @@ draft → pending_review → published → draft (撤回)
| 日期 | 变更 |
|------|------|
| 2026-05-01 | 审计数据更新:权限码 22→39、审计发现2 CRITICAL + 3 HIGH、功能域评分、DTO/调用链 100% |
| 2026-04-28 | 全面数据刷新44 实体(+10 告警/设备/随访模板/体征小时聚合等、21 handler、22 权限、25+ Web 路由、事件系统完善25 发布/6 消费者、3 个后台任务、PiiCrypto 迁移到 erp-core |
| 2026-04-26 | 全面更新34 实体(+13 积分/透析/诊断/日常监测/线下活动/危急值/知情同意、16 handler、stats 统计端点、validation 统一模块83 测试、PII 加密扩展doctor_profile/dialysis_record/lab_report/diagnosis key_version |
| 2026-04-26 | 新增内容管理article_category/article_tag/article_article_tag/article_revision 4 实体、审核状态机 |