Skip to content

Commit 3fc2058

Browse files
Merge pull request #1 from cmu-delphi/main
Sync repository
2 parents 498be6f + 801f272 commit 3fc2058

File tree

6 files changed

+51
-45
lines changed

6 files changed

+51
-45
lines changed

dev/docker/database/epidata/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ ENV MYSQL_PASSWORD pass
1010

1111
# provide DDL which will create empty tables at container startup
1212
COPY repos/delphi/delphi-epidata/src/ddl/*.sql /docker-entrypoint-initdb.d/
13+
14+
# grant access to SQL scripts
15+
RUN chmod o+r /docker-entrypoint-initdb.d/*.sql

dev/docker/web/epidata/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ COPY repos/delphi/delphi-epidata/src/server/*.php /var/www/html/epidata/
77

88
# point to the development database (overwrites the production config)
99
COPY repos/delphi/delphi-epidata/dev/docker/web/epidata/assets/database_config.php /var/www/html/epidata/
10+
11+
RUN chmod o+r /var/www/html/epidata/*

docs/api/covidcast-signals/jhu-csse.md

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ grand_parent: COVIDcast API
99

1010
* **Source name:** `jhu-csse`
1111
* **Number of data revisions since 19 May 2020:** 1
12-
* **Date of last change:** [3 June 2020](../covidcast_changelog.md#jhu-csse)
12+
* **Date of last change:** [7 October 2020](../covidcast_changelog.md#jhu-csse)
1313
* **Available for:** county, hrr, msa, state (see [geography coding docs](../covidcast_geography.md))
1414

1515
This data source of confirmed COVID-19 cases and deaths is based on reports made
@@ -59,41 +59,32 @@ should be interpreted purely as an artifact of data reporting and correction.
5959
Due to differences in state reporting standards, certain counties are not
6060
reported in the JHU data or are reported combined with other counties.
6161

62-
At the County (FIPS) level, we report the data _exactly_ as JHU reports their
63-
data, to prevent confusing public consumers of the data. JHU FIPS reporting
64-
matches that used in the other signals, except for the following exceptions.
62+
### Rhode Island
6563

66-
### New York City
64+
As of June 2020, the JHU data [does not report any cases or deaths](https://github.com/CSSEGISandData/COVID-19/issues/3165) for individual counties in Rhode Island. These cases and deaths are reported unassigned to any individual county, and are attributed to the megaFIPS 44000 as well as contributing to the state-level estimates.
6765

68-
New York City comprises five boroughs, each of which is a county:
66+
### Puerto Rico
6967

70-
|Borough Name |County Name |FIPS Code |
71-
|-------------------|-------------------|---------------|
72-
|Manhattan |New York County |36061 |
73-
|The Bronx |Bronx County |36005 |
74-
|Brooklyn |Kings County |36047 |
75-
|Queens |Queens County |36081 |
76-
|Staten Island |Richmond County |36085 |
68+
JHU does not report Puerto Rico deaths at the municipal level, but instead reports the numbers for the whole Commonwealth in the "Unassigned" category. We map this JHU UID to megaFIPS 72000 and use this information when reporting deaths at the state level.
7769

78-
**Data from all five boroughs are reported under New York County, FIPS Code
79-
36061.** The other four boroughs are included in the dataset and show up in our
80-
API, but always report zero cases and deaths.
70+
### Utah
8171

82-
All NYC counts are mapped to the MSA with CBSA ID 35620, which encompasses all
83-
five boroughs. All NYC counts are mapped to HRR 303, which intersects all five
84-
boroughs (297 also intersects the Bronx and 301 also intersects Brooklyn and
85-
Queens, but absent additional information, we chose to leave all counts in 303).
72+
JHU reports some counts for Utah in special geocodes. These geocodes correspond to clusters of counties overseen by the same health department.
8673

87-
### Rhode Island
74+
|County Name |JHU UID Code |
75+
|-------------------|---------------|
76+
|Bear River |84070015 |
77+
|Central Utah |84070016 |
78+
|Southeast Utah |84070017 |
79+
|Southwest Utah |84070018 |
80+
|TriCounty |84070019 |
81+
|Weber-Morgan |84070020 |
8882

89-
As of June 2020, the JHU data does not report any cases or deaths for individual
90-
counties in Rhode Island. These cases and deaths are reported unassigned to any
91-
individual county, and are hence available in state-level estimates only.
83+
These are mapped to the megaFIPS 49000 and accounted for in the state totals.
9284

9385
### Kansas City, Missouri
9486

95-
Kansas City intersects the following four counties, which themselves report
96-
confirmed case and deaths data:
87+
Kansas City intersects the following four counties, which themselves report confirmed case and deaths data:
9788

9889
|County Name |FIPS Code |
9990
|-------------------|---------------|
@@ -102,29 +93,17 @@ confirmed case and deaths data:
10293
|Cass County |29037 |
10394
|Clay County |29047 |
10495

105-
**Data from Kansas City is given its own dedicated line, with FIPS
106-
code 70003.** This is how JHU encodes their data. However, the data in
107-
the four counties that Kansas City intersects is not necessarily zero.
108-
109-
For the mapping to HRR and MSA, the counts for Kansas City are dispersed to
110-
these four counties in equal proportions.
96+
**We distribute count totals to each of these counties in proportion to the population.** JHU reports all of these in the UID 84070003, which does not correspond to a Census Bureau FIPS.
11197

11298
### Dukes and Nantucket Counties, Massachusetts
11399

114-
**The counties of Dukes and Nantucket report their figures together,
115-
and we (like JHU) list them under FIPS Code 70002.** Here are the FIPS codes
116-
for the individual counties:
100+
**The counties of Dukes and Nantucket report their figures together; We distribute count totals to each of these counties in proportion to the population.** JHU reports all of these in the UID 84070002, which does not correspond to a Census Bureau FIPS. Here are the FIPS codes for the individual counties:
117101

118102
|County Name |FIPS Code |
119103
|-------------------|---------------|
120104
|Dukes County |25007 |
121105
|Nantucket County |25019 |
122106

123-
For the mapping to HRR and MSA, the counts for Dukes and Nantucket are
124-
dispersed to the two counties in equal proportions.
125-
126-
The data in the individual counties is expected to be zero.
127-
128107
### Mismatched FIPS Codes
129108

130109
Finally, there are two FIPS codes that were changed in 2015 (see the [Census

docs/api/covidcast_changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ Duplicate survey weights had corrupted historical figures for the following sign
4444

4545
We now include figures on Puerto Rico for all `jhu-csse` signals at the state level.
4646

47+
#### 1 September 2020
48+
49+
NY Boroughs county FIPS (36005, 36047, 36061, 36081, 36085) are now split in proportion to the population of each county, instead of being reported in aggregate in FIPS 36061.
50+
51+
#### 7 October 2020
52+
53+
The following changes were made to all `jhu-csse` signals related to geocoding
54+
- NY Boroughs county FIPS (36005, 36047, 36061, 36081, 36085) are now [differentiated by JHU](https://github.com/CSSEGISandData/COVID-19/issues/3084),
55+
- “Unassigned” and “Out of State” counts are assigned to a megaFIPS at the county level (XX000 where XX is the state FIPS code) and will now be incorporated into the state totals
56+
- The split of the Kansas City, Missouri into its four subcounties is now done with a more precise population proportion,
57+
- The split of the Dukes and Nantucket, Massachusetts FIPS codes into the two subcounties is now done with a more precise population proportion,
58+
- Some counts are reported in the Utah territories JHU UIDs 84070015-84070020. These are now properly aggregated into the state megaFIPS 49000, which will be aggregated in state level information.
59+
4760
### `indicator-combination`
4861

4962
#### 3 June 2020

docs/api/covidcast_signals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ map](https://covidcast.cmu.edu/):
3838
| Early Indicators | COVID-Related Doctor Visits | [`doctor-visits`](covidcast-signals/doctor-visits.md) | `smoothed_adj_cli` |
3939
| Early Indicators | COVID Indicator Combination | [`indicator-combination`](covidcast-signals/indicator-combination.md) | `nmf_day_doc_fbc_fbs_ght` |
4040
| Late Indicators | COVID Antigen Test Positivity (Quidel) | [`quidel`](covidcast-signals/quidel.md) | `covid_ag_smoothed_pct_positive` |
41-
| Late Indicators | COVID Hospital Admissions | [`hospital-admissions`](covidcast-signals/hospital-admissions.md) | `smoothed_adj_covid19` |
41+
| Late Indicators | COVID Hospital Admissions | [`hospital-admissions`](covidcast-signals/hospital-admissions.md) | `smoothed_adj_covid19_from_claims` |
4242
| Late Indicators | Cases | [`indicator-combination`](covidcast-signals/indicator-combination.md) | `confirmed_7dav_incidence_num` |
4343
| Late Indicators | Cases per 100,000 People | [`indicator-combination`](covidcast-signals/indicator-combination.md) | `confirmed_7dav_incidence_prop` |
4444
| Late Indicators | Deaths | [`indicator-combination`](covidcast-signals/indicator-combination.md) | `deaths_7dav_incidence_num` |

docs/epidata_development.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,28 @@ docker build -t delphi_database_epidata \
9494

9595
# test
9696

97-
At this point you're ready to bring the stack online. To do that, just start
98-
containers for the epidata-specific web and database images. As an aside, the
97+
At this point you're ready to bring the stack online.
98+
99+
First, make sure you have the docker network set up so that the containers can
100+
communicate:
101+
102+
```
103+
docker network create --driver bridge delphi-net
104+
105+
```
106+
107+
Next, start containers for the epidata-specific web and database images. As an aside, the
99108
output from these commands (especially the web server) can be very helpful for
100109
debugging. For example:
101110

102111
```bash
103112
# launch the database
104-
docker run --rm -p 13306:3306 \
113+
docker run --rm -p 127.0.0.1:13306:3306 \
105114
--network delphi-net --name delphi_database_epidata \
106115
delphi_database_epidata
107116

108117
# launch the web server
109-
docker run --rm -p 10080:80 \
118+
docker run --rm -p 127.0.0.1:10080:80 \
110119
--network delphi-net --name delphi_web_epidata \
111120
delphi_web_epidata
112121
```

0 commit comments

Comments
 (0)