Sha256: ffef8a21999f2e2a84dcf7728a129ada8fb9c2d03f2e1554cdc5e9e11b22768f
Contents?: true
Size: 402 Bytes
Versions: 112
Compression:
Stored size: 402 Bytes
Contents
# frozen_string_literal: true module Renalware log "Adding Renal Registry Ethnicities" do file_path = File.join(File.dirname(__FILE__), "rr18_ethnicity_codes.csv") CSV.foreach(file_path, headers: true) do |row| Patients::Ethnicity.find_or_create_by!(rr18_code: row["code"]) do |code| code.name = row["name"] code.cfh_name = row["cfh_name"] end end end end
Version data entries
112 entries across 112 versions & 1 rubygems