Sha256: 815c129944cb13aa8df134da2f6dbdb1f29e4e75db3b6853a16a3c0e69d698d1
Contents?: true
Size: 1.04 KB
Versions: 17
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require_dependency "renalware/accesses" require "attr_extras" module Renalware module Accesses class DashboardPresenter attr_reader_initialize :patient def profiles @profiles ||= CollectionPresenter.new( patient.profiles.past_and_future.ordered, ProfilePresenter ) end def plans @plans ||= CollectionPresenter.new( patient.plans.historical.ordered, PlanPresenter ) end def procedures @procedures ||= CollectionPresenter.new( patient.procedures.ordered, ProcedurePresenter ) end def assessments @assessments ||= CollectionPresenter.new( patient.assessments.ordered, AssessmentPresenter ) end def current_profile @current_profile ||= ProfilePresenter.new(patient.current_profile) end def current_plan @current_plan ||= ProfilePresenter.new(patient.current_plan) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems