Coder Social home page Coder Social logo

2022_23_flu_data_upload's Introduction

Flu_data_upload

Repeated action to clean and save flu data for Wales and England

Data sources

Country Name Website link Public dashboard Link Direct data link
England UEC Daily SitRep โ€“ Web File Timeseries https://www.england.nhs.uk/statistics/statistical-work-areas/uec-sitrep/urgent-and-emergency-care-daily-situation-reports-2022-23/ None The link changes, see the "UEC Daily SitRep โ€“ Web File Timeseries" link on the website.
Wales Weekly ARI Hospital Dashboard Data https://www2.nphs.wales.nhs.uk/CommunitySurveillanceDocs.nsf Tableau Direct download

What does the cleaned data look like?

How does the data get cleaned and saved in GitHub?

  • There is a recurring trigger for this to automatically happen in GitHub Actions. England trigger and Wales trigger.
  • Each trigger triggers the code to run in its respective yml files stored in the .github/workflows folder. This yml code is where any changes in the data sets get saved in GitHub.
  • As part of the yml code, they run their respective .py code. The England .py code contains Python code which extracts the data from the link, cleans it and then saves it as a csv. The Wales .py code contains Python code which takes the Weekly ARI hospital dashboard data - last 90 days.xlsx file in the GitHub repository, cleans it and then saves it as a csv. The Wales data must be manually saved into the GitHub repository for it to be updated as this data can only be accessed from the UK.
  • The yml files contain the code below which outlines how frequently the code is triggered and run. This example says that this schedule will run every day at 10:00am. Search cron to understand more about this syntax.
schedule:
  - cron: "0 10 * * *"

How often does the data refresh?

  • Data will only be saved in GitHub if it has changed.
  • The England website says that the data refreshes every Thursday at 9:30am. The trigger in GitHub is therefore set to 10:00am everyday, in case there are delays.
  • The Wales website says that the data is refreshed weekly but it is not clear when exactly this happens. The trigger in GitHub is therefore set to 10:00am everyday. But remember that the source is the file manually saved in the repo so this needs to be updated first.
  • As of 24/04/2023, all of the actions to refresh data has been turned off.

2022/23

  • England: "Weekly updates will commence on Thursday 24 November 2022 and will continue every Thursday at 09:30 through the winter, with a final publication on Thursday 6 April 2023 covering the week ending Sunday 2 April 2023."
  • Wales: As of 27/04/2023, the data will no longer be scraped from this repo.

2022_23_flu_data_upload's People

Contributors

s-sam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.