comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2867:251614c2edac

DicomMoveScuJob
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Oct 2018 16:08:51 +0200
parents 8b00e4cb4a6b
children abce036683cd
comparison
equal deleted inserted replaced
2866:437e6ba20a5e 2867:251614c2edac
162 job->SetOrigin(call); 162 job->SetOrigin(call);
163 job->SetDescription("REST API"); 163 job->SetDescription("REST API");
164 164
165 context.AddChildInstances(*job, call.GetUriComponent("id", "")); 165 context.AddChildInstances(*job, call.GetUriComponent("id", ""));
166 166
167 if (context.GetJobsEngine().GetRegistry().SubmitAndWait(job.release(), priority)) 167 Json::Value publicContent;
168 if (context.GetJobsEngine().GetRegistry().SubmitAndWait
169 (publicContent, job.release(), priority))
168 { 170 {
169 Json::Value json; 171 Json::Value json;
170 if (output->Format(json)) 172 if (output->Format(json))
171 { 173 {
172 call.GetOutput().AnswerJson(json); 174 call.GetOutput().AnswerJson(json);