Package org.hl7.fhir.r4.model
Class TriggerDefinition
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.Element
-
- org.hl7.fhir.r4.model.Type
-
- org.hl7.fhir.r4.model.TriggerDefinition
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class TriggerDefinition extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTriggerDefinition.TriggerTypestatic classTriggerDefinition.TriggerTypeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionconditionA 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>dataThe triggering data of the event (if this is a data trigger).protected StringTypenameA formal name for the event.protected TypetimingThe timing of the event (if this is a periodic trigger).protected Enumeration<TriggerDefinition.TriggerType>typeThe type of triggering event.
-
Constructor Summary
Constructors Constructor Description TriggerDefinition()ConstructorTriggerDefinition(Enumeration<TriggerDefinition.TriggerType> type)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, 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, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
type
protected Enumeration<TriggerDefinition.TriggerType> type
The type of triggering event.
-
name
protected StringType 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.
-
data
protected List<DataRequirement> 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.
-
condition
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.
-
-
Constructor Detail
-
TriggerDefinition
public TriggerDefinition()
Constructor
-
TriggerDefinition
public TriggerDefinition(Enumeration<TriggerDefinition.TriggerType> type)
Constructor
-
-
Method Detail
-
getTypeElement
public Enumeration<TriggerDefinition.TriggerType> getTypeElement()
- Returns:
type(The type of triggering event.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public TriggerDefinition setTypeElement(Enumeration<TriggerDefinition.TriggerType> value)
- Parameters:
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 value
-
getType
public TriggerDefinition.TriggerType getType()
- Returns:
- The type of triggering event.
-
setType
public TriggerDefinition setType(TriggerDefinition.TriggerType value)
- Parameters:
value- The type of triggering event.
-
getNameElement
public StringType getNameElement()
- Returns:
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 value
-
hasNameElement
public boolean hasNameElement()
-
hasName
public boolean hasName()
-
setNameElement
public TriggerDefinition setNameElement(StringType value)
- Parameters:
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 value
-
getName
public String getName()
- Returns:
- 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.
-
setName
public TriggerDefinition setName(String value)
- Parameters:
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.
-
getTiming
public Type getTiming()
- Returns:
timing(The timing of the event (if this is a periodic trigger).)
-
getTimingTiming
public Timing getTimingTiming() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
timing(The timing of the event (if this is a periodic trigger).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasTimingTiming
public boolean hasTimingTiming()
-
getTimingReference
public Reference getTimingReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
timing(The timing of the event (if this is a periodic trigger).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasTimingReference
public boolean hasTimingReference()
-
getTimingDateType
public DateType getTimingDateType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
timing(The timing of the event (if this is a periodic trigger).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasTimingDateType
public boolean hasTimingDateType()
-
getTimingDateTimeType
public DateTimeType getTimingDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
timing(The timing of the event (if this is a periodic trigger).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasTimingDateTimeType
public boolean hasTimingDateTimeType()
-
hasTiming
public boolean hasTiming()
-
setTiming
public TriggerDefinition setTiming(Type value)
- Parameters:
value-timing(The timing of the event (if this is a periodic trigger).)
-
getData
public List<DataRequirement> getData()
- Returns:
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.)
-
setData
public TriggerDefinition setData(List<DataRequirement> theData)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasData
public boolean hasData()
-
addData
public DataRequirement addData()
-
addData
public TriggerDefinition addData(DataRequirement t)
-
getDataFirstRep
public DataRequirement getDataFirstRep()
- Returns:
- The first repetition of repeating field
data, creating it if it does not already exist
-
getCondition
public Expression getCondition()
- Returns:
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.)
-
hasCondition
public boolean hasCondition()
-
setCondition
public TriggerDefinition setCondition(Expression value)
- Parameters:
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.)
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
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 Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base 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
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public TriggerDefinition copy()
-
copyValues
public void copyValues(TriggerDefinition dst)
-
typedCopy
protected TriggerDefinition typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classElement
-
-