comparison OrthancServer/Sources/ServerIndex.cpp @ 4578:710748828b6a db-changes

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Mar 2021 11:55:08 +0100
parents a114a5db2afe
children 5ee9a4f8a0f0
comparison
equal deleted inserted replaced
4577:a114a5db2afe 4578:710748828b6a
733 return SeriesStatus_Missing; 733 return SeriesStatus_Missing;
734 } 734 }
735 } 735 }
736 736
737 737
738 void ServerIndex::MainDicomTagsToJson(Json::Value& target, 738 void ServerIndex::ReadOnlyTransaction::MainDicomTagsToJson(Json::Value& target,
739 IDatabaseWrapper& db, 739 int64_t resourceId,
740 int64_t resourceId, 740 ResourceType resourceType)
741 ResourceType resourceType)
742 { 741 {
743 DicomMap tags; 742 DicomMap tags;
744 db.GetMainDicomTags(tags, resourceId); 743 db_.GetMainDicomTags(tags, resourceId);
745 744
746 if (resourceType == ResourceType_Study) 745 if (resourceType == ResourceType_Study)
747 { 746 {
748 DicomMap t1, t2; 747 DicomMap t1, t2;
749 tags.ExtractStudyInformation(t1); 748 tags.ExtractStudyInformation(t1);