deid icon indicating copy to clipboard operation
deid copied to clipboard

Target private tags in Recipe (with exceptions)

Open samuelschuettler opened this issue 4 months ago • 2 comments

I did not find the proper section in the documentation, but if i missed it please point me in the correct direction.

We are looking to have project specific recipes where we want to define the removal of private tags in the recipe itself (i know that it can be done with pydicom, but we want to store the instructions on wether or not to remove private tags in the recipe. Is that possible? I only find the python functions for that.)

Basically we are looking for the following:

%fields private_tags
SELECTOR_TO_SELECT_ALL_PRIVATE_TAGS
SELECTOR_TO_EXCLUDE_SPECIFIC_PRIVATE_RANGE_FROM_PREVIOUS SELECTION

%headers

REMOVE fields:private_tags

The usecase is that we want to remove all private tags per default but need to keep some in certain projects, when they are necessary for further processing, e.g. in vendor-provided tools.

How could we do that?
A quick outline which features to plug together would be enough :-)

Thank you in advance

samuelschuettler avatar Oct 17 '24 14:10 samuelschuettler