Class: Renalware::Pathology::ObservationForPatientObservationDescriptionQuery
- Inherits:
-
Object
- Object
- Renalware::Pathology::ObservationForPatientObservationDescriptionQuery
- Defined in:
- app/models/renalware/pathology/observation_for_patient_observation_description_query.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |