Skip to content

A research project to explore how different public health interventions could improve or worsen the burden of long covid, as measured in Disability Adjusted Life Years

License

Notifications You must be signed in to change notification settings

DevinCLane/long-covid-dalys

Repository files navigation

Long Covid DALYs

A research project to explore how different public health interventions could improve or worsen the burden of long covid, as measured in Disability Adjusted Life Years

Affiliated Organizations

Prerequisites

Setup

  1. Fork the repository https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo#forking-a-repository

  2. Clone the repo to your local machine https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo#cloning-your-forked-repository

  3. (if you're going to contribute back to this repo) Add this repo as the "upstream" https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo#configuring-git-to-sync-your-fork-with-the-upstream-repository

  4. Install dependencies

      cd long-covid-dalys/
      npm install
  5. Preview:

     npm run dev

    The site will be available at http://localhost:5173

📈 Data overview

  • Data lives in src/data/ directory
  • DALYs.json - Baseline DALY projections (main chart data)
  • intervention-reduction-factors.json - Reduction factors for each intervention

Update DALYs

Format for src/data/DALYS.json:

[
  {
    "date": "2025-01-01",
    "dalys": 1360000
  },
  {
    "date": "2026-01-01",
    "dalys": 1332800
  },
  ...
]
  • date: ISO date string (YYYY-MM-DD format)
  • dalys: Number of Disability-Adjusted Life Years for that year

To update: Replace src/data/DALYS.json with your updated projections that match the above format. The chart will use the new data.

Alternatively, you can regenerate the baseline data using the built-in model src/lib/export-mock-data.ts (17M cases, 2% yearly reduction, 80 DALYs per 1,000 cases).

⚠️ This will overwrite src/data/DALYs.json with freshly generated baseline data:

npm run generate-data

You can also adjust the model in src/lib/export-mock-data.ts and then regenerate data with the above npm run generate-data command

Update intervention reduction factor

src/data/intervention-reduction-factors.json contains the reduction factors for each intervention type.

Format:

{
  "airExchangeRate": 0.1,
  "UVC": 0.1,
  ...
}

Each key corresponds to an intervention, and the value is the maximum reduction factor (0.0 to 1.0 corresponding to 0-100%) that an intervention can achieve.

To update: Modify the values to adjust how much each intervention can reduce DALYs.

Testing Your Changes

After updating data files:

  1. Development mode: npm run dev - See changes immediately with hot reload
  2. Production build: npm run build - Create optimized build for deployment
  3. Preview build: npm run preview - Test the production build locally

Deployment

After updating data files and verifying they work:

  1. Commit your changes: git add . && git commit -m "a message describing your changes, such as: Update DALY projections"
  2. Push to your repository: git push
  3. Open a pull request against the "upstream" repo: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork
  4. Once merged, the application will automatically rebuild and deploy to Netlify

React + TypeScript + Vite

This project bootstrapped from the following Vite template: React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ["./tsconfig.node.json", "./tsconfig.app.json"],
      tsconfigRootDir: import.meta.dirname,
    },
  },
});
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from "eslint-plugin-react";

export default tseslint.config({
  // Set the react version
  settings: { react: { version: "18.3" } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs["jsx-runtime"].rules,
  },
});

Prior Art and Libraries Used

About

A research project to explore how different public health interventions could improve or worsen the burden of long covid, as measured in Disability Adjusted Life Years

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •