I’ve checked this part of the documentation to have an exhaustive list of available callbacks : https://book.orthanc-server.com/users/lua.html#callbacks-to-react-to-events
So I can see there is a callback for any new dicom uploaded in Orthanc, but I would like to know if there is the same for any update and deletion dicom’s as well ?
I found something in the SDK :
https://sdk.orthanc-server.com/group__Callbacks.html#ga1af7c8c9877aaf670208bfc53164b9fb ( cfr OrthancPluginRegisterOnChangeCallback )
Does it mean there is lua function for such case ( update / delete instance ) ?
thanks for your help,
No, there are no lua callbacks for deletion.
The DELETE change is only available through the plugin sdk.
Thanks for the answer.
Is it foreseen to provide those in future release ? or not at all ?
It is currently not planned for the future. From the technical point of view, it can be done.
I have just implemented this feature by the following changeset:
The Orthanc Book documents the newly introduced Lua events:
https://book.orthanc-server.com/users/lua.html#callbacks-to-react-to-events (check out “OnDeletedXXX” and “OnUpdatedXXX” events)
This modification is now pending in the mainline, and will be available in forthcoming release 1.6.0 of Orthanc.