Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1860:c7d70f659190 | 1861:a7bea843a7bc |
---|---|
878 uint16_t group = GetTagValue(name); | 878 uint16_t group = GetTagValue(name); |
879 uint16_t element = GetTagValue(name + 5); | 879 uint16_t element = GetTagValue(name + 5); |
880 return DicomTag(group, element); | 880 return DicomTag(group, element); |
881 } | 881 } |
882 | 882 |
883 if (strlen(name) == 8 && | |
884 isxdigit(name[0]) && | |
885 isxdigit(name[1]) && | |
886 isxdigit(name[2]) && | |
887 isxdigit(name[3]) && | |
888 isxdigit(name[4]) && | |
889 isxdigit(name[5]) && | |
890 isxdigit(name[6]) && | |
891 isxdigit(name[7])) | |
892 { | |
893 uint16_t group = GetTagValue(name); | |
894 uint16_t element = GetTagValue(name + 4); | |
895 return DicomTag(group, element); | |
896 } | |
897 | |
883 #if 0 | 898 #if 0 |
884 const DcmDataDictionary& dict = dcmDataDict.rdlock(); | 899 const DcmDataDictionary& dict = dcmDataDict.rdlock(); |
885 const DcmDictEntry* entry = dict.findEntry(name); | 900 const DcmDictEntry* entry = dict.findEntry(name); |
886 | 901 |
887 if (entry == NULL) | 902 if (entry == NULL) |