Package org.hl7.fhir.dstu2.model
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeboundsEither 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.protected IntegerTypecountA total count of the desired number of repetitions.protected DecimalTypedurationHow long this thing happens for when it happens.protected DecimalTypedurationMaxThe upper limit of how long this thing happens for when it happens.protected Enumeration<Timing.UnitsOfTime>durationUnitsThe units of time for the duration, in UCUM units.protected IntegerTypefrequencyThe number of times to repeat the action within the specified period / period range (i.e.protected IntegerTypefrequencyMaxIf present, indicates that the frequency is a range - so repeat between [frequency] and [frequencyMax] times within the period or period range.protected DecimalTypeperiodIndicates the duration of time over which repetitions are to occur; e.g.protected DecimalTypeperiodMaxIf present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days.protected Enumeration<Timing.UnitsOfTime>periodUnitsThe units of time for the period in UCUM units.protected Enumeration<Timing.EventTiming>whenA real world event that the occurrence of the event should be tied to.
-
Constructor Summary
Constructors Constructor Description TimingRepeatComponent()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
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
protected DecimalType durationMax
The upper limit of how long this thing happens for when it happens.
-
durationUnits
protected Enumeration<Timing.UnitsOfTime> durationUnits
The units of time for the duration, in UCUM units.
-
frequency
protected IntegerType frequency
The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
-
frequencyMax
protected IntegerType 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
protected DecimalType 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
protected Enumeration<Timing.UnitsOfTime> periodUnits
The units of time for the period in UCUM units.
-
when
protected Enumeration<Timing.EventTiming> when
A real world event that the occurrence of the event should be tied to.
-
-
Constructor Detail
-
TimingRepeatComponent
public TimingRepeatComponent()
-
-
Method Detail
-
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)
- 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
public IntegerType 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
public Timing.TimingRepeatComponent setCountElement(IntegerType value)
- 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
public Timing.TimingRepeatComponent setCount(int value)
- Parameters:
value- A total count of the desired number of repetitions.
-
getDurationElement
public DecimalType 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
public Timing.TimingRepeatComponent setDurationElement(DecimalType value)
- 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
public BigDecimal getDuration()
- Returns:
- How long this thing happens for when it happens.
-
setDuration
public Timing.TimingRepeatComponent setDuration(BigDecimal value)
- Parameters:
value- How long this thing happens for when it happens.
-
getDurationMaxElement
public DecimalType 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
public Timing.TimingRepeatComponent setDurationMaxElement(DecimalType value)
- 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
public BigDecimal getDurationMax()
- Returns:
- The upper limit of how long this thing happens for when it happens.
-
setDurationMax
public Timing.TimingRepeatComponent setDurationMax(BigDecimal value)
- Parameters:
value- The upper limit of how long this thing happens for when it happens.
-
getDurationUnitsElement
public Enumeration<Timing.UnitsOfTime> 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
public Timing.TimingRepeatComponent setDurationUnitsElement(Enumeration<Timing.UnitsOfTime> value)
- 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
public Timing.UnitsOfTime getDurationUnits()
- Returns:
- The units of time for the duration, in UCUM units.
-
setDurationUnits
public Timing.TimingRepeatComponent setDurationUnits(Timing.UnitsOfTime value)
- Parameters:
value- The units of time for the duration, in UCUM units.
-
getFrequencyElement
public IntegerType 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
public Timing.TimingRepeatComponent setFrequencyElement(IntegerType value)
- 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
public Timing.TimingRepeatComponent setFrequency(int value)
- Parameters:
value- The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
-
getFrequencyMaxElement
public IntegerType 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
public Timing.TimingRepeatComponent setFrequencyMaxElement(IntegerType value)
- 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
public Timing.TimingRepeatComponent setFrequencyMax(int value)
- 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
public DecimalType 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
public Timing.TimingRepeatComponent setPeriodElement(DecimalType value)
- 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
public BigDecimal 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
public Timing.TimingRepeatComponent setPeriod(BigDecimal 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
public DecimalType 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
public Timing.TimingRepeatComponent setPeriodMaxElement(DecimalType value)
- 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
public BigDecimal 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
public Timing.TimingRepeatComponent setPeriodMax(BigDecimal value)
- 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
public Enumeration<Timing.UnitsOfTime> 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
public Timing.TimingRepeatComponent setPeriodUnitsElement(Enumeration<Timing.UnitsOfTime> value)
- 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
public Timing.UnitsOfTime getPeriodUnits()
- Returns:
- The units of time for the period in UCUM units.
-
setPeriodUnits
public Timing.TimingRepeatComponent setPeriodUnits(Timing.UnitsOfTime value)
- Parameters:
value- The units of time for the period in UCUM units.
-
getWhenElement
public Enumeration<Timing.EventTiming> 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
public Timing.TimingRepeatComponent setWhenElement(Enumeration<Timing.EventTiming> value)
- 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
public Timing.EventTiming getWhen()
- Returns:
- A real world event that the occurrence of the event should be tied to.
-
setWhen
public Timing.TimingRepeatComponent setWhen(Timing.EventTiming value)
- Parameters:
value- A real world event that the occurrence of the event should be tied to.
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public Timing.TimingRepeatComponent copy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
isEmpty
public boolean isEmpty()
-
-