extracting-dicom-metadata

Extract DICOM header metadata and structured-report narrative text while flagging protected health information.

5.0k|615|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/maziyarpanahi/openmed --skill extracting-dicom-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extracting-dicom-metadata
Source: https://github.com/maziyarpanahi/openmed/tree/main/skills/extracting-dicom-metadata
Command: npx skills add https://github.com/maziyarpanahi/openmed --skill extracting-dicom-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill extracts clinically meaningful report text and study metadata from DICOM files while identifying header attributes that may contain protected health information. It helps prepare imaging data for safe clinical NLP without exposing patient identifiers or overlooking PHI in structured reports and free-text tags.

Core Features & Use Cases

  • DICOM Header Inspection: Reads study, series, patient, equipment, and free-text metadata with pydicom while reporting PHI-bearing tags without logging their values.
  • DICOM-SR Text Extraction: Recursively traverses Structured Report content trees to reconstruct narrative text, measurements, and relevant coded findings.
  • OpenMed Handoff: Sends extracted narrative through OpenMed de-identification and clinical text analysis while keeping DICOM header scrubbing as a separate standards-based step.
  • Use Case: When ingesting radiology reports from a PACS, extract the SR impression, flag identifiers such as PatientName and AccessionNumber, de-identify the narrative, and analyze it with OpenMed before exporting sanitized data.

Quick Start

Use the extracting-dicom-metadata skill to read the attached DICOM file, extract its report text, identify present PHI tags, and prepare the narrative for OpenMed de-identification and analysis.

Frequently Asked Questions about extracting-dicom-metadata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a DICOM Structured Report for NLP?

DICOM header PHI identification involves scanning study, series, patient, and equipment metadata tags to flag protected health information without logging values. This process separates header scrubbing from narrative text de-identification.

Does this workflow support de-identifying radiology reports from a PACS?

DICOM de-identification requires pydicom for recursive tag inspection, OpenMed for narrative de-identification and analysis, and a DICOM-native PS3.15 process for header and pixel PHI scrubbing. These dependencies ensure complete data sanitization.

Can I use pydicom to flag protected health information in DICOM headers?

DICOM header PHI identification involves scanning study, series, patient, and equipment metadata tags to flag protected health information without logging values. This process separates header scrubbing from narrative text de-identification.

What is the best way to prepare DICOM files for clinical NLP?

DICOM-SR text extraction recursively traverses Structured Report content trees to reconstruct narrative text, measurements, and relevant coded findings. This process captures clinically meaningful report data from imaging files.