reporting-adverse-events
它能做什么
这项技能教智能体如何把副作用的描述整理成药物安全数据库所要求的字段。适合为 FDA 或 EMA 类系统准备报告的人员。
适用场景
- ✓当用户有患者服药后出现反应的经过描述,需要一份安全报告草稿的时候。
- ✓当用户需要判断某种副作用是否严重,例如导致住院或死亡的时候。
- ✓当用户正在准备 FAERS 提交,需要填写可疑药物和反应字段的时候。
技能链接
https://github.com/maziyarpanahi/openmed/blob/master/skills/reporting-adverse-events/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我写的这份关于患者在服用新药后出血的记录,整理成一份 FAERS 报告草稿。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从经过描述中找出可疑药物、反应和严重性判断依据,然后填写对应字段。草稿必须由人工审核,反应编码则需要用户自行取得 MedDRA 许可。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reporting adverse events into FAERS / ICH E2B(R3)
A pharmacovigilance case starts as free-text narrative ("68 yo on warfarin developed GI bleed, hospitalized"). To make it reportable you must structure it into the ICH E2B(R3) data elements that the FDA's FAERS (and EMA's EudraVigilance) expect: a suspect drug, one or more reactions coded to MedDRA Preferred Terms, seriousness criteria, and a reaction outcome.
OpenMed extracts the drug and condition spans on-device; this skill turns those spans plus the narrative into the E2B(R3) skeleton. The reaction coding step needs MedDRA, which is licensed by the MSSO and user-supplied — it is never bundled with OpenMed and must be loaded from the user's own subscription.
When to use
- A narrative names a drug and an adverse reaction and you need an ICSR (Individual Case Safety Report) shell with the right E2B(R3) fields.
- You must classify seriousness (E2B sections C.1.7 / E.i.3) — death, life-threatening, hospitalization/prolongation, disability, congenital anomaly, or "other medically important condition".
- You need to characterize each drug as suspect / concomitant / interacting
(the
drugcharacterizationaxis FAERS uses). - You are pre-filling a 3500A / FAERS electronic submission or staging cases for a safety database.
This skill produces a structured draft for human safety review — it does not file reports or perform causality assessment autonomously.
Quick start
import openmed
narrative = (
"68-year-old patient on warfarin 5 mg daily developed a gastrointestinal "
"hemorrhage and was hospitalized. Warfarin was discontinued; the patient "
"recovered."
)
# 1) Extract drug spans (Pharmaceutical category) on-device.
drugs = openmed.analyze_text(
narrative,
model_name="pharma_detection_superclinical",
output_format="dict",
)["entities"]
# 2) Extract condition / reaction spans (Disease category).
conditions = openmed.analyze_text(
narrative,
model_name="disease_detection_superclinical",
output_format="dict",
)["entities"]
# 3) Assemble an E2B(R3)-shaped ICSR skeleton (reaction PTs filled later via MedDRA).
icsr = {
"patient": {"age": None, "sex": None}, # from de-identified demographics
"drugs": [
{
"name": e["text"],
"drugcharacterization": 1, # 1=suspect 2=concomitant 3=interacting
"action": None, # e.g. drug withdrawn / dose reduced
}
for e in drugs
],
"reactions": [
{
"verbatim": e["text"], # narrative term, pre-MedDRA
"meddra_pt": None, # coded with user's MedDRA dict
"outcome": None, # E2B reaction outcome code
}
for e in conditions
],
"seriousness": {
"serious": None, "death": False, "lifeThreatening": False,
"hospitalization": True, "disability": False, "congenitalAnomaly": False,
"otherMedicallyImportant": False,
},
}
E2B(R3) seriousness and outcome value sets
Seriousness is a set of boolean criteria (E2B E.i.3.2). A case is serious if any criterion is true:
| Criterion | E2B element | FAERS field |
|---|---|---|
| Death | E.i.3.2a | seriousnessdeath |
| Life-threatening | E.i.3.2b | seriousnesslifethreatening |
| Hospitalization / prolonged | E.i.3.2c | seriousnesshospitalization |
| Disability / incapacity | E.i.3.2d | seriousnessdisabling |
| Congenital anomaly | E.i.3.2e | seriousnesscongenitalanomali |
| Other medically important | E.i.3.2f | seriousnessother |
Reaction outcome (E2B E.i.7) is a coded value: 1 recovered/resolved,
2 recovering/resolving, 3 not recovered/not resolved, 4 recovered with
sequelae, 5 fatal, 6 unknown.
Drug characterization (E2B G.k.1): 1 suspect, 2 concomitant, 3 interacting.
Workflow
- De-identify first. Run
openmed.deidentify(narrative, policy=...)and work fromresult.deidentified_text. Patient name, MRN, and dates must be removed/shifted before the case leaves your environment. - Extract drugs and reactions with the two
analyze_textcalls above. Keep each entity'sstart/endoffsets for traceability. - Characterize each drug as suspect (
1), concomitant (2), or interacting (3). The drug that temporally precedes the reaction and was
常见问题
它会替我提交报告吗?
不会。这项技能只生成结构化草稿,供人工审核。
我需要 MedDRA 许可吗?
反应编码这一步需要。这项技能说明 MedDRA 需单独授权,且须由用户自行取得。
E2B 是什么?
E2B(R3) 是一套国际标准的数据字段,用于个案安全报告。
详情
作者的原始描述
Structures adverse-event mentions that OpenMed extracts into FAERS / ICH E2B(R3) reportable fields — suspect drug, reaction (MedDRA PT), seriousness criteria, and outcome. Use when the user needs to build an individual case safety report (ICSR), populate a FAERS submission, map a narrative to E2B(R3) data elements, classify seriousness (death, life-threatening, hospitalization, disability, congenital anomaly), or assign reaction outcomes. Trigger keywords: adverse event, ADR, ICSR, FAERS, E2B, E2B(R3), suspect drug, seriousness, MedDRA, reaction outcome, pharmacovigilance case. Pairs after Ope
repo: maziyarpanahi/openmed
热度
- GitHub 星标
- 5.8k
- 排名
- #14725
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
annotating-variants
5.8k帮你的智能体预测基因变异的作用,把 HGVS 名称转换为基因组位置,并使用免费的公共注释工具添加人群频率。
ask-openmed
5.8k帮你的智能体为临床文本请求选择合适的 OpenMed 工作流程,并在可能涉及患者数据时,先进行隐私检查。
assembling-fhir-bundles
5.8k把多份 FHIR 健康记录打包成一个事务 Bundle,可直接发送给 EHR 系统,并正确链接其中的内部引用。
auditing-deid-leakage
5.8k扫描已去标识化的临床文本,查找残留的标识符,例如社会安全号、银行卡号、电子邮件地址和日期,若仍有残留则阻止发布。