Mercurial > hg > orthanc
diff OrthancServer/Sources/DicomInstanceToStore.cpp @ 5036:877bc3b96476
Handle Dicom sequences in ExtraMainDicomTags and save them in the 'MainDicomSequences' metadata
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 24 Jun 2022 15:47:10 +0200 |
parents | 8fba26292a9f |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancServer/Sources/DicomInstanceToStore.cpp Wed Jun 22 15:37:08 2022 +0200 +++ b/OrthancServer/Sources/DicomInstanceToStore.cpp Fri Jun 24 15:47:10 2022 +0200 @@ -186,9 +186,9 @@ OrthancConfiguration::DefaultExtractDicomSummary(summary, dataset_); } - virtual void GetDicomAsJson(Json::Value& dicomAsJson) const ORTHANC_OVERRIDE + virtual void GetDicomAsJson(Json::Value& dicomAsJson, const std::set<DicomTag>& ignoreTagLength) const ORTHANC_OVERRIDE { - OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, dataset_); + OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, dataset_, ignoreTagLength); } virtual void DatasetToJson(Json::Value& target, @@ -275,9 +275,9 @@ } - void DicomInstanceToStore::GetDicomAsJson(Json::Value& dicomAsJson) const + void DicomInstanceToStore::GetDicomAsJson(Json::Value& dicomAsJson, const std::set<DicomTag>& ignoreTagLength) const { - OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, GetParsedDicomFile()); + OrthancConfiguration::DefaultDicomDatasetToJson(dicomAsJson, GetParsedDicomFile(), ignoreTagLength); }