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::DefaultProcessor;

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

let processor = DefaultProcessor::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§

actions
config
hasher
processor
tags
Data element tag declarations

Structs§

AnonymizationResult
Represents the result of a DICOM anonymization process.
Anonymizer
A struct for performing the anonymization process on DICOM objects.
Tag
The data type for DICOM data element tags.

Enums§

AnonymizationError

Type Aliases§

Result