comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2361:f58b6bdbd63b

note
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Jul 2017 16:13:52 +0200
parents 415450f11cc7
children b8969010b534
comparison
equal deleted inserted replaced
2360:25a15aae0d74 2361:f58b6bdbd63b
221 221
222 222
223 static bool ParseAnonymizationRequest(DicomModification& target, 223 static bool ParseAnonymizationRequest(DicomModification& target,
224 RestApiPostCall& call) 224 RestApiPostCall& call)
225 { 225 {
226 // curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{"Replace":{"PatientName":"hello","0010-0020":"world"},"Keep":["StudyDescription", "SeriesDescription"],"KeepPrivateTags": null,"Remove":["Modality"]}' > Anonymized.dcm 226 // curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{"Replace":{"PatientName":"hello","0010-0020":"world"},"Keep":["StudyDescription", "SeriesDescription"],"KeepPrivateTags": true,"Remove":["Modality"]}' > Anonymized.dcm
227 227
228 Json::Value request; 228 Json::Value request;
229 if (!call.ParseJsonRequest(request) || 229 if (!call.ParseJsonRequest(request) ||
230 !request.isObject()) 230 !request.isObject())
231 { 231 {