GET /health/patients/{id}/export?format=json|fhir 双格式同步导出:
- json: 明文 PII(解密不脱敏,可携权本意),聚合 7 段数据
- fhir: FHIR R4 Bundle(复用现有 converter,PII 天然脱敏)
- 安全边界:consent 门控 + patient 角色 self-scope + 审计 patient.exported(不含明文 PII)+ 日志不记 payload
- 权限 health.patient.export(医护=all, patient=self),迁移 m20260626_000171
- 事件 patient.exported;6 集成测试全绿
含顺手修复 auth_tests UserService::list 签名 drift(exclude_only_roles),解锁 integration crate 编译。
§47 删除权留后续。
51 lines
1.8 KiB
Rust
51 lines
1.8 KiB
Rust
#[path = "integration/ai_prompt_tests.rs"]
|
|
mod ai_prompt_tests;
|
|
#[path = "integration/auth_tests.rs"]
|
|
mod auth_tests;
|
|
#[path = "integration/health_alert_tests.rs"]
|
|
mod health_alert_tests;
|
|
#[path = "integration/health_appointment_tests.rs"]
|
|
mod health_appointment_tests;
|
|
#[path = "integration/health_article_tests.rs"]
|
|
mod health_article_tests;
|
|
#[path = "integration/health_consent_tests.rs"]
|
|
mod health_consent_tests;
|
|
#[path = "integration/health_consultation_tests.rs"]
|
|
mod health_consultation_tests;
|
|
#[path = "integration/health_daily_monitoring_tests.rs"]
|
|
mod health_daily_monitoring_tests;
|
|
#[path = "integration/health_data_tests.rs"]
|
|
mod health_data_tests;
|
|
#[path = "integration/health_device_reading_tests.rs"]
|
|
mod health_device_reading_tests;
|
|
#[path = "integration/health_diagnosis_tests.rs"]
|
|
mod health_diagnosis_tests;
|
|
#[path = "integration/health_dialysis_prescription_tests.rs"]
|
|
mod health_dialysis_prescription_tests;
|
|
#[path = "integration/health_dialysis_tests.rs"]
|
|
mod health_dialysis_tests;
|
|
#[path = "integration/health_doctor_tests.rs"]
|
|
mod health_doctor_tests;
|
|
#[path = "integration/health_follow_up_template_tests.rs"]
|
|
mod health_follow_up_template_tests;
|
|
#[path = "integration/health_follow_up_tests.rs"]
|
|
mod health_follow_up_tests;
|
|
#[path = "integration/health_medication_tests.rs"]
|
|
mod health_medication_tests;
|
|
#[path = "integration/health_patient_export_tests.rs"]
|
|
mod health_patient_export_tests;
|
|
#[path = "integration/health_patient_tests.rs"]
|
|
mod health_patient_tests;
|
|
#[path = "integration/health_pii_encryption_tests.rs"]
|
|
mod health_pii_encryption_tests;
|
|
#[path = "integration/health_points_tests.rs"]
|
|
mod health_points_tests;
|
|
#[path = "integration/plugin_tests.rs"]
|
|
mod plugin_tests;
|
|
#[path = "integration/test_db.rs"]
|
|
mod test_db;
|
|
#[path = "integration/test_fixture.rs"]
|
|
mod test_fixture;
|
|
#[path = "integration/workflow_tests.rs"]
|
|
mod workflow_tests;
|