This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
Messagedefinition-example.ttl
Example
MessageDefinition/example
(Turtle)
Raw
Turtle
(+
also
see
Turtle/RDF
Format
Specification
)
A
typical
message
definition
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir/MessageDefinition/example> a fhir:MessageDefinition;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "example"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Message definition base example</div>"
];
fhir:MessageDefinition.url [ fhir:value "http://hl7.org/fhir/MessageDefinition/example"];
fhir:MessageDefinition.name [ fhir:value "EXAMPLE"];
fhir:MessageDefinition.title [ fhir:value "Message definition base example"];
fhir:MessageDefinition.status [ fhir:value "draft"];
fhir:MessageDefinition.experimental [ fhir:value "true"^^xsd:boolean];
fhir:MessageDefinition.date [ fhir:value "2016-11-09"^^xsd:date];
fhir:MessageDefinition.publisher [ fhir:value "Health Level Seven, Int'l"];
fhir:MessageDefinition.contact [
fhir:index 0;
fhir:ContactDetail.telecom [
fhir:index 0;
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org" ]
<http://hl7.org/fhir/MessageDefinition/example> a fhir:MessageDefinition ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "example"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Message definition base example</div>"^^rdf:XMLLiteral ]
] ; #
fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
] ;
fhir:value [
a fhir:Code ;
fhir:v "inm"
]
];
fhir:MessageDefinition.purpose [ fhir:value "Defines a base example for other MessageDefinition instances."];
fhir:MessageDefinition.eventCoding [
fhir:Coding.system [ fhir:value "http://example.org/fhir/message-events" ];
fhir:Coding.code [ fhir:value "admin-notify" ]
];
fhir:MessageDefinition.category [ fhir:value "notification"] .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/MessageDefinition/example.ttl> a owl:Ontology;
owl:imports fhir:fhir.ttl;
owl:versionIRI <http://build.fhir.org/MessageDefinition/example.ttl> .
] ) ; #
fhir:url [
fhir:v "http://hl7.org/fhir/MessageDefinition/example"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/MessageDefinition/example>
] ; #
fhir:identifier ( [
fhir:system [
fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
fhir:l <urn:ietf:rfc:3986>
] ;
fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.15.3" ]
] ) ; #
fhir:name [ fhir:v "EXAMPLE"] ; #
fhir:title [ fhir:v "Message definition base example"] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:experimental [ fhir:v true] ; #
fhir:date [ fhir:v "2016-11-09"^^xsd:date] ; #
fhir:publisher [ fhir:v "HL7 International / Infrastructure And Messaging"] ; #
fhir:contact ( [
fhir:telecom ( [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/inm" ]
] )
] ) ; #
fhir:description [ fhir:v "Message definition base example"] ; #
fhir:purpose [ fhir:v "Defines a base example for other MessageDefinition instances."] ; #
fhir:event [
a fhir:Coding ;
fhir:system [
fhir:v "http://example.org/fhir/message-events"^^xsd:anyURI ;
fhir:l <http://example.org/fhir/message-events>
] ;
fhir:code [ fhir:v "admin-notify" ]
] ; #
fhir:category [ fhir:v "notification"] . #
# -------------------------------------------------------------------------------------
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
are
correct
and
useful,
but
they
are
not
a
normative
part
of
the
specification.