Class: Renalware::PD::MDMPresenter

Inherits:
MDMPresenter show all
Defined in:
app/presenters/renalware/pd/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

#current_regimeObject



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

def current_regime
  @current_regime ||= patient.pd_regimes&.current
end

#latest_pd_line_change_eventsObject



10
11
12
# File 'app/presenters/renalware/pd/mdm_presenter.rb', line 10

def latest_pd_line_change_events
  @latest_pd_line_change_events ||= Events::LineChangeEventQuery.new(patient).call(limit: 1)
end