pub struct TriggerDefinitionBuilder { /* private fields */ }
Expand description
Builder for TriggerDefinitionInner
.
Implementations§
Source§impl TriggerDefinitionBuilder
impl TriggerDefinitionBuilder
Sourcepub fn id(self, value: String) -> TriggerDefinitionBuilder
pub fn id(self, value: String) -> TriggerDefinitionBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(self, value: Vec<Extension>) -> TriggerDefinitionBuilder
pub fn extension(self, value: Vec<Extension>) -> TriggerDefinitionBuilder
Additional content defined by implementations
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.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn type(self, value: TriggerType) -> TriggerDefinitionBuilder
pub fn type(self, value: TriggerType) -> TriggerDefinitionBuilder
TriggerType; named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended
The type of triggering event.
Sourcepub fn type_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
pub fn type_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn name(self, value: String) -> TriggerDefinitionBuilder
pub fn name(self, value: String) -> TriggerDefinitionBuilder
Name or URI that identifies the event
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.
An event name can be provided for all event types, but is required for named events. If a name is provided for a type other than named events, it is considered to be a shorthand for the semantics described by the formal description of the event.
Sourcepub fn name_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
pub fn name_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn code(self, value: CodeableConcept) -> TriggerDefinitionBuilder
pub fn code(self, value: CodeableConcept) -> TriggerDefinitionBuilder
Coded definition of the event
A code that identifies the event.
Sourcepub fn code_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
pub fn code_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn subscription_topic(self, value: String) -> TriggerDefinitionBuilder
pub fn subscription_topic(self, value: String) -> TriggerDefinitionBuilder
What event
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.
Sourcepub fn subscription_topic_ext(
self,
value: FieldExtension,
) -> TriggerDefinitionBuilder
pub fn subscription_topic_ext( self, value: FieldExtension, ) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn timing(self, value: TriggerDefinitionTiming) -> TriggerDefinitionBuilder
pub fn timing(self, value: TriggerDefinitionTiming) -> TriggerDefinitionBuilder
Timing of the event
The timing of the event (if this is a periodic trigger).
Sourcepub fn timing_ext(
self,
value: TriggerDefinitionTimingExtension,
) -> TriggerDefinitionBuilder
pub fn timing_ext( self, value: TriggerDefinitionTimingExtension, ) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn data(
self,
value: Vec<Option<DataRequirement>>,
) -> TriggerDefinitionBuilder
pub fn data( self, value: Vec<Option<DataRequirement>>, ) -> TriggerDefinitionBuilder
Triggering data of the event (multiple = ‘and’)
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.
This element shall be present for any data type trigger.
Sourcepub fn data_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> TriggerDefinitionBuilder
pub fn data_ext( self, value: Vec<Option<FieldExtension>>, ) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn condition(self, value: Expression) -> TriggerDefinitionBuilder
pub fn condition(self, value: Expression) -> TriggerDefinitionBuilder
Whether the event triggers (boolean expression)
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.
This element can be only be specified for data type triggers and provides additional semantics for the trigger. The context available within the condition is based on the type of data event. For all events, the current resource will be available as context. In addition, for modification events, the previous resource will also be available. The expression may be inlined, or may be a simple absolute URI, which is a reference to a named expression within a logic library referenced by a library element or extension within the containing resource. If the expression is a FHIR Path expression, it evaluates in the context of a resource of one of the type identified in the data requirement, and may also refer to the variable %previous for delta comparisons on events of type data-changed, data-modified, and data-deleted which will always have the same type.
Sourcepub fn condition_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
pub fn condition_ext(self, value: FieldExtension) -> TriggerDefinitionBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<TriggerDefinitionInner, BuilderError>
pub fn build_inner(self) -> Result<TriggerDefinitionInner, BuilderError>
Source§impl TriggerDefinitionBuilder
impl TriggerDefinitionBuilder
Sourcepub fn build(self) -> Result<TriggerDefinition, BuilderError>
pub fn build(self) -> Result<TriggerDefinition, BuilderError>
Finalize building TriggerDefinition.