Sha256: 9d0a984afcbf65dc4d15eded42f136696c70f31ae12d5056c49e91ada7adbb5e

Contents?: true

Size: 769 Bytes

Versions: 75

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/pd"

module Renalware
  module PD
    # Backed by a (scenic) view this model is used to resolve the PD Regime in use or created
    # just after a patient was assigned an PD modality,
    # Note that this view could have been written as a SQL function or a ruby query object.
    # I implemented it as a view because I would like semi-technical people to be able to inspect
    # the view to ascertain which PD modalities have no regime. Its just easier to review the
    # data if it is a view.
    #
    # Example usage
    #  modality_regime = PD::RegimeForModality.where(modality_id: 1)
    #  modality_regime.pd_regime_id # => 123
    #
    class RegimeForModality < ApplicationRecord
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
renalware-core-2.0.127 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.126 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.125 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.124 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.123 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.121 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.120 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.119 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.118 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.117 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.116 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.115 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.113 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.112 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.111 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.110 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.109 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.108 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.106 app/models/renalware/pd/regime_for_modality.rb
renalware-core-2.0.105 app/models/renalware/pd/regime_for_modality.rb