Class TriggerDefinitionBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.TriggerDefinitionBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,TriggerDefinitionBuilder
- Enclosing interface:
- TriggerDefinitionBuilder
public static class TriggerDefinitionBuilder.Impl extends java.lang.Object implements TriggerDefinitionBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.TriggerDefinitionBuilder
TriggerDefinitionBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.TRIGGER_TYPE _type)Required fields forTriggerDefinition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.TriggerDefinitionbuild()TriggerDefinitionBuilder.ImplwithCondition(@NonNull ExpressionBuilder condition)TriggerDefinitionBuilder.ImplwithCondition(@NonNull com.babylonhealth.lit.core.model.Expression condition)TriggerDefinitionBuilder.ImplwithData(@NonNull DataRequirementBuilder... data)TriggerDefinitionBuilder.ImplwithData(@NonNull com.babylonhealth.lit.core.model.DataRequirement... data)TriggerDefinitionBuilder.ImplwithData(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.DataRequirement> data)TriggerDefinitionBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)TriggerDefinitionBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)TriggerDefinitionBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)TriggerDefinitionBuilder.ImplwithId(@NonNull java.lang.String id)TriggerDefinitionBuilder.ImplwithName(@NonNull java.lang.String name)TriggerDefinitionBuilder.ImplwithTiming(@NonNull Unions.Choice01658422381 timing)
-
-
-
Method Detail
-
withId
public TriggerDefinitionBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withName
public TriggerDefinitionBuilder.Impl withName(@NonNull @NonNull java.lang.String name)
- Parameters:
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.
-
withData
public TriggerDefinitionBuilder.Impl withData(@NonNull @NonNull com.babylonhealth.lit.core.model.DataRequirement... data)
- Parameters:
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.
-
withData
public TriggerDefinitionBuilder.Impl withData(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.DataRequirement> data)
- Parameters:
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.
-
withData
public TriggerDefinitionBuilder.Impl withData(@NonNull @NonNull DataRequirementBuilder... data)
-
withExtension
public TriggerDefinitionBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public TriggerDefinitionBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public TriggerDefinitionBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
withTiming
public TriggerDefinitionBuilder.Impl withTiming(@NonNull @NonNull Unions.Choice01658422381 timing)
- Parameters:
timing- - The timing of the event (if this is a periodic trigger). Field is a 'choice' field. Type should be one of FHIRDate, FHIRDateTime, Reference, Timing. To pass the value in, wrap with one of the TriggerDefinitionBuilder.timing static methods
-
withCondition
public TriggerDefinitionBuilder.Impl withCondition(@NonNull @NonNull com.babylonhealth.lit.core.model.Expression condition)
- Parameters:
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.
-
withCondition
public TriggerDefinitionBuilder.Impl withCondition(@NonNull @NonNull ExpressionBuilder condition)
-
build
public com.babylonhealth.lit.core.model.TriggerDefinition build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfaceTriggerDefinitionBuilder
-
-