Class: Renalware::Surveys::DashboardsController

Inherits:
BaseController show all
Defined in:
app/controllers/renalware/surveys/dashboards_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
# File 'app/controllers/renalware/surveys/dashboards_controller.rb', line 8

def show
  authorize Survey, :index?
  render locals: {
    patient: patient,
    eq5d_responses: EQ5DPivotedResponse.where(patient: patient).ordered,
    pos_s_responses: POSSPivotedResponse.where(patient: patient).ordered
  }
end