Sha256: 9559a5ce0c4dfd45b9181585e1e9afd453cb71f72425dac5ed07a1a3d9a8bc53

Contents?: true

Size: 471 Bytes

Versions: 30

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

module Renalware
  log "Adding Primary Renal Diagnosis (PRD) Codes" do
    return if Renal::PRDDescription.count > 0

    file_path = File.join(File.dirname(__FILE__), "prd_descriptions.csv")
    descriptions = []
    CSV.foreach(file_path, headers: true) do |row|
      descriptions << Renal::PRDDescription.new(
        code: row["code"],
        term: row["term"]
      )
    end
    Renal::PRDDescription.import! descriptions
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.1.0 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.167 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.166 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.165 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.164 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.163 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.162 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.161 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.160 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.159 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.158 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.157 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.156 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.155 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.153 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.152 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.151 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.149 db/seeds/default/renal/prd_descriptions.rb
renalware-core-2.0.148 db/seeds/default/renal/prd_descriptions.rb