changeset 670:2047b0921877

Fixed parsing of numerical values in QIDO-RS response
author Alain Mazy <am@orthanc.team>
date Wed, 28 Aug 2024 16:12:45 +0200
parents 8e50b0b45233
children 4113e0465b4b
files NEWS Plugin/Plugin.cpp
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Aug 26 12:28:44 2024 +0200
+++ b/NEWS	Wed Aug 28 16:12:45 2024 +0200
@@ -2,6 +2,8 @@
 ===============================
 
 * Added a "Server" entry in the DICOMWeb job content.
+* Fixed parsing of numerical values in QIDO-RS response that prevented, amongst other,
+  the retrieval of NumberOfStudyRelatedInstances, NumberOfStudyRelatedSeries, ...
 
 
 Version 1.17 (2024-06-05)
--- a/Plugin/Plugin.cpp	Mon Aug 26 12:28:44 2024 +0200
+++ b/Plugin/Plugin.cpp	Wed Aug 28 16:12:45 2024 +0200
@@ -256,6 +256,10 @@
 
             switch (content.type())
             {
+              case Json::intValue:
+                value["Value"] = content;
+                break;
+
               case Json::stringValue:
                 value["Value"] = content.asString();
                 break;