changeset 672:c302094b719e

Fixed non latin PatientName values that were empty in some QIDO-RS responses.
author Alain Mazy <am@orthanc.team>
date Wed, 04 Sep 2024 12:56:30 +0200 (9 months ago)
parents 4113e0465b4b
children d3af76826278 6ae0e07512b8
files NEWS Plugin/QidoRs.cpp
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Sep 03 16:57:19 2024 +0200
+++ b/NEWS	Wed Sep 04 12:56:30 2024 +0200
@@ -4,6 +4,7 @@
 * 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, ...
+* Fixed non latin PatientName values that were empty in some QIDO-RS responses.
 
 
 Version 1.17 (2024-06-05)
--- a/Plugin/QidoRs.cpp	Tue Sep 03 16:57:19 2024 +0200
+++ b/Plugin/QidoRs.cpp	Wed Sep 04 12:56:30 2024 +0200
@@ -433,6 +433,9 @@
 
     Orthanc::DicomMap target;
 
+    // since we are populating the target with values from JSON, all string are actually UTF-8
+    target.SetValue(Orthanc::DICOM_TAG_SPECIFIC_CHARACTER_SET, "ISO_IR 192", false);
+
     matcher.ExtractFields(target, source, wadoBasePublicUrl, level);
     writer.AddOrthancMap(target);
   }