Sha256: 91c31152a6ec9195bec784c053828fa87cbf10967d9fa058be64b7ca73cd1dbe

Contents?: true

Size: 846 Bytes

Versions: 9

Compression:

Stored size: 846 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module Virology
    log "Adding virology vaccination types" do
      {
        hbv1: "HBV Vaccination 1",
        hbv2: "HBV Vaccination 2",
        hbv3: "HBV Vaccination 3",
        hbv4: "HBV Vaccination 4",
        hbv_booster: "HBV Booster",
        influenza: "Influenza",
        pneumococcus: "Pneumococcus",
        covid19_1: "COVID-19 1",
        covid19_2: "COVID-19 2",
        patient_refused: "Patient Refused",
        patient_refused_covid19: "Patient refused Covid-19 vaccine",
        patient_refused_covid19_pfizer: "Patient refused Covid-19 vaccine Pfizer",
        patient_refused_covid19_astrazenica: "Patient refused Covid-19 vaccine Astra Zeneca"
      }.each do |code, name|
        VaccinationType.find_or_create_by!(code: code, name: name)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.1.0 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.167 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.166 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.165 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.164 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.163 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.162 db/seeds/default/virology/vaccination_types.rb
renalware-core-2.0.161 db/seeds/default/virology/vaccination_types.rb