Class: Renalware::Transplants::RecipientDashboardPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/renalware/transplants/recipient_dashboard_presenter.rb

Instance Method Summary collapse

Instance Method Details

#donationsObject



27
28
29
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 27

def donations
  @donations ||= Donation.for_recipient(patient).reversed
end

#investigationsObject



31
32
33
34
35
36
37
38
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 31

def investigations
  @investigations ||= begin
    Events::Investigation
      .for_patient(patient)
      .transplant_recipients
      .ordered
  end
end

#recipient_operationsObject



23
24
25
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 23

def recipient_operations
  @recipient_operations ||= RecipientOperation.for_patient(patient).reversed
end

#recipient_workupObject



11
12
13
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 11

def recipient_workup
  @recipient_workup ||= RecipientWorkup.for_patient(patient).first_or_initialize
end

#registrationObject



15
16
17
18
19
20
21
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 15

def registration
  @registration ||= begin
    WaitListRegistrationPresenter.new(
      Registration.for_patient(patient).first_or_initialize
    )
  end
end