Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --force_replace option and support for a new R action in the spec file #29

Open
r3m0chop opened this issue Nov 8, 2019 · 0 comments

Comments

@r3m0chop
Copy link
Collaborator

r3m0chop commented Nov 8, 2019

To initially only be user-configurable to a single value for any of the METADATA tags that are defined to a new value of R in the spec file (e.g., create a new dicom_anon_spec_files/ext_keep_study_and_series_descs_replacePatientNameID.dat) using a new option of:

    parser.add_argument('-f', '--force_replace', type=str, default='REDACTED',
                        help='Replacement string for any fields with in-house rule R. Defaults to REDACTED')

And to eventually possibly even support a user-supplied comma-delimited set of key/value pairs in the --force_replace, allowing a different value for each such tag. For now, though, it will be sufficient for this option to support the forcing of values for both the PatientsName and the PatientID (e.g., if so specified in the spec file) to the same user-supplied value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant