comparison OrthancServer/Sources/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 5087:df4a90a65af9

DicomModification::SetAllowManualIdentifiers() has been removed since it was always true -> code cleanup
author Alain Mazy <am@osimis.io>
date Mon, 26 Sep 2022 18:56:40 +0200
parents 6eff25f70121
children 8638522eeda1
comparison
equal deleted inserted replaced
5086:0b27bbd19b1f 5087:df4a90a65af9
267 .AddAnswerType(MimeType_Dicom, "The modified DICOM instance"); 267 .AddAnswerType(MimeType_Dicom, "The modified DICOM instance");
268 return; 268 return;
269 } 269 }
270 270
271 DicomModification modification; 271 DicomModification modification;
272 modification.SetAllowManualIdentifiers(true);
273 272
274 Json::Value request; 273 Json::Value request;
275 ParseModifyRequest(request, modification, call); 274 ParseModifyRequest(request, modification, call);
276 275
277 modification.SetLevel(DetectModifyLevel(modification)); 276 modification.SetLevel(DetectModifyLevel(modification));
312 .AddAnswerType(MimeType_Dicom, "The anonymized DICOM instance"); 311 .AddAnswerType(MimeType_Dicom, "The anonymized DICOM instance");
313 return; 312 return;
314 } 313 }
315 314
316 DicomModification modification; 315 DicomModification modification;
317 modification.SetAllowManualIdentifiers(true);
318 316
319 Json::Value request; 317 Json::Value request;
320 ParseAnonymizationRequest(request, modification, call); 318 ParseAnonymizationRequest(request, modification, call);
321 319
322 AnonymizeOrModifyInstance(modification, call, false /* no transcoding */, 320 AnonymizeOrModifyInstance(modification, call, false /* no transcoding */,