Fred
February 7, 2020, 4:36pm
1
Hi,
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#gga212054ee2cad2d8db0e0aa3102d7ced2a2cc89c1c38fa2c10e63864c7e2deae91
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,
fred
Hi,
No, there are no lua callbacks for deletion.
The DELETE change is only available through the plugin sdk.
Fred
February 10, 2020, 2:53pm
3
Thanks for the answer.
Is it foreseen to provide those in future release ? or not at all ?
Hi Fred,
It is currently not planned for the future. From the technical point of view, it can be done.
jodogne
February 19, 2020, 1:33pm
5
Dear Fred,
I have just implemented this feature by the following changeset:
https://bitbucket.org/sjodogne/orthanc/commits/231b46ce19844b18825fcf13553d6e7e622ba42b
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.
HTH,
Sébastien-