Sha256: f8ae54c6c33f61c50b1f2aaeb27e38a28b700d3cee9b0dab6dfb971f25cd3480

Contents?: true

Size: 1.48 KB

Versions: 86

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

module Renalware
  log "Adding Import File Types" do
    Feeds::FileType.find_or_create_by!(name: "primary_care_physicians") do |type|
      type.description = "Refresh NHS GPs"
      type.prompt = "Upload egpcur.zip from NHS ODS weekly data downloaded from the NHS TRUD site"
      type.download_url_title = "egpcur.zip Current GP"
      type.download_url = "https://isd.digital.nhs.uk/trud3/user/authenticated/group/0/pack/5/subpack/58/releases"
      type.filename_validation_pattern = "/egpcur.zip/i"
    end

    Feeds::FileType.find_or_create_by!(name: "practice_memberships") do |type|
      type.description = "Refresh which NHS Practices each GP is a members of"
      type.prompt = "Upload epracmem.zip from NHS ODS weekly data downloaded from the NHS TRUD site"
      type.download_url_title = "ODS Weekly data on NHS TRUD"
      type.download_url = "https://isd.digital.nhs.uk/trud3/user/authenticated/group/0/pack/5/subpack/58/releases"
      type.filename_validation_pattern = "/epracmem.zip/i"
    end

    # Feeds::FileType.find_or_create_by!(name: "drugs") do |type|
    #   type.description = "Refresh NHS dmd+d drugs"
    #   type.prompt = "Upload the the dmd+d zip file downloaded from the NHS TRUD site"
    #   type.download_url_title = "NHSBSA dm+d on NHS TRUD",
    #   type.download_url = "https://isd.digital.nhs.uk/trud3/user/authenticated/group/0/pack/1/subpack/24/releases"
    #   type.filename_validation_pattern = "/nhsbsa.*\.zip/i"
    # end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.1.0 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.167 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.166 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.165 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.164 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.163 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.162 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.161 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.160 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.159 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.158 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.157 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.156 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.155 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.153 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.152 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.151 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.149 db/seeds/default/feeds/import_file_types.rb
renalware-core-2.0.148 db/seeds/default/feeds/import_file_types.rb