Sha256: f58592f2dc8205b8f9e707ac2b16142ceeefafbd54f90863d108415bd28582f9
Contents?: true
Size: 539 Bytes
Versions: 9
Compression:
Stored size: 539 Bytes
Contents
require_dependency "renalware/pathology" module Renalware module Pathology # Responsible for finding Observations for the specified descriptions. # class ObservationsForDescriptionsQuery def initialize(relation: Observation.all, descriptions: ObservationDescription.all) @relation = relation @descriptions = descriptions end def call @relation .joins(:description) .preload(:description) .where(description: @descriptions) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems