feat(用药管理): 集成AI智能分析功能,提供用药依从性深度洞察和专业健康建议

This commit is contained in:
richarjiang
2025-12-01 10:49:35 +08:00
parent a309123b35
commit a47f0fb72e
15 changed files with 1792 additions and 468 deletions

View File

@@ -95,6 +95,28 @@ export interface MedicationDisplayItem {
medicationId: string; // 药物ID
}
/**
* AI 用药总结 - 药物层级统计
*/
export interface MedicationAiSummaryItem {
id: string;
name: string;
startDate: string;
plannedDays: number;
timesPerDay: number;
plannedDoses: number;
takenDoses: number;
completionRate: number; // 0-1
}
/**
* AI 用药总结响应
*/
export interface MedicationAiSummary {
medicationAnalysis: MedicationAiSummaryItem[];
keyInsights: string;
}
/**
* 药品 AI 分析 V2 结构化数据
*/