Sha256: 8e47342b10e3d978c51743f9a05ba117ac9a68652bb459dad4db8cb76e249a65

Contents?: true

Size: 834 Bytes

Versions: 17

Compression:

Stored size: 834 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

17 entries across 17 versions & 1 rubygems

Version Path
renalware-core-2.0.16 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.15 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.14 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.13 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.12 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.11 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.9 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.8 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.7 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.5 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.4 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.3 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.2 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.1 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc13 db/seeds/default/transplants/transplant_donor_stages.rb
renalware-core-2.0.0.pre.rc11 db/seeds/default/transplants/transplant_donor_stages.rb