This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 4.0.1. For a full list of available versions, see the Directory of published versions 
ShEx statement for code
PREFIX fhir: <http://hl7.org/fhir/>
PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
BASE <http://hl7.org/fhir/shape/>
# Primitive Type code
<code> CLOSED {
fhir:extension @<Extension>*; # Additional Content defined by
# implementations
fhir:value xsd:string?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
<Extension> {fhir:extension @<Extension>*;
fhir:index xsd:integer?
}
#---------------------- Reference Types -------------------
#---------------------- Value Sets ------------------------
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.