Class: Renalware::PD::MDMPatientsController

Inherits:
MDMPatientsController show all
Defined in:
app/controllers/renalware/pd/mdm_patients_controller.rb

Instance Method Summary collapse

Methods included from PresenterHelper

#present

Methods inherited from BaseController

#patient

Instance Method Details

#indexObject



8
9
10
11
12
# File 'app/controllers/renalware/pd/mdm_patients_controller.rb', line 8

def index
  render_index(query: query,
               page_title: t(".page_title"),
               view_proc: ->(patient) { patient_pd_mdm_path(patient) })
end

#named_filterObject



18
19
20
# File 'app/controllers/renalware/pd/mdm_patients_controller.rb', line 18

def named_filter
  params[:named_filter]
end

#queryObject



14
15
16
# File 'app/controllers/renalware/pd/mdm_patients_controller.rb', line 14

def query
  @query ||= MDMPatientsQuery.new(q: params[:q], named_filter: named_filter)
end