Package org.hl7.fhir.dstu2016may.model
Class Timing.TimingRepeatComponent
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.Element
-
- org.hl7.fhir.dstu2016may.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:
- 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 IntegerTypecountMaxA maximum value for the count of the desired repetitions (e.g.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>durationUnitThe 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 UnsignedIntTypeoffsetThe number of minutes from the event.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>periodUnitThe 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()Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, 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.
-
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
protected DecimalType durationMax
The upper limit of how long this thing happens for when it happens.
-
durationUnit
protected Enumeration<Timing.UnitsOfTime> durationUnit
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.
-
periodUnit
protected Enumeration<Timing.UnitsOfTime> periodUnit
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.
-
offset
protected UnsignedIntType 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 Detail
-
TimingRepeatComponent
public TimingRepeatComponent()
Constructor
-
-
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.
-
getCountMaxElement
public IntegerType 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
public Timing.TimingRepeatComponent setCountMaxElement(IntegerType value)
- 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
public Timing.TimingRepeatComponent setCountMax(int value)
- Parameters:
value- A maximum value for the count of the desired repetitions (e.g. do something 6-8 times).
-
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.
-
setDuration
public Timing.TimingRepeatComponent setDuration(long value)
- Parameters:
value- How long this thing happens for when it happens.
-
setDuration
public Timing.TimingRepeatComponent setDuration(double 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.
-
setDurationMax
public Timing.TimingRepeatComponent setDurationMax(long value)
- Parameters:
value- The upper limit of how long this thing happens for when it happens.
-
setDurationMax
public Timing.TimingRepeatComponent setDurationMax(double value)
- Parameters:
value- The upper limit of how long this thing happens for when it happens.
-
getDurationUnitElement
public Enumeration<Timing.UnitsOfTime> 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
public Timing.TimingRepeatComponent setDurationUnitElement(Enumeration<Timing.UnitsOfTime> value)
- 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
public Timing.UnitsOfTime getDurationUnit()
- Returns:
- The units of time for the duration, in UCUM units.
-
setDurationUnit
public Timing.TimingRepeatComponent setDurationUnit(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.
-
setPeriod
public Timing.TimingRepeatComponent setPeriod(long 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.
-
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
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.
-
setPeriodMax
public Timing.TimingRepeatComponent setPeriodMax(long 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.
-
setPeriodMax
public Timing.TimingRepeatComponent setPeriodMax(double 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.
-
getPeriodUnitElement
public Enumeration<Timing.UnitsOfTime> 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
public Timing.TimingRepeatComponent setPeriodUnitElement(Enumeration<Timing.UnitsOfTime> value)
- 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
public Timing.UnitsOfTime getPeriodUnit()
- Returns:
- The units of time for the period in UCUM units.
-
setPeriodUnit
public Timing.TimingRepeatComponent setPeriodUnit(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.
-
getOffsetElement
public UnsignedIntType 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
public Timing.TimingRepeatComponent setOffsetElement(UnsignedIntType value)
- 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
public Timing.TimingRepeatComponent setOffset(int value)
- 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> childrenList)
- Overrides:
listChildrenin classElement
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classElement- Returns:
- 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()
-
-