Publish-box (todo)
Flag.shex
Raw ShEx
ShEx statement for flag
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 <code.shex>
IMPORT <Group.shex>
IMPORT <Period.shex>
IMPORT <Device.shex>
IMPORT <Patient.shex>
IMPORT <Location.shex>
IMPORT <Reference.shex>
IMPORT <Procedure.shex>
IMPORT <Encounter.shex>
IMPORT <Condition.shex>
IMPORT <Identifier.shex>
IMPORT <Medication.shex>
IMPORT <Observation.shex>
IMPORT <Organization.shex>
IMPORT <Practitioner.shex>
IMPORT <RelatedPerson.shex>
IMPORT <DomainResource.shex>
IMPORT <PlanDefinition.shex>
IMPORT <RiskAssessment.shex>
IMPORT <CodeableConcept.shex>
IMPORT <PractitionerRole.shex>
IMPORT <AllergyIntolerance.shex>
start=@<Flag> AND {fhir:nodeRole [fhir:treeRoot]}
# Key information to flag to healthcare providers
<Flag> EXTENDS @<DomainResource> CLOSED {
a [fhir:Flag]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @<OneOrMore_Identifier>?; # Business identifier
fhir:status @<code> AND
{fhir:v @fhirvs:flag-status}; # active | inactive |
# entered-in-error
fhir:category @<OneOrMore_CodeableConcept>?; # Clinical, administrative, etc
fhir:code @<CodeableConcept>; # Coded or textual message to
# display to user
fhir:subject @<Reference> AND {fhir:link
@<Group> OR
@<Location> OR
@<Medication> OR
@<Organization> OR
@<Patient> OR
@<PlanDefinition> OR
@<Practitioner> OR
@<PractitionerRole> OR
@<Procedure> OR
@<RelatedPerson> ? }; # Who/What is flag about?
fhir:period @<Period>?; # Time period when flag is active
fhir:encounter @<Reference> AND {fhir:link
@<Encounter> ? }?; # Alert relevant during encounter
fhir:author @<Reference> AND {fhir:link
@<Device> OR
@<Organization> OR
@<Patient> OR
@<Practitioner> OR
@<PractitionerRole> OR
@<RelatedPerson> ? }?; # Flag creator
fhir:supportingInfo @<OneOrMore_Reference_AllergyIntolerance_OR_Condition_OR_Observation_OR_Procedure_OR_RiskAssessment>?; # Extra information to use in
# context of the flag
}
#---------------------- 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_AllergyIntolerance_OR_Condition_OR_Observation_OR_Procedure_OR_RiskAssessment> CLOSED {
rdf:first @<Reference> AND {fhir:link
@<AllergyIntolerance> OR
@<Condition> OR
@<Observation> OR
@<Procedure> OR
@<RiskAssessment> } ;
rdf:rest [rdf:nil] OR @<OneOrMore_Reference_AllergyIntolerance_OR_Condition_OR_Observation_OR_Procedure_OR_RiskAssessment>
}
#---------------------- Value Sets ------------------------
# Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error.
fhirvs:flag-status ["active" "inactive" "entered-in-error"]
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.