Sha256: 876e2ca259ea7805873154641b0589ffd31f3dc85657ce9eb9e098249fedf074
Contents?: true
Size: 435 Bytes
Versions: 20
Compression:
Stored size: 435 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") } end end end
Version data entries
20 entries across 20 versions & 1 rubygems