Sha256: fa5af1863e3f610ad67b7ea254103d9f794b5969d54b2114650108e9a85a16be
Contents?: true
Size: 556 Bytes
Versions: 123
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/renal" module Renalware module Renal class Patient < ActiveType::Record[Renalware::Patient] has_one :profile scope :having_no_primary_renal_diagnosis, lambda { where(renal_profile: nil) } scope :with_profile, lambda { joins("LEFT OUTER JOIN renal_profiles ON renal_profiles.patient_id = patients.id") } scope :with_profile_avoiding_redefinition_of_renal_profiles_alias, lambda { eager_load(:profile) } end end end
Version data entries
123 entries across 123 versions & 1 rubygems