-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement DICOM metadata redaction #174
Conversation
imagedephi/redact/dicom.py
Outdated
dicom_dataset: Dataset, | ||
) -> Generator[tuple[DataElement, Dataset], None, None]: | ||
for element in dicom_dataset: | ||
if element.VR == "SQ": |
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.
Should we use the valuerep.VR.SQ
enum rather than "SQ"
?
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.
I made one recommendation, but this works for me. We can add more rules based on other sample files in a separate PR.
Here is the initial set of changes to support redacting DICOM images.
As a start, only metadata redaction is supported and only redaction of single .dcm files is supported.
(TODO before ready for full review/merge):