Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 788:7ebe4bf87196
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 05 May 2014 18:39:36 +0200 |
parents | ac18946afa74 |
children | 381f90e2b69d |
comparison
equal
deleted
inserted
replaced
787:ac18946afa74 | 788:7ebe4bf87196 |
---|---|
333 | 333 |
334 static void ModifyInstance(RestApi::PostCall& call) | 334 static void ModifyInstance(RestApi::PostCall& call) |
335 { | 335 { |
336 DicomModification modification; | 336 DicomModification modification; |
337 | 337 |
338 // TODO : modification.SetLevel(DicomRootLevel_Series); ????? | 338 // TODO : modification.SetLevel(ResourceType_Series); ????? |
339 | 339 |
340 if (ParseModifyRequest(modification, call)) | 340 if (ParseModifyRequest(modification, call)) |
341 { | 341 { |
342 AnonymizeOrModifyInstance(modification, call); | 342 AnonymizeOrModifyInstance(modification, call); |
343 } | 343 } |
362 DicomModification modification; | 362 DicomModification modification; |
363 | 363 |
364 switch (resourceType) | 364 switch (resourceType) |
365 { | 365 { |
366 case ResourceType_Series: | 366 case ResourceType_Series: |
367 modification.SetLevel(DicomRootLevel_Series); | 367 modification.SetLevel(ResourceType_Series); |
368 break; | 368 break; |
369 | 369 |
370 case ResourceType_Study: | 370 case ResourceType_Study: |
371 modification.SetLevel(DicomRootLevel_Study); | 371 modification.SetLevel(ResourceType_Study); |
372 break; | 372 break; |
373 | 373 |
374 case ResourceType_Patient: | 374 case ResourceType_Patient: |
375 modification.SetLevel(DicomRootLevel_Patient); | 375 modification.SetLevel(ResourceType_Patient); |
376 break; | 376 break; |
377 | 377 |
378 default: | 378 default: |
379 throw OrthancException(ErrorCode_InternalError); | 379 throw OrthancException(ErrorCode_InternalError); |
380 } | 380 } |