StructureDefinition-UKCore-MessageHeader

Canonical_URLCurrent_VersionLast_UpdatedDescription
https://fhir.hl7.org.uk/StructureDefinition/UKCore-MessageHeader2.3.02023-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.

eventCodingCoding
eventUriuri
nameΣ0..1string
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
endpointΣ1..1url
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
nameΣ0..1string
softwareΣ0..1string
versionΣ0..1string
contactΣ I0..1ContactPoint
endpointΣ1..1url
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
reasonΣ0..1CodeableConcept
identifierΣ1..1id
codeΣ1..1codeBinding
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
referenceΣ I0..1string
typeΣ0..1uriBinding
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ0..1string
periodΣ I0..1Period
assignerΣ I0..1Reference(UK Core Organization)
displayΣ0..1string
definitionΣ0..1canonical(MessageDefinition)

Table View

MessageHeader..
MessageHeader.event[x]..
MessageHeader.destination..
MessageHeader.destination.targetReference(UK Core Device)..
MessageHeader.destination.target.identifier..
MessageHeader.destination.target.identifier.assignerReference(UK Core Organization)..
MessageHeader.destination.receiverReference(UK Core Organization | UK Core Practitioner | UK Core PractitionerRole)..
MessageHeader.destination.receiver.identifier..
MessageHeader.destination.receiver.identifier.assignerReference(UK Core Organization)..
MessageHeader.senderReference(UK Core PractitionerRole | UK Core Organization | UK Core Practitioner)..
MessageHeader.sender.identifier..
MessageHeader.sender.identifier.assignerReference(UK Core Organization)..
MessageHeader.entererReference(UK Core Practitioner | UK Core PractitionerRole)..
MessageHeader.enterer.identifier..
MessageHeader.enterer.identifier.assignerReference(UK Core Organization)..
MessageHeader.authorReference(UK Core Practitioner | UK Core PractitionerRole)..
MessageHeader.author.identifier..
MessageHeader.author.identifier.assignerReference(UK Core Organization)..
MessageHeader.responsibleReference(UK Core Organization | UK Core PractitionerRole | UK Core Practitioner)..
MessageHeader.responsible.identifier..
MessageHeader.responsible.identifier.assignerReference(UK Core Organization)..
MessageHeader.response..
MessageHeader.response.detailsReference(UK Core OperationOutcome)..
MessageHeader.response.details.identifier..
MessageHeader.response.details.identifier.assignerReference(UK Core Organization)..
MessageHeader.focus..
MessageHeader.focus.identifier..
MessageHeader.focus.identifier.assignerReference(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 &#169; 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); 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 &quot;AS IS&quot; 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&#174; FHIR&#174; standard Copyright &#169; 2011+ HL7 The HL7&#174; FHIR&#174; 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 summary
Example 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.

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:


author

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.