# HG changeset patch # User Alain Mazy # Date 1726239408 -7200 # Node ID 92298bfc5451ee353ad7c610efde05dc0dc060c0 # Parent de33982a0bf4c3bc545dac6b77f5041221d7af94 fix diff -r de33982a0bf4 -r 92298bfc5451 OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp --- a/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Fri Sep 13 11:57:14 2024 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV4.cpp Fri Sep 13 16:56:48 2024 +0200 @@ -1525,20 +1525,20 @@ if (request.GetLevel() == ResourceType_Patient) { - Convert(*target, ResourceType_Patient, source.children_studies_content()); + Convert(*target, ResourceType_Study, source.children_studies_content()); } if (request.GetLevel() == ResourceType_Patient || request.GetLevel() == ResourceType_Study) { - Convert(*target, ResourceType_Study, source.children_series_content()); + Convert(*target, ResourceType_Series, source.children_series_content()); } if (request.GetLevel() == ResourceType_Patient || request.GetLevel() == ResourceType_Study || request.GetLevel() == ResourceType_Series) { - Convert(*target, ResourceType_Series, source.children_instances_content()); + Convert(*target, ResourceType_Instance, source.children_instances_content()); } if (request.IsRetrieveOneInstanceMetadataAndAttachments())