Sha256: 1c8a1d686373dbf5160c7c5646ee916776340dd7fe8aa7373a19407456beddd3
Contents?: true
Size: 480 Bytes
Versions: 28
Compression:
Stored size: 480 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 def treated? modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end def has_ever_been_on_pd? @has_ever_been_on_pd ||= modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end end end end
Version data entries
28 entries across 28 versions & 1 rubygems