Sha256: 33c358462f7f7967deb482645064ed6b7c5c240b541c7e70346d06ca28edf394

Contents?: true

Size: 389 Bytes

Versions: 17

Compression:

Stored size: 389 Bytes

Contents

require_dependency "renalware/low_clearance"

module Renalware
  module LowClearance
    class Patient < ActiveType::Record[Renalware::Patient]
      has_one :profile, dependent: :destroy

      def ever_been_on_low_clearance?
        @ever_been_on_low_clearance ||=
          modality_descriptions.exists?(type: "Renalware::LowClearance::ModalityDescription")
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.7 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.5 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.4 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.3 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.2 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.1 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/low_clearance/patient.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/low_clearance/patient.rb