summarizing-clinical-notes
하는 일
이 스킬은 환자의 임상 노트 요약을 작성하는 방법을 에이전트에게 가르칩니다. 각 문장은 원문과 연결되어 임상의가 확인할 수 있으며, 결과는 검토용 초안입니다.
사용하는 경우
- ✓임상의가 긴 입원 기간의 퇴원 요약 초안이 필요할 때.
- ✓차트 노트에서 확인 가능한 출처가 있는 인계 또는 SBAR 노트가 필요할 때.
- ✓아침 회진을 위해 환자를 한 줄로 요약해야 할 때.
스킬 링크
https://github.com/maziyarpanahi/openmed/blob/master/skills/summarizing-clinical-notes/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 비식별화된 노트로 퇴원 요약 초안을 작성하고, 각 사실이 어느 줄에서 왔는지도 보여 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 개인 정보를 제거하고 핵심 용어를 찾습니다. 그다음 각 줄 옆에 출처 참조를 붙여 요약을 쓰며, 임상의가 사용 전에 초안을 검토합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Summarizing Clinical Notes with Span Citations
A clinical summary is only useful if it is faithful: every statement must trace back to something the chart actually says. The failure mode for note summarization is the confident hallucination — an invented dose, a fabricated allergy, a discharge diagnosis that was never made. This skill produces summaries where each line cites the source span that supports it, so a clinician can verify in one glance and catch any fabrication.
Not a medical device. OpenMed and this skill assist documentation; they do not diagnose, triage, or make autonomous clinical decisions. Every summary is a draft for clinician review and editing. Surface that disclaimer in any UI that renders these summaries.
When to use
- Drafting a discharge summary, transfer note, or SBAR/handoff from a long encounter.
- Building a problem-oriented view (problem list with supporting evidence).
- Generating a "one-liner" (the single-sentence patient summary) for rounds.
- Chart abstraction where reviewers need quick, verifiable evidence pointers.
Quick start
De-identify before anything else, extract entities to anchor against, then compose the summary with citations:
import openmed
note = """\
HPI: 68M with HTN, T2DM presents with 3 days of productive cough and fever to
38.9C. CXR shows RLL infiltrate. Started on ceftriaxone and azithromycin.
Hospital course: improved on IV antibiotics, transitioned to PO. Discharged on
amoxicillin-clavulanate. Follow up with PCP in 1 week.
"""
# 1) ALWAYS de-identify before summarizing or sending text anywhere.
deid = openmed.deidentify(note, method="replace", policy="hipaa_safe_harbor")
# 2) Extract entities; their offsets become your citation anchors.
ner = openmed.analyze_text(deid.text, output_format="dict")
spans = {
(e["start"], e["end"]): e["text"]
for e in ner["entities"]
}
# 3) Compose the summary. Every bullet references a (start, end) span so a
# reviewer can click back to the exact evidence.
def cite(start, end):
return f"[{start}:{end}] {deid.text[start:end]!r}"
# Example problem-oriented line, grounded in detected spans:
# "Community-acquired pneumonia (RLL infiltrate) — treated with ceftriaxone +
# azithromycin." with cite(...) anchors for each entity.
analyze_text returns entities as
{"text", "label", "confidence", "start", "end", "metadata"}; the
start/end offsets index the de-identified text, giving you exact,
verifiable citation anchors.
Workflow
- De-identify with
openmed.deidentify. Summaries are often shared or logged; PHI must be gone before this stage. Keep the mapping (keep_mapping=True) only if a downstream clinician must re-identify in a controlled context — never persist the mapping with the summary. - Extract grounding spans with
openmed.analyze_text(problems, meds, labs, procedures). These define the allowed evidence set: a summary claim that cannot point at a span is unsupported. - Resolve context with
openmed.clinical(negation, temporality, subject) so "no chest pain" and "father had MI" are not summarized as active patient problems. Seeresolving-clinical-context. - Compose by view:
- One-liner: age/sex + key chronic problems + reason for encounter.
- Hospital course: ordered problems → intervention → response, each line citing the spans it summarizes.
- Problem-oriented: group entities into problems; attach supporting med/lab/procedure spans under each.
- Enforce citation coverage. Reject or flag any output sentence with zero span citations. This is the anti-hallucination gate — keep it strict.
- Mark it a draft. Render the medical-device disclaimer and require human sign-off before the summary enters the record.
Hand-off to / from OpenMed
- From OpenMed: consumes
openmed.deidentify(...)output (de-identified text + entity spans) andopenmed.analyze_text(...)(PredictionResultdict). Entitystart/endoffsets are the citation anchors. - To OpenMed: the summary text itself can be re-run through
openmed.analyze_textfor a coded problem list, or throughopenmed.evalleakage gates to confirm no PHI leaked into the generated summary. - Citation rendering:
analyze_text(..., output_format="html")produces a span-highlighted view of the source — handy for a click-to-evidence UI.
Edge cases & gotchas
- **Hallucination is th
자주 묻는 질문
요약에 차트에 없는 사실이 들어갈 수 있나요?
스킬은 각 주장을 출처 구간에 고정해 이를 막으려고 합니다.
이것은 의료기기인가요?
아니요. 스킬은 의료기기가 아니며, 임상의 검토용 초안을 만든다고 설명합니다.
노트를 먼저 비식별화해야 하나요?
네. 스킬은 다른 무엇보다 먼저 비식별화를 실행하라고 설명합니다.
상세 정보
작성자의 원본 설명
Produces structured, citation-anchored summaries of clinical notes — one-liner, hospital course, and problem-oriented views — where every claim cites a source span so nothing is hallucinated. Use after de-identifying notes when the user wants a discharge summary draft, handoff/SBAR, problem list, or chart-abstraction summary. De-identify FIRST with openmed.deidentify, then anchor summary claims to entity spans from openmed.analyze_text. Trigger keywords: summarize note, discharge summary, hospital course, problem-oriented, one-liner, SOAP, SBAR, handoff, chart abstraction.
repo: maziyarpanahi/openmed
인기도
- GitHub 스타
- 5.8k
- 순위
- #14737
- 라이선스
- 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, 카드 번호, 이메일, 날짜 같은 식별자를 검사하고, 남은 것이 있으면 공개를 막도록 돕습니다.