Mercurial > hg > orthanc
diff OrthancServer/FromDcmtkBridge.cpp @ 1861:a7bea843a7bc
"OrthancPluginLookupDictionary()" to get information about some DICOM tag
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 02 Dec 2015 13:00:18 +0100 |
parents | c7d70f659190 |
children | 9b458e4484a1 |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Wed Dec 02 11:26:52 2015 +0100 +++ b/OrthancServer/FromDcmtkBridge.cpp Wed Dec 02 13:00:18 2015 +0100 @@ -880,6 +880,21 @@ return DicomTag(group, element); } + if (strlen(name) == 8 && + isxdigit(name[0]) && + isxdigit(name[1]) && + isxdigit(name[2]) && + isxdigit(name[3]) && + isxdigit(name[4]) && + isxdigit(name[5]) && + isxdigit(name[6]) && + isxdigit(name[7])) + { + uint16_t group = GetTagValue(name); + uint16_t element = GetTagValue(name + 4); + return DicomTag(group, element); + } + #if 0 const DcmDataDictionary& dict = dcmDataDict.rdlock(); const DcmDictEntry* entry = dict.findEntry(name);