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

Version Path
renalware-core-2.0.0.pre.rc10 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc9 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc8 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc7 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc6 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc5 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc4 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc3 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc1 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta12 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta11 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta10 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta9 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta8 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta7 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta6 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta5 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.beta4 db/seeds/default/transplants/transplant_donor_stages.rb