feat(用药管理): 集成AI智能分析功能,提供用药依从性深度洞察和专业健康建议
This commit is contained in:
@@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -469,4 +469,75 @@ export const medications = {
|
||||
button: '知道了!',
|
||||
},
|
||||
},
|
||||
};
|
||||
aiSummary: {
|
||||
title: 'AI 用药总结',
|
||||
headerBadge: 'AI 专业总结',
|
||||
subtitle: '依从性与安全重点',
|
||||
overviewTitle: '用药总览',
|
||||
keyInsights: 'AI 重点解读',
|
||||
refresh: 'DeepSeek 正在进行分析,请稍等',
|
||||
stats: {
|
||||
activePlans: '进行中计划',
|
||||
plannedDoses: '计划总次数',
|
||||
takenDoses: '已完成次数',
|
||||
completion: '总体完成度',
|
||||
avgCompletion: '平均依从度',
|
||||
activeDays: '计划天数',
|
||||
},
|
||||
badges: {
|
||||
adherence: '依从性',
|
||||
safety: '监测建议',
|
||||
},
|
||||
doseSummary: '已完成 {{taken}} / {{planned}} 次',
|
||||
daysLabel: '{{days}} 天计划 · 每日 {{times}} 次',
|
||||
completionLabel: '完成度 {{value}}%',
|
||||
emptyTitle: '暂无开启的用药计划',
|
||||
emptyDescription: '激活或新增计划后,将自动生成 AI 总结。',
|
||||
error403: '免费使用次数已用完,请开通会员获取更多使用次数',
|
||||
genericError: '获取AI总结失败,请稍后重试',
|
||||
keyInsightPlaceholder: '暂未生成解读',
|
||||
listTitle: '计划分解',
|
||||
updatedAt: '更新于 {{time}}',
|
||||
pillChip: '专业建议',
|
||||
retry: '重试',
|
||||
infoModal: {
|
||||
badge: '说明',
|
||||
title: '刷新规律 & 依从度',
|
||||
point1: '• 每日生成:基于当天已开启的用药计划与实际打卡数据,每天出一版总结。',
|
||||
point2: '• 刷新作用:重新获取最新的计划 vs 实际完成度和 AI 解读,不会扣额外次数。',
|
||||
point3: '• 依从度:按计划执行的程度(完成率)。越高代表越遵医嘱、风险越低。',
|
||||
point4: '• 统计口径:仅统计 isActive=true 且未删除的计划;完成次数只计状态为 taken 的记录。',
|
||||
button: '知道了',
|
||||
},
|
||||
completionInfoModal: {
|
||||
badge: '计算说明',
|
||||
title: '完成度计算逻辑',
|
||||
point1: '• 总体完成度 = 所有计划的实际服药次数总和 ÷ 所有计划的理论服药次数总和 × 100%',
|
||||
point2: '• 实际服药次数:标记为"已服用"的用药记录数量',
|
||||
point3: '• 理论服药次数:从计划开始时间到当前时间,按照每日服药频率计算的总次数',
|
||||
point4: '• 理论次数详细计算:(当前日期 - 开始日期 + 1) × 每日服药次数,例如:今天是第5天,每日2次,则理论次数为10次',
|
||||
point5: '• 单个计划完成度 = 该计划的已服药次数 ÷ 该计划的理论服药次数 × 100%',
|
||||
button: '了解了',
|
||||
},
|
||||
},
|
||||
aiSummaryInfo: {
|
||||
title: 'AI 用药总结',
|
||||
placeholderImage: '介绍图片',
|
||||
viewImage: '查看大图',
|
||||
features: {
|
||||
intelligent: {
|
||||
title: '智能分析',
|
||||
description: 'AI 深度分析您的用药记录,提供个性化健康建议',
|
||||
},
|
||||
tracking: {
|
||||
title: '趋势追踪',
|
||||
description: '长期追踪用药效果,帮助优化治疗方案',
|
||||
},
|
||||
professional: {
|
||||
title: '专业可靠',
|
||||
description: '基于医学知识库,提供安全可靠的健康分析',
|
||||
},
|
||||
},
|
||||
confirmButton: '我要订阅',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user