...
Output in case of successful request:
Info |
---|
The response will contain several other fields - only the fields relevant for portal integration are described here. |
Field | Location | Description |
---|
status | Body | One of the following values: 0 : The patient identifier is not a valid Norwegian national identity number
1 : The patient do not have kjernejournal
2 : Kjernejournal is available
3 : Patient has filled in health information (illness history, communication issues)
4 : Attention: The patient has critical information registered in kjernejournal
Is to be used to determine what icon should be shown to the user. | sistEndretKritiskInfoDato | Body | Timestamp for last change in information for patients with status 4. Only present if the status is 4. |
returTekst | Body | Description of the response status. Is to be used in the tooltip of the icon. |
ticket | Body | An opaque string which represents: Is to be used in the subsequent opening of the portal. Only present if the status is 2 or higher. |
X-EVENT-ID | Header | The ID of the request in kjernejournal. Can be used for debugging and correlation between the systems. |
...
Code Block |
---|
HTTP/1.1 200 OK
Cache-Control: no-cache, must-revalidate, private, s-maxage=0
Pragma: no-cache
X-EVENT-ID: Id-513f826053dfa2c6dc91b8dsa
Content-Type: application/json
{
"returTekstsistEndretKritiskInfoDato": "OBS: Kritisk informasjon i kjernejournal",
"sistEndretKritiskInfoDato2022-05-18T11:01:55.000Z",
"ticket": "w/OS6pXpOyLvR1Cftz6sYFM1P8n7ur3upMvSPJoICpPlpmbw1C05wzboY+7n+2ie",
"sistEndretKritiskInfo": [
{
"kategori": "OVER_REAK",
"sistEndret": "20172022-1105-29T1618T11:3501:19.003Z"55.000Z"
}
],
"sperringDetaljer": [],
"status": 4,
"returTekst"ticket: "OBS: Kritisk informasjon i kjernejournal"ca2gveFcW%2BdZqO2Fx7EG773Lh0TUvO2gtz45gQCbbUrKpXBJf8yS3ROacFn%2Bq"
}
|
|
Failed response example:
Code Block |
---|
HTTP/1.1 403 FORBIDDEN
Cache-Control: no-cache, must-revalidate, private, s-maxage=0
Pragma: no-cache
X-EVENT-ID: Id-543f826025992c6dc91b8dsa
Content-Type: application/json
{
"status" : 403,
"utviklermelding" : "Organisasjonsnummeret finnes ikke i kjernejournal",
"brukermelding" : "Virksomheten har ikke tilgang til kjernejournal (KJF-000226)",
"feilkode" : "KJF-000226"
} |
|
...