pydicom / deid

best effort anonymization for medical images using python
https://pydicom.github.io/deid/
MIT License
138 stars 43 forks source link

Add vr:XX field expander #215

Closed jstorrs closed 1 year ago

jstorrs commented 1 year ago

Description

This is adds a vr: field expander that allows fields to be selected by VR. This allows targeting based on content. For example vr:PN will select all Person Name elements. Or vr:TM will select all Time elements without selecting Date Time elements.

Note: endswith:Time will select some fields that are DT (such as AcquisitionDateTime)

Checklist

Open questions

vsoch commented 1 year ago

heyo! Did you have any more thoughts on this design? I think it's good to go in for a first shot - we had a request in #219 for the feature so it would be good to have!

jstorrs commented 1 year ago

I agree the latest "select:vr" version is good to go.