diff OrthancServer/OrthancRestApi.cpp @ 253:15fcd925b05b

improvement
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2012 13:08:13 +0100
parents f23318b11b39
children 337c506461d2
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);