Hi,
Is it possible to have custom user metadata defined in the Orthanc configuration file:
“UserMetadata” : {
// “Sample” : 1024
“ScanFacility”: 1025
},
also visible in the result of querying study from the API:
…/study/{id}?Expand=true
Result:
{
"ID" : "cf5f1d31-7c64f1af-29dfb45b-c05b0413-8ff31dd9",
"IsStable" : true,
"LastUpdate" : "20181125T215327",
jodogne
November 27, 2018, 8:45am
2
Metadata can be retrieved by the following call:
$ curl http://localhost:8042/studies/66c8e41e-ac3a9029-0b85e42a-8195ee0a-92c2e62e/metadata?expand
{
“LastUpdate” : “20181115T105715”
}
As you noticed, metadata is not returned by the “http://localhost:8042/studies/{id} ” URI. This is because metadata can get large. You can implement this feature by creating a plugin:
http://book.orthanc-server.com/developers/creating-plugins.html
The “/tools/find” URI cannot be used to search metadata, as already discussed in this recent thread:
https://groups.google.com/d/msg/orthanc-users/2lyFDfmdWGA/X8AloTHDAgAJ
Thanks a lot!
I am really really sorry if I asked too many questions in a short period in this group, but I am new in this topic. I really need help.
I agree that my first question is to simple for experienced guys. I just don’t know the answer. I will stop with questions. Sorry again!
jodogne
November 27, 2018, 9:29am
4
No worries.
In the future, please make sure to ask your question in a single, concise yet complete post.
Also, only use the bug tracker to report issues that are reproducible by other people.