Sha256: 6cca2ae73b4cd77915c09b18a248c37f1d9748616af49b2bf3f67d85c168a689
Contents?: true
Size: 488 Bytes
Versions: 28
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/letters" module Renalware module Letters class PrimaryCarePhysician < ActiveType::Record[Renalware::Patients::PrimaryCarePhysician] has_many :patients has_many :letters, through: :patients def cc_on_letter?(letter) return false unless letter.patient.assigned_to_primary_care_physician?(self) letter.main_recipient.patient? || letter.main_recipient.contact? end end end end
Version data entries
28 entries across 28 versions & 1 rubygems