hl7-fhirdstu2-fhirhapi-fhir

FHIR search multiple words with _content


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.


Solution

  • 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.