Sha256: 3b78c83fdb5778ac8210b8910dc581c1b6c88a9291f4643a8e38314cea9ec9d0

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

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

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/mdm_patient_presenter.rb