usage: pymedphys experimental dicom anonymise [-h] [-o OUTPUT_PATH] [-d] [-f] [-c] [-k [KEYWORD [KEYWORD ...]]] [-p] [-u | -i] [--pseudo] input_path
|input_path||Input file or directory path. If a directory is supplied, all DICOM files within the directory and its subdirectories will be anonymised|
|Output file or directory path.|
Use this flag to delete the original, non-anonymised files in the processed directory. Each original file will only be deleted if anonymisation completed successfully for that file.
Use this flag to preserve the original filenames in the anonymised DICOM filenames. Note that ‘_Anonymised.dcm’ will still be appended. Use with caution, since DICOM filenames may contain identifying information
Use this flag to simply clear the values of all of the identifying elements in the anonymised DICOM files, as opposed to replacing them with ‘dummy’ values.
|A space-separated list of DICOM keywords (e.g. ‘PatientName’) to exclude from anonymisation and error checking.|
Use this flag to preserve private tags in the anonymised DICOM files.
Use this flag to delete any unrecognised tags from the anonymised DICOM files.
Use this flag to ignore any unrecognised tags in the anonymised DICOM files.
Use this flag to activate the use of pseudonymisation of the identifying elements in the DICOM files, as opposed to replacing them with ‘dummy’ values. The pseudonymised values are SHA3_256 hashed if text or UIDs, shifted if dates, and jittered if an age. UIDs retain consistency so that entire sets of data will retain their referential integrity. Patient Identifiers stay consistent but are not reversible, and are unlikely to collide with other patient identifiers