comparison Sphinx/source/plugins/python.rst @ 699:a777b9e6ef70

clarifying sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Jun 2021 06:56:18 +0200
parents b931786385e6
children 56a06ca9ec20
comparison
equal deleted inserted replaced
698:b931786385e6 699:a777b9e6ef70
909 .. highlight:: text 909 .. highlight:: text
910 910
911 In this sample, the C-FIND SCP will send one single answer that 911 In this sample, the C-FIND SCP will send one single answer that
912 reproduces the values provided by the SCU:: 912 reproduces the values provided by the SCU::
913 913
914 $ findscu localhost 4242 -aet ORTHANC -S -k QueryRetrieveLevel=STUDY -k PatientName=TEST -k SeriesDescription= 914 $ findscu localhost 4242 -S -k QueryRetrieveLevel=STUDY -k PatientName=TEST -k SeriesDescription=
915 I: --------------------------- 915 I: ---------------------------
916 I: Find Response: 1 (Pending) 916 I: Find Response: 1 (Pending)
917 I: 917 I:
918 I: # Dicom-Data-Set 918 I: # Dicom-Data-Set
919 I: # Used TransferSyntax: Little Endian Explicit 919 I: # Used TransferSyntax: Little Endian Explicit
929 a remote modality through a second C-FIND SCU request (this time 929 a remote modality through a second C-FIND SCU request (this time
930 issued by Orthanc as a SCU). 930 issued by Orthanc as a SCU).
931 931
932 The C-MOVE SCP can be invoked as follows:: 932 The C-MOVE SCP can be invoked as follows::
933 933
934 $ movescu localhost 4242 -aem TARGET -aec LL -aet ORTHANC -S -k QueryRetrieveLevel=IMAGE -k StudyInstanceUID=1.2.3.4 934 $ movescu localhost 4242 -aem TARGET -aec SOURCE -aet MOVESCU -S -k QueryRetrieveLevel=IMAGE -k StudyInstanceUID=1.2.3.4
935 935
936 The C-MOVE request above would print the following information in the 936 The C-MOVE request above would print the following information in the
937 Orthanc logs:: 937 Orthanc logs::
938 938
939 W0610 18:30:36.840865 PluginsManager.cpp:168] C-MOVE request to be handled in Python: { 939 W0610 18:30:36.840865 PluginsManager.cpp:168] C-MOVE request to be handled in Python: {
940 "AccessionNumber": "", 940 "AccessionNumber": "",
941 "Level": "INSTANCE", 941 "Level": "INSTANCE",
942 "OriginatorAET": "ORTHANC", 942 "OriginatorAET": "MOVESCU",
943 "OriginatorID": 1, 943 "OriginatorID": 1,
944 "PatientID": "", 944 "PatientID": "",
945 "SOPInstanceUID": "", 945 "SOPInstanceUID": "",
946 "SeriesInstanceUID": "", 946 "SeriesInstanceUID": "",
947 "SourceAET": "LL", 947 "SourceAET": "SOURCE",
948 "StudyInstanceUID": "1.2.3.4", 948 "StudyInstanceUID": "1.2.3.4",
949 "TargetAET": "TARGET" 949 "TargetAET": "TARGET"
950 } 950 }
951 951
952 It is now up to your Python callback to proces the C-MOVE SCU request, 952 It is now up to your Python callback to proces the C-MOVE SCU request,