Sha256: 6d738e1c7d72f07ad1aca122f08d35a0b0567fab274181648d91233d10be0f59

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

require_dependency "renalware/pd"

module Renalware
  module PD
    class OrganismCode < ApplicationRecord
      has_many :infection_organisms
      has_many :peritonitis_episodes, through: :infection_organisms,
        source: :infectable, source_type: "PeritonitisEpisode"
      has_many :exit_site_infections, through: :infection_organisms,
        source: :infectable, source_type: "ExitSiteInfection"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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