# HG changeset patch # User Sebastien Jodogne # Date 1582118765 -3600 # Node ID be69f8c86f56d88d43866d0720e3f8f87d652c60 # Parent 83d822f11e78b174d4925e6fe7da343a55f3820f Lua events for deleted/updated resources diff -r 83d822f11e78 -r be69f8c86f56 Sphinx/source/users/lua.rst --- a/Sphinx/source/users/lua.rst Mon Feb 17 16:14:33 2020 +0100 +++ b/Sphinx/source/users/lua.rst Wed Feb 19 14:26:05 2020 +0100 @@ -110,6 +110,29 @@ `sample script is available `__. +Some other **resource-related events** are available: + +* ``function OnDeletedPatient(patientId)``: Invoked when a patient has + been removed from the Orthanc database (new in Orthanc 1.6.0). +* ``function OnDeletedStudy(studyId)``: Invoked when a study has been + removed from the Orthanc database (new in Orthanc 1.6.0). +* ``function OnDeletedSeries(seriesId)``: Invoked when a series has + been removed from the Orthanc database (new in Orthanc 1.6.0). +* ``function OnDeletedInstance(instanceId)``: Invoked when a instance + has been removed from the Orthanc database (new in Orthanc 1.6.0). +* ``function OnUpdatedPatient(patientId)``: Invoked when some metadata + or some attachment associated with the given patient has been + updated (new in Orthanc 1.6.0). +* ``function OnUpdatedStudy(studyId)``: Invoked when some metadata or + some attachment associated with the given study has been updated + (new in Orthanc 1.6.0). +* ``function OnUpdatedSeries(seriesId)``: Invoked when some metadata + or some attachment associated with the given series has been updated + (new in Orthanc 1.6.0). +* ``function OnUpdatedInstance(instanceId)``: Invoked when some + metadata or some attachment associated with the given instance has + been updated (new in Orthanc 1.6.0). + Furthermore, whenever a DICOM association is negotiated for C-Store SCP, several callbacks are successively invoked to specify which **transfer syntaxes** are accepted for the association. These