Sha256: d04e0821d2a2df7b4e52a402c664d4f8053ce40f78a09dbbd6553c95cbdb8846
Contents?: true
Size: 836 Bytes
Versions: 18
Compression:
Stored size: 836 Bytes
Contents
module Renalware log "Adding Transplant Donor Stage Positions" do names = [ "Currently Active", "Active Workup but on Hold", "Not Currently Active", "Unsuitable - clinical", "Unsuitable - declined", "Ready", "Kidney Donated" ] names.each_with_index do |name, index| Transplants::DonorStagePosition.find_or_create_by!( name: name, position: index * 10 ) end end log "Adding Transplant Donor Stage Statuses" do names = [ "Initial Contact", "Initial Meeting / Tests", "Extended Assessment", "Awaiting HTA", "Completed / Ready", ] names.each_with_index do |name, index| Transplants::DonorStageStatus.find_or_create_by!( name: name, position: index * 10 ) end end end
Version data entries
18 entries across 18 versions & 1 rubygems