TimingRepeat

Struct TimingRepeat 

Source
pub struct TimingRepeat {
Show 32 fields pub id: Option<String>, pub extension: Vec<Extension>, pub bounds: Option<TimingRepeatBounds>, pub bounds_ext: Option<TimingRepeatBoundsExtension>, pub count: Option<NonZero<u32>>, pub count_ext: Option<FieldExtension>, pub count_max: Option<NonZero<u32>>, pub count_max_ext: Option<FieldExtension>, pub duration: Option<f64>, pub duration_ext: Option<FieldExtension>, pub duration_max: Option<f64>, pub duration_max_ext: Option<FieldExtension>, pub duration_unit: Option<String>, pub duration_unit_ext: Option<FieldExtension>, pub frequency: Option<NonZero<u32>>, pub frequency_ext: Option<FieldExtension>, pub frequency_max: Option<NonZero<u32>>, pub frequency_max_ext: Option<FieldExtension>, pub period: Option<f64>, pub period_ext: Option<FieldExtension>, pub period_max: Option<f64>, pub period_max_ext: Option<FieldExtension>, pub period_unit: Option<String>, pub period_unit_ext: Option<FieldExtension>, pub day_of_week: Vec<Option<DaysOfWeek>>, pub day_of_week_ext: Vec<Option<FieldExtension>>, pub time_of_day: Vec<Option<Time>>, pub time_of_day_ext: Vec<Option<FieldExtension>>, pub when: Vec<Option<EventTiming>>, pub when_ext: Vec<Option<FieldExtension>>, pub offset: Option<u32>, pub offset_ext: Option<FieldExtension>,
}
Expand description

Sub-fields of the repeat field in Timing

Fields§

§id: Option<String>

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.

§extension: Vec<Extension>

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.

§bounds: Option<TimingRepeatBounds>

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.

§bounds_ext: Option<TimingRepeatBoundsExtension>

Extension field.

§count: Option<NonZero<u32>>

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.

§count_ext: Option<FieldExtension>

Extension field.

§count_max: Option<NonZero<u32>>

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.

§count_max_ext: Option<FieldExtension>

Extension field.

§duration: Option<f64>

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

§duration_ext: Option<FieldExtension>

Extension field.

§duration_max: Option<f64>

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

§duration_max_ext: Option<FieldExtension>

Extension field.

§duration_unit: Option<String>

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.

§duration_unit_ext: Option<FieldExtension>

Extension field.

§frequency: Option<NonZero<u32>>

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.

§frequency_ext: Option<FieldExtension>

Extension field.

§frequency_max: Option<NonZero<u32>>

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.

§frequency_max_ext: Option<FieldExtension>

Extension field.

§period: Option<f64>

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.

§period_ext: Option<FieldExtension>

Extension field.

§period_max: Option<f64>

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.

§period_max_ext: Option<FieldExtension>

Extension field.

§period_unit: Option<String>

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.

§period_unit_ext: Option<FieldExtension>

Extension field.

§day_of_week: Vec<Option<DaysOfWeek>>

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.

§day_of_week_ext: Vec<Option<FieldExtension>>

Extension field.

§time_of_day: Vec<Option<Time>>

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.

§time_of_day_ext: Vec<Option<FieldExtension>>

Extension field.

§when: Vec<Option<EventTiming>>

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.

§when_ext: Vec<Option<FieldExtension>>

Extension field.

§offset: Option<u32>

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.

§offset_ext: Option<FieldExtension>

Extension field.

Implementations§

Source§

impl TimingRepeat

Source

pub fn builder() -> TimingRepeatBuilder

Start building a new instance

Trait Implementations§

Source§

impl Clone for TimingRepeat

Source§

fn clone(&self) -> TimingRepeat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimingRepeat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TimingRepeat

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TimingRepeat, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TimingRepeat

Source§

fn eq(&self, other: &TimingRepeat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TimingRepeat

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TimingRepeat

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,