Sha256: 54741a842128d787522377c06f6970aaa4d1d05775b6ef16efe5ff67c429c38b

Contents?: true

Size: 465 Bytes

Versions: 158

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Renalware
  # Presenter formatting a single patient for use behind any MDM Patients listing.
  class MDMPatientPresenter < PatientPresenter
    def esrf_date
      Renalware::Renal.cast_patient(__getobj__).profile&.esrf_on
    end

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

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/mdm_patient_presenter.rb