Class Timing.TimingRepeatComponent

java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.Element
org.hl7.fhir.dstu2.model.Timing.TimingRepeatComponent
All Implemented Interfaces:
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.
    • 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.
    • durationUnits

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

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

      A real world event that the occurrence of the event should be tied to.
  • 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

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

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

      public boolean hasDurationUnitsElement()
    • hasDurationUnits

      public boolean hasDurationUnits()
    • setDurationUnitsElement

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

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

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

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

      public boolean hasPeriodUnitsElement()
    • hasPeriodUnits

      public boolean hasPeriodUnits()
    • setPeriodUnitsElement

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

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

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

      Returns:
      when (A real world event that the occurrence of the event should be tied to.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
    • hasWhenElement

      public boolean hasWhenElement()
    • hasWhen

      public boolean hasWhen()
    • setWhenElement

      Parameters:
      value - when (A real world event that the occurrence of the event should be tied to.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
    • getWhen

      Returns:
      A real world event that the occurrence of the event should be tied to.
    • setWhen

      Parameters:
      value - A real world event that the occurrence of the event should be tied to.
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class Element
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty 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