dsfsi / covid19za

Coronavirus COVID-19 (2019-nCoV) Data Repository and Dashboard for South Africa
https://dsfsi.github.io/covid19za-dash/
MIT License
255 stars 200 forks source link

[Feature] Add daily # of tests performed on daily number of positives confirmed #17

Closed anelda closed 4 years ago

anelda commented 4 years ago

Hi Vukosi,

I'm thinking it may be useful to display the number of tests done against the number of cases confirmed on the barchart on page 2 of the dashboard. Or showing positives vs negatives. It will give us an idea of how many tests are essentially wasted because we're testing unnecessary due to not being able to prioritize patients and highlighting the symptoms that are required for testing? But at the same time realising that people will be tested if they've been in touch with positives even if they aren't displaying symptoms.

Not wasting tests on the wrong patients seems like an important aspect of successful response?

Thanks, Anelda

vukosim commented 4 years ago

Can you maybe provide a jupyter notebook with the visualisation. Just clone the repo and do a pull request.

freever commented 4 years ago

@anelda I also think number of tests conducted per day would be valuable, but for a different reason. If there are 10 new cases today out of 20 tests conducted, and 50 new cases tomorrow out of 1000 tests conducted, then I won't be alarmed about the spike in cases because I know it comes from ramping up our testing efforts.

Either way, tests conducted per day would be valuable information to have if you can add it.

Thanks for the great work!

vukosim commented 4 years ago

Thanks both. There is a csv file with the cumulative tests. If you can provide a jupyter notebook or graph with your idea here, we can test it out @anelda @freever

freever commented 4 years ago

@vukosim what is a jupyter notebook? do you just want to see a visual mockup of how it could look?

anelda commented 4 years ago

Hi both, sorry yes, I cloned the repo already and will try to do the plot this morning. @freever if you have an idea of how the plot should look, let me know. I have experience with Jupyter and can write the code (python) - do you have experience with Python? I got a bit sidetracked when I started thinking about what the best way would be to display it. Thinking a stacked column showing negatives vs positives up to the number of tests done. @freever I agree with the reason for wanting to see the plot like this. I thought about that as well when looking at the data

freever commented 4 years ago

@anelda A stacked graph sounds perfect. I don't know anything about python, I will leave it to the experts. Just wanted to ask for the data :)

anelda commented 4 years ago

I have two ways of showing this data now, but there are some challenges to show this daily:

If anyone have a suggestion for a good way to show the data, please feel free to let me know and I can try to code it?

freever commented 4 years ago

Maybe it would be best just to show the number of reported tests on their own. If we don't have a reliable source for both number of tests and number of positive tests then it won't make sense to show them together.

It might be nice to have 2 axes - one for tests conducted per day, and one for cumlative tests conducted up to that day - but I guess it depends on how the data actually looks when plotted.

anelda commented 4 years ago

Found this graph for showing # of positives vs # tests - https://ourworldindata.org/exports/tests-vs-confirmed-cases-covid-19_v7_850x600.svg but we don't have sufficient information to do something similar. If we had info about how many people were tested per province, that might be useful, but as far as I Googled, that level of info is not available.

anelda commented 4 years ago

@vukosim the Hong Kong dashboard is very clean - not showing graph of number of tests done vs positive/negative, but showing the numbers some other issues are also asking for. How about doing it like this rather than showing another plot. At least until we have more data points that will look better on a plot? https://chp-dashboard.geodata.gov.hk/covid-19/en.html

devontighe commented 4 years ago

@anelda I would caution referred to tests being "wasted". I 100% agree with you that we want testing to be prioritized amongst those who need it most. But ultimately the more people who are tested, the better. South Korea has taught us that. Maybe something like this could work? (or hold off on including % recovered to start as that % recovered would overlap with % negative)

SA_Covid19_chart

anelda commented 4 years ago

@devontighe thanks so much for pointing out the negative connotation to using the word 'wasted' here. Bad choice of words, sorry! Yes, totally agree. More tests are better. Think I was concerned that random people will go for testing which will make it impossible for people who had high chance of really being infected tested, but sounds like that shouldn't happen given the criteria for testing?

Thanks so much for your data viz suggestion. I think the challenge with the data is several fold (but maybe I'm making a bigger deal of this than necessary):

Am I overthinking this?

anelda commented 4 years ago

Yip, so just to re-iterated what you said above. For someone to be declared 'recovered' they have to have 2 negative tests. I can't find a source for SA to confirm that's how recovered cases are classified here. Only found link to US CDC - https://www.cdc.gov/coronavirus/2019-ncov/healthcare-facilities/hcp-return-work.html.

What does it mean for how the data is shown? In my opinion then negative tests don't mean anything unless we have more information about them? E.g. was it a follow-up test after getting better or to diagnose in the first place

elolelo commented 4 years ago

@anelda @devontighe @freever Hi all, are you winning with getting more information about negative cases? Is there any source from where data about follow-up tests can be recieved? And which data viz are you going to use ? my assumption is that this feature is still going to be implemented, or is it not?

anelda commented 4 years ago

@anelda @devontighe @freever Hi all, are you winning with getting more information about negative cases? Is there any source from where data about follow-up tests can be recieved? And which data viz are you going to use ? my assumption is that this feature is still going to be implemented, or is it not?

@elolelo just not sure that there's a lot of value in plotting this right now. Not until we have more information about the tests e.g. same person being tested several times, etc. I guess we may not be able to get that kind of information so maybe okay to close this? What do you think @freever @devontighe @vukosim? We can always revisit when more information is available?

freever commented 4 years ago

I dunno, this is not really my field, but I had a look at the data and generated this graph to answer a question I have about whether the recent spike in cases has been caused by a rapid increase in the number of tests conducted. Spoiler: no, it hasn't. I think there is value in tracking this graph over time:

cases and tests

vukosim commented 4 years ago

@anelda on the dashboard this is now available [has been for a while now]. I have been tardy