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
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.