changeset 319:be69f8c86f56

Lua events for deleted/updated resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Feb 2020 14:26:05 +0100
parents 83d822f11e78
children 42104307e838
files Sphinx/source/users/lua.rst
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
   <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/IncomingFindRequestFilter.lua>`__.
 
+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