pub struct TimingRepeatBuilder { /* private fields */ }Expand description
Builder for TimingRepeat.
Implementations§
Source§impl TimingRepeatBuilder
impl TimingRepeatBuilder
Sourcepub fn id(self, value: String) -> TimingRepeatBuilder
pub fn id(self, value: String) -> TimingRepeatBuilder
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>) -> TimingRepeatBuilder
pub fn extension(self, value: Vec<Extension>) -> TimingRepeatBuilder
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 bounds(self, value: TimingRepeatBounds) -> TimingRepeatBuilder
pub fn bounds(self, value: TimingRepeatBounds) -> TimingRepeatBuilder
Length/Range of lengths, or (Start and/or end) limits
Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
Sourcepub fn bounds_ext(
self,
value: TimingRepeatBoundsExtension,
) -> TimingRepeatBuilder
pub fn bounds_ext( self, value: TimingRepeatBoundsExtension, ) -> TimingRepeatBuilder
Extension field.
Sourcepub fn count(self, value: NonZero<u32>) -> TimingRepeatBuilder
pub fn count(self, value: NonZero<u32>) -> TimingRepeatBuilder
Number of times to repeat
A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.
If you have both bounds and count, then this should be understood as within the bounds period, until count times happens.
Sourcepub fn count_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn count_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn count_max(self, value: NonZero<u32>) -> TimingRepeatBuilder
pub fn count_max(self, value: NonZero<u32>) -> TimingRepeatBuilder
Maximum number of times to repeat
If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.
Sourcepub fn count_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn count_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn duration(self, value: f64) -> TimingRepeatBuilder
pub fn duration(self, value: f64) -> TimingRepeatBuilder
How long when it happens
How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.
For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it’s part of the timing specification (e.g. exercise).
Sourcepub fn duration_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn duration_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn duration_max(self, value: f64) -> TimingRepeatBuilder
pub fn duration_max(self, value: f64) -> TimingRepeatBuilder
How long when it happens (Max)
If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.
For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it’s part of the timing specification (e.g. exercise).
Sourcepub fn duration_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn duration_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn duration_unit(self, value: String) -> TimingRepeatBuilder
pub fn duration_unit(self, value: String) -> TimingRepeatBuilder
UnitsOfTime; s | min | h | d | wk | mo | a - unit of time (UCUM)
The units of time for the duration, in UCUM units Normal practice is to use the ‘mo’ code as a calendar month when calculating the next occurrence.
Sourcepub fn duration_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn duration_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn frequency(self, value: NonZero<u32>) -> TimingRepeatBuilder
pub fn frequency(self, value: NonZero<u32>) -> TimingRepeatBuilder
Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period
The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.
Sourcepub fn frequency_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn frequency_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn frequency_max(self, value: NonZero<u32>) -> TimingRepeatBuilder
pub fn frequency_max(self, value: NonZero<u32>) -> TimingRepeatBuilder
Event occurs up to frequencyMax times per period
If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.
Sourcepub fn frequency_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn frequency_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn period(self, value: f64) -> TimingRepeatBuilder
pub fn period(self, value: f64) -> TimingRepeatBuilder
The duration to which the frequency applies. I.e. Event occurs frequency times per period
Indicates the duration of time over which repetitions are to occur; e.g. to express “3 times per day”, 3 would be the frequency and “1 day” would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.
Sourcepub fn period_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn period_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn period_max(self, value: f64) -> TimingRepeatBuilder
pub fn period_max(self, value: f64) -> TimingRepeatBuilder
Upper limit of period (3-4 hours)
If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as “do this once every 3-5 days.
Sourcepub fn period_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn period_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn period_unit(self, value: String) -> TimingRepeatBuilder
pub fn period_unit(self, value: String) -> TimingRepeatBuilder
UnitsOfTime; s | min | h | d | wk | mo | a - unit of time (UCUM)
The units of time for the period in UCUM units Normal practice is to use the ‘mo’ code as a calendar month when calculating the next occurrence.
Sourcepub fn period_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn period_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.
Sourcepub fn day_of_week(self, value: Vec<Option<DaysOfWeek>>) -> TimingRepeatBuilder
pub fn day_of_week(self, value: Vec<Option<DaysOfWeek>>) -> TimingRepeatBuilder
DayOfWeek; mon | tue | wed | thu | fri | sat | sun
If one or more days of week is provided, then the action happens only on the specified day(s).
If no days are specified, the action is assumed to happen every day as otherwise specified.
Sourcepub fn day_of_week_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> TimingRepeatBuilder
pub fn day_of_week_ext( self, value: Vec<Option<FieldExtension>>, ) -> TimingRepeatBuilder
Extension field.
Sourcepub fn time_of_day(self, value: Vec<Option<Time>>) -> TimingRepeatBuilder
pub fn time_of_day(self, value: Vec<Option<Time>>) -> TimingRepeatBuilder
Time of day for action
Specified time of day for action to take place.
When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. If there’s a timeOfDay, there cannot be a when, or vice versa.
Sourcepub fn time_of_day_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> TimingRepeatBuilder
pub fn time_of_day_ext( self, value: Vec<Option<FieldExtension>>, ) -> TimingRepeatBuilder
Extension field.
Sourcepub fn when(self, value: Vec<Option<EventTiming>>) -> TimingRepeatBuilder
pub fn when(self, value: Vec<Option<EventTiming>>) -> TimingRepeatBuilder
EventTiming; Code for time period of occurrence
An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.
When more than one event is listed, the event is tied to the union of the specified events.
Sourcepub fn when_ext(self, value: Vec<Option<FieldExtension>>) -> TimingRepeatBuilder
pub fn when_ext(self, value: Vec<Option<FieldExtension>>) -> TimingRepeatBuilder
Extension field.
Sourcepub fn offset(self, value: u32) -> TimingRepeatBuilder
pub fn offset(self, value: u32) -> TimingRepeatBuilder
Minutes from event (before or after)
The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.
Sourcepub fn offset_ext(self, value: FieldExtension) -> TimingRepeatBuilder
pub fn offset_ext(self, value: FieldExtension) -> TimingRepeatBuilder
Extension field.