comparison OrthancServer/Sources/ServerIndex.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 28db9663fc2d
comparison
equal deleted inserted replaced
5035:67d98fccc850 5036:877bc3b96476
509 } 509 }
510 510
511 511
512 StoreStatus ServerIndex::Store(std::map<MetadataType, std::string>& instanceMetadata, 512 StoreStatus ServerIndex::Store(std::map<MetadataType, std::string>& instanceMetadata,
513 const DicomMap& dicomSummary, 513 const DicomMap& dicomSummary,
514 const std::map<DicomTag, Json::Value>& sequencesToStore,
514 const ServerIndex::Attachments& attachments, 515 const ServerIndex::Attachments& attachments,
515 const ServerIndex::MetadataMap& metadata, 516 const ServerIndex::MetadataMap& metadata,
516 const DicomInstanceOrigin& origin, 517 const DicomInstanceOrigin& origin,
517 bool overwrite, 518 bool overwrite,
518 bool hasTransferSyntax, 519 bool hasTransferSyntax,
529 maximumStorageSize = maximumStorageSize_; 530 maximumStorageSize = maximumStorageSize_;
530 maximumPatients = maximumPatients_; 531 maximumPatients = maximumPatients_;
531 } 532 }
532 533
533 return StatelessDatabaseOperations::Store( 534 return StatelessDatabaseOperations::Store(
534 instanceMetadata, dicomSummary, attachments, metadata, origin, overwrite, hasTransferSyntax, 535 instanceMetadata, dicomSummary, sequencesToStore, attachments, metadata, origin, overwrite, hasTransferSyntax,
535 transferSyntax, hasPixelDataOffset, pixelDataOffset, maximumStorageSize, maximumPatients, isReconstruct); 536 transferSyntax, hasPixelDataOffset, pixelDataOffset, maximumStorageSize, maximumPatients, isReconstruct);
536 } 537 }
537 538
538 539
539 StoreStatus ServerIndex::AddAttachment(int64_t& newRevision, 540 StoreStatus ServerIndex::AddAttachment(int64_t& newRevision,