Moving older DICOM files to another Orthanc Server

Hello,
First of all, I want to thank to the developers for the great product. It is really good and stable. We use it on Debian 10 and it works like a charm.

Our use case is really simple. We have one CATH Lab which is using one Orthanc server to store all images. Our regulatory obligation is to keep all records for 5 years. We sized that server for 5 years.

That’s why I was wondering if there is any possibility to move DICOM files to another server automatically based on the date of the medical procedure. We can add second instance of Orthanc on our backup server and move the files there. On the Orthanc website I saw a script that moves DICOM files between servers. I think that it is possible to change that script to check how old are the records before moving them.

Do you have other ideas or experience?

Kind regards,
Nikolay

Hi,

You would personally write a small python scripts that search studies by date (https://book.orthanc-server.com/users/rest.html#id31) by searching i.e for “StudyDate” : “201501*”, then, call the Rest API to move each study to the other server (through DICOM or Orthanc peering if the other server is Orthanc) and then, delete the study.

Best regards,

Alain.