Skip to main content
GET
System-Level Search
Search across all resource types in the system.

Endpoint

Use GET for simple searches with query parameters, or POST for complex searches with a search body.

GET Request

Search using query parameters:

POST Request

Search using a search body for complex queries:

Search Parameters

Common Parameters

  • _count - Maximum number of results (default: 10)
  • _sort - Sort order (e.g., -_lastUpdated for descending)
  • _summary - Summary mode (true, text, data, count)
  • _total - Include total count (none, estimate, accurate)
  • _type - Filter by resource types (comma-separated)
  • _lastUpdated - Filter by last updated date

Example

Response

Success (200 OK)

Returns a Bundle containing search results:

Pagination

Use _offset and _count for pagination:
The response includes next and previous links when available.

Notes

  • System-level search can be resource-intensive
  • Use _type to limit the search to specific resource types
  • Results are sorted by relevance or the specified _sort parameter
  • The total count may be an estimate for performance reasons

Authorizations

Authorization
string
header
required

Bearer token authentication

Query Parameters

_count
integer
default:10

Maximum number of results to return

Required range: x >= 0
_sort
string

Sort order (prefix with - for descending)

_summary
enum<string>

Summary mode

Available options:
true,
text,
data,
count
_total
enum<string>

Include total count

Available options:
none,
estimate,
accurate
_type
string

Filter by resource types (comma-separated)

_lastUpdated
string

Filter by last updated date

Response

Search results

A container for a collection of resources

resourceType
enum<string>
required

Resource type

Available options:
Bundle
type
enum<string>
required

Indicates the purpose of this bundle

Available options:
document,
message,
transaction,
transaction-response,
batch,
batch-response,
history,
searchset,
collection
total
integer

If search, the total number of matches

Links related to this Bundle

entry
object[]

Entry in the bundle