Status
The status resource returns information about whether the patient has a careplan, and when the careplan was last changed.
Authorization
The endpoint requires either a machin-to-machine token or a HelseID user token for authentication. The EPJ can use a machine-to-machine token to check if the patient has a care plan and if there has been updates without requiring the user to log in with HelseID.
Note that when a machine-to-machine token is used there are fewer required headers than with a user token.
When a user token is used all the required headers must be set as usual.
Input
| Felt | Format |
|---|---|
| nin | Fødselsnr |
Response
| Felt | Format | Beskrivelse |
|---|---|---|
| activeCarePlan | booleam | True = has active careplan, False = has none (active) careplan. |
| lastChangedDateTime | DateTime | Null if no careplan, otherwise time of when the careplan was last changed. |
Response example
{
"activeCarePlan": true,
"lastChangedDateTime": "2023-01-07T10:52:17.3133333+01:00",
}