Mercurial > hg > orthanc
diff Core/DicomParsing/FromDcmtkBridge.cpp @ 4007:884b55ce01f6
Private tags returned by C-FIND SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 06 Jun 2020 14:50:21 +0200 |
parents | 74eeadf5d51d |
children | c675d77b82ab |
line wrap: on
line diff
--- a/Core/DicomParsing/FromDcmtkBridge.cpp Sat Jun 06 11:21:39 2020 +0200 +++ b/Core/DicomParsing/FromDcmtkBridge.cpp Sat Jun 06 14:50:21 2020 +0200 @@ -1717,10 +1717,17 @@ case Json::arrayValue: { - DcmTag key(tag.GetGroup(), tag.GetElement()); + const char* p = NULL; + if (!privateCreator.empty()) + { + p = privateCreator.c_str(); + } + + DcmTag key(tag.GetGroup(), tag.GetElement(), p); if (key.getEVR() != EVR_SQ) { - throw OrthancException(ErrorCode_BadParameterType, "Bad Parameter type for tag " + tag.Format()); + throw OrthancException(ErrorCode_BadParameterType, + "Bad Parameter type for tag " + tag.Format()); } DcmSequenceOfItems* sequence = new DcmSequenceOfItems(key);