Mercurial > hg > orthanc
diff OrthancServer/ParsedDicomFile.cpp @ 1655:e40fd0d925c5
/tools/create-dicom can create tags with unknown VR
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Sep 2015 14:54:24 +0200 |
parents | 4e56b5a206b7 |
children | 09be34b2f30e |
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp Mon Sep 28 15:03:35 2015 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Tue Sep 29 14:54:24 2015 +0200 @@ -864,7 +864,8 @@ { OFCondition cond; - if (FromDcmtkBridge::IsPrivateTag(tag)) + if (FromDcmtkBridge::IsPrivateTag(tag) || + FromDcmtkBridge::IsUnknownTag(tag)) { // This is a private tag // http://support.dcmtk.org/redmine/projects/dcmtk/wiki/howto_addprivatedata @@ -915,7 +916,8 @@ } else { - if (FromDcmtkBridge::IsPrivateTag(tag)) + if (FromDcmtkBridge::IsPrivateTag(tag) || + FromDcmtkBridge::IsUnknownTag(tag)) { if (!element->putUint8Array((const Uint8*) value.c_str(), value.size()).good()) { @@ -968,6 +970,7 @@ DcmDataset& dataset = *pimpl_->file_->getDataset(); if (FromDcmtkBridge::IsPrivateTag(tag) || + FromDcmtkBridge::IsUnknownTag(tag) || tag == DICOM_TAG_PIXEL_DATA || tag == DICOM_TAG_ENCAPSULATED_DOCUMENT) {