Package com.ibm.fhir.model.type
Class Timing.Repeat
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.type.Timing.Repeat
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- Timing
public static class Timing.Repeat extends BackboneElement
A set of rules that describe when the event is scheduled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTiming.Repeat.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Timing.Repeat.Builderbuilder()booleanequals(Object obj)ElementgetBounds()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.PositiveIntgetCount()A total count of the desired number of repetitions across the duration of the entire timing specification.PositiveIntgetCountMax()If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.List<DayOfWeek>getDayOfWeek()If one or more days of week is provided, then the action happens only on the specified day(s).DecimalgetDuration()How long this thing happens for when it happens.DecimalgetDurationMax()If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.UnitsOfTimegetDurationUnit()The units of time for the duration, in UCUM units.PositiveIntgetFrequency()The number of times to repeat the action within the specified period.PositiveIntgetFrequencyMax()If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.UnsignedIntgetOffset()The number of minutes from the event.DecimalgetPeriod()Indicates the duration of time over which repetitions are to occur; e.g.DecimalgetPeriodMax()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.UnitsOfTimegetPeriodUnit()The units of time for the period in UCUM units.List<Time>getTimeOfDay()Specified time of day for action to take place.List<EventTiming>getWhen()An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.booleanhasChildren()inthashCode()Timing.Repeat.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getBounds
public Element getBounds()
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.- Returns:
- An immutable object of type
Elementthat may be null.
-
getCount
public PositiveInt getCount()
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.- Returns:
- An immutable object of type
PositiveIntthat may be null.
-
getCountMax
public PositiveInt getCountMax()
If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.- Returns:
- An immutable object of type
PositiveIntthat may be null.
-
getDuration
public Decimal getDuration()
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.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getDurationMax
public Decimal getDurationMax()
If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getDurationUnit
public UnitsOfTime getDurationUnit()
The units of time for the duration, in UCUM units.- Returns:
- An immutable object of type
UnitsOfTimethat may be null.
-
getFrequency
public PositiveInt getFrequency()
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.- Returns:
- An immutable object of type
PositiveIntthat may be null.
-
getFrequencyMax
public PositiveInt getFrequencyMax()
If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.- Returns:
- An immutable object of type
PositiveIntthat may be null.
-
getPeriod
public Decimal getPeriod()
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.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getPeriodMax
public Decimal getPeriodMax()
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.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getPeriodUnit
public UnitsOfTime getPeriodUnit()
The units of time for the period in UCUM units.- Returns:
- An immutable object of type
UnitsOfTimethat may be null.
-
getDayOfWeek
public List<DayOfWeek> getDayOfWeek()
If one or more days of week is provided, then the action happens only on the specified day(s).- Returns:
- An unmodifiable list containing immutable objects of type
DayOfWeekthat may be empty.
-
getTimeOfDay
public List<Time> getTimeOfDay()
Specified time of day for action to take place.- Returns:
- An unmodifiable list containing immutable objects of type
Timethat may be empty.
-
getWhen
public List<EventTiming> getWhen()
An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.- Returns:
- An unmodifiable list containing immutable objects of type
EventTimingthat may be empty.
-
getOffset
public UnsignedInt getOffset()
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.- Returns:
- An immutable object of type
UnsignedIntthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Timing.Repeat.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static Timing.Repeat.Builder builder()
-
-