comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 5574:5a13483d12c5 find-refactoring

find-refactoring: attachments
author Alain Mazy <am@orthanc.team>
date Fri, 26 Apr 2024 16:32:18 +0200
parents 738f80622e91
children 77570cce8855
comparison
equal deleted inserted replaced
5569:738f80622e91 5574:5a13483d12c5
3924 3924
3925 if (item.HasResponseContent(FindRequest::ResponseContent_Labels)) 3925 if (item.HasResponseContent(FindRequest::ResponseContent_Labels))
3926 { 3926 {
3927 labels_ = item.GetLabels(); 3927 labels_ = item.GetLabels();
3928 } 3928 }
3929 // TODO-FIND: continue: isStable_, satus_, fileSize_, fileUuid_ 3929
3930 if (item.HasResponseContent(FindRequest::ResponseContent_Attachments))
3931 {
3932 FileInfo attachment;
3933 if (item.LookupAttachment(attachment, FileContentType_Dicom))
3934 {
3935 fileSize_ = attachment.GetUncompressedSize();
3936 fileUuid_ = attachment.GetUuid();
3937 }
3938 }
3939
3940 if (item.HasResponseContent(FindRequest::ResponseContent_ChildrenMetadata))
3941 {
3942 // TODO-FIND: the status_ is normally obtained from transaction.GetSeriesStatus(internalId, i)
3943 // but, that's an heavy operation for something that is rarely used -> we should have dedicated SQL code
3944 // to compute it AFAP and we should compute it only if the user request it !
3945 }
3946
3947 // TODO-FIND: continue: isStable_, status_
3930 } 3948 }
3931 } 3949 }