Sort dicom into folders based on tags like patientName

I am using Orthanc to receive files sent from PACS. I want the files to be sorted into sub-folders based on patientName. Although from the web interface I can look up data from differnt subjects and download the files from one by one, that is tedious.

From the OrthancStorage doc, all the dicoms are saved in folders related to UUID. I was wondering if I can configure or write some scripts to sort the files automatically when files are being sent by PACS.

Hi,

No, you can not re-organize Orthanc storage. However, you can save a copy of the files in more human friendly structure with this kind of lua script

Best,

Alain

Thanks Alain, this looks nice. Let me try it!

Hello,

Instead of writing scripts, you could be interested in the WebDAV support that is built in Orthanc. Your files would automatically be presented in human-readable sub-folders from the file explorer.

Regards,
Sébastien-