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