Foundation
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v5.0.0:
R5
-
STU
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Responsible Owner: Infrastructure And Messaging Work Group | Standards Status : Informative | Compartments : Device , Practitioner |
ShEx statement for messageheader
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <url.shex> IMPORT <code.shex># ShEx Version 2.2 IMPORT <Uri.shex> IMPORT <Url.shex> IMPORT <Code.shex> IMPORT <Coding.shex> IMPORT <String.shex> IMPORT <Device.shex>IMPORT <string.shex>IMPORT <Patient.shex> IMPORT <Endpoint.shex> IMPORT <Resource.shex>IMPORT <canonical.shex>IMPORT <Canonical.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <ContactPoint.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex>IMPORT <ContactPoint.shex>IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <EventDefinition.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex>IMPORT <PractitionerRole.shex>IMPORT <OperationOutcome.shex> IMPORT <PractitionerRole.shex> IMPORT <SubscriptionTopic.shex> start=@<MessageHeader> AND {fhir:nodeRole [fhir:treeRoot]} # A resource that describes a message that is exchanged between systems <MessageHeader> EXTENDS @<DomainResource> CLOSED {a [fhir:MessageHeader]?; fhir:nodeRole [fhir:treeRoot]?;a [fhir:MessageHeader]?;fhir:nodeRole [fhir:treeRoot]?; fhir:event @<Coding> OR(@<canonical> AND {fhir:link @<EventDefinition> }) ; # Event code or link to # EventDefinition@<Uri> OR (@<Canonical> AND {fhir:l @<EventDefinition> OR @<SubscriptionTopic> }) ; # The real world event that # triggered this messsage fhir:destination @<OneOrMore_MessageHeader.destination>?; # Message destination application(s)fhir:sender @<Reference> AND {fhir:link @<Device> OR @<Organization> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Real world sender of the message fhir:author @<Reference> AND {fhir:link @<Device> OR @<Organization> OR @<Practitioner> OR @<PractitionerRole> ? }?; # The source of the decisionfhir:source @<MessageHeader.source>; # Message source applicationfhir:responsible @<Reference> AND {fhir:link @<Organization> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Final responsibility for eventfhir:reason @<CodeableConcept>?; # Cause of event fhir:response @<MessageHeader.response>?; # If this is a reply to prior message fhir:focus @<OneOrMore_Reference_Resource>?; # The actual content of the messagefhir:definition @<canonical>?; # Link to the definition for thisfhir:definition @<Canonical>?; # Link to the definition for this # message }# Message destination application(s) <MessageHeader.destination> EXTENDS @<BackboneElement> CLOSED { fhir:endpoint @<url> OR (@<Reference> AND {fhir:link @<Endpoint> }) ?; # Actual destination address or # Endpoint resource fhir:name @<string>?; # Name of system fhir:target @<Reference> AND {fhir:link @<Device> ? }?; # Particular delivery destination # within the destination fhir:receiver @<Reference> AND {fhir:link @<Organization> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Intended "real-world" recipient # for the data }# If this is a reply to prior message <MessageHeader.response> EXTENDS @<BackboneElement> CLOSED { fhir:identifier @<Identifier>; # Bundle.identifier of original # messagefhir:code @<code> ANDfhir:code @<Code> AND {fhir:v @fhirvs:response-code}; # ok | transient-error | fatal-errorfhir:details @<Reference> AND {fhir:linkfhir:details @<Reference> AND {fhir:l @<OperationOutcome> ? }?; # Specific list of # hints/warnings/errors } # Message source application <MessageHeader.source> EXTENDS @<BackboneElement> CLOSED {fhir:endpoint @<url> OR (@<Reference> AND {fhir:link @<Endpoint> }) ?; # Actual source address or Endpointfhir:endpoint @<Url> OR (@<Reference> AND {fhir:l @<Endpoint> }) ?; # Actual source address or Endpoint # resourcefhir:name @<string>?; # Name of system fhir:software @<string>?; # Name of software running the system fhir:version @<string>?; # Version of software runningfhir:name @<String>?; # Name of system fhir:software @<String>?; # Name of software running the system fhir:version @<String>?; # Version of software running fhir:contact @<ContactPoint>?; # Human contact for problems fhir:sender @<Reference> AND {fhir:l @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Real world sender of the message }#---------------------- Cardinality Types (OneOrMore) -------------------# Message destination application(s) <MessageHeader.destination> EXTENDS @<BackboneElement> CLOSED { fhir:endpoint @<Url> OR (@<Reference> AND {fhir:l @<Endpoint> }) ?; # Actual destination address or # Endpoint resource fhir:name @<String>?; # Name of system fhir:receiver @<Reference> AND {fhir:l @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # Intended "real-world" recipient # for the data } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_MessageHeader.destination> CLOSED { rdf:first @<MessageHeader.destination> ; rdf:rest [rdf:nil] OR @<OneOrMore_MessageHeader.destination> } <OneOrMore_Reference_Resource> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Resource> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> } #---------------------- Value Sets ------------------------ # The kind of response to a message. fhirvs:response-code ["ok" "transient-error" "fatal-error"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R5
hl7.fhir.core#5.0.0
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Sun,
Mar
26,
2023
15:25+1100.
Mon,
Nov
10,
2025
15:22+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R4B
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change