NZ Shared Digital Health Record API
0.3.0 - draft

NZ Shared Digital Health Record API - Local Development build (v0.3.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Data Models

FHIR Data Models

This section provides an overview of the design of the FHIR data representations that authorised applications can use to record and interchange shared digital health record information.

Overview

Shared Digital Health Record - FHIR data model Core Data Services Te Whatu Ora NHI/HPI Notes «Encounter»SDHR:EncounterRepresents a SDHR encounterhttps://fhir-ig.digital.health.nz/sdhr/StructureDefinition-SDHREncounter.htmlInherits FHIREncountermeta.source:1..1"https://api.hip.digital.health.nz/fhir/Location/{hpi-facilityid}}"meta.profile:1..1"https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHREncounter"identifier:1..**identifier[*].system: "https://standards.digital.health.nz/ns/health-record-key-id"*identifier[*].value": "health-record-key-id"status:1..1Binding: EncounterStatusclass:1..1Binding: ActEncounterCode (extensible)subject:1..1Reference NHI Patient «Condition»SDHR:ConditionRepresents a SDHR conditionhttps://fhir-ig.digital.health.nz/sdhr/StructureDefinition-SDHRCondition.htmlInherits FHIRConditionmeta.source:1..1"https://api.hip.digital.health.nz/fhir/Location/{hpi-facilityid}}"meta.profile:1..1"https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRCondition"identifier:1..**identifier[*].system: "https://standards.digital.health.nz/ns/health-record-key-id"*identifier[*].value" : "health-record-key-id"extension:1..*extentension[*].url: "http://hl7.org.nz/fhir/StructureDefinition/long-term-condition"extension[*].valueBoolean: boolean true|falseclinicalStatus:1..1Binding: ConditionClinicalStatusCodes (required)verificationStatus:1..1Binding: ConditionVerificationStatus (required)code: Binding:1..1Multiple bindings e.g. SNOMED CT, ReadCodes, MIMSsubject:1..1Reference NHI PatientonsetDateTime:0..1PreferredrecordedDateTime:0..1Preferredrecorder:0..1Reference Practitioner (preferred)asserter:1..1Reference Practitioner «AllergyIntolerance»SDHR:AllergyIntoleranceRepresents a SDHR allergy intolerancehttps://fhir-ig.digital.health.nz/sdhr/StructureDefinition-SDHRAllergyIntolerance.htmlInherits FHIRAllergyIntolerancemeta.source:1..1"https://api.hip.digital.health.nz/fhir/Location/{hpi-facilityid}}"meta.profile:1..1"https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRAllergyIntolerance"identifier:1..**identifier[*].system: "https://standards.digital.health.nz/ns/health-record-key-id"*identifier[*].value" : "health-record-key-id"clinicalStatus:1..1Binding: AllergyIntoleranceClinicalStatus (required)verificationStatus:1..1Binding: AllergyIntoleranceVerificationStatus (required)code:1..1Binding: Multiple bindings e.g. SNOMED CT, ReadCodes, MIMSsubject:1..1Reference NHI Patientcategory:0..*Binding: AllergyIntoleranceCategory (preferred)recordedDateTime: 0..1 (preferred)recorder: 0..1 Reference Practitioner (preferred) «Observation»SDHR:ObservationRepresents a SDHR observationhttps://fhir-ig.digital.health.nz/sdhr/StructureDefinition-SDHRObservation.htmlInherits FHIRObservationmeta.source:1..1"https://api.hip.digital.health.nz/fhir/Location/{hpi-facilityid}}"meta.profile:1..1"https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRObservation"identifier:1..**identifier[*].system: "https://standards.digital.health.nz/ns/health-record-key-id"*identifier[*].value" : "health-record-key-id"code: Binding: Multiple bindings e.g. SNOMED CT, ReadCodes, MIMSsubject: Reference NHI PatienteffectiveDateTime: Preferredvalue[x]: Binding: Multiple bindings e.g. SNOMED CT, ReadCodes, MIMSinterpretation: Binding: ObservationInterpretation (extensible)status: Binding: ObservationStatus (required) «Reference»Patient (NHI)logical id: NHI «Reference»HPIorg identifier formatGXXNNN-CHPI Org Id  NotesThe following resources are sourced from primary care systems:- AllergyIntolerance- Condition- Encounter- ObservationThe following resources are existing national data services:- Immunization (AIR)- Patient (NHI)- Practitioner/Organizaion/Location (HPI)- MedicationRequest/MedicationDispense (MDR)  Coding/Terminology:In some cases an attempt may be made to map a sourcecode to a standard code such as read code --> SNOMEDCT.In these scenarios the "source" code will always be preservedand marked as "user selected".e.g.{"code" : {"coding" : [{"system" : "http://snomed.info/sct","code" : "373784005","display" : "Penicillin allergy","userSelected" : false},{"system" : "http://mims.co.nz","code" : "m00286","display" : "Penicillins","userSelected" : true}]}} subject participant subject recorder | asserter subject recorder subject performer Notes- (preferred) indicates that whilst not mandatory it highly desirable. Key to datatype colourscolourstereotype ghost white Standard FHIR resource in TWO IG salmon Profiled FHIR resource orange red Canonical shared resource defined by TWO sky blue Logical identifier reference to records in national systemsHealth NZ/Te Whatu Ora. Generated from PlantUML source on 10/03/2025