本文へスキップ
Skillpedia
分析とスプレッドシート5.8k · #14725

reporting-adverse-events

できること

このスキルは、副作用の報告を、薬の安全性データベースが期待する項目に整理する方法をエージェントに教えます。FDAやEMAのようなシステムに報告書を準備する人向けです。

使う場面

  • ✓患者が薬に反応した経過の話があり、安全性報告の草稿が必要なとき。
  • ✓入院や死亡など、副作用が重篤かどうかを分類する必要があるとき。
  • ✓FAERSへの提出のために、疑わしい薬と反応の項目を埋める必要があるとき。

スキルのリンク

https://github.com/maziyarpanahi/openmed/blob/master/skills/reporting-adverse-events/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/maziyarpanahi/openmed/blob/master/skills/reporting-adverse-events/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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 drugcharacterization axis 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

  1. De-identify first. Run openmed.deidentify(narrative, policy=...) and work from result.deidentified_text. Patient name, MRN, and dates must be removed/shifted before the case leaves your environment.
  2. Extract drugs and reactions with the two analyze_text calls above. Keep each entity's start/end offsets for traceability.
  3. Characterize each drug as suspect (1), concomitant (2), or interacting (3). The drug that temporally precedes the reaction and was
よくある質問

この報告を自分で提出しますか?

いいえ。構造化された草稿を作り、人が確認するためのものだと、スキルは説明しています。

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル