structuring-radiology-reports
它能做什么
这项技能教智能体如何把放射科报告整理为所见和印象等章节。它会提取测量值、身体侧别和随访建议,便于追踪。
适用场景
- ✓当用户有 CT、MRI 或 X 光报告,并希望把所见和印象分开的时候。
- ✓当用户需要从报告中获取病灶大小以及左侧或右侧信息的时候。
- ✓当团队必须追踪偶然发现及报告建议的随访措施的时候。
技能链接
https://github.com/maziyarpanahi/openmed/blob/master/skills/structuring-radiology-reports/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能把我的胸部 CT 报告拆分为所见和印象,并列出其中建议的任何随访措施吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把报告拆分为通常的章节,找出解剖部位、所见和测量值。它会把每一项链接到原始句子,便于放射科医生审核。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Structuring radiology reports
A radiology report is prose, but its meaning is structured: a technique, a comparison, a list of findings (each with anatomy, laterality, and a measurement), and an impression that may carry an assessment category (BI-RADS, Lung-RADS) and a follow-up recommendation. This skill turns the narrative into that structure so findings are trackable — especially incidental findings that need downstream follow-up.
OpenMed extracts the anatomy, disease/finding, and measurement spans on-device; this skill organizes them into sectioned, coded findings. It is decision-support, not a diagnostic device — every structured finding must be attributable back to its source sentence for radiologist review.
When to use
- You have a CT/MRI/X-ray/US/mammography report and need
{technique, comparison, findings[], impression}with measurements and laterality. - You must capture BI-RADS (breast) or Lung-RADS (lung screening) assessment categories and the recommended action.
- You need to track incidental findings and the follow-up interval/modality the report recommends.
- You are mapping findings toward RadLex terms or a DICOM-SR structured report.
Quick start
import openmed
report = (
"TECHNIQUE: CT chest without contrast.\n"
"COMPARISON: CT 2023-11-02.\n"
"FINDINGS: A 8 mm solid nodule is noted in the right upper lobe, "
"unchanged. No pleural effusion.\n"
"IMPRESSION: 8 mm right upper lobe nodule, stable. Lung-RADS 2. "
"Recommend annual low-dose CT screening."
)
# 1) De-identify the report on-device first (synthetic example shown).
deid = openmed.deidentify(report, policy="hipaa_safe_harbor")
text = deid.deidentified_text
# 2) Run NER for anatomy / finding / measurement spans.
ents = openmed.analyze_text(
text,
model_name="anatomy_detection_superclinical", # Anatomy category
output_format="dict",
)["entities"]
# 3) Split sections by header, then attach entities + measurements per finding.
import re
SECTION = re.compile(r"(?im)^(TECHNIQUE|COMPARISON|FINDINGS|IMPRESSION)\s*:")
sections, last, name = {}, 0, None
for m in SECTION.finditer(text):
if name: sections[name] = text[last:m.start()].strip()
name, last = m.group(1).upper(), m.end()
if name: sections[name] = text[last:].strip()
structured = {
"technique": sections.get("TECHNIQUE"),
"comparison": sections.get("COMPARISON"),
"findings": _split_findings(sections.get("FINDINGS", "")), # one per sentence
"impression": sections.get("IMPRESSION"),
"measurements": re.findall(r"\b\d+(?:\.\d+)?\s?(?:mm|cm)\b", text),
"laterality": sorted({w for w in ("right", "left", "bilateral")
if re.search(rf"\b{w}\b", text, re.I)}),
"assessment": (re.search(r"\b(?:BI-RADS|Lung-RADS)\s*\d[A-C]?\b", text, re.I)
or [None])[0] if re.search(r"RADS", text, re.I) else None,
"follow_up": _extract_followup(sections.get("IMPRESSION", "")),
}
_split_findings / _extract_followup are your sentence splitter and a
recommendation matcher ("recommend …", "follow-up in N months"); keep each
finding tied to its source sentence offsets.
Workflow
- De-identify first.
openmed.deidentify(report, policy=...); structure fromdeidentified_text. Patient name, MRN, accession, and dates go before anything is stored or shared. - Split sections by the standard headers (TECHNIQUE, COMPARISON, FINDINGS, IMPRESSION; also HISTORY/INDICATION). Reports vary — fall back to position if headers are missing.
- Run
analyze_textfor anatomy and finding entities; capture measurements ("8 mm", "1.2 cm") and laterality ("right", "left", "bilateral") near each finding. - Build one structured finding per observation:
{anatomy, finding, laterality, measurement, change_vs_prior, source_offsets}. "Unchanged", "stable", "increased", "new" capture temporal change against the comparison. - Pull the assessment category (BI-RADS 0-6, Lung-RADS 1-4X) from the impression and the recommended follow-up (modality + interval).
- Flag incidental findings — findings unrelated to the exam indication — and route them to a follow-up tracker so they aren't lost.
- Map toward RadLex / DICOM-SR if you need coded interoperability, and surface the whole structure to a radiologist for verification.
Hand-off to / from OpenMed
OpenMed's `a
常见问题
这会取代放射科医生吗?
不会。这项技能说明它只是决策辅助,每项发现都必须链接回原文以供审核。
它能处理 BI-RADS 和 Lung-RADS 吗?
能。出现这些评估类别时,它会记录类别及建议的处理措施。
它会把发现映射为标准术语吗?
这项技能提到会把发现映射为 RadLex 术语或 DICOM 结构化报告。
详情
作者的原始描述
Converts free-text radiology narratives into structured findings and impression — with measurements, laterality, anatomy, and follow-up recommendations — after OpenMed NER. Use when the user has a CT/MRI/X-ray/ultrasound/mammography report and needs the sections split (technique, comparison, findings, impression), lesion measurements and laterality captured, BI-RADS / Lung-RADS assessment categories pulled, or incidental findings and recommended follow-up tracked. Trigger keywords: radiology report, findings, impression, RadLex, DICOM-SR, BI-RADS, Lung-RADS, ACR, laterality, measurement, nodul
repo: maziyarpanahi/openmed
热度
- GitHub 星标
- 5.8k
- 排名
- #14736
- 许可证
- 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扫描已去标识化的临床文本,查找残留的标识符,例如社会安全号、银行卡号、电子邮件地址和日期,若仍有残留则阻止发布。