Sha256: 479d87572a86e1c521a60c8a0c7e279ff4ad3c5e0ed65beaeb3a6d4ee999ee8f
Contents?: true
Size: 865 Bytes
Versions: 61
Compression:
Stored size: 865 Bytes
Contents
# frozen_string_literal: true 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
61 entries across 61 versions & 1 rubygems