Read all the latest records for a given critical information type, e.g. AllergyIntolerance, for a patient.

A HelseId token is required to authorize the user.

Curl example: Read all the latest AllergyIntolerance records for a patient

curl --location --request GET 'https://test1.critical-information.hit.nhn.no/api/critical-information/v1/AllergyIntolerance' \
--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'