comparison Sphinx/source/users/lua.rst @ 836:a9c35bf108fa

stable age ref
author Alain Mazy <am@osimis.io>
date Tue, 03 May 2022 14:13:57 +0200
parents e7de02760b59
children 2f8ee0aef0a6
comparison
equal deleted inserted replaced
835:1f9f6269543f 836:a9c35bf108fa
96 Invoked whenever a new instance has been stored into Orthanc. 96 Invoked whenever a new instance has been stored into Orthanc.
97 This is especially useful for :ref:`lua-auto-routing`. The ``origin`` 97 This is especially useful for :ref:`lua-auto-routing`. The ``origin``
98 parameter is :ref:`documented separately <lua-origin>`. 98 parameter is :ref:`documented separately <lua-origin>`.
99 * ``function OnStablePatient(patientId, tags, metadata)``: Invoked 99 * ``function OnStablePatient(patientId, tags, metadata)``: Invoked
100 whenever a patient has not received any new instance for a certain 100 whenever a patient has not received any new instance for a certain
101 amount of time (cf. the option ``StableAge`` in the 101 amount of time (cf. :ref:`stable resources <stable-resources>`
102 and the option ``StableAge`` in the
102 :ref:`configuration file <configuration>`). The :ref:`identifier 103 :ref:`configuration file <configuration>`). The :ref:`identifier
103 <orthanc-ids>` of the patient is provided, together with her DICOM 104 <orthanc-ids>` of the patient is provided, together with her DICOM
104 tags and her :ref:`metadata <metadata>`. 105 tags and her :ref:`metadata <metadata>`.
105 * ``function OnStableSeries(seriesId, tags, metadata)``: Invoked 106 * ``function OnStableSeries(seriesId, tags, metadata)``: Invoked
106 whenever a series has not received any new instance for a certain 107 whenever a series has not received any new instance for a certain
107 amount of time. 108 amount of time (cf. :ref:`stable resources <stable-resources>`
109 and the option ``StableAge`` in the
110 :ref:`configuration file <configuration>`).
108 * ``function OnStableStudy(studyId, tags, metadata)``: Invoked 111 * ``function OnStableStudy(studyId, tags, metadata)``: Invoked
109 whenever a study has not received any new instance for a certain 112 whenever a study has not received any new instance for a certain
110 amount of time. 113 amount of time (cf. :ref:`stable resources <stable-resources>`
114 and the option ``StableAge`` in the
115 :ref:`configuration file <configuration>`).
111 * ``function IncomingFindRequestFilter(source, origin)``: Invoked 116 * ``function IncomingFindRequestFilter(source, origin)``: Invoked
112 whenever Orthanc receives an incoming C-Find query through the DICOM 117 whenever Orthanc receives an incoming C-Find query through the DICOM
113 protocol. This allows to inspect the content of the C-Find query, 118 protocol. This allows to inspect the content of the C-Find query,
114 and possibly modify it if a patch is needed for some manufacturer. A 119 and possibly modify it if a patch is needed for some manufacturer. A
115 `sample script is available 120 `sample script is available