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