Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1340:0ad4773f28b3 | 1341:479e31b13de5 |
---|---|
157 } | 157 } |
158 | 158 |
159 if (operation == "modify") | 159 if (operation == "modify") |
160 { | 160 { |
161 LOG(INFO) << "Lua script to modify instance " << parameters["Instance"].asString(); | 161 LOG(INFO) << "Lua script to modify instance " << parameters["Instance"].asString(); |
162 std::auto_ptr<ModifyInstanceCommand> command(new ModifyInstanceCommand(context)); | 162 DicomModification modification; |
163 OrthancRestApi::ParseModifyRequest(command->GetModification(), parameters); | 163 OrthancRestApi::ParseModifyRequest(modification, parameters); |
164 | |
165 std::auto_ptr<ModifyInstanceCommand> command(new ModifyInstanceCommand(context, modification)); | |
164 return command.release(); | 166 return command.release(); |
165 } | 167 } |
166 | 168 |
167 if (operation == "call-system") | 169 if (operation == "call-system") |
168 { | 170 { |