Mercurial > hg > orthanc-book
comparison Sphinx/source/users/lua.rst @ 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 | 443af82172b0 |
children | e4e9cca89c64 |
comparison
equal
deleted
inserted
replaced
318:83d822f11e78 | 319:be69f8c86f56 |
---|---|
108 protocol. This allows to inspect the content of the C-Find query, | 108 protocol. This allows to inspect the content of the C-Find query, |
109 and possibly modify it if a patch is needed for some manufacturer. A | 109 and possibly modify it if a patch is needed for some manufacturer. A |
110 `sample script is available | 110 `sample script is available |
111 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/IncomingFindRequestFilter.lua>`__. | 111 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/IncomingFindRequestFilter.lua>`__. |
112 | 112 |
113 Some other **resource-related events** are available: | |
114 | |
115 * ``function OnDeletedPatient(patientId)``: Invoked when a patient has | |
116 been removed from the Orthanc database (new in Orthanc 1.6.0). | |
117 * ``function OnDeletedStudy(studyId)``: Invoked when a study has been | |
118 removed from the Orthanc database (new in Orthanc 1.6.0). | |
119 * ``function OnDeletedSeries(seriesId)``: Invoked when a series has | |
120 been removed from the Orthanc database (new in Orthanc 1.6.0). | |
121 * ``function OnDeletedInstance(instanceId)``: Invoked when a instance | |
122 has been removed from the Orthanc database (new in Orthanc 1.6.0). | |
123 * ``function OnUpdatedPatient(patientId)``: Invoked when some metadata | |
124 or some attachment associated with the given patient has been | |
125 updated (new in Orthanc 1.6.0). | |
126 * ``function OnUpdatedStudy(studyId)``: Invoked when some metadata or | |
127 some attachment associated with the given study has been updated | |
128 (new in Orthanc 1.6.0). | |
129 * ``function OnUpdatedSeries(seriesId)``: Invoked when some metadata | |
130 or some attachment associated with the given series has been updated | |
131 (new in Orthanc 1.6.0). | |
132 * ``function OnUpdatedInstance(instanceId)``: Invoked when some | |
133 metadata or some attachment associated with the given instance has | |
134 been updated (new in Orthanc 1.6.0). | |
135 | |
113 Furthermore, whenever a DICOM association is negotiated for C-Store | 136 Furthermore, whenever a DICOM association is negotiated for C-Store |
114 SCP, several callbacks are successively invoked to specify which | 137 SCP, several callbacks are successively invoked to specify which |
115 **transfer syntaxes** are accepted for the association. These | 138 **transfer syntaxes** are accepted for the association. These |
116 callbacks are listed in `this sample script | 139 callbacks are listed in `this sample script |
117 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/TransferSyntaxEnable.lua>`__. | 140 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/TransferSyntaxEnable.lua>`__. |