comparison OrthancServer/FromDcmtkBridge.cpp @ 303:c76a35a85c69

ready for anonymization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Dec 2012 19:01:01 +0100
parents 238134081136
children 4eea080e6e7a
comparison
equal deleted inserted replaced
302:238134081136 303:c76a35a85c69
614 } 614 }
615 else 615 else
616 { 616 {
617 FillElementWithString(*element, tag, value); 617 FillElementWithString(*element, tag, value);
618 } 618 }
619
620
621 /**
622 * dcmodify will automatically correct 'Media Storage SOP Class
623 * UID' and 'Media Storage SOP Instance UID' in the metaheader, if
624 * you make changes to the related tags in the dataset ('SOP Class
625 * UID' and 'SOP Instance UID') via insert or modify mode
626 * options. You can disable this behaviour by using the -nmu
627 * option.
628 **/
629 if (tag == DICOM_TAG_SOP_CLASS_UID)
630 ReplaceInternal(DICOM_TAG_MEDIA_STORAGE_SOP_CLASS_UID, value, true);
631
632 if (tag == DICOM_TAG_SOP_INSTANCE_UID)
633 ReplaceInternal(DICOM_TAG_MEDIA_STORAGE_SOP_INSTANCE_UID, value, true);
619 } 634 }
620 635
621 636
622 void ParsedDicomFile::Replace(const DicomTag& tag, 637 void ParsedDicomFile::Replace(const DicomTag& tag,
623 const std::string& value) 638 const std::string& value)