Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerToolbox.cpp @ 4932:b7ce2bb6b881 more-tags
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 09 Mar 2022 11:17:08 +0100 |
parents | 6eff25f70121 |
children | 94a7b681b340 |
comparison
equal
deleted
inserted
replaced
4930:1ce32c1ec4cf | 4932:b7ce2bb6b881 |
---|---|
179 OrthancConfiguration::DefaultExtractDicomSummary(dicomSummary, dicom); | 179 OrthancConfiguration::DefaultExtractDicomSummary(dicomSummary, dicom); |
180 | 180 |
181 transaction.ClearMainDicomTags(resource); | 181 transaction.ClearMainDicomTags(resource); |
182 | 182 |
183 ResourcesContent tags(false /* prevent the setting of metadata */); | 183 ResourcesContent tags(false /* prevent the setting of metadata */); |
184 tags.AddResource(resource, level, dicomSummary); | 184 tags.AddResource(resource, level, dicomSummary); // MORE_TAGS: re-set the dicomMainTagsList metadata |
185 transaction.SetResourcesContent(tags); | 185 transaction.SetResourcesContent(tags); |
186 } | 186 } |
187 catch (OrthancException&) | 187 catch (OrthancException&) |
188 { | 188 { |
189 LOG(ERROR) << "Cannot decode the DICOM file with UUID " << attachment.GetUuid() | 189 LOG(ERROR) << "Cannot decode the DICOM file with UUID " << attachment.GetUuid() |