Crate dicom_anonymization

Source
Expand description

Anonymizes a DICOM object based on the configured actions.

This module provides functionality to anonymize DICOM (Digital Imaging and Communications in Medicine) objects by applying various actions to specific DICOM tags. The anonymization process can remove, empty, or change the content of certain data elements based on the configuration.

The main components of this module are:

§Example

use std::fs::File;
use dicom_anonymization::Anonymizer;
use dicom_anonymization::config::ConfigBuilder;
use dicom_anonymization::processor::DataElementProcessor;

let config_builder = ConfigBuilder::default();
let config = config_builder.build();

let processor = DataElementProcessor::new(config);
let anonymizer = Anonymizer::new(processor);

let file = File::open("tests/data/test.dcm").unwrap();
let result = anonymizer.anonymize(file).unwrap();

This module is designed to be flexible, allowing users to customize the anonymization process according to their specific requirements and privacy regulations.

Modules§

Structs§

  • Represents the result of a DICOM anonymization process.
  • A struct for performing the anonymization process on DICOM objects.

Enums§

Type Aliases§