PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::security::anonymization_report Struct Reference

Report generated after anonymization. More...

#include <tag_action.h>

Collaboration diagram for kcenon::pacs::security::anonymization_report:
Collaboration graph

Public Member Functions

auto is_successful () const noexcept -> bool
 Check if anonymization completed without errors.
 
auto total_modifications () const noexcept -> std::size_t
 Get total number of modifications made.
 

Public Attributes

std::size_t total_tags_processed {0}
 Total number of tags processed.
 
std::size_t tags_removed {0}
 Number of tags removed.
 
std::size_t tags_emptied {0}
 Number of tags emptied.
 
std::size_t tags_replaced {0}
 Number of tags replaced.
 
std::size_t uids_replaced {0}
 Number of UIDs replaced.
 
std::size_t tags_kept {0}
 Number of tags kept unchanged.
 
std::size_t dates_shifted {0}
 Number of dates shifted.
 
std::size_t values_hashed {0}
 Number of values hashed.
 
std::size_t private_tags_removed {0}
 Number of private tags removed.
 
std::vector< tag_action_recordaction_records
 Detailed action records (optional, for audit)
 
std::string profile_name
 Profile used for anonymization.
 
std::optional< std::chrono::days > date_offset
 Date offset applied (if any)
 
std::chrono::system_clock::time_point timestamp
 Timestamp of anonymization.
 
std::vector< std::string > warnings
 Any warnings generated during anonymization.
 
std::vector< std::string > errors
 Any errors encountered (non-fatal)
 

Detailed Description

Report generated after anonymization.

Definition at line 233 of file tag_action.h.

Member Function Documentation

◆ is_successful()

auto kcenon::pacs::security::anonymization_report::is_successful ( ) const -> bool
inlinenodiscardnoexcept

Check if anonymization completed without errors.

Definition at line 282 of file tag_action.h.

282 {
283 return errors.empty();
284 }
std::vector< std::string > errors
Any errors encountered (non-fatal)
Definition tag_action.h:277

References errors.

◆ total_modifications()

auto kcenon::pacs::security::anonymization_report::total_modifications ( ) const -> std::size_t
inlinenodiscardnoexcept

Get total number of modifications made.

Definition at line 289 of file tag_action.h.

289 {
293 }
std::size_t private_tags_removed
Number of private tags removed.
Definition tag_action.h:259
std::size_t tags_removed
Number of tags removed.
Definition tag_action.h:238
std::size_t values_hashed
Number of values hashed.
Definition tag_action.h:256
std::size_t tags_replaced
Number of tags replaced.
Definition tag_action.h:244
std::size_t tags_emptied
Number of tags emptied.
Definition tag_action.h:241
std::size_t dates_shifted
Number of dates shifted.
Definition tag_action.h:253
std::size_t uids_replaced
Number of UIDs replaced.
Definition tag_action.h:247

References dates_shifted, private_tags_removed, tags_emptied, tags_removed, tags_replaced, uids_replaced, and values_hashed.

Member Data Documentation

◆ action_records

std::vector<tag_action_record> kcenon::pacs::security::anonymization_report::action_records

Detailed action records (optional, for audit)

Definition at line 262 of file tag_action.h.

◆ date_offset

std::optional<std::chrono::days> kcenon::pacs::security::anonymization_report::date_offset

Date offset applied (if any)

Definition at line 268 of file tag_action.h.

◆ dates_shifted

std::size_t kcenon::pacs::security::anonymization_report::dates_shifted {0}

Number of dates shifted.

Definition at line 253 of file tag_action.h.

253{0};

Referenced by total_modifications().

◆ errors

std::vector<std::string> kcenon::pacs::security::anonymization_report::errors

Any errors encountered (non-fatal)

Definition at line 277 of file tag_action.h.

Referenced by is_successful().

◆ private_tags_removed

std::size_t kcenon::pacs::security::anonymization_report::private_tags_removed {0}

Number of private tags removed.

Definition at line 259 of file tag_action.h.

259{0};

Referenced by total_modifications().

◆ profile_name

std::string kcenon::pacs::security::anonymization_report::profile_name

Profile used for anonymization.

Definition at line 265 of file tag_action.h.

Referenced by kcenon::pacs::security::anonymizer::anonymize_with_mapping().

◆ tags_emptied

std::size_t kcenon::pacs::security::anonymization_report::tags_emptied {0}

Number of tags emptied.

Definition at line 241 of file tag_action.h.

241{0};

Referenced by total_modifications().

◆ tags_kept

std::size_t kcenon::pacs::security::anonymization_report::tags_kept {0}

Number of tags kept unchanged.

Definition at line 250 of file tag_action.h.

250{0};

◆ tags_removed

std::size_t kcenon::pacs::security::anonymization_report::tags_removed {0}

Number of tags removed.

Definition at line 238 of file tag_action.h.

238{0};

Referenced by total_modifications().

◆ tags_replaced

std::size_t kcenon::pacs::security::anonymization_report::tags_replaced {0}

Number of tags replaced.

Definition at line 244 of file tag_action.h.

244{0};

Referenced by total_modifications().

◆ timestamp

std::chrono::system_clock::time_point kcenon::pacs::security::anonymization_report::timestamp

Timestamp of anonymization.

Definition at line 271 of file tag_action.h.

◆ total_tags_processed

std::size_t kcenon::pacs::security::anonymization_report::total_tags_processed {0}

Total number of tags processed.

Definition at line 235 of file tag_action.h.

235{0};

◆ uids_replaced

std::size_t kcenon::pacs::security::anonymization_report::uids_replaced {0}

Number of UIDs replaced.

Definition at line 247 of file tag_action.h.

247{0};

Referenced by total_modifications().

◆ values_hashed

std::size_t kcenon::pacs::security::anonymization_report::values_hashed {0}

Number of values hashed.

Definition at line 256 of file tag_action.h.

256{0};

Referenced by total_modifications().

◆ warnings

std::vector<std::string> kcenon::pacs::security::anonymization_report::warnings

Any warnings generated during anonymization.

Definition at line 274 of file tag_action.h.


The documentation for this struct was generated from the following file: