🥼 Examples of calls to the Pasientens rekvisisjoner (PaRek) API (TEST environments)
This page shows examples of API calls to Pasientens rekvisisjoner (PaRek).
🚨 Please note that PaRek is under development, and the examples may not be up-to-date.
Note: This is a selection of example queries to support developers in the startup phase.
📅 Last updated April 24, 2026
🛠 Basic
🌐 Base URL and API versions
Base URLs and versioning available for our API can be found on the environments and base URLs page.
📬 Headers
Depending on the base URL used, see
- HelseID authorization for headers used with HelseID authorization; or
- No authorization for headers used with no authorization (backdoor base URL only).
📦 Body
no-body or application/fhir+json
🌐 OpenAPI
To find examples and more info of the API and versions, see OpenAPI with Swagger.
📊 Metadata Endpoint
Note: The metadata endpoint does not require authentication in any environment.
🔗 Endpoint
GET <base-url>/<api-version>/metadata
📄 Description
Returns metadata about the PaRek FHIR API, including:
- Capabilities statement
- Supported resources
- Conformance information
📬 Headers
none
📦 Body
no-body
AMQP - Example Payload
{
"EventId": "97ed8d92-9666-4789-9e60-e627b5ff9422",
"EventType": "SpecimenCollected",
"CollectedTime": "2026-04-24T14:30:00Z",
"SpecimenId": "d084a30f-020c-43cb-823f-ed677691e00a",
"ExternalRequisitionId": "urn:uuid:90ed4523-ff22-4aa4-adcd-5c38937c743f",
"ExternalDeviceId": "ABC123",
}