SendToModality - confirmation

Dear Experts,

I would like to set up an additional Orthanc instance to store copies of all incoming DICOMs. I use the simplest Lua script:

function OnStoredInstance(instanceId, tags, metadata)

SendToModality(instanceId, ‘sample’)

  1. Is there any way to confirm a successful transfer? Or more practically - how to log the failed ones effectively?
  2. Is that the optimal way of syncing 2 instances?

Looking forward to hearing from You
Bartosz Kossowski


I think the following section in the Orthanc Book should answer your question: