Release 5 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). For a full list of available versions, see times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Basic.shex

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Standards Status : Informative Compartments : Patient , Practitioner , RelatedPerson

Raw ShEx

ShEx statement for basic

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#> 
# ShEx Version 2.2

IMPORT <Device.shex>
IMPORT <Patient.shex>
IMPORT <Resource.shex>
IMPORT <dateTime.shex>

IMPORT <DateTime.shex>

IMPORT <CareTeam.shex>
IMPORT <Reference.shex>
IMPORT <Identifier.shex>
IMPORT <Organization.shex>
IMPORT <Practitioner.shex>
IMPORT <RelatedPerson.shex>
IMPORT <DomainResource.shex>
IMPORT <CodeableConcept.shex>
IMPORT <PractitionerRole.shex>
start=@<Basic> AND {fhir:nodeRole [fhir:treeRoot]}
# Resource for non-supported content
<Basic> EXTENDS @<DomainResource> CLOSED {   
    a [fhir:Basic]?;
    fhir:nodeRole [fhir:treeRoot]?;

    a [fhir:Basic]?;fhir:nodeRole [fhir:treeRoot]?;

    fhir:identifier @<OneOrMore_Identifier>?;  # Business identifier
    fhir:code @<CodeableConcept>;           # Kind of Resource
    fhir:subject @<Reference> AND {fhir:link 

    fhir:subject @<Reference> AND {fhir:l 

    			@<Resource> ? }?;  # Identifies the focus of this 
                                            # resource 
    fhir:created @<dateTime>?;              # When created
    fhir:author @<Reference> AND {fhir:link 

    fhir:created @<DateTime>?;              # When created
    fhir:author @<Reference> AND {fhir:l 

    			@<CareTeam> OR 
    			@<Device> OR 
    			@<Organization> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? }?;  # Who created
}  
#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}

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.