📑 Metadata

  • Method: GET or POST
  • URL: <base-url>/metadata
  • Headers: (none required*)
  • Body: (empty)

* Except when using the old Bearer endpoint. See note below.

🚨 For consumers of API v1: Due to a bug, this endpoint requires authorization with HelseID when using API v1. This has been fixed in API v2.

Response

Returns a CapabilityStatement in JSON format which describes the available endpoints, their supported input parameters, and other metadata.

Example

Request:

GET <base-url>/metadata

Response:

{
  "resourceType": "CapabilityStatement",
  "title": "Pasientens Prøvesvar FHIR Server",
  "status": "active",
  "date": "2024-05-23T00:00:00+02:00",
  "contact": [ ... ],
  "jurisdiction": [ ... ],
  "purpose": "Pasientens Prøvesvar collects and makes laboratory results available across the health sector regardless of who ordered the survey and where the test was conducted.",
  "kind": "instance",
  "fhirVersion": "4.0.1",
  "rest": [ ... ]
}