|
PACS System 0.1.0
PACS DICOM system library
|
DICOM Anonymizer - removes or replaces PHI from datasets. More...
#include <anonymizer.h>

Public Member Functions | |
| anonymizer ()=default | |
| Construct an anonymizer with default options. | |
| anonymizer (anonymize_options opts) | |
| Construct an anonymizer with custom options. | |
| void | anonymize (core::dicom_dataset &dataset) |
| Anonymize a DICOM dataset in place. | |
| uid_mapper & | get_uid_mapper () |
| Get the UID mapper for consistent UID replacement. | |
| const anonymize_options & | options () const |
| Get the current options. | |
| void | set_options (anonymize_options opts) |
| Set new options. | |
Private Member Functions | |
| void | anonymize_patient_info (core::dicom_dataset &dataset) |
| void | anonymize_uids (core::dicom_dataset &dataset) |
| void | remove_private_tags (core::dicom_dataset &dataset) |
| void | remove_additional_phi (core::dicom_dataset &dataset) |
Private Attributes | |
| anonymize_options | options_ |
| uid_mapper | uid_mapper_ |
| std::atomic< uint64_t > | patient_counter_ {0} |
DICOM Anonymizer - removes or replaces PHI from datasets.
Implements basic DICOM anonymization as specified in DICOM PS3.15. This includes removal/replacement of:
Definition at line 113 of file anonymizer.h.
|
default |
Construct an anonymizer with default options.
|
inlineexplicit |
Construct an anonymizer with custom options.
| opts | Anonymization options |
Definition at line 124 of file anonymizer.h.
|
inline |
Anonymize a DICOM dataset in place.
| dataset | The dataset to anonymize |
Definition at line 130 of file anonymizer.h.
References anonymize_patient_info(), anonymize_uids(), kcenon::pacs::dcm_modify::anonymize_options::keep_private_tags, options_, kcenon::pacs::core::tags::patient_birth_date, kcenon::pacs::core::tags::referring_physician_name, kcenon::pacs::core::dicom_dataset::remove(), remove_additional_phi(), kcenon::pacs::dcm_modify::anonymize_options::remove_address, kcenon::pacs::dcm_modify::anonymize_options::remove_birth_date, kcenon::pacs::dcm_modify::anonymize_options::remove_descriptions, kcenon::pacs::dcm_modify::anonymize_options::remove_institution, remove_private_tags(), kcenon::pacs::dcm_modify::anonymize_options::remove_referring_physician, kcenon::pacs::dcm_modify::anonymize_options::replace_uids, and kcenon::pacs::core::tags::study_description.

|
inlineprivate |
Definition at line 198 of file anonymizer.h.
References options_, patient_counter_, kcenon::pacs::core::tags::patient_id, kcenon::pacs::dcm_modify::anonymize_options::patient_id_prefix, kcenon::pacs::core::tags::patient_name, kcenon::pacs::dcm_modify::anonymize_options::patient_name_replacement, kcenon::pacs::core::dicom_dataset::remove(), and kcenon::pacs::core::dicom_dataset::set_string().
Referenced by anonymize().


|
inlineprivate |
Definition at line 224 of file anonymizer.h.
References kcenon::pacs::core::dicom_dataset::get_string(), kcenon::pacs::dcm_modify::uid_mapper::map(), kcenon::pacs::core::tags::series_instance_uid, kcenon::pacs::core::dicom_dataset::set_string(), kcenon::pacs::core::tags::sop_instance_uid, kcenon::pacs::core::tags::study_instance_uid, and uid_mapper_.
Referenced by anonymize().


|
inline |
Get the UID mapper for consistent UID replacement.
Definition at line 183 of file anonymizer.h.
References uid_mapper_.
|
inline |
Get the current options.
Definition at line 189 of file anonymizer.h.
References options_.
|
inlineprivate |
Definition at line 271 of file anonymizer.h.
References kcenon::pacs::core::dicom_dataset::remove().
Referenced by anonymize().


|
inlineprivate |
Definition at line 257 of file anonymizer.h.
References kcenon::pacs::core::dicom_dataset::remove().
Referenced by anonymize().


|
inline |
Set new options.
| opts | New options |
Definition at line 195 of file anonymizer.h.
References options_.
|
private |
Definition at line 291 of file anonymizer.h.
Referenced by anonymize(), anonymize_patient_info(), options(), and set_options().
|
private |
|
private |
Definition at line 292 of file anonymizer.h.
Referenced by anonymize_uids(), and get_uid_mapper().