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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dicom_anonymizer-2.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dicom_anonymizer-2.1.0-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file dicom_anonymizer-2.1.0.tar.gz.

File metadata

  • Download URL: dicom_anonymizer-2.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dicom_anonymizer-2.1.0.tar.gz
Algorithm Hash digest
SHA256 ee8ff2013a960d27c41481a8768612ea6bea1802641b0d3baf8a356867213c47
MD5 814d9207f08d5405304810db2f80c333
BLAKE2b-256 d7aafb2daf3ea034f562d85618d0cc4e9905cc06ebd81fadc7db04d152188814

See more details on using hashes here.

File details

Details for the file dicom_anonymizer-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dicom_anonymizer-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf642a6b43afd362faa2c7d2b101a3d4765cf85cf0d7590795e3ee556e636b8b
MD5 6bf75be2901a87eba93894151634c38f
BLAKE2b-256 9e084578cc6493e7326ebd7822c3d46feeb95156231afa8b7d9516d59038bfca

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 files

2.0.0

2 files

1.0.13.post1

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

1 file

1.0.9

2 files

1.0.8

1 file

1.0.7

1 file

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

1 file

1.0.1

1 file

1.0.0

2 files

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