STU 3 Ballot

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

14.14.0 Trigger Definition

Clinical Decision Support Work GroupMaturity Level: N/ABallot Status: STU 3

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.

14.14.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]>

Turtle Template


@prefix fhir: <http://hl7.org/fhir/> .

[
 # from Element: Element.extension
  fhir:TriggerDefinition.type [ code ]; # 1..1 named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended
  fhir:TriggerDefinition.eventName [ string ]; # 0..1 Name of the event
  # TriggerDefinition.eventTiming[x] : 0..1 Timing of the event. One of these 4
    fhir:TriggerDefinition.eventTimingTiming [ Timing ]
    fhir:TriggerDefinition.eventTimingReference [ Reference(Schedule) ]
    fhir:TriggerDefinition.eventTimingDate [ date ]
    fhir:TriggerDefinition.eventTimingDateTime [ dateTime ]
  fhir:TriggerDefinition.eventData [ DataRequirement ]; # 0..1 Triggering data of the event
]

Changes since DSTU2



This complex-type did not exist in Release 2

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]>

Turtle Template

@prefix fhir: <http://hl7.org/fhir/> .

[
 # from Element: Element.extension
  fhir:TriggerDefinition.type [ code ]; # 1..1 named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended
  fhir:TriggerDefinition.eventName [ string ]; # 0..1 Name of the event
  # TriggerDefinition.eventTiming[x] : 0..1 Timing of the event. One of these 4
    fhir:TriggerDefinition.eventTimingTiming [ Timing ]
    fhir:TriggerDefinition.eventTimingReference [ Reference(Schedule) ]
    fhir:TriggerDefinition.eventTimingDate [ date ]
    fhir:TriggerDefinition.eventTimingDateTime [ dateTime ]
  fhir:TriggerDefinition.eventData [ DataRequirement ]; # 0..1 Triggering data of the event
]

Changes since DSTU2

This complex-type did not exist in Release 2

Constraints