changeset 1148:ac36589f699e

LastUpdate metadata is now always returned for patients, studies and series
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Sep 2014 14:36:16 +0200
parents ae9a83a6fa47
children dd6d7fd82da9
files NEWS OrthancServer/ServerIndex.cpp
diffstat 2 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Sep 11 14:15:30 2014 +0200
+++ b/NEWS	Thu Sep 11 14:36:16 2014 +0200
@@ -1,8 +1,9 @@
 Pending changes in the mainline
 ===============================
 
-General
--------
+
+Major
+-----
 
 * Creation of ZIP archives for media storage, with DICOMDIR
 * URIs to get all the children of a given resource in a single REST call
@@ -16,10 +17,15 @@
 * Configuration option to enable HTTP Keep-Alive
 * Configuration option to disable the logging of exported resources in "/exports"
 * Plugins can retrieve the path to Orthanc and to its configuration file
+* "/tools/create-dicom" now accepts the "PatientID" DICOM tag (+ updated sample)
+* Possibility to set HTTP headers from plugins
+* "LastUpdate" metadata is now always returned for patients, studies and series
+
+Maintenance
+-----------
+
 * Refactoring of HttpOutput ("Content-Length" header is now always sent)
-* "/tools/create-dicom" now accepts the "PatientID" DICOM tag (+ updated sample)
 * Upgrade to Mongoose 3.8
-* Possibility to set HTTP headers from plugins
 * Fixes for Visual Studio 2013 and Windows 64bit
 * Fix issue 16: Handling of "AT" value representations in JSON
 * Fix issue 17
--- a/OrthancServer/ServerIndex.cpp	Thu Sep 11 14:15:30 2014 +0200
+++ b/OrthancServer/ServerIndex.cpp	Thu Sep 11 14:36:16 2014 +0200
@@ -861,6 +861,10 @@
         type == ResourceType_Series)
     {
       result["IsStable"] = !unstableResources_.Contains(id);
+
+      tmp = db_->GetMetadata(id, MetadataType_LastUpdate);
+      if (tmp.size() != 0)
+        result["LastUpdate"] = tmp;
     }
 
     return true;