Skip to main content

TimingRepeat

Struct TimingRepeat 

Source
pub struct TimingRepeat {
Show 19 fields pub id: Option<String>, pub extension: Vec<Extension>, pub bounds: Option<TimingRepeatBounds>, pub count: Option<PositiveInt>, pub count_max: Option<PositiveInt>, pub duration: Option<Decimal>, pub duration_max: Option<Decimal>, pub duration_unit: Option<Code>, pub frequency: Option<PositiveInt>, pub frequency_max: Option<PositiveInt>, pub period: Option<Decimal>, pub period_max: Option<Decimal>, pub period_unit: Option<Code>, pub start_offset: Option<Quantity>, pub end_offset: Option<Quantity>, pub day_of_week: Vec<Code>, pub time_of_day: Vec<Time>, pub when: Vec<Code>, pub offset: Option<UnsignedInt>,
}
Expand description

When the event is to occur

A set of rules that describe when the event is scheduled.

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.

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

§count: Option<PositiveInt>

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.

§count_max: Option<PositiveInt>

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.

§duration: Option<Decimal>

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.

§duration_max: Option<Decimal>

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.

§duration_unit: Option<Code>

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.

§frequency: Option<PositiveInt>

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_max: Option<PositiveInt>

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.

§period: Option<Decimal>

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_max: Option<Decimal>

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_unit: Option<Code>

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.

§start_offset: Option<Quantity>

Events within the repeat period do not start until startOffset has elapsed

Indicates that the events within the period of the repeat do not start until startOffset has elapsed. Requires both frequency and period to define the repeat cycle. See notes: Periods with start or end offsets.

§end_offset: Option<Quantity>

Events within the repeat period stop once endOffset before the end of the period

Indicates that the events within the period of the repeat stop endOffset before the period ends. Requires both frequency and period to define the repeat cycle. See notes: Periods with start or end offsets.

§day_of_week: Vec<Code>

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

§time_of_day: Vec<Time>

Time of day for action

Specified time of day for action to take place.

§when: Vec<Code>

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.

§offset: Option<UnsignedInt>

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.

Trait Implementations§

Source§

impl Clone for TimingRepeat

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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

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

impl Default for TimingRepeat

Source§

fn default() -> Self

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

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

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

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

impl Eq for TimingRepeat

Source§

impl Json for TimingRepeat

Source§

fn to_json(&self) -> Result<Object, EncodeError>

The JSON object. Read more
Source§

fn from_json(object: &Object, path: &mut Path) -> Result<Self, DecodeError>

Decodes object, refusing unknown properties. Read more
Source§

impl PartialEq for TimingRepeat

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for TimingRepeat

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.