Logo: Dicom Metadata Extractor

Dicom Metadata Extractor

Organisatioun
Open-Medica
dicom-metadata-extractor

Extract metadata from DICOM medical images, anonymize protected health information (PHI), and process imaging data for research or clinical workflows. Supports pydicom integration.

Iwwersiicht

EditeurOpen-Medica
Repositoryopen-medical-skills
Skill-Nummdicom-metadata-extractor
Stären
32
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Open-Medica huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Dicom Metadata Extractor an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Open-Medica/open-medical-skills/tree/main/skills/dicom-metadata-extractor
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Open-Medica/open-medical-skills.git /tmp/open-medical-skills
mkdir -p .claude/skills
cp -r /tmp/open-medical-skills/skills/dicom-metadata-extractor .claude/skills/dicom-metadata-extractor
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Dicom Metadata Extractor an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Dicom Metadata Extractor automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Dicom Metadata Extractor net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

DICOM Metadata & PHI Anonymization

Extract, inspect, and anonymize metadata from DICOM (Digital Imaging and Communications in Medicine) medical image files. This skill provides AI agents with the ability to parse DICOM headers for study and patient information, batch-extract metadata fields across imaging series, identify and redact protected health information (PHI) embedded in DICOM tags for de-identification, and prepare imaging datasets for research use in compliance with HIPAA Safe Harbor and Expert Determination methods -- powered by the pydicom library.

Quick Install

bash
npx skills add Open-Medica/open-medical-skills --skill dicom-metadata-extractor

What It Does

  • DICOM header parsing to extract all standard metadata fields including Patient ID, Study Date, Modality, Body Part, Series Description, Institution Name, Referring Physician, pixel spacing, slice thickness, and hundreds of additional DICOM tags organized by group
  • Batch metadata extraction across entire imaging studies or series, generating structured CSV or JSON reports of metadata fields for all files in a directory, enabling systematic data audits
  • PHI identification and removal following HIPAA Safe Harbor de-identification (18 identifiers), automatically detecting and redacting patient name, date of birth, medical record number, accession number, institution name, referring physician, and other PHI-containing DICOM tags
  • Pixel data PHI detection for burned-in annotations, identifying text overlays on image pixels that may contain patient identifying information (e.g., patient name rendered in image corners by the modality)
  • Research dataset preparation with configurable anonymization profiles, date shifting (preserving temporal relationships between studies), UID remapping (maintaining series/study relationships while replacing identifiers), and export in standard DICOM or converted formats

Clinical Use Cases

  • Research data preparation: A radiology researcher preparing a dataset of 5,000 chest CTs for a deep learning study needs to anonymize all DICOM files before sharing with collaborators. This skill batch-processes the entire dataset, strips PHI from headers, remaps UIDs consistently, shifts dates by a random offset, and flags files with potential burned-in annotations for manual review.
  • PACS migration quality assurance: A hospital IT team migrating from one PACS system to another can use this skill to extract and compare metadata before and after migration, verifying that no data corruption occurred and that all studies maintained proper series relationships and metadata integrity.
  • Clinical trial imaging core lab: An imaging core lab receiving multi-site trial data can extract standardized metadata from incoming DICOM files, verify protocol compliance (correct modality, slice thickness, contrast phase), and flag submissions that deviate from the imaging protocol.
  • HIPAA compliance audit: A compliance officer can run this skill against a sample of DICOM files stored on a research server to verify that all PHI has been properly removed, generating an audit report listing any residual identifying information found in DICOM headers or burned-in pixel data.

Safety & Evidence

  • Safety Classification: Caution -- This skill processes medical imaging files that may contain protected health information (PHI). Users must ensure that anonymized datasets are validated before sharing or publication. Burned-in annotations in pixel data require visual verification as automated detection may miss some cases. The skill does not modify clinical systems or PACS storage directly.
  • Evidence Level: High -- DICOM is the universal standard for medical imaging (ISO 12052). The pydicom library used by this skill is the most widely adopted open-source DICOM parser in the Python ecosystem, validated across millions of DICOM files. Anonymization follows DICOM Supplement 142 (Clinical Trial De-identification) and HIPAA Safe Harbor guidelines.

Example Usage

Extract metadata from a DICOM study:

Extract all metadata from the DICOM files in /data/imaging/study_001/.
Generate a structured report showing Patient ID, Study Date, Modality,
Series Description, Slice Thickness, Pixel Spacing, and Institution
Name for each series. Output as a CSV file.

Anonymize a dataset for research sharing:

Anonymize all DICOM files in /data/trial/site_003/ using HIPAA Safe
Harbor de-identification. Remove all 18 PHI identifiers from DICOM
headers, remap Study/Series/SOP Instance UIDs while preserving
relationships, shift all dates by a consistent random offset, and
flag any files with suspected burned-in annotations. Save anonymized
files to /data/trial/site_003_anon/.

Technical Details

  • Category: Lab/Imaging
  • Author: OMS Contributors (original: Healthcare MCP Public)
  • License: MIT
  • Core Library: pydicom (Python DICOM parser)
  • Standards: DICOM PS3 (ISO 12052), DICOM Supplement 142 (De-identification), HIPAA Safe Harbor (45 CFR 164.514(b))
  • Supported Modalities: All DICOM-compliant modalities (CT, MRI, US, XR, NM, PT, MG, DX, CR, and more)
  • PHI Tags Handled: All 18 HIPAA Safe Harbor identifiers mapped to DICOM tag equivalents
  • Dependencies: Python 3.8+, pydicom, numpy (for pixel operations), pillow (for burned-in annotation detection)

References


This skill is part of Open Medical Skills, a curated marketplace of medical AI skills maintained by physicians for physicians and the healthcare industry.

Heefeg gestallte Froen

Wat mécht de KI-Skill Dicom Metadata Extractor?

Extract metadata from DICOM medical images, anonymize protected health information (PHI), and process imaging data for research or clinical workflows. Supports pydicom integration.

Firwat Dicom Metadata Extractor op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Dicom Metadata Extractor besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Dicom Metadata Extractor an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Open-Medica/open-medical-skills/tree/main/skills/dicom-metadata-extractor an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Dicom Metadata Extractor benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Dicom Metadata Extractor benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Dicom Metadata Extractor domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Dicom Metadata Extractor gratis?

Jo. Open-Medica huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