Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Practitionerrole.shex

Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Practitioner

Raw ShEx

ShEx statement for practitionerrole

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 <Period.shex>
IMPORT <boolean.shex>
IMPORT <Location.shex>
IMPORT <Endpoint.shex>
IMPORT <Reference.shex>
IMPORT <Identifier.shex>
IMPORT <Practitioner.shex>
IMPORT <Organization.shex>
IMPORT <Availability.shex>
IMPORT <DomainResource.shex>
IMPORT <CodeableConcept.shex>
IMPORT <HealthcareService.shex>
IMPORT <ExtendedContactDetail.shex>


start=@<PractitionerRole> AND {fhir:nodeRole [fhir:treeRoot]}

# Roles/organizations the practitioner is associated with
<PractitionerRole> EXTENDS @<DomainResource> CLOSED {   

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

    fhir:identifier @<OneOrMore_Identifier>?;  # Identifiers for a role/location
    fhir:active @<boolean>?;                # Whether this practitioner role 
                                            # record is in active use 
    fhir:period @<Period>?;                 # The period during which the 
                                            # practitioner is authorized to 
                                            # perform in these role(s) 
    fhir:practitioner @<Reference> AND {fhir:link 
    			@<Practitioner> ? }?;  # Practitioner that provides 
                                            # services for the organization 
    fhir:organization @<Reference> AND {fhir:link 
    			@<Organization> ? }?;  # Organization where the roles are 
                                            # available 
    fhir:code @<OneOrMore_CodeableConcept>?;  # Roles which this practitioner may 
                                            # perform 
    fhir:specialty @<OneOrMore_CodeableConcept>?;  # Specific specialty of the 
                                            # practitioner 
    fhir:location @<OneOrMore_Reference_Location>?;  # Location(s) where the practitioner 
                                            # provides care 
    fhir:healthcareService @<OneOrMore_Reference_HealthcareService>?;  # Healthcare services provided for 
                                            # this role's 
                                            # Organization/Location(s) 
    fhir:contact @<OneOrMore_ExtendedContactDetail>?;  # Official contact details relating 
                                            # to this PractitionerRole 
    fhir:characteristic @<OneOrMore_CodeableConcept>?;  # Collection of characteristics 
                                            # (attributes) 
    fhir:communication @<OneOrMore_CodeableConcept>?;  # A language the practitioner (in 
                                            # this role) can use in patient 
                                            # communication 
    fhir:availability @<OneOrMore_Availability>?;  # Times the Practitioner is 
                                            # available at this location and/or 
                                            # healthcare service (including 
                                            # exceptions) 
    fhir:endpoint @<OneOrMore_Reference_Endpoint>?;  # Endpoints for interacting with the 
                                            # practitioner in this role 
}  

#---------------------- Cardinality Types (OneOrMore) -------------------

<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}

<OneOrMore_CodeableConcept> CLOSED {
    rdf:first @<CodeableConcept>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> 
}

<OneOrMore_Reference_Location> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<Location> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Location> 
}

<OneOrMore_Reference_HealthcareService> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<HealthcareService> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_HealthcareService> 
}

<OneOrMore_ExtendedContactDetail> CLOSED {
    rdf:first @<ExtendedContactDetail>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_ExtendedContactDetail> 
}

<OneOrMore_Availability> CLOSED {
    rdf:first @<Availability>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Availability> 
}

<OneOrMore_Reference_Endpoint> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<Endpoint> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Endpoint> 
}


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.