Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 1811:67466dcd23b1
integration worklists->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 23 Nov 2015 17:10:11 +0100 |
parents | f08978b1f45b |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1806:cd213ebcaefd | 1811:67466dcd23b1 |
---|---|
618 request["Tags"].type() != Json::objectValue) | 618 request["Tags"].type() != Json::objectValue) |
619 { | 619 { |
620 throw OrthancException(ErrorCode_BadRequest); | 620 throw OrthancException(ErrorCode_BadRequest); |
621 } | 621 } |
622 | 622 |
623 ParsedDicomFile dicom; | 623 ParsedDicomFile dicom(true); |
624 | 624 |
625 { | 625 { |
626 Encoding encoding; | 626 Encoding encoding; |
627 | 627 |
628 if (request["Tags"].isMember("SpecificCharacterSet")) | 628 if (request["Tags"].isMember("SpecificCharacterSet")) |
832 CreateDicomV2(call, request); | 832 CreateDicomV2(call, request); |
833 } | 833 } |
834 else | 834 else |
835 { | 835 { |
836 // Compatibility with Orthanc <= 0.9.3 | 836 // Compatibility with Orthanc <= 0.9.3 |
837 ParsedDicomFile dicom; | 837 ParsedDicomFile dicom(true); |
838 CreateDicomV1(dicom, call, request); | 838 CreateDicomV1(dicom, call, request); |
839 | 839 |
840 std::string id; | 840 std::string id; |
841 StoreCreatedInstance(id, call, dicom); | 841 StoreCreatedInstance(id, call, dicom); |
842 OrthancRestApi::GetApi(call).AnswerStoredResource(call, id, ResourceType_Instance, StoreStatus_Success); | 842 OrthancRestApi::GetApi(call).AnswerStoredResource(call, id, ResourceType_Instance, StoreStatus_Success); |