Method: Renalware::Transplants::MDMPatientsQuery::NamedFilterScopes#patients_with_a_transplant_date_in_the_past_3_months
- Defined in:
- app/models/renalware/transplants/mdm_patients_query.rb
#patients_with_a_transplant_date_in_the_past_3_months ⇒ Object Also known as: recent
47 48 49 50 51 52 53 |
# File 'app/models/renalware/transplants/mdm_patients_query.rb', line 47 def patients_with_a_transplant_date_in_the_past_3_months joins(<<-SQL) LEFT JOIN transplant_recipient_operations ON patients.id = transplant_recipient_operations.patient_id SQL .where("transplant_recipient_operations.performed_on >= ?", 3.months.ago) end |