# HG changeset patch # User Sebastien Jodogne # Date 1513265430 -3600 # Node ID a894adc8bb031ef1209401b51fd302cca17e7a9b # Parent 6e5bc5c6d1a4da888ac502ae1ecac1f28eb0c62e /tools/create-media-extended to include type-3 tags in DICOMDIR diff -r 6e5bc5c6d1a4 -r a894adc8bb03 NEWS --- a/NEWS Thu Dec 14 13:02:06 2017 +0100 +++ b/NEWS Thu Dec 14 16:30:30 2017 +0100 @@ -5,7 +5,9 @@ -------- * "/system" URI returns the version of the Orthanc REST API -* added ?expand argument to /peers and /modalities routes +* Added "?expand" GET argument to "/peers" and "/modalities" routes +* New URI: "/tools/create-media-extended" to generate a DICOMDIR + archive from several resources, including additional type-3 tags Maintenance ----------- diff -r 6e5bc5c6d1a4 -r a894adc8bb03 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- 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 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); + Register("/tools/create-media-extended", CreateBatchMedia); } }