Hi, is there a way to cancel exams after a set time?
I am unsure to understand your question, but you can create custom scripts (e.g. in Python) that remove DICOM studies according to their “StudyDate” DICOM tags using the REST API of Orthanc:
https://book.orthanc-server.com/users/rest.html
As a starting point, you could have a look at the two following sample Python scripts:
https://hg.orthanc-server.com/orthanc/file/Orthanc-1.9.5/OrthancServer/Resources/Samples/Python/ArchiveStudiesInTimeRange.py
https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Samples/Python/DeleteAllStudies.py
The first script illustrates how to identify the “StudyDate”, and the second how to delete studies.
Sébastien-