Skip to main content

DicomAnonymizer

Python package to anonymize DICOM files. The anonymization answer to the standard . More information about dicom fields for anonymization can be found here.

The default behaviour of this package is to anonymize DICOM fields referenced in the 2023e DICOM standard. These fields are referenced in dicomfields.
Another standard can be selected, see Change the DICOM anonymization standard.

Dicom fields are separated into different groups. Each groups will be anonymized in a different way.

Group Action Action definition
D_TAGS replace Replace with a non-zero length value that may be a dummy value and consistent with the VR**
Z_TAGS empty Replace with a zero length value, or a non-zero length value that may be a dummy value and consistent with the VR**
X_TAGS delete Completely remove the tag
U_TAGS replace_UID Replace all UID's random ones. Same UID will have the same replaced value
Z_D_TAGS empty_or_replace Replace with a non-zero length value that may be a dummy value and consistent with the VR**
X_Z_TAGS delete_or_empty Replace with a zero length value, or a non-zero length value that may be a dummy value and consistent with the VR**
X_D_TAGS delete_or_replace Replace with a non-zero length value that may be a dummy value and consistent with the VR**
X_Z_D_TAGS delete_or_empty_or_replace Replace with a non-zero length value that may be a dummy value and consistent with the VR**
X_Z_U_STAR_TAGS delete_or_empty_or_replace_UID If it's a UID, then all numbers are randomly replaced. Else, replace with a zero length value, or a non-zero length value that may be a dummy value and consistent with the VR**
ALL_TAGS Contains all previous defined tags

Quirks

dicom-anonymizer is designed to retain date information within DICOM files, and will anonymize them rather than removing them entirely. This approach is taken to prevent potential crashes in certain applications that rely on these dates to work. This behavior complies with the DICOM standard, as mentioned in section E.3.6.

Documentation

State of the library

At this present time, Kitware has no plan to implement new features in dicom-anonymizer.
If you have funding to further develop this tool, feel free to reach out to Kitware.
Whenever possible, Kitware will try to fix bugs that affect the use of the project and merge requests from the community will be considered, feel free to open an issue to suggest new features.

Financing

If you want a new feature in dicom-anonymizer or help manipulating DICOM files, feel free to reach out to us at contact@kitware.fr.

Metadata

Release files for dicom-anonymizer 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dicom-anonymizer 2.0.0
File Size Uploaded Provenance Actions
dicom_anonymizer-2.0.0.tar.gz 35.0 kB Without provenance Details for dicom_anonymizer-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dicom-anonymizer 2.0.0
File Interpreter ABI Platform Actions
dicom_anonymizer-2.0.0-py3-none-any.whl Python 3 none any Details for dicom_anonymizer-2.0.0-py3-none-any.whl

Total release size: 69.9 kB

Release files / dicom_anonymizer-2.0.0.tar.gz

Download URL dicom_anonymizer-2.0.0.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2cf2e6bf5c412163a2ab74e77ae917a1c7cffb9ab6dc730690f1862182547216
BLAKE2b-256 checksum
How to use checksums
bc34f99cddacbf74ab1272cb140f17b73451d5cf9430b78b007dd0f2a2725dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / dicom_anonymizer-2.0.0-py3-none-any.whl

Download URL dicom_anonymizer-2.0.0-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf1302e6ab423bdc08d8aedb836c57507722206ad1862efe5f9320b13a24b5c0
BLAKE2b-256 checksum
How to use checksums
6928ddcdc5d1e41f1bab2dd642c4a4098a23330226c476a81b7c9d9d4b3050a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for dicom-anonymizer 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page