Table of Contents

renamedicom (function reference)

This function works in scripted mode, but also has its own UI window

Scripting

UI-based

Required steps

To open the UI of renamedicom, simply call the function without any arguments:

renamedicom

This opens the following dialog window:

renamedicom UI window

This way, several subjects/session can be processed at once!

Target pattern creation

The target file name will be determined from DICOM header fiels. The pattern will be parsed for occurrences of the percent character (%), which must comply to the following format:

Example: the string 'File-%04k00200010.dcm' would be parsed to replace %04k00200010 with the content of DICOM header field with key number 0020.0010, as a 4-digit number with leading zeros.