Module: Renalware::HD::NamedFilterScopes

Defined in:
app/models/renalware/hd/mdm_patients_query.rb

Overview

Module to allow us to mixin named filters like on_worryboard which correspond to tabs on the UI for example.

Instance Method Summary collapse

Instance Method Details

#noneObject



72
73
74
# File 'app/models/renalware/hd/mdm_patients_query.rb', line 72

def none
  self # NOOP - aka 'all'
end

#patients_on_the_worry_boardObject Also known as: on_worryboard



76
77
78
# File 'app/models/renalware/hd/mdm_patients_query.rb', line 76

def patients_on_the_worry_board
  joins("RIGHT OUTER JOIN patient_worries ON patient_worries.patient_id = patients.id")
end