public class ScheduleDt extends BaseIdentifiableElement implements ICompositeDatatype
Definition: Specifies an event that may occur multiple times. Schedules are used for to reord when things are expected or requested to occur.
Requirements: Need to able to track schedules. There are several different ways to do scheduling: one or more specified times, a simple rules like three times a day, or before/after meals
| Modifier and Type | Class and Description |
|---|---|
static class |
ScheduleDt.Repeat
Block class for child element: Schedule.repeat (Only if there is none or one event)
|
| Constructor and Description |
|---|
ScheduleDt()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PeriodDt |
addEvent()
Adds and returns a new value for event (When the event occurs)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
List<PeriodDt> |
getEvent()
Gets the value(s) for event (When the event occurs).
|
PeriodDt |
getEventFirstRep()
Gets the first repetition for event (When the event occurs),
creating it if it does not already exist.
|
ScheduleDt.Repeat |
getRepeat()
Gets the value(s) for repeat (Only if there is none or one event).
|
boolean |
isEmpty() |
ScheduleDt |
setEvent(List<PeriodDt> theValue)
Sets the value(s) for event (When the event occurs)
|
ScheduleDt |
setRepeat(ScheduleDt.Repeat theValue)
Sets the value(s) for repeat (Only if there is none or one event)
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic List<PeriodDt> getEvent()
null.
Definition: Identifies specific time periods when the event should occur
public ScheduleDt setEvent(List<PeriodDt> theValue)
Definition: Identifies specific time periods when the event should occur
public PeriodDt addEvent()
Definition: Identifies specific time periods when the event should occur
public PeriodDt getEventFirstRep()
Definition: Identifies specific time periods when the event should occur
public ScheduleDt.Repeat getRepeat()
null.
Definition: Identifies a repeating pattern to the intended time periods.
public ScheduleDt setRepeat(ScheduleDt.Repeat theValue)
Definition: Identifies a repeating pattern to the intended time periods.
Copyright © 2014 University Health Network. All rights reserved.