For a full list of available versions, see the Directory of published versions
The Search Provenance interaction allows OH Systems to retrieve a collection of Provenence resources.
Search Provenance Request
The Search Provenance interaction shall retrieve all Provenance resources from the repository that match search criteria.
GET [base]/Provenance?search_parameter=[PARAMETER_ID]
A subset of standard Provenance search parameters includes the following:
Search Provenance Response
The server returns a 200 OK HTTP status code.
The response bodfy contains FHIR Resource Type: Bundle (type = searchset)
Each entry.resource is a Provenence that matches the provided search parameter(s).
4.3.2.
4.3.3. Search Provenance Request:
Below is an example of Search Provenance request with multiple search parameters
GET [base]/Provenance?
target=Observation/98765&
recorded=ge2024-01-01&
agent=Practitioner/456
Accept: application/fhir+json
Additional Search examles:
GET [base]/Provenance?entity:identifier=urn:ietf:rfc:3986|urn:uuid:bd5648e0-3e5c-4414-95a9-fbdad630eddf&_include=Provenance:target
GET [base]/Provenance?recorded=2025-06-11&agent:identifier=http://ehealthontario.ca/fhir/NamingSystem/id-oneid-clientid|98765&_include=Provenance:target
GET [base]/Task?authored-on=2025-06-12&business-status=error&_include=Task:reason-reference&_revinclude=Provenance:target
POST method can be used when search parameters are too complex or long for a URL (e.g., long queries or special characters). Parameters are passed in the body as application/x-www-form-urlencoded.
POST [base]/Provenance/_search
Content-Type: application/x-www-form-urlencoded
Accept: application/fhir+json
Search Provenence Response:
Sample of the Search Provenance response is provided in the Examples section.
| HTTP Status | Reason | Description |
|---|---|---|
| 400 | Missing or invalid search parameter | The required search parameter is not valid. |
| 401 | Unauthorized | Request is missing a valid access token. |
| 500 | Internal Server Error | A server-side error occurred. |