1

I am trying to search multiple words using _content search parameter but it does not work.

Example CAll - GET [base]/Condition?_content=(bone OR liver) and metastases

This request should return all Condition resources with the word "metastases" and either "bone" or "liver" in the entire resource content.

Any help on how to search with _content along with logical operations such as AND, OR etc. would be much appreciated.

Saurav
  • 13
  • 2

1 Answers1

3

Condition?_content=bone,liver&_content=metastases

"," gives or and & gives and. There's no support for brackets unless you use _filter, which gives you a whole query language, but isn't yet widely supported.

Lloyd McKenzie
  • 6,345
  • 1
  • 13
  • 10
  • actually, this is a special case. What the spec says about this parameter is that how it is interpreted is up to the implementer - and the one above is given as a possible example – Grahame Grieve Mar 06 '19 at 21:26