ShEx statement for BackboneType
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 <DataType.shex>
IMPORT <Extension.shex>
# Base for datatypes that can carry modifier extensions
<BackboneType> EXTENDS @<DataType> CLOSED {
a [fhir:BackboneType]?;
fhir:modifierExtension @<OneOrMore_Extension>?; # Extensions that cannot be ignored
# even if unrecognized
}
#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Extension> CLOSED {
rdf:first @<Extension> ;
rdf:rest [rdf:nil] OR @<OneOrMore_Extension>
}
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.