Implement support for anonymization for series, studies, and patients with the Sonador CLI
Orthanc provides support for anonymizing medical imaging data (see Anonymization and Modification), though that functionality is not reflected in the Sonador client library or the CLI tool.
It should be added as a CLI option for patients, studies, and series:
# Anonymize a set of series by UID
sonador-cli.py pacs image anonymize --scans ...
# Anonymize a set of studies by UID
sonador-cli.py pacs study anonymize --studies ...
# Anonymize a set of patients by UID
sonador-cli.py pacs patient anonymize --patients ...
A variation of the command should also be available that allows for a query to be executed and the results anonymized:
# Anonymize all series which match a given query
sonador-cli.py pacs image query-anonymize --query key1=value
# Anonymize all studies which match a given query
sonador-cli.py pacs study query-anonymize --query key1=value
# Anonymize all patients which match a given query
sonador-cli.py pacs patient query-anonymize --query key1=value