Sha256: a9578d96e2d06636fcbe4bf1a94db49ca0916d9d950ba8e3afccc4ba33bc93d8

Contents?: true

Size: 774 Bytes

Versions: 75

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/hd"

module Renalware
  module HD
    # Backed by a (scenic) view this model is used to resolve the HD Profile in use or created
    # just after a patient was assigned an HD 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 HD modalities have no profile etc. Its just easier to review the
    # data if it is a view.
    #
    # Example usage
    #  modality_profile = HD::ProfileForModality.where(modality_id: 1)
    #  modality_profile.hd_profile_id # => 123
    class ProfileForModality < ApplicationRecord
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.1.0 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.167 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.166 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.165 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.164 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.163 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.162 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.161 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.160 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.159 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.158 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.157 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.156 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.155 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.153 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.152 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.151 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.149 app/models/renalware/hd/profile_for_modality.rb
renalware-core-2.0.148 app/models/renalware/hd/profile_for_modality.rb