public class TriggerDefinition extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
| Modifier and Type | Class and Description |
|---|---|
static class |
TriggerDefinition.TriggerType |
static class |
TriggerDefinition.TriggerTypeEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
condition
A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires.
|
protected List<DataRequirement> |
data
The triggering data of the event (if this is a data trigger).
|
protected StringType |
name
A formal name for the event.
|
protected Type |
timing
The timing of the event (if this is a periodic trigger).
|
protected Enumeration<TriggerDefinition.TriggerType> |
type
The type of triggering event.
|
| Constructor and Description |
|---|
TriggerDefinition()
Constructor
|
TriggerDefinition(Enumeration<TriggerDefinition.TriggerType> type)
Constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected Enumeration<TriggerDefinition.TriggerType> type
protected StringType name
protected List<DataRequirement> data
protected Expression condition
public TriggerDefinition()
public TriggerDefinition(Enumeration<TriggerDefinition.TriggerType> type)
public Enumeration<TriggerDefinition.TriggerType> getTypeElement()
type (The type of triggering event.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the valuepublic boolean hasTypeElement()
public boolean hasType()
public TriggerDefinition setTypeElement(Enumeration<TriggerDefinition.TriggerType> value)
value - type (The type of triggering event.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the valuepublic TriggerDefinition.TriggerType getType()
public TriggerDefinition setType(TriggerDefinition.TriggerType value)
value - The type of triggering event.public StringType getNameElement()
name (A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the valuepublic boolean hasNameElement()
public boolean hasName()
public TriggerDefinition setNameElement(StringType value)
value - name (A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the valuepublic String getName()
public TriggerDefinition setName(String value)
value - A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context.public Type getTiming()
timing (The timing of the event (if this is a periodic trigger).)public Timing getTimingTiming() throws org.hl7.fhir.exceptions.FHIRException
timing (The timing of the event (if this is a periodic trigger).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasTimingTiming()
public Reference getTimingReference() throws org.hl7.fhir.exceptions.FHIRException
timing (The timing of the event (if this is a periodic trigger).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasTimingReference()
public DateType getTimingDateType() throws org.hl7.fhir.exceptions.FHIRException
timing (The timing of the event (if this is a periodic trigger).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasTimingDateType()
public DateTimeType getTimingDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
timing (The timing of the event (if this is a periodic trigger).)org.hl7.fhir.exceptions.FHIRExceptionpublic boolean hasTimingDateTimeType()
public boolean hasTiming()
public TriggerDefinition setTiming(Type value)
value - timing (The timing of the event (if this is a periodic trigger).)public List<DataRequirement> getData()
data (The triggering data of the event (if this is a data trigger). If more than one data is requirement is specified, then all the data requirements must be true.)public TriggerDefinition setData(List<DataRequirement> theData)
this for easy method chainingpublic boolean hasData()
public DataRequirement addData()
public TriggerDefinition addData(DataRequirement t)
public DataRequirement getDataFirstRep()
data, creating it if it does not already existpublic Expression getCondition()
condition (A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires.)public boolean hasCondition()
public TriggerDefinition setCondition(Expression value)
value - condition (A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires.)protected void listChildren(List<Property> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic TriggerDefinition copy()
public void copyValues(TriggerDefinition dst)
protected TriggerDefinition typedCopy()
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class ElementCopyright © 2014–2021 Health Level 7. All rights reserved.