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