Health Development Skill

fartbagxp/health

Scrape and build queries to an official public health endpoints under a .gov domain.\

0 stars
0 forks
Python
32 views

SKILL.md

Health Development Skill

Project Context

Scrape and build queries to an official public health endpoints under a .gov domain.\

CDC WONDER queries documented in docs/wonder.md.

Key Commands

  • uv sync - Install dependencies
  • uv run pytest - Run tests
  • uv run pre-commit run --all-files - Run linters
  • uv add <package> - Add dependency
  • uv add --dev <package> - Add dev dependency

Project Structure

uv run python main.py  # Main code

Development Workflow

  1. Make changes
  2. Run pre-commit hooks automatically on commit
  3. Tests run via uv run python script
  4. Modify github actions
  5. Update README.md to remove non-relevance.

Important Notes

  • Always support a CLI interface
  • Use CDC WONDER resources from wonder.cdc.gov
  • Use uv best practices

Configuration Files

Refer to pyproject.toml and .pre-commit-config.yaml in this directory for exact setup.

README

Overview

This is a repository to collect and run fun experiments on various publicly available health APIs.

Sources

Data Source Origin
Wide-ranging ONline Data for Epidemiologic Research (WONDER) CDC
National Wastewater Surveillance System (NWSS) CDC
National Syndromic Surveillance Program (NSSP) CDC
National Respiratory and Enteric Virus Surveillance System (NREVSS) CDC
National Healthcare Safety Network (NHSN) CDC
Children Vaccination CDC

CDC WONDER

CDC WONDER - Wide-ranging ONline Data for Epidemiologic Research includes an unauthenticated Application Programmatic Interface (API) for birth (natality), death, and cancer statistics. The Wonder API is a non-standard custom XML on HTTPS API with non-standard headers like sending accept_datause_restrictions with a value of "true" as a XML parameter via a HTTP POST to accept an agreement.

The XML parameters it supports is similar to querying a database, with these examples.

We can find better explanation of the parameters via an open source repository by alipphardt.

The soft rate limit is a query every two minutes to let the WONDER database recover.