Module:Medical cases data/doc

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
}}
COVID-19 pandemic medical cases in the San Francisco Bay Area by county
CountiesCases[a]Recov.[b]DeathsPop. (2019)C/1MRef.
91,948,76011,3547,739,378251,798
Santa Clara539,276?3,2261,927,852279,729d c[1]
Alameda[c]400,532?2,5731,671,329239,649d c[2]
Contra Costa302,824300,6661,6011,153,526262,520d c[3]
San Francisco203,788?1,419881,549231,170d c[4]
San Mateo184,001?946766,573240,031d c[5]
Sonoma119,749118,903667494,336242,242d c[6]
Solano118,904118,073441447,643265,622d c[7]
Marin44,6507,030274258,826172,510d c[8]
Napa35,03627,672207137,744254,356d c[9]
  1. ^ Cumulative cases reported by each county's health department. Cases reported are those of county residents, including those who tested positive elsewhere in California.
  2. ^ Counties differ in what they consider to be a recovery.
  3. ^ Including cases in the City of Berkeley, which are reported by the Berkeley Public Health Division.

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


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.

  1. 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:
  2. 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.
  3. 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.
  4. 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.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.