- This version of the UK Core is for C&TA Sprint 7 Review.
- This version is not suitable for implementation. Other versions are available on the UK Core Version History Guide
- Please follow the guidance on the Contact Us page if you need any assistance.
- A summary of changes is available on the STU3 Sequence Change Log
StructureDefinition-UKCore-MessageHeader
Canonical_URL | Current_Version | Last_Updated | Description |
---|---|---|---|
https://fhir.hl7.org.uk/StructureDefinition/UKCore-MessageHeader | 2.3.0 | 2023-04-28 | This profile defines the UK constraints and extensions on the International FHIR resource MessageHeader. |
Profile_Purpose |
---|
This profile carries the header data for a message exchange that is either requesting or responding to an action. |
Table View
MessageHeader | .. | |
MessageHeader.event[x] | .. | |
MessageHeader.destination | .. | |
MessageHeader.destination.target | Reference(UK Core Device) | .. |
MessageHeader.destination.target.identifier | .. | |
MessageHeader.destination.target.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.destination.receiver | Reference(UK Core Organization | UK Core Practitioner | UK Core PractitionerRole) | .. |
MessageHeader.destination.receiver.identifier | .. | |
MessageHeader.destination.receiver.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.sender | Reference(UK Core PractitionerRole | UK Core Organization | UK Core Practitioner) | .. |
MessageHeader.sender.identifier | .. | |
MessageHeader.sender.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.enterer | Reference(UK Core Practitioner | UK Core PractitionerRole) | .. |
MessageHeader.enterer.identifier | .. | |
MessageHeader.enterer.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.author | Reference(UK Core Practitioner | UK Core PractitionerRole) | .. |
MessageHeader.author.identifier | .. | |
MessageHeader.author.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.responsible | Reference(UK Core Organization | UK Core PractitionerRole | UK Core Practitioner) | .. |
MessageHeader.responsible.identifier | .. | |
MessageHeader.responsible.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.response | .. | |
MessageHeader.response.details | Reference(UK Core OperationOutcome) | .. |
MessageHeader.response.details.identifier | .. | |
MessageHeader.response.details.identifier.assigner | Reference(UK Core Organization) | .. |
MessageHeader.focus | .. | |
MessageHeader.focus.identifier | .. | |
MessageHeader.focus.identifier.assigner | Reference(UK Core Organization) | .. |
XML View
<StructureDefinition xmlns="http://hl7.org/fhir"> <id value="UKCore-MessageHeader" /> <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-MessageHeader" /> <version value="2.3.0" /> <name value="UKCoreMessageHeader" /> <title value="UK Core MessageHeader" /> <status value="active" /> <date value="2023-04-28" /> <publisher value="HL7 UK" /> <contact> <name value="HL7 UK" /> <telecom> <system value="email" /> <value value="ukcore@hl7.org.uk" /> <use value="work" /> <rank value="1" /> </telecom> </contact> <description value="This profile defines the UK constraints and extensions on the International FHIR resource [MessageHeader](https://hl7.org/fhir/R4/MessageHeader.html)." /> <purpose value="This profile carries the header data for a message exchange that is either requesting or responding to an action." /> <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." /> <fhirVersion value="4.0.1" /> <mapping> <identity value="v2" /> <uri value="http://hl7.org/v2" /> <name value="HL7 v2 Mapping" /> </mapping> <mapping> <identity value="rim" /> <uri value="http://hl7.org/v3" /> <name value="RIM Mapping" /> </mapping> <mapping> <identity value="w5" /> <uri value="http://hl7.org/fhir/fivews" /> <name value="FiveWs Pattern Mapping" /> </mapping> <kind value="resource" /> <abstract value="false" /> <type value="MessageHeader" /> <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MessageHeader" /> <derivation value="constraint" /> <differential> <element id="MessageHeader.event[x]"> <path value="MessageHeader.event[x]" /> <binding> <strength value="example" /> <description value="Message event" /> <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-MessageEvent" /> </binding> </element> <element id="MessageHeader.destination.target"> <path value="MessageHeader.destination.target" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device" /> </type> </element> <element id="MessageHeader.destination.target.identifier.assigner"> <path value="MessageHeader.destination.target.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.destination.receiver"> <path value="MessageHeader.destination.receiver" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> </type> </element> <element id="MessageHeader.destination.receiver.identifier.assigner"> <path value="MessageHeader.destination.receiver.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.sender"> <path value="MessageHeader.sender" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> </type> </element> <element id="MessageHeader.sender.identifier.assigner"> <path value="MessageHeader.sender.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.enterer"> <path value="MessageHeader.enterer" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> </type> </element> <element id="MessageHeader.enterer.identifier.assigner"> <path value="MessageHeader.enterer.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.author"> <path value="MessageHeader.author" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> </type> </element> <element id="MessageHeader.author.identifier.assigner"> <path value="MessageHeader.author.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.responsible"> <path value="MessageHeader.responsible" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" /> </type> </element> <element id="MessageHeader.responsible.identifier.assigner"> <path value="MessageHeader.responsible.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.response.details"> <path value="MessageHeader.response.details" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-OperationOutcome" /> </type> </element> <element id="MessageHeader.response.details.identifier.assigner"> <path value="MessageHeader.response.details.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> <element id="MessageHeader.focus.identifier.assigner"> <path value="MessageHeader.focus.identifier.assigner" /> <type> <code value="Reference" /> <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" /> </type> </element> </differential> </StructureDefinition>
JSON View
{ "resourceType": "StructureDefinition", "id": "UKCore-MessageHeader", "url": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MessageHeader", "version": "2.3.0", "name": "UKCoreMessageHeader", "title": "UK Core MessageHeader", "status": "active", "date": "2023-04-28", "publisher": "HL7 UK", "contact": [ { "name": "HL7 UK", "telecom": [ { "system": "email", "value": "ukcore@hl7.org.uk", "use": "work", "rank": 1 } ] } ], "description": "This profile defines the UK constraints and extensions on the International FHIR resource [MessageHeader](https://hl7.org/fhir/R4/MessageHeader.html).", "purpose": "This profile carries the header data for a message exchange that is either requesting or responding to an action.", "copyright": "Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html.", "fhirVersion": "4.0.1", "mapping": [ { "identity": "v2", "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping" }, { "identity": "rim", "uri": "http://hl7.org/v3", "name": "RIM Mapping" }, { "identity": "w5", "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping" } ], "kind": "resource", "abstract": false, "type": "MessageHeader", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MessageHeader", "derivation": "constraint", "differential": { "element": [ { "id": "MessageHeader.event[x]", "path": "MessageHeader.event[x]", "binding": { "strength": "example", "description": "Message event", "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-MessageEvent" } }, { "id": "MessageHeader.destination.target", "path": "MessageHeader.destination.target", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device" ] } ] }, { "id": "MessageHeader.destination.target.identifier.assigner", "path": "MessageHeader.destination.target.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.destination.receiver", "path": "MessageHeader.destination.receiver", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" ] } ] }, { "id": "MessageHeader.destination.receiver.identifier.assigner", "path": "MessageHeader.destination.receiver.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.sender", "path": "MessageHeader.sender", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" ] } ] }, { "id": "MessageHeader.sender.identifier.assigner", "path": "MessageHeader.sender.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.enterer", "path": "MessageHeader.enterer", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" ] } ] }, { "id": "MessageHeader.enterer.identifier.assigner", "path": "MessageHeader.enterer.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.author", "path": "MessageHeader.author", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" ] } ] }, { "id": "MessageHeader.author.identifier.assigner", "path": "MessageHeader.author.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.responsible", "path": "MessageHeader.responsible", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole", "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" ] } ] }, { "id": "MessageHeader.responsible.identifier.assigner", "path": "MessageHeader.responsible.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.response.details", "path": "MessageHeader.response.details", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-OperationOutcome" ] } ] }, { "id": "MessageHeader.response.details.identifier.assigner", "path": "MessageHeader.response.details.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] }, { "id": "MessageHeader.focus.identifier.assigner", "path": "MessageHeader.focus.identifier.assigner", "type": [ { "code": "Reference", "targetProfile": [ "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" ] } ] } ] } }
Examples
Discharge Summary - An example to illustrate a message header for a discharge summaryExample UKCore-MessageHeader-Discharge
Extension-ResponseRequest - An example to illustrate the HL7 extension ResponseRequest.
Example UKCore-Extension-ResponseRequest
Usage
This Profile has the following derived profiles:This Profile is referenced in the following Extensions:
This Profile is referenced in the following Profiles:
Profile Specific Implementation Guidance:
Minimum Viable Content
A minimum viable content that all provider and consumer systems SHALL support are the following elements.
Element | Reason |
---|---|
MessageHeader.event[x] |
Code for the event this message represents or link to event definition |
MessageHeader.destination |
The destination application which the message is intended for. |
MessageHeader.sender |
Real world sender of the message |
MessageHeader.source |
The source application from which this message originated. |
MessageHeader.focus |
The actual content of the message |
Extensions
More information about the extensions can be found using the links below.
Important note regarding the extension messageheader-response-request
in the HL7 Core-defined Extensions.
This extension is defined as having a root conformance of 1..1 which mandates the use of the extension if added to any profile. This is an error and has been amended in R5 but will not be updated in R4. Therefore this extension is not hardcoded in the profile as this is not the desired behaviour.
Extension | Context | Link | Comment |
---|---|---|---|
messageheader-response-request | MessageHeader | Core-defined Extension messageheader-response-request | This is a HL7 Core-defined extension that is used to indicate the response required to a message. |
Bindings (differential)
More information about the bindings to UK Core ValueSets can be found below.
Context | Strength | Link |
---|---|---|
MessageHeader.event | Example | ValueSet UKCore-MessageEvent |
destination
The resource referenced in MessageHeader.destination.target
SHALL conform to the Profile UKCore-Device.
The resource referenced in MessageHeader.destination.receiver
SHALL conform to one of the following:
sender
The referenced resource SHALL conform to one of the following:
enterer
The referenced resource SHALL conform to one of the following:
responsible
The resource being referenced SHALL conform to one of the following:
response
The resource referenced in MessageHeader.response.details
SHALL conform to the Profile UKCore-OperationOutcome
focus
Where a UK Core profile exists the resource being referenced SHALL conform to the profile.