-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Proposal: Make get_UID Pluggable #86
Comments
Hi @smasuda, Your usecase is definitely valid to me. What about this: dicom-anonymizer now accepts a new argument: a path to a json file mapping old UID to new UID. After the end of dicom-anonymizer execution, the json file is eventually (optionally) updated with any new UID that might have been generated. What do you think about this ? If this does not suit you, I would also agree with making the function |
Hi @pchoisel - thanks for your feedback! By making |
@smasuda, no worries. I'm ok with making Thanks ! |
Yes, I think we are having enough small features to create a minor release. I can wait after this is merged to create it. |
Just to be on the same page, I'm waiting for the release; after the release I'll try to see |
All right, I understood it wrong then |
I'd be very interested in this. I wrote a pseudonymiser that is in PyMedPhys (experimental) and a key aspect of that was to have the UIDs stay consistent amongst objects (referenced UIDs, Study and Series UIDs). To avoid rainbow table attacks against hashed values, I added pepper (which could be shared within a facility to allow for consistent forward conversion of data, but would need to be kept sufficiently secure). |
Release done ! |
Hi there!
I'd like to propose making
get_UID
pluggable so that users can implement their own version without affecting others.In certain cases, it is necessary to keep track of UID changes by recording the UIDs before and after modifications over a series of anonymizations done in separate processes. Additionally, some users might want to use a specific prefix to generate their own UIDs. The current implementation doesn't allow this since
get_UID
is tightly coupled with the code, and its dictionary is volatile.If this proposal is acceptable, I am willing to raise a PR for review. I would like to hear feedback on whether this change is agreeable.
The text was updated successfully, but these errors were encountered: