Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| Responsible Owner: Clinical Decision Support Work Group | Standards Status : Informative | Compartments : No defined compartments |
ShEx statement for activitydefinition
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 <uri.shex># ShEx Version 2.2 IMPORT <Uri.shex> IMPORT <Age.shex>IMPORT <code.shex> IMPORT <date.shex>IMPORT <Code.shex> IMPORT <Date.shex> IMPORT <Group.shex> IMPORT <Range.shex>IMPORT <string.shex>IMPORT <String.shex> IMPORT <Coding.shex> IMPORT <Period.shex> IMPORT <Timing.shex> IMPORT <Dosage.shex> IMPORT <Device.shex>IMPORT <boolean.shex>IMPORT <Boolean.shex> IMPORT <Patient.shex>IMPORT <dateTime.shex> IMPORT <markdown.shex>IMPORT <DateTime.shex> IMPORT <Markdown.shex> IMPORT <Duration.shex> IMPORT <Quantity.shex> IMPORT <CareTeam.shex> IMPORT <Endpoint.shex> IMPORT <Location.shex> IMPORT <Specimen.shex> IMPORT <Reference.shex>IMPORT <canonical.shex>IMPORT <Canonical.shex> IMPORT <Substance.shex> IMPORT <Identifier.shex> IMPORT <Medication.shex> IMPORT <Ingredient.shex> IMPORT <Expression.shex> IMPORT <UsageContext.shex> IMPORT <RelativeTime.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <ContactDetail.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <RelatedArtifact.shex> IMPORT <BackboneElement.shex> IMPORT <EvidenceVariable.shex>IMPORT <DeviceDefinition.shex>IMPORT <PractitionerRole.shex> IMPORT <CodeableReference.shex> IMPORT <HealthcareService.shex> IMPORT <SubstanceDefinition.shex> IMPORT <PackagedProductDefinition.shex> IMPORT <MedicinalProductDefinition.shex> IMPORT <ManufacturedItemDefinition.shex> IMPORT <BiologicallyDerivedProduct.shex> IMPORT <AdministrableProductDefinition.shex> start=@<ActivityDefinition> AND {fhir:nodeRole [fhir:treeRoot]} # The definition of a specific activity to be taken, independent of any particular patient or context <ActivityDefinition> EXTENDS @<DomainResource> CLOSED { a [fhir:ActivityDefinition]?;fhir:nodeRole [fhir:treeRoot]?;fhir:url @<uri>?; # Canonical identifier for thisfhir:url @<Uri>?; # Canonical identifier for this # activity definition, represented # as a URI (globally unique) fhir:identifier @<OneOrMore_Identifier>?; # Additional identifier for the # activity definitionfhir:version @<string>?; # Business version of the activityfhir:version @<String>?; # Business version of the activity # definitionfhir:versionAlgorithm @<string> ORfhir:versionAlgorithm @<String> OR @<Coding> ?; # How to compare versionsfhir:name @<string>?; # Name for this activity definitionfhir:name @<String>?; # Name for this activity definition # (computer friendly)fhir:title @<string>?; # Name for this activity definitionfhir:title @<String>?; # Name for this activity definition # (human friendly)fhir:subtitle @<string>?; # Subordinate title of the activityfhir:subtitle @<String>?; # Subordinate title of the activity # definitionfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:publication-status}; # draft | active | retired | unknownfhir:experimental @<boolean>?; # For testing only - never for realfhir:experimental @<Boolean>?; # For testing only - never for real # usage fhir:subject @<CodeableConcept> OR(@<Reference> AND {fhir:link @<Group> OR(@<Reference> AND {fhir:l @<Group> OR @<MedicinalProductDefinition> OR @<SubstanceDefinition> OR @<AdministrableProductDefinition> OR @<ManufacturedItemDefinition> OR @<PackagedProductDefinition> }) OR(@<canonical> AND {fhir:link @<EvidenceVariable> }) ?; # Type of individual the activity(@<Canonical> AND {fhir:l @<EvidenceVariable> }) ?; # Type of individual the activity # definition is intended forfhir:date @<dateTime>?; # Date last changed fhir:publisher @<string>?; # Name of the publisher/stewardfhir:date @<DateTime>?; # Date last changed fhir:publisher @<String>?; # Name of the publisher/steward # (organization or individual) fhir:contact @<OneOrMore_ContactDetail>?; # Contact details for the publisherfhir:description @<markdown>?; # Natural language description offhir:description @<Markdown>?; # Natural language description of # the activity definition fhir:useContext @<OneOrMore_UsageContext>?; # The context that the content is # intended to supportfhir:jurisdiction @<OneOrMore_CodeableConcept>?; # Intended jurisdiction for activity # definition (if applicable) fhir:purpose @<markdown>?; # Why this activity definition isfhir:jurisdiction @<OneOrMore_CodeableConcept>?; # Jurisdiction of the authority that # maintains the activity definition # (if applicable) fhir:purpose @<Markdown>?; # Why this activity definition is # definedfhir:usage @<markdown>?; # Describes the clinical usage offhir:usage @<Markdown>?; # Describes the clinical usage of # the activity definitionfhir:copyright @<markdown>?; # Use and/or publishing restrictions fhir:copyrightLabel @<string>?; # Copyright holder and year(s) fhir:approvalDate @<date>?; # When the activity definition wasfhir:copyright @<Markdown>?; # Notice about intellectual property # ownership, can include # restrictions on use fhir:copyrightLabel @<String>?; # Copyright holder and year(s) fhir:approvalDate @<Date>?; # When the activity definition was # approved by publisherfhir:lastReviewDate @<date>?; # When the activity definition wasfhir:lastReviewDate @<Date>?; # When the activity definition was # last reviewed by the publisher fhir:effectivePeriod @<Period>?; # When the activity definition is # expected to be used fhir:topic @<OneOrMore_CodeableConcept>?; # E.g. Education, Treatment, # Assessment, etc fhir:author @<OneOrMore_ContactDetail>?; # Who authored the content fhir:editor @<OneOrMore_ContactDetail>?; # Who edited the content fhir:reviewer @<OneOrMore_ContactDetail>?; # Who reviewed the content fhir:endorser @<OneOrMore_ContactDetail>?; # Who endorsed the content fhir:relatedArtifact @<OneOrMore_RelatedArtifact>?; # Additional documentation, # citations, etcfhir:library @<OneOrMore_canonical>?; # Logic used by the activityfhir:library @<OneOrMore_Canonical>?; # Logic used by the activity # definitionfhir:kind @<code> ANDfhir:kind @<Code> AND {fhir:v @fhirvs:request-resource-types}?; # Kind of resourcefhir:profile @<canonical>?; # What profile the resource needs tofhir:profile @<Canonical>?; # What profile the resource needs to # conform to fhir:code @<CodeableConcept>?; # Detail type of activityfhir:intent @<code> AND {fhir:v @fhirvs:request-intent}?; # proposal | plan | directive | # order | original-order |fhir:intent @<Code> AND {fhir:v @fhirvs:request-intent}?; # proposal | solicit-offer | # offer-response | plan | directive # | order | original-order | # reflex-order | filler-order | # instance-order | optionfhir:priority @<code> ANDfhir:priority @<Code> AND {fhir:v @fhirvs:request-priority}?; # routine | urgent | asap | statfhir:doNotPerform @<boolean>?; # True if the activity should not befhir:doNotPerform @<Boolean>?; # True if the activity should not be # performed fhir:timing @<Timing> OR @<Age> OR @<Range> OR@<Duration> ?; # When activity is to occur fhir:asNeeded @<boolean> OR@<Duration> OR @<RelativeTime> ?; # When activity is to occur fhir:asNeeded @<Boolean> OR @<CodeableConcept> ?; # Preconditions for service fhir:location @<CodeableReference>?; # Where it should happen fhir:participant @<OneOrMore_ActivityDefinition.participant>?; # Who should participate in the # actionfhir:product (@<Reference> AND {fhir:link @<Medication> ORfhir:product (@<Reference> AND {fhir:l @<Medication> OR @<MedicinalProductDefinition> OR @<Ingredient> OR @<SubstanceDefinition> }) OR @<CodeableConcept> ?; # What's administered/supplied fhir:quantity @<Quantity>?; # How much is # administered/consumed/supplied fhir:dosage @<OneOrMore_Dosage>?; # Detailed dosage instructions fhir:bodySite @<OneOrMore_CodeableConcept>?; # What part of body to perform onfhir:specimenRequirement @<OneOrMore_canonical>?; # What specimens are required tofhir:specimenRequirement @<OneOrMore_Canonical>?; # What specimens are required to # perform this actionfhir:observationRequirement @<OneOrMore_canonical>?; # What observations are required tofhir:observationRequirement @<OneOrMore_Canonical>?; # What observations are required to # perform this actionfhir:observationResultRequirement @<OneOrMore_canonical>?; # What observations must be producedfhir:observationResultRequirement @<OneOrMore_Canonical>?; # What observations must be produced # by this actionfhir:transform @<canonical>?; # Transform to apply the templatefhir:transform @<Canonical>?; # Transform to apply the template fhir:dynamicValue @<OneOrMore_ActivityDefinition.dynamicValue>?; # Dynamic aspects of the definition } # Who should participate in the action <ActivityDefinition.participant> EXTENDS @<BackboneElement> CLOSED {fhir:type @<code> ANDfhir:type @<Code> AND {fhir:v @fhirvs:action-participant-type}?; # careteam | device | group | # healthcareservice | location | # organization | patient | # practitioner | practitionerrole | # relatedpersonfhir:typeCanonical @<canonical>?; # Who or what can participate fhir:typeReference @<Reference> AND {fhir:linkfhir:typeCanonical @<Canonical>?; # Who or what can participate fhir:typeReference @<Reference> AND {fhir:l @<BiologicallyDerivedProduct> OR @<CareTeam> OR @<Device> OR@<DeviceDefinition> OR@<Endpoint> OR@<Group> OR@<HealthcareService> OR @<Location> OR @<Medication> OR @<MedicinalProductDefinition> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> OR @<Specimen> OR@<Substance> ? }?; # Who or what can participate@<Substance> OR @<SubstanceDefinition> ? }?; # Who or what can participate fhir:role @<CodeableConcept>?; # E.g. Nurse, Surgeon, Parent, etc fhir:function @<CodeableConcept>?; # E.g. Author, Reviewer, Witness, etc } # Dynamic aspects of the definition <ActivityDefinition.dynamicValue> EXTENDS @<BackboneElement> CLOSED {fhir:path @<string>; # The path to the element to be setfhir:path @<String>; # The path to the element to be set # dynamically fhir:expression @<Expression>; # An expression that provides the # dynamic value for the # customization } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_ContactDetail> CLOSED { rdf:first @<ContactDetail> ; rdf:rest [rdf:nil] OR @<OneOrMore_ContactDetail> } <OneOrMore_UsageContext> CLOSED { rdf:first @<UsageContext> ; rdf:rest [rdf:nil] OR @<OneOrMore_UsageContext> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_RelatedArtifact> CLOSED { rdf:first @<RelatedArtifact> ; rdf:rest [rdf:nil] OR @<OneOrMore_RelatedArtifact> }<OneOrMore_canonical> CLOSED { rdf:first @<canonical> ; rdf:rest [rdf:nil] OR @<OneOrMore_canonical><OneOrMore_Canonical> CLOSED { rdf:first @<Canonical> ; rdf:rest [rdf:nil] OR @<OneOrMore_Canonical> } <OneOrMore_ActivityDefinition.participant> CLOSED { rdf:first @<ActivityDefinition.participant> ; rdf:rest [rdf:nil] OR @<OneOrMore_ActivityDefinition.participant> } <OneOrMore_Dosage> CLOSED { rdf:first @<Dosage> ; rdf:rest [rdf:nil] OR @<OneOrMore_Dosage> } <OneOrMore_ActivityDefinition.dynamicValue> CLOSED { rdf:first @<ActivityDefinition.dynamicValue> ; rdf:rest [rdf:nil] OR @<OneOrMore_ActivityDefinition.dynamicValue> } #---------------------- Value Sets ------------------------ # The type of participant for the action. fhirvs:action-participant-type ["careteam" "device" "group" "healthcareservice" "location" "organization" "patient" "practitioner" "practitionerrole" "relatedperson"] # The lifecycle status of an artifact. fhirvs:publication-status ["draft" "active" "retired" "unknown"] # Codes indicating the degree of authority/intentionality associated with a request.fhirvs:request-intent ["proposal" "plan" "directive" "order" "original-order" "reflex-order" "filler-order" "instance-order" "option"]fhirvs:request-intent ["proposal" "solicit-offer" "offer-response" "plan" "directive" "order" "original-order" "reflex-order" "filler-order" "instance-order" "option"] # Identifies the level of importance to be assigned to actioning the request. fhirvs:request-priority ["routine" "urgent" "asap" "stat"] # All Resource Types that represent request resourcesfhirvs:request-resource-types ["Appointment" "CarePlan" "Claim" "CommunicationRequest" "CoverageEligibilityRequest" "DeviceRequest" "EnrollmentRequest" "ImmunizationRecommendation" "MedicationRequest" "NutritionOrder" "RequestOrchestration" "ServiceRequest" "SupplyRequest" "Task" "Transport" "VisionPrescription"]fhirvs:request-resource-types ["Appointment" "CarePlan" "Claim" "CommunicationRequest" "CoverageEligibilityRequest" "DeviceRequest" "EnrollmentRequest" "MedicationRequest" "NutritionOrder" "RequestOrchestration" "ServiceRequest" "Task" "VisionPrescription"]
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.
FHIR
®©
HL7.org
2011+.
FHIR
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Mon,
Nov
17,
2025
12:24+1100.
19:27+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change