Skip to main content

Search System

The FHIR system-level search operation allows you to search across all resource types on the FHIR server. This is done using an HTTP GET request to the root endpoint with query parameters.

Search across all resource types using the Haste Health CLI:

haste-health api search-system "_type=Patient,Observation&_lastUpdated=ge2025-01-01"

This command searches for Patient and Observation resources updated on or after January 1, 2025.

You can also perform a system-level search without parameters:

haste-health api search-system

Replace [tenant] with your tenant name and [project] with your project ID.

Error Handling

If there are any issues with the request (e.g., invalid search parameters), the server will respond with an appropriate error status code and include an OperationOutcome resource in the response body.

HTTP/1.1 400 Bad Request
Content-Type: application/fhir+json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "Invalid search parameter: unknown_param"
}
]
}