Class TriggerDefinitionBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.core.TRIGGER_TYPE _type)
        Required fields for TriggerDefinition
        Parameters:
        _type - - The type of triggering event.
    • 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.
      • 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.
      • 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.