Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

dicom-anonymizerdicom 匿名器

Agent Skill

dicom-anonymizer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,459

周安装

223

GitHub Stars

公开资料未说明

下载量

1,766
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dicom-anonymizer(dicom 匿名器)
来源仓库:https://github.com/aipoch-ai/dicom-anonymizer
安装命令:
openclaw skills install dicom-anonymizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install dicom-anonymizer

简介

批量匿名化处理 DICOM 医学图像,移除患者敏感标识信息。

  • 适用于医学影像研究、数据集构建或合规性脱敏应用场景。dicom-anonymizer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 自动删除姓名、ID、出生日期等字段,保留图像像素数据完整性。
  • 需指定输入输出目录,支持多线程并行处理加速大文件运算。
  • 处理前务必备份原始文件,防止误删导致数据丢失无法恢复。

SKILL.md

name
dicom-anonymizer
description
Batch anonymize DICOM medical images by removing patient sensitive information
version
1.0.0
category
Clinical
tags
[]
author
AIPOCH
license
MIT
status
Draft
risk_level
Medium
skill_type
Tool/Script
owner
AIPOCH
reviewer
last_updated
2026-02-06

DICOM Anonymizer

A clinical-grade tool for batch anonymization of DICOM medical images, removing patient identifiable information while preserving essential imaging data for research and analysis.

Overview

This skill anonymizes DICOM (Digital Imaging and Communications in Medicine) files by removing or replacing Protected Health Information (PHI) while maintaining the integrity of the medical image data. It supports batch processing of entire directories and generates audit logs for compliance documentation.

Features

  • Batch Processing: Process single files or entire directories recursively
  • 18 PHI Tags Anonymized: Patient name, ID, birth date, institution, physician, etc.
  • Configurable Anonymization: Choose between removal, hashing, or replacement strategies
  • Study Linkage Preservation: Option to maintain study/series relationships using pseudonyms
  • Audit Trail: Complete logging of all anonymization actions
  • HIPAA Safe Harbor Compliant: Meets de-identification standards for research use

Usage

Command Line

# Anonymize a single file
python scripts/main.py --input patient_scan.dcm --output anonymized.dcm

# Batch process a directory
python scripts/main.py --input /path/to/dicom/folder/ --output /path/to/output/ --batch

# Preserve study relationships with pseudonyms
python scripts/main.py --input scans/ --output clean/ --batch --preserve-studies

# Custom anonymization (keep age, remove birth date)
python scripts/main.py --input scan.dcm --output clean.dcm --keep-tags PatientAge

Python API

from scripts.main import DICOMAnonymizer

anonymizer = DICOMAnonymizer(preserve_studies=True)
result = anonymizer.anonymize_file("input.dcm", "output.dcm")
print(f"Tags anonymized: {len(result.anonymized_tags)}")

# Batch processing
results = anonymizer.anonymize_directory("input_folder/", "output_folder/")

Parameters

ParameterTypeDefaultRequiredDescription
--input, -istring-YesInput DICOM file or directory path
--output, -ostring-YesOutput DICOM file or directory path
--batch, -bflagfalseNoEnable batch/directory processing
--preserve-studiesflagfalseNoMaintain study relationships with pseudonyms
--keep-tagsstring-NoComma-separated list of tags to preserve
--remove-privateflagtrueNoRemove private/unknown tags
--audit-logstring-NoPath for JSON audit log
--overwriteflagfalseNoOverwrite existing output files

Anonymized DICOM Tags

The following PHI tags are anonymized by default:

Patient Information

TagAttributeAction
(0010,0010)PatientNameRemoved / Replaced
(0010,0020)PatientIDHashed / Pseudonym
(0010,0030)PatientBirthDateRemoved
(0010,0040)PatientSexPreserved (demographic research)
(0010,1010)PatientAgePreserved (calculated from birth date)
(0010,1020)PatientSizePreserved
(0010,1030)PatientWeightPreserved

Institution & Provider

TagAttributeAction
(0008,0080)InstitutionNameRemoved
(0008,0081)InstitutionAddressRemoved
(0008,0090)ReferringPhysicianNameRemoved
(0008,1048)PhysiciansOfRecordRemoved
(0008,1050)PerformingPhysicianNameRemoved
(0008,1060)NameOfPhysiciansReadingStudyRemoved
(0008,1070)OperatorsNameRemoved

