diff OrthancServer/Sources/ServerContext.cpp @ 5579:77570cce8855 find-refactoring

removed redundant FindResponse::resourceId_
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2024 11:31:39 +0200
parents b0b5546f1b9f
children 4ad301c35f6e
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Fri Apr 26 17:43:22 2024 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Sat Apr 27 11:31:39 2024 +0200
@@ -2718,13 +2718,14 @@
   }
 
   void ServerContext::AppendFindResponse(Json::Value& target,
+                                         ResourceType level,
                                          const FindResponse::Item& item,
                                          DicomToJsonFormat format,
                                          const std::set<DicomTag>& requestedTags,
                                          bool allowStorageAccess)
   {
     // convert to ExpandedResource to re-use the serialization code TODO-FIND: check if this is the right way to do.  shouldn't we copy the code and finally get rid of ExpandedResource ? 
-    ExpandedResource resource(item);
+    ExpandedResource resource(level, item);
 
     ExpandResourceFlags expandFlags = ExpandResourceFlags_None;
     if (item.HasResponseContent(FindRequest::ResponseContent_Children))