Change or update the alert information for a patient

Change or update the national alert information for a patient

Request

Kjernejournal uses the Norwegian national identification number (NIN) to specify the patient. The NIN is a person’s sensitive data and should not be part of any URL since URLs are typically logged.

Instead, kjernejournal requires the ticket for a patient from the HelseIndikator service to be put inside HTTP header. See HTTP Header.

All fields must be set. And it applies to the fields that are not changed.

If a record is a duplicate, the verificationStatus = "entered-in-error" shall be used. This will ensure that duplicate information is not displayed to the user.

If the information in the record is no longer valid, the verificationStatus = "refuted" shall be used. This will ensure that the history of changes is updated and accessible for later usage.

The meta.versionId must be the latest version of the resource. If not, the update will fail. This is to ensure that it is the current version of the alert information that is changed.

 

URL /v1/fhir/Patient

Put <host>/v1/fhir/<FHIR resource>/<resource id>

PUT https://api.st3.kjernejournal-test.no:8000/v1/fhir/AllergyIntolerance/fd687449-d569-4eab-b5d7-e1339addb517

Example

{ "resourceType": "AllergyIntolerance", "id": "fd687449-d569-4eab-b5d7-e1339addb517", "meta": { "versionId": "1", "lastUpdated": "2021-03-21T13:05:39.773+01:00", "profile": [ "http://nhn.no/kj/fhir/StructureDefinition/KjAllergyIntolerance" ] }, "contained": [ { "resourceType": "PractitionerRole", "id": "updaterRef", "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.2.101", "value": "100100223" }, "display": "Andeby Legevakt" }, "code": [ { "coding": [ { "system": "http://nhn.no/kj/fhir/CodeSystem/CategoriesOfHealthProfessionals", "code": "LE" } ] } ] }, { "resourceType": "PractitionerRole", "id": "recorderRef", "practitioner": { "identifier": { "system": "urn:oid:2.16.578.1.12.4.1.4.4", "value": "222200068" }, "display": "Ben Psa Reddik" }, "organization": { "identifier": { "system": "urn:oid:2.16.578.1.12.4.1.2.101", "value": "100100223" }, "display": "Andeby Legevakt" }, "code": [ { "coding": [ { "system": "http://nhn.no/kj/fhir/CodeSystem/CategoriesOfHealthProfessionals", "code": "LE" } ] } ] } ], "extension": [ { "url": "http://nhn.no/kj/fhir/StructureDefinition/KjSourceOfInformation", "valueCoding": { "system": "http://nhn.no/kj/fhir/CodeSystem/SourceOfInformation", "code": "1" } }, { "url": "http://nhn.no/kj/fhir/StructureDefinition/KjUpdater", "valueReference": { "reference": "#updaterRef" } }, { "url": "http://nhn.no/kj/fhir/StructureDefinition/KjUpdatedDateTime", "valueDateTime": "2021-03-21T13:05:39+01:00" } ], "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": { "coding": [ { "system": "http://nhn.no/kj/fhir/CodeSystem/DrugTradeName", "code": "ID_4A56CC12-0B42-4C5D-B422-DF5760F1CED7" } ] }, "patient": { "reference": "patient/13116900216" }, "onsetAge": { "value": 3, "unit": "years", "system": "http://unitsofmeasure.org", "code": "a" }, "recordedDate": "2021-03-02T00:00:00+01:00", "recorder": { "reference": "#recorderRef" }, "reaction": [ { "manifestation": [ { "coding": [ { "system": "http://nhn.no/kj/fhir/CodeSystem/TypeOfReaction", "code": "14", "display": "Nyresvikt/redusert nyrefunksjon" } ] } ] } ] }

Response

If the update is successful, the resource id is returned.

Example

https://ttr1kj-cmplb-3.test.ld.nhn.no:7000/v1/fhir/AllergyIntolerance/1ae7db24-f26e-4182-8754-b4ee2e022d54/_history/2

 

© Norsk helsenett - kjernejournal