Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 5137:15109c3f0f7d
added sanity checks in DicomModificationJob + automatically reconstruct resources at the end of a DicomModificationJob
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 18 Jan 2023 17:58:51 +0100 |
parents | f2dcdbe05884 |
children | 2df546a76e17 |
comparison
equal
deleted
inserted
replaced
5136:e71b22a43c0b | 5137:15109c3f0f7d |
---|---|
385 context.GetIndex().GetChildInstances(instances, *it); | 385 context.GetIndex().GetChildInstances(instances, *it); |
386 job->AddInstances(instances); | 386 job->AddInstances(instances); |
387 | 387 |
388 job->AddParentResource(*it); | 388 job->AddParentResource(*it); |
389 } | 389 } |
390 | 390 |
391 job->PerformSanityChecks(); | |
392 | |
391 OrthancRestApi::GetApi(call).SubmitThreadedInstancesJob | 393 OrthancRestApi::GetApi(call).SubmitThreadedInstancesJob |
392 (call, job.release(), true /* synchronous by default */, body); | 394 (call, job.release(), true /* synchronous by default */, body); |
393 } | 395 } |
394 | 396 |
395 | 397 |