R6 Ballot (1st Draft)

This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions

Binary.shex

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