R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version 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

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any 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>
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.