public class EventRelatedTimeInterval extends SetComponentTime
Definition: Specifies a periodic interval of time where the recurrence is based on activities of daily living or other important events that are time-related but not fully determined by time.
event = A code for a common (periodical) activity of daily living based on which the event related periodic interval is specified.
offset = An interval of elapsed time (duration, not absolute point in time) that marks the offsets for the beginning, width and end of the event-related periodic interval measured from the time each such event actually occurred.
Example:
Width oneHour = new Width( 1.0, TimeUnitOfMeasure.HOUR ); EventCode afterDinner = EventCode.AFTER_DINNER; EventRelatedTimeInterval whenToTake = new EventRelatedTimeInterval(oneHour, afterDinner);
operatorvalue| Constructor and Description |
|---|
EventRelatedTimeInterval() |
EventRelatedTimeInterval(TimeQuantity offset,
EventCode code) |
| Modifier and Type | Method and Description |
|---|---|
EventCode |
getCode() |
TimeQuantity |
getOffset() |
void |
setCode(EventCode code) |
void |
setOffset(TimeQuantity offset) |
getNarrative, getOperator, setNarrative, setOperatorgetValue, setValuepublic EventRelatedTimeInterval()
public EventRelatedTimeInterval(TimeQuantity offset, EventCode code)
public EventCode getCode()
public void setCode(EventCode code)
public TimeQuantity getOffset()
public void setOffset(TimeQuantity offset)
Copyright © 2021. All rights reserved.