Release 5 R6 Ballot (1st Draft)

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

Resource.shex

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

Raw ShEx

ShEx statement for resource

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 <id.shex>
IMPORT <uri.shex>
IMPORT <Meta.shex>
IMPORT <code.shex>
start=@<Resource> AND {fhir:nodeRole [fhir:treeRoot]}
# Base Resource
<Resource> {
    fhir:id @<id>?;                         # Logical id of this artifact
    fhir:meta @<Meta>?;                     # Metadata about the resource
    fhir:implicitRules @<uri>?;             # A set of rules under which this 
                                            # content was created 
    fhir:language @<code> AND
    	{fhir:v @fhirvs:all-languages}?;  # Language of the resource content
}  
#---------------------- Value Sets ------------------------
# This value set includes all possible codes from BCP-47 (see http://tools.ietf.org/html/bcp47)
fhirvs:all-languages 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 <id.shex>
IMPORT <uri.shex>
IMPORT <Meta.shex>
IMPORT <code.shex>


start=@<Resource> AND {fhir:nodeRole [fhir:treeRoot]}

# Base Resource
<Resource> {
    fhir:id @<id>?;                         # Logical id of this artifact
    fhir:meta @<Meta>?;                     # Metadata about the resource
    fhir:implicitRules @<uri>?;             # A set of rules under which this 
                                            # content was created 
    fhir:language @<code> AND
    	{fhir:v @fhirvs:all-languages}?;  # Language of the resource content
}  

#---------------------- Value Sets ------------------------

# This value set includes all possible codes from BCP-47 (see http://tools.ietf.org/html/bcp47)
fhirvs:all-languages 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.