/** * CDC Open Data SDK — health statistics from data.cdc.gov (Socrata SODA API). * * API docs: https://dev.socrata.com/foundry/data.cdc.gov/ * No auth required (optional app token for higher rate limits). * Rate limit: 1,000 req/hour without token, 20x with token. * * Usage: * import { queryDataset, getLeadingCausesOfDeath } from "us-gov-open-data-mcp/sdk/cdc"; * const data = await getLeadingCausesOfDeath({ state: "New York", year: 2021 }); */ /** Available datasets with Socrata endpoint IDs. */ export declare const DATASETS: { readonly leading_death: { readonly id: "bi63-dtpu"; readonly name: "Leading Causes of Death"; readonly description: "U.S. leading causes of death by state and year (1999–present)"; }; readonly life_expectancy: { readonly id: "w9j2-ggv5"; readonly name: "Life Expectancy"; readonly description: "Life expectancy at birth by race (All Races, Black, White) and sex (1900–2018)"; }; readonly mortality_rates: { readonly id: "489q-934x"; readonly name: "Provisional Mortality Rates"; readonly description: "Quarterly age-adjusted death rates by cause, sex, and state (2020–present)"; }; readonly places_county: { readonly id: "swc5-untb"; readonly name: "PLACES: County Health"; readonly description: "County-level health indicators: obesity, diabetes, smoking, depression, sleep, etc. (BRFSS-based)"; }; readonly places_city: { readonly id: "dxpw-cm5u"; readonly name: "PLACES: City Health"; readonly description: "City-level health indicators: obesity, diabetes, smoking, depression, sleep, etc. (BRFSS-based)"; }; readonly covid_cases: { readonly id: "pwn4-m3yp"; readonly name: "COVID-19 Cases & Deaths"; readonly description: "COVID-19 weekly cases and deaths by state (through early 2023)"; }; readonly covid_conditions: { readonly id: "hk9y-quqm"; readonly name: "COVID-19 Conditions"; readonly description: "COVID-19 deaths by contributing condition, age group, and state"; }; readonly weekly_deaths: { readonly id: "r8kw-7aab"; readonly name: "Weekly Death Surveillance"; readonly description: "Provisional weekly death counts by state: COVID-19, pneumonia, influenza, total deaths (updated weekly, 2020–present)"; }; readonly disability: { readonly id: "s2qv-b27b"; readonly name: "Disability Prevalence"; readonly description: "Disability status and types by state: mobility, cognitive, hearing, vision, self-care (BRFSS)"; }; readonly weekly_deaths_by_cause: { readonly id: "muzy-jte6"; readonly name: "Weekly Deaths by Cause"; readonly description: "Weekly deaths by state and cause: heart disease, cancer, diabetes, stroke, COVID, respiratory (2020–2023)"; }; readonly drug_overdose_state: { readonly id: "xbxb-epbu"; readonly name: "Drug Poisoning Mortality by State"; readonly description: "Drug poisoning/overdose death rates by state, sex, race, and age (1999–2016)"; }; readonly nutrition_obesity: { readonly id: "hn4x-zwk7"; readonly name: "Nutrition, Physical Activity & Obesity"; readonly description: "Adult obesity, physical inactivity, and fruit/vegetable consumption by state from BRFSS"; }; readonly death_rates_historical: { readonly id: "6rkc-nb2q"; readonly name: "Historical Death Rates by Cause"; readonly description: "Age-adjusted death rates for major causes (heart disease, cancer, stroke, etc.) since 1900"; }; readonly birth_indicators: { readonly id: "76vv-a7x8"; readonly name: "Quarterly Birth Indicators"; readonly description: "Provisional quarterly birth rates, teen births, preterm births, cesarean rates by race/ethnicity"; }; }; /** Cdc Record. */ export interface CdcRecord { [key: string]: string | number | null; } /** Generic Socrata SODA query against any CDC dataset. */ export declare function queryDataset(datasetId: string, opts?: { where?: string; select?: string; group?: string; order?: string; limit?: number; }): Promise; /** Leading causes of death by state/year. */ export declare function getLeadingCausesOfDeath(opts?: { state?: string; year?: number; limit?: number; }): Promise; /** Life expectancy at birth by race and sex (dataset w9j2-ggv5, 1900–2018). */ export declare function getLifeExpectancy(opts?: { year?: number; race?: string; sex?: string; limit?: number; }): Promise; /** Provisional mortality rates by cause, sex, and state (dataset 489q-934x, quarterly, 2020–present). */ export declare function getMortalityRates(opts?: { quarter?: string; cause?: string; rateType?: string; limit?: number; }): Promise; /** PLACES county-level health indicators (obesity, diabetes, smoking, depression, etc.). */ export declare function getPlacesHealth(opts?: { state?: string; measure?: string; limit?: number; }): Promise; /** PLACES city-level health indicators (obesity, diabetes, smoking, depression, etc.). */ export declare function getPlacesCityHealth(opts?: { state?: string; measure?: string; city?: string; limit?: number; }): Promise; /** COVID-19 weekly cases and deaths by state. */ export declare function getCovidData(opts?: { state?: string; limit?: number; }): Promise; /** Weekly provisional death counts by state — COVID, pneumonia, influenza, total. Updated weekly. */ export declare function getWeeklyDeaths(opts?: { state?: string; year?: number; limit?: number; }): Promise; /** Disability prevalence by state and type from BRFSS. */ export declare function getDisabilityData(opts?: { state?: string; disabilityType?: string; limit?: number; }): Promise; /** * Clear Cache. */ export declare function clearCache(): void; /** Drug overdose/poisoning mortality by state (1999–2016). */ export declare function getDrugOverdoseData(opts?: { state?: string; year?: number; sex?: string; limit?: number; }): Promise; /** Nutrition, physical activity, and obesity by state from BRFSS. */ export declare function getNutritionObesityData(opts?: { state?: string; topic?: string; limit?: number; }): Promise; /** Historical age-adjusted death rates for major causes since 1900. */ export declare function getHistoricalDeathRates(opts?: { cause?: string; startYear?: number; endYear?: number; limit?: number; }): Promise; /** Quarterly provisional birth indicators (birth rates, teen births, preterm, cesarean). */ export declare function getBirthIndicators(opts?: { topic?: string; raceEthnicity?: string; limit?: number; }): Promise; //# sourceMappingURL=sdk.d.ts.map