# HG changeset patch # User Sebastien Jodogne # Date 1581582681 -3600 # Node ID 5f0cd51d97c07badc54ee3a10a3dce7c53b4ebff # Parent 8e97e0524e16d89f4987c6b472e9046dae5a10f3 Normalize option in /modalities/.../query diff -r 8e97e0524e16 -r 5f0cd51d97c0 Sphinx/source/users/rest.rst --- a/Sphinx/source/users/rest.rst Thu Feb 06 09:47:29 2020 +0100 +++ b/Sphinx/source/users/rest.rst Thu Feb 13 09:31:21 2020 +0100 @@ -397,9 +397,9 @@ .. highlight:: json -You first have to declare the Url of the remote orthanc inside the :ref:`configuration file -`. For instance, here is how to declare a remote -orthanc peer:: +You first have to declare the Url of the remote orthanc inside the +:ref:`configuration file `. For instance, here is how +to declare a remote orthanc peer:: ... "Peers" : { @@ -632,6 +632,13 @@ --url http://localhost:8042/modalities/sample/query \ --data '{"Level":"Study","Query": {"PatientID":"","StudyDescription":"*Chest*","PatientName":""}}' +You might be interested in including the ``Normalize`` option to bypass +the normalization of the outgoing C-FIND queries. For instance, for +the ``InstitutionName`` to be included at the ``Study`` level, one would +run:: + + $ curl -v http://localhost:8042/modalities/sample/query -X POST -d \ + '{"Level":"Study","Query":{"InstitutionName":"a"},"Normalize":false}' .. highlight:: json @@ -649,14 +656,14 @@ .. highlight:: json -You can use patient identifiers by including the `*` within your +You can use patient identifiers by including the ``*`` within your search. For example if you were searching for a name beginning with -`Jones` you can do:: +``Jones`` you can do:: "PatientName":"Jones*" -If you wanted to search for a name with the words `Jo` anywhere within -it you can do:: +If you wanted to search for a name with the words ``Jo`` anywhere +within it you can do:: "PatientName":"*Jo*" @@ -723,7 +730,7 @@ If there are content items missing, you may add them by adding that identifier to the original query. For example if we wanted Modalities listed in this JSON answer in the initial query we would add to the -POST body: `"ModalitiesInStudy":""` +POST body: ``"ModalitiesInStudy":""`` Performing Retrieve (C-Move)