Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.cpp @ 5040:1c08cd68250a
removed the 'name' of MainDicomTags to simplify code -> DicomMap::ParseMainDicomTags has been deprecated and one should use DicomMap::FromDicomAsJson on 'full' formatted tags
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 27 Jun 2022 12:39:51 +0200 |
parents | 28db9663fc2d |
children | ec5c203a97ea |
comparison
equal
deleted
inserted
replaced
5039:28db9663fc2d | 5040:1c08cd68250a |
---|---|
2081 resource.tags_.ExtractResourceInformation(mainDicomTags, resource.type_); | 2081 resource.tags_.ExtractResourceInformation(mainDicomTags, resource.type_); |
2082 | 2082 |
2083 target[MAIN_DICOM_TAGS] = Json::objectValue; | 2083 target[MAIN_DICOM_TAGS] = Json::objectValue; |
2084 FromDcmtkBridge::ToJson(target[MAIN_DICOM_TAGS], mainDicomTags, format); | 2084 FromDcmtkBridge::ToJson(target[MAIN_DICOM_TAGS], mainDicomTags, format); |
2085 | 2085 |
2086 {// TODO add the sequences to the main dicom tags | |
2087 // const std::set<DicomTag>& mainDicomTags = DicomMap::MainDicomTagsConfiguration::GetInstance().GetMainDicomTagsByLevel(resource.type_); | |
2088 // mainDicomTags. | |
2089 // resource.sequences_.ToJson(target[MAIN_DICOM_TAGS], format); | |
2090 } | |
2091 | |
2086 if (resource.type_ == ResourceType_Study) | 2092 if (resource.type_ == ResourceType_Study) |
2087 { | 2093 { |
2088 DicomMap patientMainDicomTags; | 2094 DicomMap patientMainDicomTags; |
2089 resource.tags_.ExtractPatientInformation(patientMainDicomTags); | 2095 resource.tags_.ExtractPatientInformation(patientMainDicomTags); |
2090 | 2096 |