Search critical information records for a patient

A HelseId token is required to authorize the user.

Curl example: Find all the latest critical information records for a patient using GET

curl --location --request GET 'https://test1.critical-information.hit.nhn.no/api/critical-information/v1/Patient/$everything' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiI......<HelseId token>' \
--header 'Content-Type: application/fhir+json; charset=UTF-8' \
--header 'Accept: application/fhir+json' \
--header 'hit-user-role: %7B%0A++++%22system%22%3A+%22urn%3Aoid%3A2.16.578.1.12.4.1.1.9060%22%2C%0A++++%22code%22%3A+%22LE%22%0A%7D' \
--header 'hit-access-basis: SAMTYKKE' \
--header 'hit-source-system: My system name' \
--header 'hit-patient-pid: 10086055555'

Curl example: Find critical information records for a patient using POST

To be implemented.