Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| 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 <uri.shex> 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 <String.shex> IMPORT <Device.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]?; fhir:event @<Coding> OR@<uri> OR (@<canonical> AND {fhir:link @<EventDefinition> OR@<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:source @<MessageHeader.source>; # Message source application fhir: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:receiver @<Reference> AND {fhir:link @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # 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 # message fhir:code @<Code> AND {fhir:v @fhirvs:response-code}; # ok | transient-error | fatal-error fhir: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 problemsfhir:sender @<Reference> AND {fhir:linkfhir:sender @<Reference> AND {fhir:l @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Real world sender of the message }# If this is a reply to prior message <MessageHeader.response> EXTENDS @<BackboneElement> CLOSED { fhir:identifier @<Identifier>; # Bundle.identifier of original # message fhir:code @<code> AND {fhir:v @fhirvs:response-code}; # ok | transient-error | fatal-error fhir:details @<Reference> AND {fhir:link @<OperationOutcome> ? }?; # Specific list of # hints/warnings/errors# 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
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Mon,
Nov
10,
2025
12:25+1100.
15:22+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change