# HG changeset patch # User Sebastien Jodogne # Date 1354709293 -3600 # Node ID 15fcd925b05bfd8e9d74ff93c150fcfc26eeb213 # Parent bd009f0b1931464979040a7aa982cf12b4190ecd improvement diff -r bd009f0b1931 -r 15fcd925b05b OrthancServer/OrthancRestApi.cpp --- 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);