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.1.1 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.1.0 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.167 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.166 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.165 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.164 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.163 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.162 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.161 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.160 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.159 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.158 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.157 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.156 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.155 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.153 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.152 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.151 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.149 db/seeds/default/transplants/donor_stages.rb
renalware-core-2.0.148 db/seeds/default/transplants/donor_stages.rb