Get Orthanc to notify external service upon receive

Hello,

once an exam is stored into orthanc, I would like orthanc to notify an external service (let’s say via HTTP or to run a script.

I’m actually using the API to poll Orthanc every 60 seconds, but that’s not what I want.

Can anyone suggest how to implement this or point me to where I could read/study about this ?
Thank you
Julien

Hi Julien,

There are a lot of events that can be used for this to trigger a Lua script (https://book.orthanc-server.com/users/lua.html#callbacks-to-react-to-events) and possibly a python script through the onChanges callback (https://book.orthanc-server.com/plugins/python.html?highlight=python#listening-to-changes).

James

Use
function OnStableStudy(studyId, tags, metadata)
from there you can initiate a http request such as:
local answer = HttpGet(web address)