Struct fhir_rs::datatype::complex::TimingRepeatElement
source · pub struct TimingRepeatElement {Show 17 fields
pub id: Option<String>,
pub extension: Option<Vec<Extension>>,
pub bounds: Option<Period>,
pub count: Option<PositiveIntDt>,
pub count_max: Option<PositiveIntDt>,
pub duration: Option<DecimalDt>,
pub duration_max: Option<DecimalDt>,
pub duration_unit: Option<CodeDt>,
pub frequency: Option<PositiveIntDt>,
pub frequency_max: Option<PositiveIntDt>,
pub period: Option<DecimalDt>,
pub period_max: Option<DecimalDt>,
pub period_unit: Option<CodeDt>,
pub day_of_week: Option<Vec<CodeDt>>,
pub time_of_day: Option<Vec<TimeDt>>,
pub when: Option<Vec<CodeDt>>,
pub offset: Option<UnsignedIntDt>,
}
Fields§
§id: Option<String>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
bounds: Option<Period>
Length/Range of lengths, or (Start and/or end) limits
count: Option<PositiveIntDt>
Number of times to repeat
count_max: Option<PositiveIntDt>
Maximum number of times to repeat
duration: Option<DecimalDt>
How long when it happens
duration_max: Option<DecimalDt>
How long when it happens (Max)
duration_unit: Option<CodeDt>
s | min | h | d | wk | mo | a - unit of time (UCUM)
frequency: Option<PositiveIntDt>
Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period
frequency_max: Option<PositiveIntDt>
Event occurs up to frequencyMax times per period
period: Option<DecimalDt>
The duration to which the frequency applies. I.e. Event occurs frequency times per period
period_max: Option<DecimalDt>
Upper limit of period (3-4 hours)
period_unit: Option<CodeDt>
s | min | h | d | wk | mo | a - unit of time (UCUM)
day_of_week: Option<Vec<CodeDt>>
mon | tue | wed | thu | fri | sat | sun
time_of_day: Option<Vec<TimeDt>>
Time of day for action
when: Option<Vec<CodeDt>>
Code for time period of occurrence
offset: Option<UnsignedIntDt>
Minutes from event (before or after)
Implementations§
source§impl TimingRepeatElement
impl TimingRepeatElement
pub fn set_bounds(self, v: Period) -> Self
pub fn set_count<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_count_max<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_duration<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_duration_max<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_duration_unit<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_frequency<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_frequency_max<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_period<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_period_max<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_period_unit<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_day_of_week(self, v: Vec<CodeDt>) -> Self
pub fn add_day_of_week<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_time_of_day(self, v: Vec<TimeDt>) -> Self
pub fn add_time_of_day<T: Into<TimeDt>>(self, v: T) -> Self
pub fn set_when(self, v: Vec<CodeDt>) -> Self
pub fn add_when<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_offset<T: Into<UnsignedIntDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for TimingRepeatElement
impl Clone for TimingRepeatElement
source§fn clone(&self) -> TimingRepeatElement
fn clone(&self) -> TimingRepeatElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more