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