Sha256: 1a9b0bcab39d148f3a15deaf09a4318667801db832bd246b7333b187b29cce9d

Contents?: true

Size: 726 Bytes

Versions: 28

Compression:

Stored size: 726 Bytes

Contents

# frozen_string_literal: true

# frozen_string_literal: true

require_dependency "renalware/medications"

module Renalware
  module Medications
    class Provider
      def self.codes
        %i(gp hospital home_delivery)
      end
    end
  end
end

# require_dependency "renalware/medications"

# module Renalware
#   module Medications
#     class Provider < ApplicationRecord
#       validates :name, presence: true
#       validates :code, presence: true
#       has_many :provider_drug_types, dependent: :restrict_with_exception
#       has_many :drug_types, through: :provider_drug_types

#       # TODOL:  read from db
#       def self.codes
#         %i(gp hospital home_delivery)
#       end
#     end
#   end
# end

Version data entries

28 entries across 28 versions & 1 rubygems

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