# HG changeset patch # User Alain Mazy # Date 1633100026 -7200 # Node ID 0fbe952b2906ac331529043b16ed8cfe1c2758d6 # Parent 33040fbf85a8a4ec16529be1a982f4ce4a58b146 list more lua functions diff -r 33040fbf85a8 -r 0fbe952b2906 Sphinx/source/users/lua.rst --- a/Sphinx/source/users/lua.rst Mon Sep 27 12:16:38 2021 +0200 +++ b/Sphinx/source/users/lua.rst Fri Oct 01 16:53:46 2021 +0200 @@ -196,6 +196,21 @@ RestApiPost('/instances/5af318ac-78fb-47ff-b0b0-0df18b0588e0/anonymize', '{}') +Instance modification/routing +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The Lua engine offers a few function to modify and route DICOM instances. +:ref:`See this section ` + +* ``ModifyInstance(instanceId, replacements, removals, removePrivateTags)`` + modifies an instance. Returns the instanceId of the modified instance +* ``SendToModality(instanceId, modality)`` performs a C-Store to the + target modality. Returns the instanceId. +* ``SendToPeer(instanceId, peer)`` sends the instance to a remote Orthanc peer. + Returns the instanceId. +* ``Delete(instanceId)`` deletes the instance. + + General-purpose functions ^^^^^^^^^^^^^^^^^^^^^^^^^