Class: Renalware::Renal::AKIAlertSearchForm

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, Virtus::Model
Defined in:
app/models/renalware/renal/aki_alert_search_form.rb

Instance Method Summary collapse

Instance Method Details

#queryObject



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/models/renalware/renal/aki_alert_search_form.rb', line 18

def query
  @query ||= begin
    options = {
      created_at_casted_date_equals: date,
      identity_match: term,
      hospital_ward_id_eq: hospital_ward_id,
      action_id_eq: action,
      hotlist_eq: on_hotlist,
      s: s
    }
    AKIAlertQuery.new(options)
  end
end