reconciling-problem-lists
できること
このスキルは、ノートの中で同じ病状に繰り返し言及されているものを、問題リストの一つの項目にまとめる方法をエージェントに教えます。患者が持っていない病状は取り除き、残りには状態のラベルを付けます。
使う場面
- ✓診断名が繰り返し出てくる長い臨床ノートから、きれいな問題リストがほしいとき。
- ✓どの病状が活動中、解決済み、または既往だけかを知る必要があるとき。
- ✓病状ごとに一つの項目が必要なFHIRの状態のリストを作るとき。
スキルのリンク
https://github.com/maziyarpanahi/openmed/blob/master/skills/reconciling-problem-lists/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“診療ノートから、まだ活動中の病状を示した、きれいな問題リストを作ってもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは同じ意味の名前をまとめ、否定された言及や仮定の言及を除きます。その後、前の段階で得た文脈を使って、各病状に状態を付けます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Reconciling problem lists
A single note mentions the same condition many ways — "DM2," "type 2 diabetes," "diabetes mellitus" — across PMH, HPI, and A&P, some negated, some historical. A usable problem list collapses those mentions into one concept per problem, drops what the patient does not have, and assigns a clinical status (active / resolved / historical). This skill turns OpenMed's per-mention entity stream plus ConText axes into that reconciled, de-duplicated list, shaped for USCDI "Problem" exchange.
When to use
- After
extracting-clinical-entitiesandresolving-clinical-context, when the user wants a clean problem list, condition reconciliation, or dedup of repeated diagnosis mentions. - You need active-vs-resolved-vs-historical status per problem, not just raw mentions.
- You are assembling a FHIR Condition list or a USCDI Problem element and need one entry per concept.
Quick start
import openmed
from openmed.clinical import resolve_span_context, NEGATED, HISTORICAL, HYPOTHETICAL
note = ("PMH: type 2 diabetes, prior MI 2019 (resolved). "
"A&P: poorly controlled DM2; denies chest pain.")
ents = openmed.analyze_text(note, model_name="disease_detection_superclinical",
output_format="dict")
def normalize(surface: str) -> str:
# Cheap synonym folding; replace with SNOMED grounding (out-of-process).
s = surface.lower().strip()
return {"dm2": "type 2 diabetes", "diabetes mellitus": "type 2 diabetes"}.get(s, s)
problems = {} # concept -> reconciled record
for e in ents:
surface = e["word"]
ctx = resolve_span_context(surface, note)
if ctx.negation == NEGATED:
continue # patient does NOT have it -> exclude
concept = normalize(surface)
status = ("resolved" if ctx.temporality == HISTORICAL else
"active")
if ctx.temporality == HYPOTHETICAL:
continue # not asserted as present
rec = problems.setdefault(concept, {"concept": concept, "status": status,
"mentions": 0})
rec["mentions"] += 1
# Active anywhere wins over a historical mention of the same concept.
if status == "active":
rec["status"] = "active"
problem_list = list(problems.values())
# -> [{"concept": "type 2 diabetes", "status": "active", "mentions": 2}, ...]
# "chest pain" excluded (negated); "MI" -> historical/resolved.
Workflow
- Collect Disease/Condition entities from
analyze_textacross the whole note (or per section if you ransegmenting-clinical-sections). - Attach clinical context per mention with
resolve_span_context(or the axes fromresolving-clinical-context): negation, temporality, uncertainty. - Exclude what isn't a problem. Drop
NEGATEDmentions (patient denies / no evidence of) andHYPOTHETICALmentions (conditional, not asserted). These must never land on the active list. - Cluster synonymous mentions into one concept. Fold surface variants (abbreviations, word order, lexical synonyms) to a single canonical key. Cheap normalization gets you started; SNOMED CT concept grounding is the robust path — run it out-of-process with the user's own license and key on the concept code, not the surface string.
- Assign status by aggregating context. A concept that is
RECENT/active anywhere (typically A&P) is active; one seen only asHISTORICAL("history of," "resolved," PMH-only) is resolved/historical. Active wins over historical when the same concept appears both ways. - Emit the reconciled list — one record per concept with status, mention count, and provenance offsets — shaped for USCDI Problem / FHIR Condition.
Hand-off to / from OpenMed
- From
extracting-clinical-entities: consumesanalyze_textDisease entities. Run on a sectioned note (segmenting-clinical-sections) for best active-vs-historical signal. - From
resolving-clinical-context: this skill depends on the negation / temporality / uncertainty axes — reconciliation without them would put "denies chest pain" on the active list. - OpenMed calls:
from openmed import analyze_textandfrom openmed.clinical import resolve_span_context, NEGATED, HISTORICAL, HYPOTHETICAL. - To FHIR / USCDI: each reconciled problem becomes a Condition with
clinicalStatusactive/resolved (from tempor
よくある質問
同じ病状とはどう判断しますか?
DM2と2型糖尿病のような同義語を一つの項目にまとめます。
患者が否定した病状は除きますか?
はい。否定された言及は、活動中のリストから取り除かれます。
その前に別の段階が必要ですか?
はい。このスキルは、エンティティの抽出と文脈の解決の後に動きます。
詳細
作者による元の説明
Deduplicate and reconcile OpenMed-extracted conditions into one clean active problem list with clinical status (active / resolved / historical). Use after NER and context resolution when the user wants a problem list, condition reconciliation, dedup of synonymous diagnosis mentions, or active-vs-resolved status from a note. Covers clustering synonymous mentions into one concept, excluding negated mentions, applying clinical context (historical / hypothetical / recent) to set status, and emitting a USCDI-Problem-shaped list. SNOMED CT concept grounding is user-supplied and out-of-process. Hand-
repo: maziyarpanahi/openmed
人気
- GitHubのスター
- 5.8k
- ランキング
- #14723
- ライセンス
- 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エージェントが、匿名化済みの臨床テキストに残っている識別子(SSN、カード番号、メール、日付など)をスキャンし、残っていれば公開を止めます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。