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

Version Path
renalware-core-2.0.147 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.146 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.145 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.144 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.143 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.142 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.141 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.140 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.139 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.138 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.137 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.136 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.135 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.134 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.133 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.132 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.131 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.130 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.129 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.128 db/seeds/default/transplants/donor_stages.rb