Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp @ 1546:94750ef63ad5
support of Orthanc framework shared library
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2020 17:09:59 +0200 |
parents | d3cafeef07bb |
children | 85e117739eca |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp Tue Aug 11 15:07:30 2020 +0200 +++ b/OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp Tue Aug 11 17:09:59 2020 +0200 @@ -534,7 +534,13 @@ ignoreTagLength.insert(Orthanc::DICOM_TAG_GRID_FRAME_OFFSET_VECTOR); // Needed for RT-DOSE Orthanc::DicomMap summary; + +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 3) message.GetDicom().ExtractDicomSummary(summary, ORTHANC_STONE_MAX_TAG_LENGTH, ignoreTagLength); +#else + message.GetDicom().ExtractDicomSummary(summary, ignoreTagLength); +#endif + handler.GetTarget()->AddResource(summary); handler.BroadcastSuccess();