Sha256: 73fe89fd7f5857e2392c5eeada3c872f15a14cb21659d6be2a649522f72eb1f2

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/events"

module Renalware
  module Events
    # Used to defines conditions where, for a particular event type, if the there is e.g. a case-
    # insensitive text match against the contents of the event document (eg 'COVID')
    # then an alert will be displayed in the UI (for the most recent match is there are > 1).
    class EventTypeAlertTrigger < ApplicationRecord
      belongs_to :event_type, class_name: "Events::Type"
      validates :event_type, presence: true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.1.0 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.167 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.166 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.165 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.164 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.163 app/models/renalware/events/event_type_alert_trigger.rb
renalware-core-2.0.162 app/models/renalware/events/event_type_alert_trigger.rb