Sha256: 9fd3f4167eb530be31890242267dd33e6779ca639fc0abe1e38e64e9b1dc143b
Contents?: true
Size: 514 Bytes
Versions: 104
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/pathology" module Renalware module Pathology class ObservationForPatientObservationDescriptionQuery def initialize(patient, observation_description) @patient = patient @observation_description = observation_description end def call @patient .observations .where(description: @observation_description) .order(observed_at: :desc) .first end end end end
Version data entries
104 entries across 104 versions & 1 rubygems