TriggerDefinition constructor
- @JsonKey(name: 'id') String? fhirId,
- @JsonKey(name: 'extension') List<
FhirExtension> ? extension_, - TriggerDefinitionType? type,
- @JsonKey(name: '_type') Element? typeElement,
- String? name,
- @JsonKey(name: '_name') Element? nameElement,
- CodeableConcept? code,
- FhirCanonical? subscriptionTopic,
- Timing? timingTiming,
- Reference? timingReference,
- FhirDate? timingDate,
- @JsonKey(name: '_timingDate') Element? timingDateElement,
- FhirDateTime? timingDateTime,
- @JsonKey(name: '_timingDateTime') Element? timingDateTimeElement,
- List<
DataRequirement> ? data, - FhirExpression? condition,
TriggerDefinition A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.
id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
extension_
("extension") May be used to represent additional
information that is not part of the basic definition of the element. To
make the use of extensions safe and managable, there is a strict set of
governance applied to the definition and use of extensions. Though any
implementer can define an extension, there is a set of requirements that
SHALL be met as part of the definition of the extension.
type
The type of triggering event.
typeElement
("_type") Extensions for type
name
A formal name for the event. This may be an absolute URI that
identifies the event formally (e.g. from a trigger registry), or a
simple relative URI that identifies the event in a local context.
nameElement
("_name") Extensions for name
code
A code that identifies the event.
subscriptionTopic
A reference to a SubscriptionTopic resource that
defines the event. If this element is provided, no other information
about the trigger definition may be supplied.
timingTiming
The timing of the event (if this is a periodic trigger).
timingReference
The timing of the event (if this is a periodic trigger).
timingDate
The timing of the event (if this is a periodic trigger).
timingDateElement
("_timingDate") Extensions for timingDate
timingDateTime
The timing of the event (if this is a periodic trigger).
timingDateTimeElement
("_timingDateTime") Extensions for timingDateTime
data
The triggering data of the event (if this is a data trigger). If
more than one data is requirement is specified, then all the data
requirements must be true.
condition
A boolean-valued expression that is evaluated in the context
of the container of the trigger definition and returns whether or not
the trigger fires.
Implementation
const factory TriggerDefinition({
/// [id] Unique id for the element within a resource (for internal
/// references). This may be any string value that does not contain spaces.
@JsonKey(name: 'id') String? fhirId,
/// [extension_] ("extension") May be used to represent additional
/// information that is not part of the basic definition of the element.
/// To make the use of extensions safe and managable, there is a strict
/// set of governance applied to the definition and use of extensions.
/// Though any implementer can define an extension, there is a set of
/// requirements that SHALL be met as part of the definition of the
/// extension.
@JsonKey(name: 'extension') List<FhirExtension>? extension_,
/// [type] The type of triggering event.
TriggerDefinitionType? type,
/// [typeElement] ("_type") Extensions for type
@JsonKey(name: '_type') Element? typeElement,
/// [name] A formal name for the event. This may be an absolute URI that
/// identifies the event formally (e.g. from a trigger registry), or a
/// simple relative URI that identifies the event in a local context.
String? name,
/// [nameElement] ("_name") Extensions for name
@JsonKey(name: '_name') Element? nameElement,
/// [code] A code that identifies the event.
CodeableConcept? code,
/// [subscriptionTopic] A reference to a SubscriptionTopic resource that
/// defines the event. If this element is provided, no other information
/// about the trigger definition may be supplied.
FhirCanonical? subscriptionTopic,
/// [timingTiming] The timing of the event (if this is a periodic trigger).
Timing? timingTiming,
/// [timingReference] The timing of the event (if this is a periodic
/// trigger).
Reference? timingReference,
/// [timingDate] The timing of the event (if this is a periodic trigger).
FhirDate? timingDate,
/// [timingDateElement] ("_timingDate") Extensions for timingDate
@JsonKey(name: '_timingDate') Element? timingDateElement,
/// [timingDateTime] The timing of the event (if this is a periodic
/// trigger).
FhirDateTime? timingDateTime,
/// [timingDateTimeElement] ("_timingDateTime") Extensions for
/// timingDateTime
@JsonKey(name: '_timingDateTime') Element? timingDateTimeElement,
/// [data] The triggering data of the event (if this is a data trigger). If
/// more than one data is requirement is specified, then all the data
/// requirements must be true.
List<DataRequirement>? data,
/// [condition] A boolean-valued expression that is evaluated in the
/// context of the container of the trigger definition and returns whether
/// or not the trigger fires.
FhirExpression? condition,
}) = _TriggerDefinition;