From 7a90cb7ea2e93d4192a8c988a67d22e7496a70c3 Mon Sep 17 00:00:00 2001 From: Aaron Rumack Date: Thu, 2 Dec 2021 15:36:45 -0500 Subject: [PATCH 1/3] Add chng flu docs --- docs/api/covidcast-signals/chng.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/api/covidcast-signals/chng.md b/docs/api/covidcast-signals/chng.md index 4e00aaf82..5d85ac9c4 100644 --- a/docs/api/covidcast-signals/chng.md +++ b/docs/api/covidcast-signals/chng.md @@ -33,7 +33,8 @@ commercial purposes. | `smoothed_adj_outpatient_covid` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2020-02-01 | | `smoothed_outpatient_cli` | Estimated percentage of outpatient doctor visits primarily about COVID-related symptoms, based on Change Healthcare claims data that has been de-identified in accordance with HIPAA privacy regulations, smoothed in time using a Gaussian linear smoother
**Earliest date available:** 2020-02-01 | | `smoothed_adj_outpatient_cli` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2020-02-01 | - +| `smoothed_outpatient_flu` | Estimated percentage of outpatient doctor visits with confirmed influenza, based on Change Healthcare claims data that has been de-identified in accordance with HIPAA privacy regulations, smoothed in time using a Gaussian linear smoother
**Earliest date available:** 2021-10-01 | +| `smoothed_adj_outpatient_flu` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2021-10-01 | ## Table of Contents {: .no_toc .text-delta} @@ -71,6 +72,19 @@ $$ Y_{it}^{\text{Flu}}\right)}{N_{it}} $$ +### Influenza Illness + +The following estimation method is used for the `*_outpatient_flu` signals. + +For a fixed location $$i$$ and time $$t$$, let $$Y_{it}$$ +denote the Flu counts and let $$N_{it}$$ be the +total count of visits (the *Denominator*). Our estimate of the influenza +percentage is given by + +$$ +\hat p_{it} = 100 \cdot \frac{Y_{it}}{N_{it}} +$$ + ### Day-of-Week Adjustment The fraction of visits due to COVID-19 is dependent on the day of the week. On From 80483d0530570be59bd1d476ae939fc800513948 Mon Sep 17 00:00:00 2001 From: Katie Mazaitis Date: Tue, 7 Dec 2021 10:02:24 -0500 Subject: [PATCH 2/3] [docs] set chng flu earliest available dates --- docs/api/covidcast-signals/chng.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/covidcast-signals/chng.md b/docs/api/covidcast-signals/chng.md index 5d85ac9c4..c64754010 100644 --- a/docs/api/covidcast-signals/chng.md +++ b/docs/api/covidcast-signals/chng.md @@ -33,8 +33,8 @@ commercial purposes. | `smoothed_adj_outpatient_covid` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2020-02-01 | | `smoothed_outpatient_cli` | Estimated percentage of outpatient doctor visits primarily about COVID-related symptoms, based on Change Healthcare claims data that has been de-identified in accordance with HIPAA privacy regulations, smoothed in time using a Gaussian linear smoother
**Earliest date available:** 2020-02-01 | | `smoothed_adj_outpatient_cli` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2020-02-01 | -| `smoothed_outpatient_flu` | Estimated percentage of outpatient doctor visits with confirmed influenza, based on Change Healthcare claims data that has been de-identified in accordance with HIPAA privacy regulations, smoothed in time using a Gaussian linear smoother
**Earliest date available:** 2021-10-01 | -| `smoothed_adj_outpatient_flu` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest date available:** 2021-10-01 | +| `smoothed_outpatient_flu` | Estimated percentage of outpatient doctor visits with confirmed influenza, based on Change Healthcare claims data that has been de-identified in accordance with HIPAA privacy regulations, smoothed in time using a Gaussian linear smoother
**Earliest issue available:** 2021-12-06
**Earliest date available:** 2020-02-01 | +| `smoothed_adj_outpatient_flu` | Same, but with systematic day-of-week effects removed; see [details below](#day-of-week-adjustment)
**Earliest issue available:** 2021-12-06
**Earliest date available:** 2020-02-01 | ## Table of Contents {: .no_toc .text-delta} From 5a600689f268849b71db489c9e92f8ce569e5243 Mon Sep 17 00:00:00 2001 From: krivard Date: Tue, 7 Dec 2021 15:17:45 +0000 Subject: [PATCH 3/3] chore: release delphi-epidata 0.3.3 --- .bumpversion.cfg | 2 +- src/client/delphi_epidata.R | 2 +- src/client/delphi_epidata.js | 2 +- src/client/packaging/npm/package.json | 2 +- src/client/packaging/pypi/delphi_epidata/__init__.py | 2 +- src/client/packaging/pypi/setup.py | 2 +- src/server/_config.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 986464ee3..37d6743c5 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.2 +current_version = 0.3.3 commit = False tag = False diff --git a/src/client/delphi_epidata.R b/src/client/delphi_epidata.R index c5fdf8b3c..f6d125810 100644 --- a/src/client/delphi_epidata.R +++ b/src/client/delphi_epidata.R @@ -15,7 +15,7 @@ Epidata <- (function() { # API base url BASE_URL <- 'https://delphi.cmu.edu/epidata/api.php' - client_version <- '0.3.2' + client_version <- '0.3.3' # Helper function to cast values and/or ranges to strings .listitem <- function(value) { diff --git a/src/client/delphi_epidata.js b/src/client/delphi_epidata.js index a74f9a056..9f8894579 100644 --- a/src/client/delphi_epidata.js +++ b/src/client/delphi_epidata.js @@ -22,7 +22,7 @@ } })(this, function (exports, fetchImpl, jQuery) { const BASE_URL = "https://delphi.cmu.edu/epidata/"; - const client_version = "0.3.2"; + const client_version = "0.3.3"; // Helper function to cast values and/or ranges to strings function _listitem(value) { diff --git a/src/client/packaging/npm/package.json b/src/client/packaging/npm/package.json index bbccc7b12..e8ae5c3b3 100644 --- a/src/client/packaging/npm/package.json +++ b/src/client/packaging/npm/package.json @@ -2,7 +2,7 @@ "name": "delphi_epidata", "description": "Delphi Epidata API Client", "authors": "Delphi Group", - "version": "0.3.2", + "version": "0.3.3", "license": "MIT", "homepage": "https://github.com/cmu-delphi/delphi-epidata", "bugs": { diff --git a/src/client/packaging/pypi/delphi_epidata/__init__.py b/src/client/packaging/pypi/delphi_epidata/__init__.py index 6f363831c..779e0170b 100644 --- a/src/client/packaging/pypi/delphi_epidata/__init__.py +++ b/src/client/packaging/pypi/delphi_epidata/__init__.py @@ -1,4 +1,4 @@ from .delphi_epidata import Epidata name = 'delphi_epidata' -__version__ = '0.3.2' +__version__ = '0.3.3' diff --git a/src/client/packaging/pypi/setup.py b/src/client/packaging/pypi/setup.py index 7f6e571d4..cb7cd98e7 100644 --- a/src/client/packaging/pypi/setup.py +++ b/src/client/packaging/pypi/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="delphi_epidata", - version="0.3.2", + version="0.3.3", author="David Farrow", author_email="dfarrow0@gmail.com", description="A programmatic interface to Delphi's Epidata API.", diff --git a/src/server/_config.py b/src/server/_config.py index f2bf2720f..2d2787806 100644 --- a/src/server/_config.py +++ b/src/server/_config.py @@ -5,7 +5,7 @@ load_dotenv() -VERSION = "0.3.2" +VERSION = "0.3.3" MAX_RESULTS = int(10e6) MAX_COMPATIBILITY_RESULTS = int(3650)