How can i filter through study metadata?

Hi.
I created metadata for study, i can see it:http://localhost:8042/studies/14d74df9-be0fb9f4-a88c5382-55c94913-b46b297a/metadata?expand

output:

{
“LastUpdate”: “20221207T082542”,
“Wow”: “123”
}

Then i tried to filter through this metadata
curl --request POST \ –url http://localhost:8042/tools/find \ –data ’
{ “Level” : “Study”,
“Query” : { “Wow” : “123” }
}’

But i got “Unknown DICOM tag”
Thanks!

Hello,

Metadata is not indexed, as this would impact performance, and thus cannot be searched. However, the Orthanc Book contains an example to implement such filtering using a Python plugin:

https://book.orthanc-server.com/plugins/python.html#filtering-and-returning-metadata

Regards,
Sébastien-