diff OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 2446:a894adc8bb03

/tools/create-media-extended to include type-3 tags in DICOMDIR
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 Dec 2017 16:30:30 +0100
parents b340f0a9022c
children 878b59270859
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Thu Dec 14 13:02:06 2017 +0100
+++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Thu Dec 14 16:30:30 2017 +0100
@@ -716,7 +716,8 @@
     }
   }  
 
-
+  
+  template <bool Extended>
   static void CreateBatchMedia(RestApiPostCall& call)
   {
     ArchiveIndex archive(ResourceType_Patient);  // root
@@ -727,7 +728,7 @@
                                 OrthancRestApi::GetContext(call),
                                 archive,
                                 "Archive.zip",
-                                false);
+                                Extended);
     }
   }  
 
@@ -778,6 +779,7 @@
     Register("/series/{id}/media", CreateMedia);
 
     Register("/tools/create-archive", CreateBatchArchive);
-    Register("/tools/create-media", CreateBatchMedia);
+    Register("/tools/create-media", CreateBatchMedia<false>);
+    Register("/tools/create-media-extended", CreateBatchMedia<true>);
   }
 }