-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
#197 'remove and replace/jitter combo' - added once-evaluated list of… #204
Conversation
… fields being jittered or replaced to prevent them from being removed, tests, extended description of @keep property, changelog update, typo fix, version bump
This looks perfecto! And it makes total sense - if you have an opinion about changing a field, it doesn't make sense to then remove it later. I'm wondering - is there any reason we wouldn't want to apply this to ADD too? Pinging @wetzelj too if he wants to take a look! |
https://github.com/pydicom/deid/blob/0.2.29-rc/deid/tests/test_replace_identifiers.py#L749 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. So this LGTM. I'm +1 to merge into the current rc branch, and @wetzelj would you prefer to review here (and then need to look again) or just review once after I merge here? I want your feedback / review because you are another user of deid (and you are super helpful and good with this line of stuffs!)
If it's okay with you two, I'll review it all once it's merged into 0.2.29-rc and I've been able to upgrade my application to that version. To confirm my understanding of the functionality changes:
Assuming my understanding is correct, I think the second bullet above makes sense, and I'm on board with it too, even though its a change to the way current functional recipes currently work in 0.2.28. This change would help to ensure that we have cleaner recipes with less redundant and/or irrelevant commands. Is my understanding correct? |
@wetzelj your understood it correctly.
As my task is maximum anonymization and only leaving study data, and there are hundreds of tags, such recipe was very long and error-prone. Now with this change I can do
only setting to keep what I need. Before it was blacklist, now it it whitelist, which is better, |
Got it... I think this totally makes sense and is a good change to make. @vsoch - Given the change in behavior for recipes, do you think it would warrant bumping this to 0.3.0 instead of 0.2.29? |
yep I'm on board with that! |
Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
Description
Whitelisting was not possible for replacing. Now fields being replaced or jittered are excluded from removal (either
REMOVE ALL
orREMOVE SomeField
).It is done using separate property and private variable to keep result (lazy eval).
Made clarification regarding
KEEP
list - those fields are being removed from field list to process, meaning thatKEEP SomeField
+REPLACE SomeField ...
won't work, as kept field is being excluded from list of fields to process for other actions.Added tests.
Bumped release candidate number and changelog (+small fix for previous change)
Minor docs update.
Related issues: #197 , #198
Please include a summary of the change(s) and if relevant, any related issues above.
Checklist
Open questions
codestyle on
excluded_from_deletion
property is discussable, opened for suggestions.