Class: Renalware::Accesses::DashboardPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/renalware/accesses/dashboard_presenter.rb

Instance Method Summary collapse

Instance Method Details

#assessmentsObject



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_planObject



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_profileObject



37
38
39
# File 'app/presenters/renalware/accesses/dashboard_presenter.rb', line 37

def current_profile
  @current_profile ||= ProfilePresenter.new(patient.current_profile)
end

#plansObject



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

#proceduresObject



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

#profilesObject



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