How to match empty tag using REST api?

I am trying to match a patient without an empty birth date dicom tag. I’ve tried the following:

curl http://192.168.5.24:8042/tools/find -d ‘{“Level”:“Patient”,“Query”:{“PatientBirthDate”:“”}}’

curl http://192.168.5.24:8042/tools/find -d ‘{“Level”:“Study”,“Query”:{“PatientBirthDate”:“”}}’

curl http://192.168.5.24:8042/tools/find -d ‘{“Level”:“Patient”,“Query”:{“PatientBirthDate”}}’

curl http://192.168.5.24:8042/tools/find -d ‘{“Level”:“Patient”,“Query”:{“PatientBirthDate”:()}}’

but at best receive the following error message.

“HttpError” : “Service Unavailable”,
“HttpStatus” : 503,
“Message” : “Database could not serialize access due to concurrent update, the transaction should be retried”,
“Method” : “POST”,
“OrthancError” : “Database could not serialize access due to concurrent update, the transaction should be retried”,
“OrthancStatus” : 42,
“Uri” : “/tools/find”

Good evening Avner,

Don’t hesitate to try to:

  • Say “Hello” or something like that when you post a message on a forum. This is valid for this Orthanc group, but also for all forums on the web and moreover also in the real life (really, give it a try the next time you go to the super market or to the bakery)

  • Put a question in your message, read it again, there is no question… I can guess your question, but it would be easier for everybody if you put a least one question in your message…

  • Post your configuration file and more context on your problem, the more you give details, the best we can help.

I wish you the best for 2023 :slight_smile: