Sha256: 9eb1b02b9799f185539ee6d13a90c231259072a8624420f947d9febe4051c3eb

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

module Renalware
  # Presenter formatting a single patient for use behind any MDM Patients listing.
  class MDMPatientPresenter < PatientPresenter
    delegate :hgb_result,
             :hgb_observed_at,
             :ure_result,
             :ure_observed_at,
             :cre_result,
             :cre_observed_at,
             :mdrd_result,
             :mdrd_observed_at,
             to: :current_key_observation_set, allow_nil: true

    def esrf_date
      Renalware::Renal.cast_patient(__getobj__).profile&.esrf_on
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/mdm_patient_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/mdm_patient_presenter.rb