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 건강 기록을 EHR로 보낼 수 있도록 하나의 트랜잭션 Bundle로 묶고, 내부 참조를 올바르게 연결하도록 에이전트를 돕습니다.
auditing-deid-leakage
5.8k비식별화된 임상 텍스트에 남은 SSN, 카드 번호, 이메일, 날짜 같은 식별자를 검사하고, 남은 것이 있으면 공개를 막도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.