-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENHANCE] [DATA] Update NICD Hospitalization Data #924
Comments
The challenge has been keeping up with the updates of the NICD Hospital Admissions reports. They are available here https://www.nicd.ac.za/diseases-a-z-index/disease-index-covid-19/surveillance-reports/daily-hospital-surveillance-datcov-report/ The second page of the daily reports has this table Now if we can get someone to start doing backfill (start with 1 December 2021 for example, and work backwards it would be great @maximeLpt |
Do you have a scrapper for that? |
@maximeLpt no. It was initially filled in by a volunteer, day by day. |
Is there no chance NICD can/will just share the table in Excel or CSV format? |
A friend has made the request, we will see if she gets a response @anelda |
Hi all, I had a go at scraping the NICD datasets for data since the 27 October 2020 (when the daily reports table has 10 columns). There is still work to do to get some of the columns described in covid19za/data/nicd_hospital_surveillance_data.csv (general, high care, isolation, total health care workers admitted) and in filtering for the many ways in which dates appear in the raw pdf files. Hope that this can be useful as a basis for scraping if there is no luck with NICD: https://gist.github.com/sjbeckett/f1d3822db7d41d33dfddd01814a64481 |
I managed to write a fairly decent scraper for the pdfs. Perhaps the script can be enhanced by adding a filter for a particular day. eg. Another script is the table scraper. The results were mixed. This could be due to changes to how tables are formatted , how the files are generated etc. Extracting each table from all files can be time-consuming. There probably exists a way to uniformly format the tables into a sound format in another language to technique. |
Thank you. i think this is a good start and we can then try to start filling in where the scraper could not. |
All I did some work on the hospitalization data too. Actually my son :-). Remaining todo:
|
Just a note I updated the above gist to incorporate general and high care patient numbers. |
Greetings everyone. I took a different approach to this issue and created an API which is free and publicly available. At the moment, the database has data from 01 July 2021 to 28 Dec 2021. The API has 2 main endpoints:
Getting the PDFs from NICD website and uploading the data to a cloud database is automated but annotating the table on the PDF is still manual because the PDF formatting varies inconsistently between the documents so that is the only manual process thus far. Try the API and I would appreciate some pointers and thoughts: |
Happy new year everyone. There will be a bit more action to finalise this in the next 2 weeks. Thank you so much for the work and ideas. |
Hi All,
Would it be possible to have an update regarding the following dataset?
covid19za/data/nicd_hospital_surveillance_data.csv
Edit by @vukosim
Resume updating NICD Hospitalisation CSV File
Option 1 - Scraper To Extract the Daily Table and then Update the CSV, see below for screenshot
Option 2 - Human Computation, A Volunteer to update the numbers every morning.
The text was updated successfully, but these errors were encountered: