Drug Interaction & Formulary Checker
Overview
This skill checks drug-drug interactions, allergy contraindications, formulary coverage, and dosing guidelines using free public APIs — no credentials required out of the box.
What it can do:
- - Check interactions between 2 or more drugs
- Look up a full medication list for interactions
- Check formulary tier and coverage for a payer
- Flag allergy contraindications
- Provide standard adult dosing ranges
- Suggest therapeutic alternatives when a drug is not covered
APIs used (all free, no key needed):
- - OpenFDA — drug interactions, adverse events, labeling
- RxNorm API (NLM) — drug name normalization and RxCUI lookup
- NLM DailyMed — official drug labeling and prescribing info
⚠️ Clinical Disclaimer: All output is informational only and must be reviewed by a licensed clinician or pharmacist before any prescribing or dispensing decision.
🔒 Privacy / PHI Warning: This skill sends drug names and allergy information to public APIs (RxNorm, OpenFDA, DailyMed). Do not include patient-identifiable information (names, MRNs, DOBs, addresses, or other PHI) in any query. Use drug names and clinical terms only. For production use with real patient data, ensure your deployment satisfies HIPAA requirements and that a BAA is in place with any third-party service.
Trigger Phrases
- - "Check interactions for [drug list]"
- "Is it safe to take [drug A] with [drug B]?"
- "Check this patient's med list for interactions"
- "What tier is [drug] on [payer] formulary?"
- "Is [drug] covered by BlueCross?"
- "What's the standard dose for [drug]?"
- "Are there any contraindications with [drug] for a patient allergic to [allergen]?"
- "Suggest an alternative to [drug] that's on formulary"
Drug Interaction Checks
Single pair check
CODEBLOCK0
Full medication list check
CODEBLOCK1
What the agent does:
- 1. Normalizes all drug names via RxNorm API
- Queries OpenFDA drug interactions for each pair
- Ranks interactions by severity (Major / Moderate / Minor)
- Returns a structured interaction report
Example output:
DRUG INTERACTION REPORT
Patient Med List: 5 medications checked
Pairs checked: 10
⛔ MAJOR (1):
• Warfarin + Aspirin
Risk: Increased bleeding risk. Combined antiplatelet
and anticoagulant effect.
Action: Monitor INR closely. Consider GI protection.
⚠️ MODERATE (2):
• Lisinopril + Potassium supplements
Risk: Hyperkalemia risk.
Action: Monitor serum potassium.
• Atorvastatin + Clarithromycin
Risk: Increased statin exposure, myopathy risk.
Action: Temporarily hold statin if antibiotic needed.
✅ MINOR / NO INTERACTION (7):
Remaining pairs — no clinically significant interactions found.
Source: OpenFDA + RxNorm | For clinician review only
Allergy Contraindication Check
CODEBLOCK3
What the agent does:
- 1. Looks up drug class and cross-reactivity data from OpenFDA labeling
- Flags any drugs in the same class as the allergen
- Suggests safe alternatives where available
Formulary & Coverage Lookup
CODEBLOCK4
What the agent does:
- 1. Looks up the drug's generic name and drug class via RxNorm
- If
FORMULARY_API_KEY is set: queries the real-time payer formulary API for tier and coverage data - If no key is set: instructs the agent to tell the user to verify tier directly with the payer's online formulary tool — no estimated or cached data is used
- Suggests covered alternatives in the same drug class based on RxNorm drug class data
Note: Without FORMULARY_API_KEY, this skill does not provide formulary tier estimates. Always confirm coverage with the payer's online formulary tool or pharmacy benefit line before clinical use.
Example output:
FORMULARY CHECK — Ozempic (semaglutide)
Payer: BlueCross BlueShield PPO
Tier: 4 (Non-Preferred Brand)
Est. Copay: $80-120/month (with standard benefit)
Prior Auth Required: Yes
Step Therapy Required: Yes (must try Metformin first)
Covered Alternatives (Tier 2):
• Trulicity (dulaglutide) — Tier 2, $45/month
• Victoza (liraglutide) — Tier 2, $50/month
Recommendation: Consider Trulicity as first-line
if cost is a barrier. PA may be approved if
patient has failed oral agents.
Dosing Reference
CODEBLOCK6
Example output:
DOSING REFERENCE — Metformin (metformin HCl)
Standard Adult Dose:
• Starting: 500mg BID or 850mg once daily with meals
• Titration: Increase by 500mg/week as tolerated
• Maximum: 2550mg/day (divided doses)
Renal Dosing:
• eGFR 30-45: Use with caution, max 1000mg/day
• eGFR <30: CONTRAINDICATED
Common Side Effects: GI upset, nausea (take with food)
Black Box Warning: Lactic acidosis (rare)
Source: FDA prescribing information via OpenFDA
API Reference
RxNorm — Drug Name Normalization
CODEBLOCK8
OpenFDA — Interactions & Labeling
CODEBLOCK9
NLM DailyMed
GET https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?drug_name={name}
→ Returns structured product labeling
Example Workflows
Quick interaction check before prescribing
CODEBLOCK11
Full med reconciliation on admission
Clinician: "Patient admitted with these home meds,
check for interactions:
Warfarin, Amiodarone, Metoprolol,
Furosemide, Potassium Chloride, Digoxin"
Agent: [Checks all 15 pairs]
"⛔ 2 MAJOR interactions found:
• Amiodarone + Warfarin: Markedly increases
INR. Reduce Warfarin dose by 30-50%.
• Amiodarone + Digoxin: Increases Digoxin
levels. Monitor levels and reduce dose."
Version History
| Version | Date | Changes |
|---|
| 1.0.0 | 2026-03-29 | Initial release. Interaction checks, formulary lookup, dosing reference, allergy contraindication check. |
药物相互作用与处方集检查器
概述
本技能利用免费公共API检查药物间相互作用、过敏禁忌症、处方集覆盖范围及剂量指南——开箱即用,无需凭据。
功能:
- - 检查2种或多种药物间的相互作用
- 查询完整用药清单的相互作用
- 检查特定支付方的处方集层级和覆盖范围
- 标记过敏禁忌症
- 提供标准成人剂量范围
- 当药物未被覆盖时建议治疗替代方案
使用的API(均免费,无需密钥):
- - OpenFDA — 药物相互作用、不良事件、说明书
- RxNorm API(NLM)— 药物名称标准化和RxCUI查询
- NLM DailyMed — 官方药物说明书和处方信息
⚠️ 临床免责声明: 所有输出仅供参考,任何处方或配药决定前必须由持证临床医生或药剂师审核。
🔒 隐私/PHI警告: 本技能将药物名称和过敏信息发送至公共API(RxNorm、OpenFDA、DailyMed)。请勿在任何查询中包含患者可识别信息(姓名、病历号、出生日期、地址或其他受保护健康信息)。仅使用药物名称和临床术语。如需在生产环境中使用真实患者数据,请确保您的部署满足HIPAA要求,并与任何第三方服务签订业务合作协议。
触发短语
- - 检查[药物列表]的相互作用
- [药物A]和[药物B]一起服用安全吗?
- 检查该患者用药清单的相互作用
- [药物]在[支付方]处方集中属于哪个层级?
- [药物]是否在BlueCross的覆盖范围内?
- [药物]的标准剂量是多少?
- 对[过敏原]过敏的患者使用[药物]是否有禁忌?
- 建议一种在处方集内的[药物]替代品
药物相互作用检查
单对检查
检查华法林和阿司匹林之间的相互作用
二甲双胍和赖诺普利联合使用安全吗?
完整用药清单检查
检查此用药清单的相互作用:
- - 二甲双胍 1000mg 每日两次
- 赖诺普利 10mg 每日一次
- 阿托伐他汀 40mg 每日一次
- 阿司匹林 81mg 每日一次
- 奥美拉唑 20mg 每日一次
代理程序执行内容:
- 1. 通过RxNorm API标准化所有药物名称
- 查询OpenFDA中每对药物的相互作用
- 按严重程度排序(重度/中度/轻度)
- 返回结构化相互作用报告
示例输出:
药物相互作用报告
患者用药清单:检查5种药物
检查对组:10对
⛔ 重度(1对):
• 华法林 + 阿司匹林
风险:出血风险增加。抗血小板和抗凝作用叠加。
措施:密切监测INR。考虑胃肠道保护。
⚠️ 中度(2对):
• 赖诺普利 + 钾补充剂
风险:高钾血症风险。
措施:监测血清钾水平。
• 阿托伐他汀 + 克拉霉素
风险:他汀暴露增加,肌病风险。
措施:如需使用抗生素,暂时停用他汀。
✅ 轻度/无相互作用(7对):
其余对组——未发现临床显著相互作用。
来源:OpenFDA + RxNorm | 仅供临床医生审核
过敏禁忌症检查
检查这些药物中是否有对青霉素过敏患者禁忌的药物
患者对磺胺类药物过敏——Bactrim安全吗?
代理程序执行内容:
- 1. 从OpenFDA说明书查询药物类别和交叉反应数据
- 标记与过敏原同类的任何药物
- 在可用时建议安全的替代药物
处方集与覆盖范围查询
Ozempic在BlueCross处方集中属于哪个层级?
Humira是否在Aetna的覆盖范围内?
寻找Jardiance的处方集覆盖替代药物
代理程序执行内容:
- 1. 通过RxNorm查询药物的通用名和药物类别
- 如果设置了FORMULARYAPIKEY:查询实时支付方处方集API获取层级和覆盖数据
- 如果未设置密钥:指示代理程序告知用户直接通过支付方的在线处方集工具验证层级——不使用任何估算或缓存数据
- 基于RxNorm药物类别数据建议同一类别中覆盖的替代药物
注意:未设置FORMULARYAPIKEY时,本技能不提供处方集层级估算。临床使用前,请务必通过支付方的在线处方集工具或药房福利热线确认覆盖范围。
示例输出:
处方集检查 — Ozempic(司美格鲁肽)
支付方:BlueCross BlueShield PPO
层级:4(非首选品牌药)
估算共付额:80-120美元/月(标准福利)
需事先授权:是
需阶梯治疗:是(必须先尝试二甲双胍)
覆盖替代药物(层级2):
• Trulicity(度拉糖肽)— 层级2,45美元/月
• Victoza(利拉鲁肽)— 层级2,50美元/月
建议:如果费用是障碍,可考虑Trulicity作为一线药物。
如果患者口服药物失败,事先授权可能获批。
剂量参考
二甲双胍的标准剂量是多少?
赖诺普利在慢性肾病中的剂量?
对乙酰氨基酚每日最大剂量?
示例输出:
剂量参考 — 二甲双胍(盐酸二甲双胍)
标准成人剂量:
• 起始剂量:500mg每日两次或850mg每日一次,随餐服用
• 剂量调整:每周增加500mg,以耐受性为准
• 最大剂量:2550mg/日(分次服用)
肾脏剂量调整:
• eGFR 30-45:谨慎使用,最大1000mg/日
• eGFR <30:禁忌
常见副作用:胃肠道不适、恶心(随餐服用)
黑框警告:乳酸性酸中毒(罕见)
来源:通过OpenFDA获取的FDA处方信息
API参考
RxNorm — 药物名称标准化
GET https://rxnav.nlm.nih.gov/REST/rxcui.json?name={药物名称}
→ 返回RxCUI(标准药物标识符)
GET https://rxnav.nlm.nih.gov/REST/interaction/interaction.json?rxcui={id}
→ 返回药物的相互作用数据
OpenFDA — 相互作用与说明书
GET https://api.fda.gov/drug/label.json?search=openfda.brand_name:{名称}
→ 返回完整药物说明书,包括相互作用部分
GET https://api.fda.gov/drug/event.json?search=patient.drug.medicinalproduct:{名称}
→ 返回不良事件报告
NLM DailyMed
GET https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?drug_name={名称}
→ 返回结构化产品说明书
示例工作流程
处方前快速相互作用检查
临床医生:为已在服用阿托伐他汀的患者加用克拉霉素——有问题吗?
代理程序:⚠️ 检测到中度相互作用
克拉霉素抑制CYP3A4,显著增加阿托伐他汀暴露。
存在肌病和横纹肌溶解风险。
建议:抗生素疗程期间暂时停用阿托伐他汀,
或改用阿奇霉素(与他汀无显著相互作用)。
入院时完整药物核对
临床医生:患者入院时使用以下家庭药物,检查相互作用:
华法林、胺碘酮、美托洛尔、
呋塞米、氯化钾、地高辛
代理程序:[检查全部15对]
⛔ 发现2对重度相互作用:
• 胺碘酮 + 华法林:显著升高INR。
华法林剂量减少30-50%。
• 胺碘酮 + 地高辛:升高地高辛水平。
监测水平并减少剂量。
版本历史
| 版本 | 日期 | 变更内容 |
|---|
| 1.0.0 | 2026-03-29 | 初始版本。相互作用检查、处方集查询、剂量参考、过敏禁忌症检查。 |