Mercurial > hg > orthanc-book
changeset 314:5f0cd51d97c0
Normalize option in /modalities/.../query
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Feb 2020 09:31:21 +0100 |
parents | 8e97e0524e16 |
children | 3c4f8c47a283 |
files | Sphinx/source/users/rest.rst |
diffstat | 1 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 -<configuration>`. 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 <configuration>`. 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)