diff Sphinx/source/plugins/python.rst @ 698:b931786385e6

note
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jun 2021 18:44:01 +0200
parents 7581dc208323
children a777b9e6ef70
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