Struct fhir_rs::datatype::complex::TriggerDefinition
source · pub struct TriggerDefinition {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub type_: Option<CodeDt>,
pub name: Option<StringDt>,
pub code: Option<CodeableConcept>,
pub subscription_topic: Option<CanonicalDt>,
pub timing: Option<DateTimeDt>,
pub data: Option<Vec<DataRequirement>>,
pub condition: Option<Expression>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
type_: Option<CodeDt>
named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended
name: Option<StringDt>
Name or URI that identifies the event
code: Option<CodeableConcept>
Coded definition of the event
subscription_topic: Option<CanonicalDt>
What event
timing: Option<DateTimeDt>
Timing of the event
data: Option<Vec<DataRequirement>>
Triggering data of the event (multiple = ‘and’)
condition: Option<Expression>
Whether the event triggers (boolean expression)
Implementations§
source§impl TriggerDefinition
impl TriggerDefinition
pub fn set_type_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_name<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_code(self, v: CodeableConcept) -> Self
pub fn set_subscription_topic<T: Into<CanonicalDt>>(self, v: T) -> Self
pub fn set_timing<T: Into<DateTimeDt>>(self, v: T) -> Self
pub fn set_data(self, v: Vec<DataRequirement>) -> Self
pub fn add_data(self, v: DataRequirement) -> Self
pub fn set_condition(self, v: Expression) -> Self
Trait Implementations§
source§impl Clone for TriggerDefinition
impl Clone for TriggerDefinition
source§fn clone(&self) -> TriggerDefinition
fn clone(&self) -> TriggerDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TriggerDefinition
impl Debug for TriggerDefinition
source§impl Default for TriggerDefinition
impl Default for TriggerDefinition
source§fn default() -> TriggerDefinition
fn default() -> TriggerDefinition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TriggerDefinition
impl<'de> Deserialize<'de> for TriggerDefinition
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for TriggerDefinition
impl Element for TriggerDefinition
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for TriggerDefinition
impl Serialize for TriggerDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TriggerDefinition
impl Send for TriggerDefinition
impl Sync for TriggerDefinition
impl Unpin for TriggerDefinition
impl UnwindSafe for TriggerDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more