Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 1341:479e31b13de5
Allow replacing PatientID/StudyInstanceUID/SeriesInstanceUID from Lua scripts
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 03 Apr 2015 13:53:08 +0200 |
parents | 7b6925b0890d |
children | b22ba8c5edbe |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Fri Apr 03 13:31:00 2015 +0200 +++ b/OrthancServer/ServerContext.cpp Fri Apr 03 13:53:08 2015 +0200 @@ -159,8 +159,10 @@ if (operation == "modify") { LOG(INFO) << "Lua script to modify instance " << parameters["Instance"].asString(); - std::auto_ptr<ModifyInstanceCommand> command(new ModifyInstanceCommand(context)); - OrthancRestApi::ParseModifyRequest(command->GetModification(), parameters); + DicomModification modification; + OrthancRestApi::ParseModifyRequest(modification, parameters); + + std::auto_ptr<ModifyInstanceCommand> command(new ModifyInstanceCommand(context, modification)); return command.release(); }