This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Resource.shex
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
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.