This
page
is
part
of
the
FHIR
Specification
(v5.0.0:
R5
-
STU
v6.0.0-ballot1:
Release
6
Ballot
(1st
Draft)
(see
Ballot
Notes
).
This
is
the
The
current
published
version
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
Binary.shex
Raw
ShEx
ShEx
statement
for
binary
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 <code.shex>
IMPORT <Resource.shex>
IMPORT <Reference.shex>
start=@<Binary> AND {fhir:nodeRole [fhir:treeRoot]}
# Pure binary content defined by a format other than FHIR
<Binary> EXTENDS @<Resource> CLOSED {
a [fhir:Binary]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:contentType @<code> AND
{fhir:v @fhirvs:mimetypes}; # MimeType of the binary content
fhir:securityContext @<Reference> AND {fhir:link
@<Resource> ? }?; # Identifies another resource to use
# as proxy when enforcing access
# control
fhir:data @<base64Binary>?; # The actual content
}
#---------------------- Value Sets ------------------------
# This value set includes all possible codes from BCP-13 (see http://tools.ietf.org/html/bcp13)
fhirvs:mimetypes xsd:string #EXTERNAL
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 <code.shex>
IMPORT <Resource.shex>
IMPORT <Reference.shex>
start=@<Binary> AND {fhir:nodeRole [fhir:treeRoot]}
# Pure binary content defined by a format other than FHIR
<Binary> EXTENDS @<Resource> CLOSED {
a [fhir:Binary]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:contentType @<code> AND
{fhir:v @fhirvs:mimetypes}; # MimeType of the binary content
fhir:securityContext @<Reference> AND {fhir:link
@<Resource> ? }?; # Identifies another resource to use
# as proxy when enforcing access
# control
fhir:data @<base64Binary>?; # The actual content
}
#---------------------- Value Sets ------------------------
# This value set includes all possible codes from BCP-13 (see http://tools.ietf.org/html/bcp13)
fhirvs:mimetypes xsd:string #EXTERNAL
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.