Class: Renalware::LowClearance::MDMPresenter

Inherits:
MDMPresenter show all
Defined in:
app/presenters/renalware/low_clearance/mdm_presenter.rb

Constant Summary

Constants inherited from MDMPresenter

MDMPresenter::NullAccess

Instance Attribute Summary

Attributes inherited from MDMPresenter

#patient, #view_context

Instance Method Summary collapse

Methods inherited from MDMPresenter

#access, #clinic_visits, #clinic_visits_having_measurements, #current_immunosuppressant_prescriptions, #current_pathology_for_code, #current_prescriptions, #current_problems, #current_transplant_status, #esa_prescriptions, #events_of_type, #historical_immunosuppressant_prescriptions, #historical_prescriptions, #initialize, #letters, #pathology, #pathology_for_codes

Constructor Details

This class inherits a constructor from Renalware::MDMPresenter

Instance Method Details

#low_clearanceObject



6
7
8
9
10
11
# File 'app/presenters/renalware/low_clearance/mdm_presenter.rb', line 6

def low_clearance
  @low_clearance ||= begin
    LowClearance.cast_patient(patient).profile&.document ||
      Renalware::LowClearance::ProfileDocument.new
  end
end