Sha256: be51899e2facb32a5d92a7dcd2630883df751844e809446df45cdd986bd12a14
Contents?: true
Size: 434 Bytes
Versions: 28
Compression:
Stored size: 434 Bytes
Contents
module Renalware module Clinical class PatientDryWeightsQuery def initialize(patient:, search_params: nil) @patient = patient @search_params = search_params || {} @search_params.reverse_merge!(s: "assessed_on desc") end def call search.result end def search @search ||= DryWeight.where(patient: @patient).search(@search_params) end end end end
Version data entries
28 entries across 28 versions & 1 rubygems