comparison Sphinx/source/users/lua.rst @ 75:16d516fdc642

note
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Dec 2016 10:09:44 +0100
parents a3df3c2b68cf
children 48c7d2eb98da
comparison
equal deleted inserted replaced
74:a976607e46f7 75:16d516fdc642
14 14
15 Many other examples are `available in the source distribution 15 Many other examples are `available in the source distribution
16 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/>`__. 16 <https://bitbucket.org/sjodogne/orthanc/src/default/Resources/Samples/Lua/>`__.
17 17
18 18
19 Installing a Lua Script 19 Installing a Lua script
20 ----------------------- 20 -----------------------
21 21
22 .. highlight:: bash 22 .. highlight:: bash
23 23
24 A custom Lua script can be installed either by the :ref:`configuration 24 A custom Lua script can be installed either by the :ref:`configuration
196 * ``Plugins``: The instance originates from a plugin. 196 * ``Plugins``: The instance originates from a plugin.
197 197
198 198
199 .. _lua-filter-dicom: 199 .. _lua-filter-dicom:
200 200
201 Filtering Incoming DICOM Instances 201 Filtering incoming DICOM instances
202 ---------------------------------- 202 ----------------------------------
203 203
204 .. highlight:: lua 204 .. highlight:: lua
205 205
206 Each time a DICOM instance is received by Orthanc (either through the 206 Each time a DICOM instance is received by Orthanc (either through the
234 The argument ``origin`` is :ref:`documented separately <lua-origin>`. 234 The argument ``origin`` is :ref:`documented separately <lua-origin>`.
235 235
236 236
237 .. _lua-filter-rest: 237 .. _lua-filter-rest:
238 238
239 Filtering Incoming REST Requests 239 Filtering incoming REST requests
240 -------------------------------- 240 --------------------------------
241 241
242 .. highlight:: lua 242 .. highlight:: lua
243 243
244 Lua scripting can be used to control the access to the various URI of 244 Lua scripting can be used to control the access to the various URI of
282 or `OAuth2 <https://en.wikipedia.org/wiki/OAuth>`__ server. 282 or `OAuth2 <https://en.wikipedia.org/wiki/OAuth>`__ server.
283 283
284 284
285 .. _lua-auto-routing: 285 .. _lua-auto-routing:
286 286
287 Auto-Routing of DICOM Images 287 Auto-routing of DICOM images
288 ---------------------------- 288 ----------------------------
289 289
290 .. highlight:: lua 290 .. highlight:: lua
291 291
292 Since release 0.8.0, the routing of DICOM flows can be very easily 292 Since release 0.8.0, the routing of DICOM flows can be very easily
354 Delete(instanceId) 354 Delete(instanceId)
355 end 355 end
356 end 356 end
357 357
358 358
359 Important Remarks about Auto-Routing 359 Important remarks about auto-routing
360 ------------------------------------ 360 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
361 361
362 The ``SendToModality()``, ``SendToPeer()``, ``ModifyInstance()`` and 362 The ``SendToModality()``, ``SendToPeer()``, ``ModifyInstance()`` and
363 ``Delete()`` functions are for the most basic cases of auto-routing 363 ``Delete()`` functions are for the most basic cases of auto-routing
364 (implying a single DICOM instance, and possibly a basic modification 364 (implying a single DICOM instance, and possibly a basic modification
365 of this instance). The ``ModifyInstance()`` function `could also lead 365 of this instance). The ``ModifyInstance()`` function `could also lead
406 406
407 Also note that :ref:`other callbacks are available <lua-callbacks>` 407 Also note that :ref:`other callbacks are available <lua-callbacks>`
408 (``OnStablePatient()``, ``OnStableStudy()`` and ``OnStableSeries()``) 408 (``OnStablePatient()``, ``OnStableStudy()`` and ``OnStableSeries()``)
409 to react to other events than the reception of a single instance 409 to react to other events than the reception of a single instance
410 with ``OnStoredInstance()``. 410 with ``OnStoredInstance()``.
411
412
413 Fixing C-Find
414 -------------
415
416 :ref:`C-Find requests <dicom-find>` are sometimes interpreted
417 differently by different manufacturers (e.g. the ``*`` wildcard), and
418 sometimes a querying modality sets