Study & Series

TagAttributeAction
(0008,0050)AccessionNumberHashed / Removed
(0020,0010)StudyIDHashed (if preserve-studies)
(0020,000D)StudyInstanceUIDHashed (if preserve-studies)
(0020,000E)SeriesInstanceUIDHashed (if preserve-studies)
(0020,4000)ImageCommentsRemoved

Device & Acquisition

TagAttributeAction
(0018,1030)ProtocolNamePreserved / Anonymized
(0018,1000)DeviceSerialNumberRemoved
(0008,1010)StationNameRemoved
(0008,0018)SOPInstanceUIDRegenerated

Output Format

Anonymized DICOM File

  • Original PHI tags replaced with empty values, "ANONYMOUS", or hashed pseudonyms
  • Image pixel data (7FE0,0010) preserved unchanged
  • Essential metadata (modality, dimensions, acquisition params) preserved

Audit Log JSON

{
  "timestamp": "2024-01-15T10:30:00Z",
  "input_file": "/path/to/original.dcm",
  "output_file": "/path/to/anonymized.dcm",
  "original_patient_id_hash": "sha256:abc123...",
  "pseudonym": "ANON_0001",
  "tags_anonymized": [
    {"tag": "(0010,0010)", "attribute": "PatientName", "action": "cleared"},
    {"tag": "(0010,0020)", "attribute": "PatientID", "action": "hashed"},
    {"tag": "(0010,0030)", "attribute": "PatientBirthDate", "action": "cleared"}
  ],
  "statistics": {
    "total_tags_processed": 150,
    "phi_tags_removed": 12,
    "private_tags_removed": 5,
    "image_data_preserved": true
  }
}

Technical Architecture

  1. DICOM Loading: Use pydicom to read DICOM files with validation
  2. Tag Analysis: Identify and categorize PHI-containing tags
  3. Anonymization Engine: Apply configured anonymization rules per tag
  4. UID Handling: Regenerate or hash UIDs to maintain/break linkage
  5. Private Tag Removal: Strip manufacturer-specific private tags
  6. Validation: Verify output is valid DICOM and image data intact
  7. Audit Logging: Record all transformations for compliance

Dependencies

  • Python 3.9+
  • pydicom >= 2.3.0 (DICOM file handling)
  • cryptography >= 3.0 (for secure hashing, optional)

See references/requirements.txt for full dependency list.

Limitations & Warnings

⚠️ CRITICAL: This tool is designed as a helper, not a replacement for institutional review.

  • Burned-in Annotations: Text/annotations "burned into" the image pixels are NOT removed. Pre-process with OCR-based tools if needed.
  • Structured Reports: DICOM SR (Structured Reporting) files may contain PHI in narrative text that may not be fully detected.
  • Private Tags: Some private tags may contain PHI in non-standard formats.
  • Secondary Captures: Scanned documents/images may have PHI visible in the pixel data.
  • Always perform manual QA on output before research release.
  • AI Autonomous Acceptance Status: 需人工检查 (Requires Manual Review)

References

  • references/dicom_standard_ps3.15.pdf - DICOM Standard Part 15: Security and System Management
  • references/hipaa_deidentification_guide.pdf - HIPAA Safe Harbor de-identification standards
  • references/phi_tags.json - Complete list of PHI-related DICOM tags
  • references/requirements.txt - Python dependencies

Technical Difficulty: High

Complex DICOM data structures, UID management, regulatory compliance requirements, potential pixel-data PHI.

Risk Assessment

Risk IndicatorAssessmentLevel
Code ExecutionPython/R scripts executed locallyMedium
Network AccessNo external API callsLow
File System AccessRead input files, write output filesMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureOutput files saved to workspaceLow

Security Checklist

  • [ ] No hardcoded credentials or API keys
  • [ ] No unauthorized file system access (../)
  • [ ] Output does not expose sensitive information
  • [ ] Prompt injection protections in place
  • [ ] Input file paths validated (no ../ traversal)
  • [ ] Output directory restricted to workspace
  • [ ] Script execution in sandboxed environment
  • [ ] Error messages sanitized (no stack traces exposed)
  • [ ] Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • [ ] Successfully executes main functionality
  • [ ] Output meets quality standards
  • [ ] Handles edge cases gracefully
  • [ ] Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:

- Performance optimization - Additional feature support

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.77%
按下载量换算1,674

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills