changeset 253:15fcd925b05b

improvement
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2012 13:08:13 +0100
parents bd009f0b1931
children 0b1e46ae6632
files OrthancServer/OrthancRestApi.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Wed Dec 05 12:50:25 2012 +0100
+++ b/OrthancServer/OrthancRestApi.cpp	Wed Dec 05 13:08:13 2012 +0100
@@ -366,10 +366,16 @@
       }
 
       case ResourceType_Study:
+      {
         return resource["MainDicomTags"]["StudyDescription"].asString();
+      }
         
       case ResourceType_Series:
-        return resource["MainDicomTags"]["SeriesDescription"].asString();
+      {
+        std::string d = resource["MainDicomTags"]["SeriesDescription"].asString();
+        std::string m = resource["MainDicomTags"]["Modality"].asString();
+        return m + " " + d;
+      }
         
       default:
         throw OrthancException(ErrorCode_InternalError);