Class Timing.TimingRepeatComponent

java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.Element
org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatypeElement, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions
Enclosing class:
Timing

public static class Timing.TimingRepeatComponent extends Element implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
See Also:
  • Field Details

    • bounds

      protected Type bounds
      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

      protected IntegerType count
      A total count of the desired number of repetitions.
    • countMax

      protected IntegerType countMax
      A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).
    • duration

      protected DecimalType duration
      How long this thing happens for when it happens.
    • durationMax

      The upper limit of how long this thing happens for when it happens.
    • durationUnit

      The units of time for the duration, in UCUM units.
    • frequency

      The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
    • frequencyMax

      If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.
    • period

      protected DecimalType 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.
    • periodMax

      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.
    • periodUnit

      The units of time for the period in UCUM units.
    • dayOfWeek

      If one or more days of week is provided, then the action happens only on the specified day(s).
    • timeOfDay

      protected List<TimeType> timeOfDay
      Specified time of day for action to take place.
    • when

      Real world events that the occurrence of the event should be tied to.
    • offset

      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.
  • Constructor Details

  • Method Details

    • getBounds

      public Type getBounds()
      Returns:
      bounds (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.)
    • getBoundsDuration

      public Duration getBoundsDuration() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      bounds (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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasBoundsDuration

      public boolean hasBoundsDuration()
    • getBoundsRange

      public Range getBoundsRange() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      bounds (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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasBoundsRange

      public boolean hasBoundsRange()
    • getBoundsPeriod

      public Period getBoundsPeriod() throws org.hl7.fhir.exceptions.FHIRException
      Returns:
      bounds (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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasBoundsPeriod

      public boolean hasBoundsPeriod()
    • hasBounds

      public boolean hasBounds()
    • setBounds

      public Timing.TimingRepeatComponent setBounds(Type value) throws org.hl7.fhir.exceptions.FHIRFormatError
      Parameters:
      value - bounds (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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRFormatError
    • getCountElement

      Returns:
      count (A total count of the desired number of repetitions.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value
    • hasCountElement

      public boolean hasCountElement()
    • hasCount

      public boolean hasCount()
    • setCountElement

      Parameters:
      value - count (A total count of the desired number of repetitions.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value
    • getCount

      public int getCount()
      Returns:
      A total count of the desired number of repetitions.
    • setCount

      Parameters:
      value - A total count of the desired number of repetitions.
    • getCountMaxElement

      Returns:
      countMax (A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).). This is the underlying object with id, value and extensions. The accessor "getCountMax" gives direct access to the value
    • hasCountMaxElement

      public boolean hasCountMaxElement()
    • hasCountMax

      public boolean hasCountMax()
    • setCountMaxElement

      Parameters:
      value - countMax (A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).). This is the underlying object with id, value and extensions. The accessor "getCountMax" gives direct access to the value
    • getCountMax

      public int getCountMax()
      Returns:
      A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).
    • setCountMax

      Parameters:
      value - A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).
    • getDurationElement

      Returns:
      duration (How long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDuration" gives direct access to the value
    • hasDurationElement

      public boolean hasDurationElement()
    • hasDuration

      public boolean hasDuration()
    • setDurationElement

      Parameters:
      value - duration (How long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDuration" gives direct access to the value
    • getDuration

      Returns:
      How long this thing happens for when it happens.
    • setDuration

      Parameters:
      value - How long this thing happens for when it happens.
    • setDuration

      Parameters:
      value - How long this thing happens for when it happens.
    • setDuration

      Parameters:
      value - How long this thing happens for when it happens.
    • getDurationMaxElement

      Returns:
      durationMax (The upper limit of how long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDurationMax" gives direct access to the value
    • hasDurationMaxElement

      public boolean hasDurationMaxElement()
    • hasDurationMax

      public boolean hasDurationMax()
    • setDurationMaxElement

      Parameters:
      value - durationMax (The upper limit of how long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDurationMax" gives direct access to the value
    • getDurationMax

      Returns:
      The upper limit of how long this thing happens for when it happens.
    • setDurationMax

      Parameters:
      value - The upper limit of how long this thing happens for when it happens.
    • setDurationMax

      Parameters:
      value - The upper limit of how long this thing happens for when it happens.
    • setDurationMax

      Parameters:
      value - The upper limit of how long this thing happens for when it happens.
    • getDurationUnitElement

      Returns:
      durationUnit (The units of time for the duration, in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value
    • hasDurationUnitElement

      public boolean hasDurationUnitElement()
    • hasDurationUnit

      public boolean hasDurationUnit()
    • setDurationUnitElement

      Parameters:
      value - durationUnit (The units of time for the duration, in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value
    • getDurationUnit

      Returns:
      The units of time for the duration, in UCUM units.
    • setDurationUnit

      Parameters:
      value - The units of time for the duration, in UCUM units.
    • getFrequencyElement

      Returns:
      frequency (The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).). This is the underlying object with id, value and extensions. The accessor "getFrequency" gives direct access to the value
    • hasFrequencyElement

      public boolean hasFrequencyElement()
    • hasFrequency

      public boolean hasFrequency()
    • setFrequencyElement

      Parameters:
      value - frequency (The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).). This is the underlying object with id, value and extensions. The accessor "getFrequency" gives direct access to the value
    • getFrequency

      public int getFrequency()
      Returns:
      The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
    • setFrequency

      Parameters:
      value - The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
    • getFrequencyMaxElement

      Returns:
      frequencyMax (If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.). This is the underlying object with id, value and extensions. The accessor "getFrequencyMax" gives direct access to the value
    • hasFrequencyMaxElement

      public boolean hasFrequencyMaxElement()
    • hasFrequencyMax

      public boolean hasFrequencyMax()
    • setFrequencyMaxElement

      Parameters:
      value - frequencyMax (If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.). This is the underlying object with id, value and extensions. The accessor "getFrequencyMax" gives direct access to the value
    • getFrequencyMax

      public int getFrequencyMax()
      Returns:
      If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.
    • setFrequencyMax

      Parameters:
      value - If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.
    • getPeriodElement

      Returns:
      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.). This is the underlying object with id, value and extensions. The accessor "getPeriod" gives direct access to the value
    • hasPeriodElement

      public boolean hasPeriodElement()
    • hasPeriod

      public boolean hasPeriod()
    • setPeriodElement

      Parameters:
      value - 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.). This is the underlying object with id, value and extensions. The accessor "getPeriod" gives direct access to the value
    • getPeriod

      Returns:
      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.
    • setPeriod

      Parameters:
      value - 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.
    • setPeriod

      Parameters:
      value - 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.
    • setPeriod

      public Timing.TimingRepeatComponent setPeriod(double value)
      Parameters:
      value - 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.
    • getPeriodMaxElement

      Returns:
      periodMax (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.). This is the underlying object with id, value and extensions. The accessor "getPeriodMax" gives direct access to the value
    • hasPeriodMaxElement

      public boolean hasPeriodMaxElement()
    • hasPeriodMax

      public boolean hasPeriodMax()
    • setPeriodMaxElement

      Parameters:
      value - periodMax (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.). This is the underlying object with id, value and extensions. The accessor "getPeriodMax" gives direct access to the value
    • getPeriodMax

      Returns:
      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.
    • setPeriodMax

      Parameters:
      value - 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.
    • setPeriodMax

      Parameters:
      value - 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.
    • setPeriodMax

      Parameters:
      value - 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.
    • getPeriodUnitElement

      Returns:
      periodUnit (The units of time for the period in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value
    • hasPeriodUnitElement

      public boolean hasPeriodUnitElement()
    • hasPeriodUnit

      public boolean hasPeriodUnit()
    • setPeriodUnitElement

      Parameters:
      value - periodUnit (The units of time for the period in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value
    • getPeriodUnit

      Returns:
      The units of time for the period in UCUM units.
    • setPeriodUnit

      Parameters:
      value - The units of time for the period in UCUM units.
    • getDayOfWeek

      Returns:
      dayOfWeek (If one or more days of week is provided, then the action happens only on the specified day(s).)
    • setDayOfWeek

      Returns:
      Returns a reference to this for easy method chaining
    • hasDayOfWeek

      public boolean hasDayOfWeek()
    • addDayOfWeekElement

      Returns:
      dayOfWeek (If one or more days of week is provided, then the action happens only on the specified day(s).)
    • addDayOfWeek

      Parameters:
      value - dayOfWeek (If one or more days of week is provided, then the action happens only on the specified day(s).)
    • hasDayOfWeek

      public boolean hasDayOfWeek(Timing.DayOfWeek value)
      Parameters:
      value - dayOfWeek (If one or more days of week is provided, then the action happens only on the specified day(s).)
    • getTimeOfDay

      Returns:
      timeOfDay (Specified time of day for action to take place.)
    • setTimeOfDay

      Returns:
      Returns a reference to this for easy method chaining
    • hasTimeOfDay

      public boolean hasTimeOfDay()
    • addTimeOfDayElement

      Returns:
      timeOfDay (Specified time of day for action to take place.)
    • addTimeOfDay

      Parameters:
      value - timeOfDay (Specified time of day for action to take place.)
    • hasTimeOfDay

      public boolean hasTimeOfDay(String value)
      Parameters:
      value - timeOfDay (Specified time of day for action to take place.)
    • getWhen

      Returns:
      when (Real world events that the occurrence of the event should be tied to.)
    • setWhen

      Returns:
      Returns a reference to this for easy method chaining
    • hasWhen

      public boolean hasWhen()
    • addWhenElement

      Returns:
      when (Real world events that the occurrence of the event should be tied to.)
    • addWhen

      Parameters:
      value - when (Real world events that the occurrence of the event should be tied to.)
    • hasWhen

      public boolean hasWhen(Timing.EventTiming value)
      Parameters:
      value - when (Real world events that the occurrence of the event should be tied to.)
    • getOffsetElement

      Returns:
      offset (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.). This is the underlying object with id, value and extensions. The accessor "getOffset" gives direct access to the value
    • hasOffsetElement

      public boolean hasOffsetElement()
    • hasOffset

      public boolean hasOffset()
    • setOffsetElement

      Parameters:
      value - offset (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.). This is the underlying object with id, value and extensions. The accessor "getOffset" gives direct access to the value
    • getOffset

      public int getOffset()
      Returns:
      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.
    • setOffset

      Parameters:
      value - 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.
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • copy

      Specified by:
      copy in class Element
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Element
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class Element