Mercurial > hg > orthanc-book
changeset 698:b931786385e6
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jun 2021 18:44:01 +0200 |
parents | 7581dc208323 |
children | a777b9e6ef70 |
files | Sphinx/source/plugins/python.rst Sphinx/source/users/rest.rst |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/plugins/python.rst Thu Jun 10 18:36:22 2021 +0200 +++ b/Sphinx/source/plugins/python.rst Thu Jun 10 18:44:01 2021 +0200 @@ -923,6 +923,12 @@ I: (0010,0010) PN [HELLO2-TEST ] # 12, 1 PatientName I: +A more realistic Python script could for instance call the route +``/modalities/{...}/query`` in the :ref:`REST API <rest-find-scu>` of +Orthanc using ``orthanc.RestApiPost()``, in order to query the content +a remote modality through a second C-FIND SCU request (this time +issued by Orthanc as a SCU). + The C-MOVE SCP can be invoked as follows:: $ movescu localhost 4242 -aem TARGET -aec LL -aet ORTHANC -S -k QueryRetrieveLevel=IMAGE -k StudyInstanceUID=1.2.3.4
--- a/Sphinx/source/users/rest.rst Thu Jun 10 18:36:22 2021 +0200 +++ b/Sphinx/source/users/rest.rst Thu Jun 10 18:44:01 2021 +0200 @@ -756,6 +756,7 @@ within the :ref:`configuration file <configuration>` (See Configuration section under Sending resources to remote modalities). +.. _rest-find-scu: Performing Queries on Modalities ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^