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 'nhn-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 'nhn-access-basis: SAMTYKKE' \
--header 'nhn-source-system: My system name' \
--header 'nhn-patient-nin: 10086055555'

Response example

{
  "resourceType": "Bundle",
  "type": "searchset",
  "entry": [
    {
      "resource": {
        "resourceType": "AllergyIntolerance",
        "id": "d48a2a38-6a2f-4468-a3ae-5a412a31be2c",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2025-01-09T10:00:10.982+00:00",
          "profile": [
            "http://nhn.no/kj/fhir/StructureDefinition/KjAllergyIntolerance"
          ]
        },
        "contained": [
          {
            "resourceType": "PractitionerRole",
            "id": "recorderRef",
            "practitioner": {
              "identifier": {
                "system": "urn:oid:2.16.578.1.12.4.1.4.4",
                "value": "222200063"
              },
              "display": "Fos Perez, Jack"
            },
            "organization": {
              "identifier": {
                "system": "urn:oid:2.16.578.1.12.4.1.4.101",
                "value": "100100223"
              },
              "display": "Andeby Legevakt"
            },
            "code": [
              {
                "coding": [
                  {
                    "system": "http://nhn.no/kj/fhir/CodeSystem/CategoriesOfHealthProfessionals",
                    "code": "LE",
                    "display": "Lege"
                  }
                ]
              }
            ]
          }
        ],
        "extension": [
          {
            "url": "http://nhn.no/kj/fhir/StructureDefinition/KjSourceOfInformation",
            "valueCoding": {
              "system": "http://nhn.no/kj/fhir/CodeSystem/SourceOfInformation",
              "code": "1",
              "display": "Resultat av tester / analyser"
            }
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
              "code": "active",
              "display": "Active"
            }
          ]
        },
        "verificationStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
              "code": "confirmed",
              "display": "Confirmed"
            }
          ]
        },
        "category": [
          "medication"
        ],
        "criticality": "low",
        "code": {
          "extension": [
            {
              "url": "http://nhn.no/kj/fhir/StructureDefinition/KjInactiveIngredient",
              "valueBoolean": true
            }
          ],
          "coding": [
            {
              "system": "http://nhn.no/kj/fhir/CodeSystem/DrugTradeName",
              "code": "ID_6EBD25FE-5E86-4733-B4BA-8810D010876E",
              "display": "Ibuprox tab",
              "userSelected": true
            },
            {
              "system": "http://nhn.no/kj/fhir/CodeSystem/ActiveSubstance",
              "code": "ID_ECA56300-5E51-4152-913D-A2EA6E83AD72",
              "display": "Ibuprofen",
              "userSelected": false
            },
            {
              "system": "http://nhn.no/kj/fhir/CodeSystem/ATC",
              "code": "M01AE01",
              "display": "Ibuprofen",
              "userSelected": false
            }
          ]
        },
        "patient": {
          "reference": "Patient/13116900216"
        },
        "onsetAge": {
          "value": 78,
          "system": "http://unitsofmeasure.org",
          "code": "a"
        },
        "recordedDate": "1947-03-07T02:00:00+02:00",
        "recorder": {
          "reference": "#recorderRef"
        },
        "note": [
          {
            "text": "Periodisk hendelse."
          }
        ],
        "reaction": [
          {
            "manifestation": [
              {
                "coding": [
                  {
                    "system": "http://nhn.no/kj/fhir/CodeSystem/TypeOfReaction",
                    "code": "2",
                    "display": "Blodtrykksfall"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  ]
}