TimingRepeatBuilder

Struct TimingRepeatBuilder 

Source
pub struct TimingRepeatBuilder { /* private fields */ }
Expand description

Builder for TimingRepeat.

Implementations§

Source§

impl TimingRepeatBuilder

Source

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.

Source

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.

Source

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.

Source

pub fn bounds_ext( self, value: TimingRepeatBoundsExtension, ) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn count_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn count_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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).

Source

pub fn duration_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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).

Source

pub fn duration_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn duration_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn frequency_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn frequency_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn period_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn period_max_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn period_unit_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn day_of_week_ext( self, value: Vec<Option<FieldExtension>>, ) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn time_of_day_ext( self, value: Vec<Option<FieldExtension>>, ) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn when_ext(self, value: Vec<Option<FieldExtension>>) -> TimingRepeatBuilder

Extension field.

Source

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.

Source

pub fn offset_ext(self, value: FieldExtension) -> TimingRepeatBuilder

Extension field.

Source

pub fn build(self) -> Result<TimingRepeat, BuilderError>

Builds a new TimingRepeat.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Default for TimingRepeatBuilder

Source§

fn default() -> TimingRepeatBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more