Class: Renalware::Pathology::ObservationForPatientObservationDescriptionQuery

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/pathology/observation_for_patient_observation_description_query.rb

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
16
# File 'app/models/renalware/pathology/observation_for_patient_observation_description_query.rb', line 10

def call
  patient
    .observations
    .where(description: observation_description)
    .order(observed_at: :desc)
    .first
end