comparison OrthancServer/Sources/ServerContext.h @ 4978:2cfa50d8eb60 more-tags

Speed-up handling of DicomModalitiesInStudy in C-Find and tools/find queries
author Alain Mazy <am@osimis.io>
date Wed, 20 Apr 2022 14:36:47 +0200
parents 304514ce84ee
children 8fba26292a9f
comparison
equal deleted inserted replaced
4977:dad71e6da406 4978:2cfa50d8eb60
261 261
262 StoreResult StoreAfterTranscoding(std::string& resultPublicId, 262 StoreResult StoreAfterTranscoding(std::string& resultPublicId,
263 DicomInstanceToStore& dicom, 263 DicomInstanceToStore& dicom,
264 StoreInstanceMode mode); 264 StoreInstanceMode mode);
265 265
266 void ApplyInternal(ILookupVisitor& visitor,
267 const DatabaseLookup& lookup,
268 ResourceType queryLevel,
269 size_t since,
270 size_t limit);
271
272 void PublishDicomCacheMetrics(); 266 void PublishDicomCacheMetrics();
273 267
274 // This method must only be called from "ServerIndex"! 268 // This method must only be called from "ServerIndex"!
275 void RemoveFile(const std::string& fileUuid, 269 void RemoveFile(const std::string& fileUuid,
276 FileContentType type); 270 FileContentType type);
548 542
549 bool ExpandResource(Json::Value& target, 543 bool ExpandResource(Json::Value& target,
550 const std::string& publicId, 544 const std::string& publicId,
551 const DicomMap& mainDicomTags, // optional: the main dicom tags for the resource (if already available) 545 const DicomMap& mainDicomTags, // optional: the main dicom tags for the resource (if already available)
552 const std::string& instanceId, // optional: the id of an instance for the resource 546 const std::string& instanceId, // optional: the id of an instance for the resource
553 const Json::Value* dicomAsJson, // optional: the dicom-as-json for the resource 547 const Json::Value* dicomAsJson, // optional: the dicom-as-json for the resource
554 ResourceType level, 548 ResourceType level,
555 DicomToJsonFormat format, 549 DicomToJsonFormat format,
556 const std::set<DicomTag>& requestedTags); 550 const std::set<DicomTag>& requestedTags);
557 551
558 bool ExpandResource(ExpandedResource& target, 552 bool ExpandResource(ExpandedResource& target,
559 const std::string& publicId, 553 const std::string& publicId,
560 const DicomMap& mainDicomTags, // optional: the main dicom tags for the resource (if already available) 554 const DicomMap& mainDicomTags, // optional: the main dicom tags for the resource (if already available)
561 const std::string& instanceId, // optional: the id of an instance for the resource 555 const std::string& instanceId, // optional: the id of an instance for the resource
562 const Json::Value* dicomAsJson, // optional: the dicom-as-json for the resource 556 const Json::Value* dicomAsJson, // optional: the dicom-as-json for the resource
563 ResourceType level, 557 ResourceType level,
564 const std::set<DicomTag>& requestedTags, 558 const std::set<DicomTag>& requestedTags,
565 ExpandResourceDbFlags expandFlags); 559 ExpandResourceDbFlags expandFlags);
566 560
567 }; 561 };