FHIR standard reference
The NHS Health Check online service implements theĀ HL7 FHIR R4 (Release 4) specification with conformance to the UK Core FHIR Implementation Guide. This document outlines the standards foundation and conformance requirements.
HL7 FHIR R4 Specification
What is FHIR?
FHIR (Fast Healthcare Interoperability Resources) is a standard for exchanging healthcare information electronically. It combines the best features of HL7's previous standards (v2, v3, CDA) with modern web technologies.
Version information
| Specification | Version |
|---|---|
| HL7 FHIR | R4 (4.0.1) |
| Publication Date | 2019-10-30 |
| Specification URL | https://hl7.org/fhir/R4/ |
Core concepts
Resources
FHIR defines healthcare data as Resources. There are discrete units of exchangeable data. The NHS Health Check online uses the following resource types:
| Resource | UK Core / FHIR Spec Link | Purpose |
|---|---|---|
| Bundle | https://hl7.org/fhir/R4/bundle.html | Container for multiple resources |
| Composition | https://simplifier.net/hl7fhirukcorer4/ukcore-composition | Document structure and sections |
| Encounter | https://simplifier.net/hl7fhirukcorer4/ukcore-encounter | Healthcare interaction |
| Observation | https://simplifier.net/hl7fhirukcorer4/ukcore-observation | Measurements and assertions |
| RiskAssessment | https://hl7.org/fhir/R4/riskassessment.html | Risk predictions |
| DiagnosticReport | https://simplifier.net/hl7fhirukcorer4/ukcore-diagnosticreport | Clinical reports |
| QuestionnaireResponse | https://hl7.org/fhir/R4/questionnaireresponse.html | Answers to questionnaires |
The tagged example bundle uses NHS Health Check-specific profiles, identified by each resource's `meta.profile` element. These profiles add constraints beyond the base FHIR R4 resource definitions; the bundle should be validated against those profiles and their ValueSets, not assumed to conform only to an unprofiled FHIR or UK Core resource.
Data types
Common FHIR data types used in this implementation:
| Data Type | Description | Example |
|---|---|---|
Identifier |
Logical identifier for a resource | NHS Number |
Reference |
Reference to another resource | Encounter/abc-123 |
CodeableConcept |
Coded value with text | SNOMED CT code + display |
Coding |
Single code from a terminology | { system, code, display } |
Quantity |
Measured amount with units | { value: 120, unit: "mmHg" } |
dateTime |
Date and time | 2025-01-14T10:30:00+00:00 |
Period |
Time range | { start, end } |
UK Core FHIR Implementation Guide
Overview
UK Core is the NHS England endorsed FHIR implementation guide that defines UK specific profiles, extensions, and value sets. It ensures consistent FHIR implementations across the UK healthcare system.
Version information
| Specification | Version | Status |
|---|---|---|
| UK Core | STU3 (3.0.0) | Standard for Trial Use |
| Base Specification | FHIR R4 | |
| Simplifier URL | https://simplifier.net/HL7FHIRUKCoreR4 | |
| Implementation Guide | https://simplifier.net/guide/uk-core-implementation-guide-stu3-sequence |
UK Core profile context
The bundle's conformance metadata identifies NHS Health Check-specific profiles (including NHSHC-TransactionBundle, NHSHC-Composition, NHSHC-Encounter, NHSHC-Observation-VitalSigns, and NHSHC-Observation-Laboratory). UK Core profile links below provide background, but they are not substitutes for validating against the profile canonicals in the example bundle's meta.profile.
The following UK Core profiles are relevant as background:
UKCore-Observation
Provides background for Observation elements. The tagged bundle identifies the applicable NHSHC-specific Observation profile in each resource's meta.profile.
Profile: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation
Key conformance points:
statusis required (typicallyfinal)-codemust use appropriate terminology (SNOMED CT, LOINC)-subjectidentifies the patient-effectiveDateTimerecords when the observation was made
UKCore-Encounter
Provides background for Encounter elements. The tagged bundle identifies the NHSHC-specific Encounter profile in meta.profile.
Profile: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter
Key conformance points:
statusindicates the encounter state-classuses HL7 ActCode (e.g.,VRfor virtual)-typedescribes the encounter type-subjectidentifies the patient
UKCore-Composition
Provides background for Composition elements. The tagged bundle identifies the NHSHC-specific Composition profile in meta.profile.
Profile: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Composition
Key conformance points:
typeidentifies the document type-sectionorganises content-subjectandauthorare required
UK Core code systems
The following UK Core code systems are used:
UKCore-RecordStandardHeadings
Used for Composition section headings.
System: https://fhir.hl7.org.uk/CodeSystem/UKCore-RecordStandardHeadings
| Code | Display |
|---|---|
observations |
Observations |
social-context |
Social context |
clinical-risk-assessment |
Clinical risk assessment |
FHIR RESTful API
Transaction bundles
The NHS Health Check online transmits data as a FHIR Transaction Bundle. This is an atomic operation where all resources are processed together.
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:...",
"resource": { ... },
"request": {
"method": "PUT",
"url": "ResourceType/id"
}
}
]
}
HTTP methods
| Method | Usage | Idempotent |
|---|---|---|
PUT |
Create or update a resource | Yes |
Conditional operations
The implementation uses conditional create to ensure idempotency:
{
"request": {
"method": "PUT",
"url": "Observation/abc-123",
"ifNoneMatch": "*"
}
}
The ifNoneMatch: "*" header indicates the resource should only be created if it does not already exist.
Conformance requirements
Must Support elements
Elements marked as "Must Support" in UK Core profiles must be:
- Populated if the data is available- Understood by receiving systems
Required vs optional
| Cardinality | Meaning |
|---|---|
1..1 |
Required, exactly one |
0..1 |
Optional, at most one |
0..* |
Optional, any number |
1..* |
Required, at least one |
Edit this page on GitHub