Sha256: b9b09010d21f4f095f7ee5f141a713f51fb3fb8c8434182889c4fd31ad8bfbfd

Contents?: true

Size: 697 Bytes

Versions: 6

Compression:

Stored size: 697 Bytes

Contents

module Renalware
  log "Adding Modality Descriptions" do

    Deaths::ModalityDescription.find_or_create_by!(name: "Death")
    Transplants::DonorModalityDescription.find_or_create_by!(name: "Live Donor")
    Transplants::RecipientModalityDescription.find_or_create_by!(name: "Transplant")
    PD::ModalityDescription.find_or_create_by!(name: "PD")
    HD::ModalityDescription.find_or_create_by!(name: "HD")
    [
      "LCC",
      "LOST",
      "Nephrology",
      "Potential LD",
      "Supportive Care",
      "Transfer Out",
      "Transplant",
      "vCKD",
      "Waiting List"
    ].each do |modal_name|
      Modalities::Description.find_or_create_by!(name: modal_name)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.0.pre.beta8 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.0.pre.beta7 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.0.pre.beta6 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.0.pre.beta5 db/seeds/default/modalities/descriptions.rb
renalware-core-2.0.0.pre.beta4 db/seeds/default/modalities/descriptions.rb