Mercurial > hg > orthanc-book
comparison Sphinx/source/users/lua.rst @ 443:c66d8b7b1a13
more info about IncomingFindRequestFilter
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Sat, 06 Jun 2020 14:09:40 +0200 |
parents | 1974913fd28a |
children | 2922fb1bd65e |
comparison
equal
deleted
inserted
replaced
442:8b2c648c0f46 | 443:c66d8b7b1a13 |
---|---|
521 end | 521 end |
522 | 522 |
523 The ``origin`` argument contains information about which modality has | 523 The ``origin`` argument contains information about which modality has |
524 issued the request. | 524 issued the request. |
525 | 525 |
526 Note that the ``IncomingFindRequestFilter`` callback is not applied to | 526 Note that this callback allows you to modify the incoming request |
527 but will not modify the list of tags that Orthanc will return. | |
528 | |
529 Also note that the ``IncomingFindRequestFilter`` callback is not applied to | |
527 C-Find requests targeting :ref:`modality worklists | 530 C-Find requests targeting :ref:`modality worklists |
528 <worklists-plugin>`. Since Orthanc 1.4.2, the corresponding | 531 <worklists-plugin>`. Since Orthanc 1.4.2, the corresponding |
529 ``IncomingWorklistRequestFilter`` callback can be used to sanitize | 532 ``IncomingWorklistRequestFilter`` callback can be used to sanitize |
530 C-FIND requests against worklists:: | 533 C-FIND requests against worklists:: |
531 | 534 |
537 -- option of the sample worklist plugin | 540 -- option of the sample worklist plugin |
538 query['0040,0100'][1]['0040,0001'] = origin['RemoteAet'] | 541 query['0040,0100'][1]['0040,0001'] = origin['RemoteAet'] |
539 | 542 |
540 return query | 543 return query |
541 end | 544 end |
545 | |
542 | 546 |
543 Similarly, the callback ``OutgoingFindRequestFilter(query, modality)`` | 547 Similarly, the callback ``OutgoingFindRequestFilter(query, modality)`` |
544 is invoked whenever Orthanc acts as a C-Find SCU, which gives the | 548 is invoked whenever Orthanc acts as a C-Find SCU, which gives the |
545 opportunity to dynamically fix outgoing C-Find requests before they | 549 opportunity to dynamically fix outgoing C-Find requests before they |
546 are actually sent to the queried modality. For instance, here is a | 550 are actually sent to the queried modality. For instance, here is a |