I want to notify my backend server whenever a new study is uploaded to the Orthanc server. I don’t want to use polling, as it would continuously fetch data from the Orthanc server and slow down the system. Instead, I would like my backend to send a request only when a new study is detected using Orthanc notification events.
Could you please provide me with a guideline on how to achieve this?
@James Hey James, thanks for the reply. I tried Lua scripting by asking ChatGPT, but that didn’t work, and my endpoints are written only in Python.
My main concern is what I should write in the Lua script or Python file so that Orthanc sends new patients to my frontend, allowing it to display the new patients instantly without reloading or calling any endpoints.
Hi,
All the information you need to do this is available at those 2 links.
An example that could help understand how to forward instance is available here GitHub - orthanc-team/python-orthanc-tools
This is likely to require modification to suit your application but can help.
For additional assistance, there is commercial support available with information here Asking for support — Orthanc Book documentation