Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 2825:8aa6aef11b70
New configuration option "OverwriteInstances" to choose how duplicate SOPInstanceUID are handled
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Sep 2018 15:24:01 +0200 |
parents | 925d8dc03a23 |
children | 9d08edde614b |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Tue Sep 18 16:31:42 2018 +0200 +++ b/OrthancServer/main.cpp Wed Sep 19 15:24:01 2018 +0200 @@ -984,6 +984,9 @@ context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false)); context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true)); + // New option in Orthanc 1.4.2 + context.GetIndex().SetOverwriteInstances(Configuration::GetGlobalBoolParameter("OverwriteInstances", false)); + try { context.GetIndex().SetMaximumPatientCount(Configuration::GetGlobalUnsignedIntegerParameter("MaximumPatientCount", 0));