Class: Renalware::Transplants::MDMPatientPresenter

Inherits:
MDMPatientPresenter show all
Defined in:
app/presenters/renalware/transplants/mdm_patient_presenter.rb

Overview

Presenter formatting a single patient for use behind any MDM Patients listing.

Instance Method Summary collapse

Methods inherited from MDMPatientPresenter

#current_observation_set, #esrf_date

Methods inherited from PatientPresenter

#address, #nhs_number, #renalreg_decision, #rpv_decision, #to_s

Instance Method Details

#last_operation_onObject



9
10
11
12
13
14
15
16
# File 'app/presenters/renalware/transplants/mdm_patient_presenter.rb', line 9

def last_operation_on
  Transplants::RecipientOperation
    .for_patient(__getobj__)
    .order(performed_on: :desc)
    .limit(1)
    .pluck(:performed_on)
    .first
end