Class: Renalware::Transplants::RecipientDashboardPresenter
- Inherits:
-
Object
- Object
- Renalware::Transplants::RecipientDashboardPresenter
- Defined in:
- app/presenters/renalware/transplants/recipient_dashboard_presenter.rb
Instance Method Summary collapse
- #donations ⇒ Object
- #investigations ⇒ Object
- #recipient_operations ⇒ Object
- #recipient_workup ⇒ Object
- #registration ⇒ Object
Instance Method Details
#donations ⇒ Object
27 28 29 |
# File 'app/presenters/renalware/transplants/recipient_dashboard_presenter.rb', line 27 def donations @donations ||= Donation.for_recipient(patient).reversed end |
#investigations ⇒ Object
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_operations ⇒ Object
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_workup ⇒ Object
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 |
#registration ⇒ Object
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 |