klenwell / covid-19

Python command-line application to collect and analyze COVID-19 data.
1 stars 0 forks source link

OC HCA changed their data formatting today breaking existing extract methods. #3

Closed klenwell closed 4 years ago

klenwell commented 4 years ago

New data markup per OC HCA page source:

// date, new cases, cumulative cases, new snf, new jail, new homeless, new other, cumu snf, cumu jail, cumu homeless, cumu other
$cases = [["2\/1\/2020",1,1,0,0,0,1,0,0,0,1], ... ["6\/3\/2020",137,6678,2,0,0,135,674,382,45,5577]];

$hospitalData = [["4\/21\/2020",179,77], ... ["6\/1\/2020",279,120]];

$pplData = [["1\/27\/2020",0,3,3,0,0], ... ["6\/2\/2020",0,945,140843,0,100]];

I believe $pplData refers to tests.

klenwell commented 4 years ago

Resolved

Updated OCHealthService class to parse new format and be a little quicker to detect changes.