DICOM Image Anonymization Python Script
đź”’ A simple and practical Python script for anonymizing DICOM medical imaging datasets using pydicom.
🩺 This tool demonstrates how to remove or replace common patient-identifying information (PHI) from DICOM headers while preserving the original image pixel data.
🎯 Perfect for:
• Medical physics
• Radiology research
• AI dataset preparation
• Academic projects
• DICOM learning and education
• Medical imaging workflow automation
✨ Features:
âś” Replace patient name and patient ID
âś” Remove common identifying DICOM tags
âś” Generate new DICOM UIDs
âś” Remove private vendor tags
âś” Preserve original image pixel data
âś” Lightweight and easy to understand
âś” Beginner-friendly Python example
📦 Included:
• Python anonymization script
• Example workflow
• Commented code for learning purposes
⚠️ Important Notes:
This product is intended for educational and research workflow demonstration purposes. Real-world clinical anonymization workflows may require additional validation depending on institutional, regulatory, and project requirements.
đź–Ą Requirements:
• Python 3
• pydicom library
📚 Great for anyone learning:
• DICOM structure
• Medical imaging informatics
• DICOM metadata handling
• Imaging data preparation for research and AI