Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4006:55710d73780f | 4007:884b55ce01f6 |
---|---|
1715 FillElementWithString(*element, "", decodeDataUriScheme, dicomEncoding); | 1715 FillElementWithString(*element, "", decodeDataUriScheme, dicomEncoding); |
1716 break; | 1716 break; |
1717 | 1717 |
1718 case Json::arrayValue: | 1718 case Json::arrayValue: |
1719 { | 1719 { |
1720 DcmTag key(tag.GetGroup(), tag.GetElement()); | 1720 const char* p = NULL; |
1721 if (!privateCreator.empty()) | |
1722 { | |
1723 p = privateCreator.c_str(); | |
1724 } | |
1725 | |
1726 DcmTag key(tag.GetGroup(), tag.GetElement(), p); | |
1721 if (key.getEVR() != EVR_SQ) | 1727 if (key.getEVR() != EVR_SQ) |
1722 { | 1728 { |
1723 throw OrthancException(ErrorCode_BadParameterType, "Bad Parameter type for tag " + tag.Format()); | 1729 throw OrthancException(ErrorCode_BadParameterType, |
1730 "Bad Parameter type for tag " + tag.Format()); | |
1724 } | 1731 } |
1725 | 1732 |
1726 DcmSequenceOfItems* sequence = new DcmSequenceOfItems(key); | 1733 DcmSequenceOfItems* sequence = new DcmSequenceOfItems(key); |
1727 element.reset(sequence); | 1734 element.reset(sequence); |
1728 | 1735 |