Sha256: 6ce89ea43c03f238b25c4dbebaa3e51232ae106088240cce723040ec35a8b959
Contents?: true
Size: 871 Bytes
Versions: 26
Compression:
Stored size: 871 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/renal" module Renalware module Renal class AKIAlertSearchForm include ActiveModel::Model include Virtus::Model attribute :hospital_unit_id, Integer attribute :hospital_ward_id, Integer attribute :action, String attribute :term, String attribute :on_hotlist, String attribute :s, String attribute :named_filter, String def query @query ||= begin options = { identity_match: term, hospital_ward_id_eq: hospital_ward_id, hospital_ward_hospital_unit_id_eq: hospital_unit_id, action_id_eq: action, hotlist_eq: on_hotlist, s: s, named_filter: named_filter } AKIAlertQuery.new(options) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems