Sha256: 1c4d23712d213d04386dda75ae0068fa81104cacf848c7df091c550291a82aab
Contents?: true
Size: 844 Bytes
Versions: 104
Compression:
Stored size: 844 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/transplants" require "attr_extras" module Renalware module Transplants class DonorDashboardPresenter attr_reader_initialize :patient def donor_stages @donor_stages ||= DonorStage.for_patient(patient).ordered end def donor_workup @donor_workup ||= DonorWorkup.for_patient(patient).first_or_initialize end def donations @donations ||= Donation.for_patient(patient).reversed end def donor_operations @donor_operations ||= DonorOperation.for_patient(patient).reversed end def investigations @investigations ||= begin Events::Investigation .for_patient(patient) .transplant_donors .ordered end end end end end
Version data entries
104 entries across 104 versions & 1 rubygems