summarizing-clinical-notes
Что он делает
Этот скилл учит агента писать сводку по клиническим записям пациента. Каждое утверждение привязано к исходному тексту, поэтому врач может его проверить, а результат является черновиком для проверки.
Когда использовать
- ✓Когда врачу нужен черновик выписной сводки после длинного пребывания в больнице.
- ✓Когда команде нужна передача или заметка SBAR, составленная по записям карты с проверяемыми источниками.
- ✓Когда пользователю нужна однострочная сводка о пациенте для утреннего обхода.
Ссылка на скилл
https://github.com/maziyarpanahi/openmed/blob/master/skills/summarizing-clinical-notes/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь составить черновик выписной сводки по моим обезличенным записям и показать, из какой строки взят каждый факт?”
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
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
annotating-variants
5.8kПомогает агенту предсказать, что делает генетический вариант, перевести названия HGVS в позиции генома и добавить частоты в популяциях, с помощью бесплатных публичных аннотаторов.
ask-openmed
5.8kПомогает агенту выбрать правильный рабочий процесс OpenMed для запроса по клиническому тексту, начиная с проверки конфиденциальности, если могут быть данные пациентов.
assembling-fhir-bundles
5.8kУпаковывает несколько медицинских записей FHIR в один транзакционный Bundle, готовый к отправке в EHR, с правильно связанными внутренними ссылками.
auditing-deid-leakage
5.8kСканирует обезличенный клинический текст на остатки идентификаторов, например СНИЛС, номера карт, электронные адреса и даты, и блокирует выпуск, если что-то осталось.
Похожие скиллы
obsidian-vault-maintainer
394kПомогает агенту поддерживать в порядке хранилище памяти, совместимое с Obsidian: рабочие вики-ссылки, единые свойства и безопасные автогенерируемые разделы.
wiki-maintainer
394kПомогает агенту вести вики памяти OpenClaw: страницы остаются повторяемыми, управляемые блоки защищены, а противоречия и пробелы проверяются.
obsidian
394kПозволяет агенту читать, искать, создавать и редактировать заметки, задачи, ссылки и свойства Obsidian с помощью официальной командной строки Obsidian.