Sha256: 8e7e42cdbad7022b259d993785d30627ba1a998e43ccdd998def789051b1b89f

Contents?: true

Size: 1.93 KB

Versions: 24

Compression:

Stored size: 1.93 KB

Contents

module Renalware
  log "Adding Import File Types" do
    Feeds::FileType.find_or_create_by!(name: "practices") do |type|
      type.description = "Refresh NHS Practices"
      type.prompt = "Upload fullfile.zip from the HSCOrgRefData zip file you have downloaded from the NHS TRUD site"
      type.download_url_title = "ODS XML Organisation Data (fullfile.zip)",
      type.download_url = "https://isd.digital.nhs.uk/trud3/user/authenticated/group/0/pack/5/subpack/341/releases"
      type.filename_validation_pattern = "/fullfile.zip/i"
    end

    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

24 entries across 24 versions & 1 rubygems

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