Sha256: 93051976eb0b98cb0319b860ddbfae56c98f7c091f07e42266a644538c43195a
Contents?: true
Size: 948 Bytes
Versions: 5
Compression:
Stored size: 948 Bytes
Contents
require_dependency "renalware/transplants" require "attr_extras" module Renalware module Transplants class RecipientDashboardPresenter attr_reader_initialize :patient def recipient_workup @recipient_workup ||= RecipientWorkup.for_patient(patient).first_or_initialize end def registration @registration ||= begin WaitListRegistrationPresenter.new( Registration.for_patient(patient).first_or_initialize ) end end def recipient_operations @recipient_operations ||= RecipientOperation.for_patient(patient).reversed end def donations @donations ||= Donation.for_recipient(patient).reversed end def investigations @investigations ||= begin Events::Investigation .for_patient(patient) .transplant_recipients .ordered end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems