comparison Sphinx/source/users/rest.rst @ 312:b19b892977a2

expand in /tools/find
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Feb 2020 09:46:10 +0100
parents 64d1ddab8246
children 8e97e0524e16
comparison
equal deleted inserted replaced
311:0078d465c768 312:b19b892977a2
771 perform a study level find and 5 Studies match you will receive 5 771 perform a study level find and 5 Studies match you will receive 5
772 study level Orthanc ID's in JSON format as a response:: 772 study level Orthanc ID's in JSON format as a response::
773 773
774 $ curl --request POST --url http://localhost:8042/tools/find --data '{"Level":"Instance","Query":{"Modality":"CR","StudyDate":"20180323-","PatientID":"*"}}' 774 $ curl --request POST --url http://localhost:8042/tools/find --data '{"Level":"Instance","Query":{"Modality":"CR","StudyDate":"20180323-","PatientID":"*"}}'
775 775
776 Setting the ``Expand`` field to ``true`` in the POST body of the
777 query will automatically report details about each study::
778
779 $ curl https://demo.orthanc-server.com/tools/find -d '{"Level":"Study","Query":{"PatientName":"KNIX"},"Expand":true}'
780 [
781 {
782 "ID" : "b9c08539-26f93bde-c81ab0d7-bffaf2cb-a4d0bdd0",
783 "IsStable" : true,
784 "LastUpdate" : "20180414T091528",
785 "MainDicomTags" : {
786 "InstitutionName" : "0ECJ52puWpVIjTuhnBA0um",
787 "ReferringPhysicianName" : "1",
788 "StudyDate" : "20070101",
789 "StudyDescription" : "Knee (R)",
790 "StudyID" : "1",
791 "StudyInstanceUID" : "1.2.840.113619.2.176.2025.1499492.7391.1171285944.390",
792 "StudyTime" : "120000.000000"
793 },
794 "ParentPatient" : "6816cb19-844d5aee-85245eba-28e841e6-2414fae2",
795 "PatientMainDicomTags" : {
796 "PatientID" : "ozp00SjY2xG",
797 "PatientName" : "KNIX"
798 },
799 "Series" : [
800 "20b9d0c2-97d85e07-f4dbf4d2-f09e7e6a-0c19062e",
801 "edbfa0a9-fa2641d7-29514b1c-45881d0b-46c374bd",
802 "f2635388-f01d497a-15f7c06b-ad7dba06-c4c599fe",
803 "4d04593b-953ced51-87e93f11-ae4cf03c-25defdcd",
804 "5e343c3e-3633c396-03aefde8-ba0e08c7-9c8208d3",
805 "8ea120d7-5057d919-837dfbcc-ccd04e0f-7f3a94aa"
806 ],
807 "Type" : "Study"
808 }
809 ]
810
811
776 812
777 Additional Options 813 Additional Options
778 ^^^^^^^^^^^^^^^^^^ 814 ^^^^^^^^^^^^^^^^^^
779 .. highlight:: json 815 .. highlight:: json
780 816