Class: Renalware::MDMPatientPresenter

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

Overview

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

Direct Known Subclasses

Transplants::MDMPatientPresenter

Instance Method Summary collapse

Methods inherited from PatientPresenter

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

Instance Method Details

#current_observation_setObject



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

def current_observation_set
  @current_observation_set ||= begin
    Renalware::Pathology::ObservationSetPresenter.new(__getobj__.current_observation_set)
  end
end

#esrf_dateObject



6
7
8
# File 'app/presenters/renalware/mdm_patient_presenter.rb', line 6

def esrf_date
  Renalware::Renal.cast_patient(__getobj__).profile&.esrf_on
end