Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 3814:023b2a9f3aa1 transcoding
new enum: StoreInstanceMode
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Apr 2020 17:35:44 +0200 |
parents | 2a170a8f1faf |
children | 603a7b86fa5f |
comparison
equal
deleted
inserted
replaced
3813:aaaa442bfe39 | 3814:023b2a9f3aa1 |
---|---|
225 DicomInstanceToStore toStore; | 225 DicomInstanceToStore toStore; |
226 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call)); | 226 toStore.SetOrigin(DicomInstanceOrigin::FromRest(call)); |
227 toStore.SetParsedDicomFile(dicom); | 227 toStore.SetParsedDicomFile(dicom); |
228 | 228 |
229 ServerContext& context = OrthancRestApi::GetContext(call); | 229 ServerContext& context = OrthancRestApi::GetContext(call); |
230 StoreStatus status = context.Store(id, toStore); | 230 StoreStatus status = context.Store(id, toStore, StoreInstanceMode_Default); |
231 | 231 |
232 if (status == StoreStatus_Failure) | 232 if (status == StoreStatus_Failure) |
233 { | 233 { |
234 throw OrthancException(ErrorCode_CannotStoreInstance); | 234 throw OrthancException(ErrorCode_CannotStoreInstance); |
235 } | 235 } |