Anonymize UIDs

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
tepe
Posts: 8
Joined: Mon, 2017-11-27, 18:23
Contact:

Anonymize UIDs

#1 Post by tepe »

Hello,

we anonymize our studies for Research/Science - Tasks with dcmodify.exe.
We will also anonymize the UIDs of the studies. Which is the right way to this do this as a batch-Job?

Greetings from Berlin,

Hans

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Anonymize UIDs

#2 Post by Michael Onken »

Hi,

Study, Series and SOP Instance UID can be replaced by newly generated UIDs using these options:

Code: Select all

  unique identifier:
    -gst  --gen-stud-uid         generate new Study Instance UID
    -gse  --gen-ser-uid          generate new Series Instance UID
    -gin  --gen-inst-uid         generate new SOP Instance UID
However, other UIDs, e.g within sequences (e.g. references), other tags, private data (you should remote private data anyway unless you know it's safe) cannot replaced by dcmodify in an automated fashion.

Also, if you replace UIDs, you usually have to do it consistently within all the files in a study and/or series, i.e. the UID for the Study must be the same for all files in the Study. This cannot be done with dcmodify either (it does not "cache" all replaced UIDs).

A good anonymization tool (as far as I know, did not try it) is CTP, another one that I would check is David Clunie's DicomCleaner.

Best regards,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest