Sha256: 54254ead04b5b111963e27efb155fb04dce3de214069785d3145f8f70002696d
Contents?: true
Size: 741 Bytes
Versions: 18
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/pd" module Renalware module PD class Patient < ActiveType::Record[Renalware::Patient] has_many :pet_adequacy_results, dependent: :restrict_with_exception has_many :pet_results, dependent: :restrict_with_exception has_many :adequacy_results, dependent: :restrict_with_exception def treated? modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end # rubocop:disable Naming/PredicateName def has_ever_been_on_pd? @has_ever_been_on_pd ||= modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end # rubocop:enable Naming/PredicateName end end end
Version data entries
18 entries across 18 versions & 1 rubygems