Module:Medical cases data/doc
| This module is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
This module inserts charts and maps of medical cases related to a pandemic, broken down by subregions.
caseTable
Inserts a table of cases and deaths by region.
Usage: {{#invoke:Medical cases data|caseTable|config=Configuration}}
{{#invoke:Medical cases data|caseTable
|config=San Francisco Bay Area
}}
| Counties | Cases[a] | Recov.[b] | Deaths | Pop. (2019) | C/1M | Ref. |
|---|---|---|---|---|---|---|
| 9 | 1,948,760 | 11,354 | 7,739,378 | 251,798 | ||
| Santa Clara | 539,276 | ? | 3,226 | 1,927,852 | 279,729 | d c[1] |
| Alameda[c] | 400,532 | ? | 2,573 | 1,671,329 | 239,649 | d c[2] |
| Contra Costa | 302,824 | 300,666 | 1,601 | 1,153,526 | 262,520 | d c[3] |
| San Francisco | 203,788 | ? | 1,419 | 881,549 | 231,170 | d c[4] |
| San Mateo | 184,001 | ? | 946 | 766,573 | 240,031 | d c[5] |
| Sonoma | 119,749 | 118,903 | 667 | 494,336 | 242,242 | d c[6] |
| Solano | 118,904 | 118,073 | 441 | 447,643 | 265,622 | d c[7] |
| Marin | 44,650 | 7,030 | 274 | 258,826 | 172,510 | d c[8] |
| Napa | 35,036 | 27,672 | 207 | 137,744 | 254,356 | d c[9] |
| ||||||
map
Inserts an interactive map of cases and deaths by region.
Usage: {{#invoke:Medical cases data|map|config=Configuration|frameWidth=Frame width in pixels|frameHeight=Frame height in pixels|caption=Caption as wikitext}}
{{#invoke:Medical cases data|map
|config=San Francisco Bay Area
|frameHeight=300
}}
Configuration
Run this Wikidata Query Service query to obtain a list of localized outbreaks to add to the regions property in the table.
return {
caption = "Cases by county", -- Table or map caption as wikitext
outbreakItem = "Q94050008", -- QID of the Wikidata item representing the
regionTerm = "Counties", -- Term for each region, used as the first column's header
regionNamePattern = "(.+) County", -- Naming pattern for regions, applied to each region's item's label to display a short name in first column; see [[mw:Extension:Scribunto/Lua reference manual#Patterns]]
populationDate = "2020-01-01", -- Date of the population figures used to calculate per-capita infection rates
regions = {
-- Add a table for each region's outbreak
{
-- QID of the outbreak
entity = "Q94259368",
-- If there is tabular data for the outbreak, specify any column names that differ from the defaults
columns = {cases = "AC_CumulCases", deaths = "AC_CumulDeaths"},
-- Optional footnote for the region as wikitext
note = "Including cases in the City of Berkeley, which are reported by the Berkeley Public Health Division.",
},
},
columnNotes = {
cases = "Cumulative cases reported by each county's health department.", -- (Optional) Footnote for the "Cases" column as wikitext
recoveries = "Counties differ in what they consider to be a recovery.", -- (Optional) Footnote for the "Recoveries" column as wikitext
deaths = "Includes suspected cases.", -- (Optional) Footnote for the "Deaths" column as wikitext
}
}
Available configurations
- ^ “Respiratory virus data”, “COVID cases and deaths dashboard”, “COVID-19 hospitalizations by date”, “COVID-19 Hospitalizations Dashboard”, “Count of deaths with COVID-19 by date”, “Deaths with COVID-19 by age group”, Santa Clara County Public Health. April 9, 2026.
- ^ Alameda County Data Sharing Initiative, Alameda County Public Health Department. December 27, 2025.
- ^ Contra Costa Health Services. May 22, 2023.
- ^ “ARCHIVED: COVID-19 Cases by Geography Over Time”, “COVID-19 Deaths Over Time”, “COVID-19 Hospitalizations”, DataSF, San Francisco Department of Public Health. March 31, 2026.
- ^ San Mateo County Health. April 27, 2023.
- ^ Case and Testing Data, Hospitalizations and Deaths, County of Sonoma. April 26, 2024.
- ^ Solano County Public Health. March 2, 2023.
- ^ “COVID-19 Case Disposition”, “COVID-19 Cumulative Demographics”, “Total Cases and Recovered by Date Reported among Marin County Community Residents”, “Total Hospitalizations and Deaths by Event Date among Marin County Community Residents”, Marin Health & Human Services. February 14, 2023.
- ^ “COVID-19 in Napa County”, “Landing Page”, “Situation Update Archive”, Napa County Health & Human Services Agency. May 14, 2023.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
