Sha256: 8e47342b10e3d978c51743f9a05ba117ac9a68652bb459dad4db8cb76e249a65
Contents?: true
Size: 834 Bytes
Versions: 17
Compression:
Stored size: 834 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
17 entries across 17 versions & 1 rubygems