Sha256: 7a383a6ca6b20c0275de6798b8780829940b26b405be298ee0935f7fb2bfabb3

Contents?: true

Size: 402 Bytes

Versions: 9

Compression:

Stored size: 402 Bytes

Contents

require_dependency "renalware/patients"

module Renalware
  module Patients
    class Practice < ApplicationRecord
      has_one :address, as: :addressable
      has_and_belongs_to_many :primary_care_physicians

      accepts_nested_attributes_for :address, allow_destroy: true

      validates_presence_of :name
      validates_presence_of :address
      validates_presence_of :code
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta11 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/patients/practice.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/patients/practice.rb