feat(health): 添加 HealthDataProvider stub 实现

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-25 13:50:13 +08:00
parent eebfaac0d8
commit 1cff3e526d
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
use async_trait::async_trait;
use erp_core::error::AppResult;
use erp_core::health_provider::{
HealthDataProvider, HealthReportDto, LabReportDto, PatientSummaryDto, TimeRange, VitalSignDto,
};
use uuid::Uuid;
pub struct HealthDataProviderImpl {
pub db: sea_orm::DatabaseConnection,
}
#[async_trait]
impl HealthDataProvider for HealthDataProviderImpl {
async fn get_lab_report(
&self,
_tenant_id: Uuid,
_report_id: Uuid,
) -> AppResult<LabReportDto> {
todo!("实现化验报告数据查询")
}
async fn get_vital_signs(
&self,
_tenant_id: Uuid,
_patient_id: Uuid,
_metrics: &[String],
_range: &TimeRange,
) -> AppResult<Vec<VitalSignDto>> {
todo!("实现生命体征趋势查询")
}
async fn get_patient_summary(
&self,
_tenant_id: Uuid,
_patient_id: Uuid,
) -> AppResult<PatientSummaryDto> {
todo!("实现患者摘要查询")
}
async fn get_full_report(
&self,
_tenant_id: Uuid,
_report_id: Uuid,
) -> AppResult<HealthReportDto> {
todo!("实现完整报告查询")
}
}

View File

@@ -4,10 +4,12 @@ pub mod entity;
pub mod error;
pub mod event;
pub mod handler;
pub mod health_provider_impl;
pub mod module;
pub mod service;
pub mod state;
pub use crypto::HealthCrypto;
pub use health_provider_impl::HealthDataProviderImpl;
pub use module::HealthModule;
pub use state::HealthState;