- AI 提示词拆分为 markdown 模块(Prompts/global + modules + rag + router) - 新增 AI 同意门控(用户需同意后才能使用 AI 功能) - 新增 AI 录入草稿存储(AiEntryDraftContracts/EfAiEntryDraftStore/AiEntryDraftRecord) - 新增 AI 意图路由(ai_intent_router) - 新增医疗引用知识库(MedicalCitationKnowledge) - 重构 prompt_manager 和 ai_chat_endpoints - 优化聊天/趋势/档案/抽屉/医生端等多个页面 UI - 新增 agent 插画和趋势指标图标资源 - 删除 HANDOFF-2026-07-17.md
92 lines
5.7 KiB
C#
92 lines
5.7 KiB
C#
namespace Health.Application.AI;
|
||
|
||
/// <summary>
|
||
/// iOS 审核版内置医学来源目录。
|
||
/// 这是固定提示词资料,不依赖在线 RAG 检索。
|
||
/// </summary>
|
||
public static class MedicalCitationKnowledge
|
||
{
|
||
public const string Prompt = """
|
||
固定医学参考来源目录(仅可引用下列来源,不得编造 PMID、DOI 或 URL):
|
||
|
||
[S-BP-01] 2024 ESC Guidelines for the management of elevated blood pressure and hypertension
|
||
适用:血压记录、血压趋势、单次血压不能单独诊断、复测和就医提醒。
|
||
https://pubmed.ncbi.nlm.nih.gov/39210715/
|
||
|
||
[S-GLU-01] Glycemic Goals and Hypoglycemia: Standards of Care in Diabetes—2025
|
||
适用:血糖记录、空腹或餐后状态、低血糖风险和血糖结果说明。
|
||
https://pubmed.ncbi.nlm.nih.gov/39651981/
|
||
|
||
[S-HR-01] All About Heart Rate, American Heart Association
|
||
适用:静息心率的客观说明和心率记录趋势。
|
||
https://www.heart.org/en/health-topics/high-blood-pressure/the-facts-about-high-blood-pressure/all-about-heart-rate-pulse
|
||
|
||
[S-OXY-01] Pulse Oximeter Basics, U.S. Food and Drug Administration
|
||
适用:血氧读数局限、复测、症状和血氧记录说明。
|
||
https://www.fda.gov/consumers/consumer-updates/pulse-oximeter-basics
|
||
|
||
[S-DIET-01] Popular Dietary Patterns: Alignment With American Heart Association 2021 Dietary Guidance
|
||
适用:一般饮食模式、食物营养特征、饮食图片估算局限。
|
||
https://pubmed.ncbi.nlm.nih.gov/37128940/
|
||
|
||
[S-DIET-02] Diet and nutrition in cardiovascular disease prevention
|
||
适用:一般心血管健康饮食信息,不用于个体化疾病饮食处方。
|
||
https://pubmed.ncbi.nlm.nih.gov/40504596/
|
||
|
||
[S-EX-01] Resistance Exercise Training in Individuals With and Without Cardiovascular Disease: 2023 Update
|
||
适用:一般运动计划记录和运动安全提醒,不用于疾病运动处方。
|
||
https://pubmed.ncbi.nlm.nih.gov/38059362/
|
||
|
||
[S-EX-02] Core Components of Cardiac Rehabilitation Programs: 2024 Update
|
||
适用:心脏康复相关安全边界,只能建议咨询专业人员,不能生成康复处方。
|
||
https://pubmed.ncbi.nlm.nih.gov/39315436/
|
||
|
||
[S-MED-01] Medicines adherence: involving patients in decisions about prescribed medicines and supporting adherence
|
||
适用:用药计划记录、服药提醒和建议咨询医生或药师。
|
||
https://pubmed.ncbi.nlm.nih.gov/39480983/
|
||
|
||
[S-REPORT-01] Interpreting Normal Values and Reference Ranges for Laboratory Tests
|
||
适用:报告指标、参考范围和异常标记的客观说明。
|
||
https://pubmed.ncbi.nlm.nih.gov/40268322/
|
||
|
||
[S-REPORT-02] Verification of reference intervals in routine clinical laboratories: practical challenges and recommendations
|
||
适用:不同实验室参考范围差异和优先使用原报告参考范围。
|
||
https://pubmed.ncbi.nlm.nih.gov/29729142/
|
||
|
||
[S-EM-01] 2024 American Heart Association and American Red Cross Guidelines for First Aid
|
||
适用:危险症状安全提醒、及时联系当地急救服务和不要等待 AI 判断。
|
||
https://cpr.heart.org/en/resuscitation-science/2024-first-aid-guidelines
|
||
|
||
来源使用边界:
|
||
- 血压:单次记录不能单独诊断高血压;应结合多次记录、测量条件、症状和医生评估;不得建议自行加药、减药或停药。
|
||
- 血糖:必须关注空腹/餐后等测量时段和既往用药;不能把一个统一目标套用给所有人;不得据此诊断糖尿病或指导自行调药。
|
||
- 心率:静息心率的客观范围不能替代诊断;应结合是否安静、是否有不适和变化趋势说明。
|
||
- 血氧:读数是估计值,可能受手部温度、活动、循环、皮肤因素和设备影响;应结合症状和复测结果,不得仅凭单个数值诊断或指导吸氧/调药。
|
||
- 饮食:图片不能精确确定重量、份量、烹调油和调味料;盐、糖、脂肪和热量只能作一般估算;不得根据疾病档案生成个体化饮食处方。
|
||
- 运动:只能提供一般运动计划记录和安全提醒;不得针对心血管疾病制定运动处方;有胸痛、晕厥或明显呼吸困难时应先就医评估。
|
||
- 用药:只能记录计划、查询任务和提醒;开始、停止、更换或调整药物应由医生或药师决定。
|
||
- 报告:优先使用报告本身提供的参考范围;标记高/低不等于诊断;不同实验室参考范围不能直接互换;应由医生结合症状和病史解释。
|
||
- 危险症状:胸部不适、呼吸困难、单侧无力、语言障碍、意识异常等应立即联系当地急救服务,不要等待 AI 继续判断。
|
||
""";
|
||
|
||
public const string FixedDietCitation = """
|
||
参考来源:
|
||
[S-DIET-01] Popular Dietary Patterns: Alignment With American Heart Association 2021 Dietary Guidance
|
||
https://pubmed.ncbi.nlm.nih.gov/37128940/
|
||
""";
|
||
|
||
public const string FixedReportCitation = """
|
||
参考来源:
|
||
[S-REPORT-01] Interpreting Normal Values and Reference Ranges for Laboratory Tests
|
||
https://pubmed.ncbi.nlm.nih.gov/40268322/
|
||
[S-REPORT-02] Verification of reference intervals in routine clinical laboratories: practical challenges and recommendations
|
||
https://pubmed.ncbi.nlm.nih.gov/29729142/
|
||
""";
|
||
|
||
public const string EmergencyCitation = """
|
||
参考来源:
|
||
[S-EM-01] 2024 American Heart Association and American Red Cross Guidelines for First Aid
|
||
https://cpr.heart.org/en/resuscitation-science/2024-first-aid-guidelines
|
||
""";
|
||
}
|