STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

1.27.0 Trigger Definition

Clinical Decision Support Work GroupMaturity Level: N/ABallot Status: DSTU 2

The TriggerDefinition structure defines when a knowledge artifact is expected to be evaluated. The structure can represent three main kinds of triggering events:

  • Named Event
  • Scheduled Event
  • Data Event

A named event is an event identified by the implementation environment. This allows any event generated within the implementation environment to be used as a trigger, but it requires pre-coordination of the names involved with the consuming environments.

A scheduled event occurs on a fixed or periodic schedule.

And finally, a data event occurs in response to some data-related event in the integrated environment such as a record being added or updated. The data-of-interest for a data event is described using a DataRequirement. This allows for systems to automatically invoke based on data activity occurring within the system.

1.27.0.1 Content

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. TriggerDefinition ΣElementDefines an expected trigger for a module
... type Σ1..1codenamed-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended
TriggerType (Required)
... eventName Σ0..1stringName of the event
... eventTiming[x] Σ0..1Timing of the event
.... eventTimingTimingTiming
.... eventTimingReferenceReference(Schedule)
.... eventTimingDatedate
.... eventTimingDateTimedateTime
... eventData Σ0..1DataRequirementTriggering data of the event

doco Documentation for this format

XML Template

<[name] xmlns="http://hl7.org/fhir"> doco
 <!-- from Element: extension -->
 <type value="[code]"/><!-- 1..1 named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended -->
 <eventName value="[string]"/><!-- 0..1 Name of the event -->
 <eventTiming[x]><!-- 0..1 Timing|Reference(Schedule)|date|dateTime Timing of the event --></eventTiming[x]>
 <eventData><!-- 0..1 DataRequirement Triggering data of the event --></eventData>
</[name]>

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. TriggerDefinition ΣElementDefines an expected trigger for a module
... type Σ1..1codenamed-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended
TriggerType (Required)
... eventName Σ0..1stringName of the event
... eventTiming[x] Σ0..1Timing of the event
.... eventTimingTimingTiming
.... eventTimingReferenceReference(Schedule)
.... eventTimingDatedate
.... eventTimingDateTimedateTime
... eventData Σ0..1DataRequirementTriggering data of the event

doco Documentation for this format

XML Template

<[name] xmlns="http://hl7.org/fhir"> doco
 <!-- from Element: extension -->
 <type value="[code]"/><!-- 1..1 named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended -->
 <eventName value="[string]"/><!-- 0..1 Name of the event -->
 <eventTiming[x]><!-- 0..1 Timing|Reference(Schedule)|date|dateTime Timing of the event --></eventTiming[x]>
 <eventData><!-- 0..1 DataRequirement Triggering data of the event --></eventData>
</[name]>

Constraints