comparison OrthancServer/DicomModification.cpp @ 1982:b5d4f9c156ad

Modification of instances can now replace PixelData
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Apr 2016 10:28:55 +0200
parents b1291df2f780
children 3b40ca7470cc
comparison
equal deleted inserted replaced
1981:4b545a8b1f95 1982:b5d4f9c156ad
139 else 139 else
140 { 140 {
141 mapped = previous->second; 141 mapped = previous->second;
142 } 142 }
143 143
144 dicom.Replace(*tag, mapped); 144 dicom.Replace(*tag, mapped, false /* don't try and decode data URI scheme for UIDs */, DicomReplaceMode_InsertIfAbsent);
145 } 145 }
146 146
147 DicomModification::DicomModification() 147 DicomModification::DicomModification()
148 { 148 {
149 removePrivateTags_ = false; 149 removePrivateTags_ = false;
457 457
458 // (3) Replace the tags 458 // (3) Replace the tags
459 for (Replacements::const_iterator it = replacements_.begin(); 459 for (Replacements::const_iterator it = replacements_.begin();
460 it != replacements_.end(); ++it) 460 it != replacements_.end(); ++it)
461 { 461 {
462 toModify.Replace(it->first, *it->second, DicomReplaceMode_InsertIfAbsent); 462 toModify.Replace(it->first, *it->second, true /* decode data URI scheme */, DicomReplaceMode_InsertIfAbsent);
463 } 463 }
464 464
465 // (4) Update the DICOM identifiers 465 // (4) Update the DICOM identifiers
466 if (level_ <= ResourceType_Study && 466 if (level_ <= ResourceType_Study &&
467 !IsReplaced(DICOM_TAG_STUDY_INSTANCE_UID)) 467 !IsReplaced(DICOM_TAG_STUDY_INSTANCE_UID))