Method: Renalware::HD::MDMPresenter#hd_profile

Defined in:
app/presenters/renalware/hd/mdm_presenter.rb

#hd_profileObject



24
25
26
27
28
29
30
31
32
33
# File 'app/presenters/renalware/hd/mdm_presenter.rb', line 24

def hd_profile
  @hd_profile ||= begin
    profile = HD::Profile.for_patient(patient).first
    if profile.present?
      HD::ProfilePresenter.new(profile)
    else
      NullObject.instance
    end
  end
end