Sha256: b1f878b95cdff418bd9ddb4ab4d77ad445a381919eb5e725d9cf048c2a70d53b

Contents?: true

Size: 535 Bytes

Versions: 62

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/renal"
require "attr_extras"

module Renalware
  module Renal
    class ClinicalSummaryPresenter
      rattr_initialize :patient

      # Host application may override the order or add other summary presenters
      def summary_parts(current_user)
        Renalware
          .config
          .page_layouts[:clinical_summary]
          .map(&:constantize)
          .map { |klass| klass.new(patient, current_user) }
          .select(&:render?)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
renalware-core-2.0.153 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.147 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.146 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.145 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.144 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.143 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.142 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.141 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.140 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.139 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.138 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.137 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.136 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.135 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.134 app/presenters/renalware/renal/clinical_summary_presenter.rb
renalware-core-2.0.133 app/presenters/renalware/renal/clinical_summary_presenter.rb