comparison OrthancServer/ServerToolbox.cpp @ 1713:4db9200c7f46 db-changes

SetIdentifierTag
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Oct 2015 18:17:22 +0200
parents 5ebd6cbb3da8
children 2ca7888f8600
comparison
equal deleted inserted replaced
1712:a7745f3a2cc4 1713:4db9200c7f46
192 192
193 DicomArray flattened(tags); 193 DicomArray flattened(tags);
194 for (size_t i = 0; i < flattened.GetSize(); i++) 194 for (size_t i = 0; i < flattened.GetSize(); i++)
195 { 195 {
196 const DicomElement& element = flattened.GetElement(i); 196 const DicomElement& element = flattened.GetElement(i);
197 197 const DicomTag& tag = element.GetTag();
198 if (includeIdentifiers || 198
199 !element.GetTag().IsIdentifier()) 199 if (tag.IsIdentifier())
200 { 200 {
201 database.SetMainDicomTag(resource, element.GetTag(), element.GetValue().AsString()); 201 if (includeIdentifiers)
202 {
203 database.SetIdentifierTag(resource, tag, element.GetValue().AsString());
204 }
205 }
206 else
207 {
208 database.SetMainDicomTag(resource, tag, element.GetValue().AsString());
202 } 209 }
203 } 210 }
204 } 211 }
205 212
206 213