rewriting studies when being sent a second time

Is there a way to rewrite studies when they are being sent a second time to orthanc? or to check if they the series are already in orthanc and ignore them?

This happens in one of the locations we have orthanc installed. as the technicians make the study and send it to orthanc the first time, after sometime the reconstructions are finished and the technicians send the study to orthanc a second time with the newly created reconstructions and the new study gets apended into the existing one

Hello,

I think you are looking for the “OverwriteInstances” configuration option:
https://book.orthanc-server.com/users/configuration.html

// Specifies how Orthanc reacts when it receives a DICOM instance
// whose SOPInstanceUID is already stored. If set to “true”, the new
// instance replaces the old one. If set to “false”, the new
// instance is discarded and the old one is kept. Up to Orthanc
// 1.4.1, the implicit behavior corresponded to “false”.
“OverwriteInstances” : false,

Regards,
Sébastien-