Release 5 FHIR CI-Build

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

Binary.shex

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Standards Status : Informative Compartments : No defined compartments

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>

# ShEx Version 2.2
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]?;

    a [fhir:Binary]?;
    fhir:nodeRole [fhir:treeRoot]?;
    fhir:contentType @<code> AND

    fhir:contentType @<Code> AND

    	{fhir:v @fhirvs:mimetypes};  # MimeType of the binary content
    fhir:securityContext @<Reference> AND {fhir:link 

    fhir:securityContext @<Reference> AND {fhir:l 

    			@<Resource> ? }?;  # Identifies another resource to use 
                                            # as proxy when enforcing access 
                                            # control 
    fhir:data @<base64Binary>?;             # The actual content

    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.