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

@@ -469,4 +469,75 @@ export const medications = {
button: 'Got it!',
},
},
};
aiSummary: {
title: 'AI Medication Summary',
headerBadge: 'AI Insight',
subtitle: 'Adherence and safety overview',
overviewTitle: 'Adherence snapshot',
keyInsights: 'AI key insight',
refresh: 'DeepSeek is analyzing, please wait...',
stats: {
activePlans: 'Active plans',
plannedDoses: 'Planned doses',
takenDoses: 'Taken doses',
completion: 'Overall completion',
avgCompletion: 'Avg adherence',
activeDays: 'Planned days',
},
badges: {
adherence: 'Adherence',
safety: 'Monitoring',
},
doseSummary: 'Completed {{taken}} / {{planned}}',
daysLabel: '{{days}} day plan • {{times}} times/day',
completionLabel: '{{value}}% completed',
emptyTitle: 'No active medication plans',
emptyDescription: 'Activate or add a plan to generate the AI summary.',
error403: 'Free AI quota is used up, please upgrade to continue.',
genericError: 'Unable to load AI summary, please try again later.',
keyInsightPlaceholder: 'No AI insight available yet.',
listTitle: 'Plan breakdown',
updatedAt: 'Updated {{time}}',
pillChip: 'Professional advice',
retry: 'Retry',
infoModal: {
badge: 'Info',
title: 'Refresh & Adherence',
point1: '• Daily Generation: Based on active medication plans and actual check-in data, generated daily.',
point2: '• Refresh Effect: Retrieves the latest plan vs. actual completion and AI analysis, no extra quota used.',
point3: '• Adherence: Degree of following the plan (completion rate). Higher means better compliance and lower risk.',
point4: '• Statistics: Only counts plans with isActive=true and not deleted; completion only counts records with status "taken".',
button: 'Got it',
},
completionInfoModal: {
badge: 'Calculation',
title: 'Completion Calculation Logic',
point1: '• Overall completion = (Total actual doses taken ÷ Total planned doses) × 100%',
point2: '• Actual doses taken: Number of medication records marked as "taken"',
point3: '• Planned doses: Total doses calculated from the plan start date to current date based on daily frequency',
point4: '• Detailed calculation: (Current date - Start date + 1) × Daily doses, e.g.: Day 5 with 2 daily doses = 10 total planned doses',
point5: '• Individual plan completion = (Actual doses taken for that plan ÷ Planned doses for that plan) × 100%',
button: 'Understood',
},
},
aiSummaryInfo: {
title: 'AI Medication Summary',
placeholderImage: 'Intro Image',
viewImage: 'View Full Image',
features: {
intelligent: {
title: 'Intelligent Analysis',
description: 'AI deeply analyzes your medication records to provide personalized health recommendations',
},
tracking: {
title: 'Trend Tracking',
description: 'Long-term tracking of medication effects to help optimize treatment plans',
},
professional: {
title: 'Professional & Reliable',
description: 'Based on medical knowledge base, providing safe and reliable health analysis',
},
},
confirmButton: 'Subscribe Now',
},
};