Skip to end of banner
Go to start of banner

HTTP Header

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The service require an access token from HelseID, see Technical Documentation

Kjernejournal use the Norwegian national identification number (NIN) to specify the patient. The NIN is person sensitiv date and should not be part of the URL, since the URL is typically logged.

Instead kjernejournal require the ticket for the patient from the HelseIndikator service to be put in the “X-kj-ticket field” in the HTTP header.

The header section of the request requires the following parameters to be set:

Parameter

Description

Value

Example

Authorization

HelseId JWT

Bearer <HelseId.bruker.JWT>

Bearer eyJraWQiOiIxMzM3IiwiYWxnIjoiUlMyNT...

X-kj-ticket

Ticket from the HelseIndikator service.

Contains the Patient national identity number

HGhktf877MpMI…

X-EPJ-System

Which EHR the request originated and which version of the system was used

ACME EHR system versjon 42.01

Accept

Parameter for selecting response in json or xml format

application/<format>

application/json or

application/xml

Content-Type

Must be set for POST, PUT

application/fhir+json; charset=UTF-8

Example

GET  https://api.st2.kjernejournal-test.no:8000/v1/fhir/Patient/$everything

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0
Authorization: Bearer eyJraWQiOiIxMzM3IiwiYWxnIjo...
X-EPJ-System: ACME EPJ system versjon 42.01
X-KJ-TICKET: HGhktf8...
  • No labels