_text & _content

Full Text search by Narrative or Resource content

Also at your disposal full-text-search by resources. It presents with _text - search by narrative and _content - search by remaining resource content.

GET /Patient?_text=John
GET /Patient?_content=New-York

Search results can be sort by rank with _score search-parameter value. More relevant results will be on top but reversed order also supported through - prefix.

GET /Patient?_content=baz&_sort=-_score

Expressions

Full-text search requests supports grouping and logical operations

GET /Patient?_content=(NOT bar OR baz) AND foo

If you wanna search by the phrase - just quote it

GET /Patient?_content="Mad Max"

Full-text search - a difficult query for the system. To improve performance you can omit the number of entries in the results - use _total=none. More information in _total ( _countMethod ).