Skip to content

Commit

Permalink
Dashboard signal swaps (#1235)
Browse files Browse the repository at this point in the history
* removing defunct jhu signals, replacing deaths with nchs-mortality signal (new to dashboards), replacing cases with doctor-visits

* updated fallback/override signal for county-level hospital admissions

* fixing an ooooold 'units' bug

* temp disable of Overview widget & its import
  • Loading branch information
melange396 authored Nov 3, 2023
1 parent f388104 commit cd3d8d0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/data/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ export class MetaDataManager {
}

getDefaultCasesSignal(): Sensor | null {
return this.getSensor({ id: 'jhu-csse', signal: 'confirmed_7dav_incidence_prop' });
return this.getSensor({ id: 'doctor-visits', signal: 'smoothed_adj_cli' });
}
getDefaultDeathSignal(): Sensor | null {
return this.getSensor({ id: 'jhu-csse', signal: 'deaths_7dav_incidence_prop' });
return this.getSensor({ id: 'nchs-mortality', signal: 'deaths_covid_incidence_prop' });
}

getSensorsOfType(type: SignalCategory): Sensor[] {
Expand Down
4 changes: 2 additions & 2 deletions src/modes/summary/Overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<div class="mobile-three-col">
<div class="mobile-kpi">
<h3>Cases</h3>
<h3>Doctor Visits</h3>
<div>
{#await casesTrend}
<KPIValue value={null} loading />
Expand Down Expand Up @@ -88,7 +88,7 @@
{/await}
</div>
<div class="sub">
<SensorUnit sensor={CASES} long />
<SensorUnit sensor={DEATHS} long />
</div>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/modes/summary/Summary.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import IndicatorTable from './IndicatorTable.svelte';
import Overview from './Overview.svelte';
// TEMPORARY DISABLING OF THIS OVERVIEW WIDGET UNTIL SIGNALS ARE FIXED:
// import Overview from './Overview.svelte';
import { countyInfo, nationInfo, stateInfo } from '../../data/regions';
import RegionDatePicker from '../../components/RegionDatePicker.svelte';
import {
Expand Down Expand Up @@ -70,7 +71,9 @@
<div class="uk-container content-grid">
<div class="grid-3-11">
<FancyHeader invert>{region.displayName}</FancyHeader>
<!-- TEMPORARY DISABLING OF THIS OVERVIEW WIDGET UNTIL SIGNALS ARE FIXED
<Overview {date} {region} {fetcher} />
-->
<hr />
<FancyHeader invert sub="Map" anchor="map">{HOSPITAL_ADMISSION.name}</FancyHeader>
<p>{@html HOSPITAL_ADMISSION.signalTooltip}</p>
Expand Down
24 changes: 6 additions & 18 deletions src/stores/descriptions.raw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ SignalTooltip: Percentage of daily doctor visits that are due to lab-confirmed i

Description: Delphi receives aggregated statistics from Change Healthcare, Inc. on lab-confirmed influenza outpatient doctor visits, derived from ICD codes found in insurance claims. Using this data, we estimate the percentage of daily doctor’s visits in each area that resulted in a diagnosis of influenza. Note that these estimates are based only on visits by patients whose insurance claims are accessible to Change Healthcare.
---
Name: COVID Cases
Id: jhu-csse
Signal: confirmed_7dav_incidence_prop
Highlight: [default]
ExtendedColorScale: true


SignalTooltip: Newly reported COVID-19 cases per 100,000 people, based on data from Johns Hopkins University


Description: This data shows the number of COVID-19 confirmed cases newly reported each day. It reflects only cases reported by state and local health authorities. It is based on case counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/). The signal may not be directly comparable across regions with vastly different testing capacity or reporting criteria.
---
Name: COVID Hospital Admissions
Id: hhs
Signal: confirmed_admissions_covid_1d_prop_7dav
Expand All @@ -63,8 +51,8 @@ ExtendedColorScale: true
Levels: [nation, state, county]
Overrides:
County:
Id: dsew-cpr
Signal: confirmed_admissions_covid_1d_prop_7dav
Id: hospital-admissions
Signal: smoothed_adj_covid19_from_claims



Expand All @@ -89,11 +77,11 @@ SignalTooltip: Confirmed influenza hospital admissions per 100,000 people
Description: This data shows the number of hospital admissions with lab-confirmed influenza each day. We source this data from the Report on Patient Impact and Hospital Capacity published by the US Department of Health & Human Services (HHS).
---
Name: COVID Deaths
Id: jhu-csse
Signal: deaths_7dav_incidence_prop
Id: nchs-mortality
Signal: deaths_covid_incidence_prop


SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on data from Johns Hopkins University
SignalTooltip: Newly reported COVID-19 deaths per 100,000 people, based on NCHS mortality data.


Description: This data shows the number of COVID-19 deaths newly reported each day. The signal is based on COVID-19 death counts compiled and made public by [a team at Johns Hopkins University](https://systems.jhu.edu/research/public-health/ncov/).
Description: This data shows the number of COVID-19 deaths newly reported each week. The signal is based on COVID-19 death counts compiled and made public by [the National Center for Health Statistics](https://www.cdc.gov/nchs/nvss/vsrr/COVID19/index.htm).
4 changes: 2 additions & 2 deletions src/stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ export const sensorList = derived(metaDataManager, (metaData) => {
});

export const defaultCasesSensor = derived(sensorList, (sensorList) => {
return sensorList.find((d) => d.signal === 'confirmed_7dav_incidence_prop');
return sensorList.find((d) => d.signal === 'smoothed_adj_cli');
});
export const defaultHospitalSensor = derived(sensorList, (sensorList) => {
return sensorList.find((d) => d.signal === 'confirmed_admissions_covid_1d_prop_7dav');
});
export const defaultDeathSensor = derived(sensorList, (sensorList) => {
return sensorList.find((d) => d.signal === 'deaths_7dav_incidence_prop');
return sensorList.find((d) => d.signal === 'deaths_covid_incidence_prop');
});

export const currentSensorEntry = derived(
Expand Down

0 comments on commit cd3d8d0

Please sign in to comment.