Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Tue Dec 18 17:29:30 2012 +0100 +++ b/OrthancServer/FromDcmtkBridge.cpp Tue Dec 18 19:01:01 2012 +0100 @@ -616,6 +616,21 @@ { FillElementWithString(*element, tag, value); } + + + /** + * dcmodify will automatically correct 'Media Storage SOP Class + * UID' and 'Media Storage SOP Instance UID' in the metaheader, if + * you make changes to the related tags in the dataset ('SOP Class + * UID' and 'SOP Instance UID') via insert or modify mode + * options. You can disable this behaviour by using the -nmu + * option. + **/ + if (tag == DICOM_TAG_SOP_CLASS_UID) + ReplaceInternal(DICOM_TAG_MEDIA_STORAGE_SOP_CLASS_UID, value, true); + + if (tag == DICOM_TAG_SOP_INSTANCE_UID) + ReplaceInternal(DICOM_TAG_MEDIA_STORAGE_SOP_INSTANCE_UID, value, true); }