Class: Renalware::Accesses::DashboardPresenter
- Inherits:
-
Object
- Object
- Renalware::Accesses::DashboardPresenter
- Defined in:
- app/presenters/renalware/accesses/dashboard_presenter.rb
Instance Method Summary collapse
- #assessments ⇒ Object
- #current_plan ⇒ Object
- #current_profile ⇒ Object
- #plans ⇒ Object
- #procedures ⇒ Object
- #profiles ⇒ Object
Instance Method Details
#assessments ⇒ Object
30 31 32 33 34 35 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 30 def assessments @assessments ||= CollectionPresenter.new( patient.assessments.ordered, AssessmentPresenter ) end |
#current_plan ⇒ Object
41 42 43 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 41 def current_plan @current_plan ||= ProfilePresenter.new(patient.current_plan) end |
#current_profile ⇒ Object
37 38 39 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 37 def current_profile @current_profile ||= ProfilePresenter.new(patient.current_profile) end |
#plans ⇒ Object
16 17 18 19 20 21 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 16 def plans @plans ||= CollectionPresenter.new( patient.plans.historical.ordered, PlanPresenter ) end |
#procedures ⇒ Object
23 24 25 26 27 28 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 23 def procedures @procedures ||= CollectionPresenter.new( patient.procedures.ordered, ProcedurePresenter ) end |
#profiles ⇒ Object
9 10 11 12 13 14 |
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 9 def profiles @profiles ||= CollectionPresenter.new( patient.profiles.past_and_future.ordered, ProfilePresenter ) end |