{
 "metadata": {
  "source": "CT Office of Policy and Management — Municipal Fiscal Indicators, Uniform Chart of Accounts",
  "dataset_id": "e2qt-k238",
  "dataset_name": "Municipal Fiscal Indicators: Uniform Chart of Accounts, 2020-2023",
  "landing_page": "https://data.ct.gov/d/e2qt-k238",
  "source_url": "https://data.ct.gov/resource/e2qt-k238.json",
  "pulled": "2026-08-25",
  "dataset_last_updated": "2026-03-03",
  "recipe": "python Data/fetch_ct_ucoa.py (Python 3, standard library, no API key)",
  "row_count_source": 17632,
  "fiscal_year_note": "OPM year Y = the fiscal year ending June 30 of year Y. 2023 = FY 2022-23.",
  "basis_note": "Audited actual expenditures cross-walked to the state Uniform Chart of Accounts, split into salaries/wages, employee benefits, and all other costs. Same basis as ct_ucoa_town_indicators.json — actuals across funds, not the adopted budget.",
  "structure_note": "`function_totals` holds each town's function-level subtotal rows (the source's '<Function> Total' and 'Total Expenditures' rows), so figures are not double counted. `target_departments` holds every row the source publishes for Wethersfield, including department detail.",
  "town_scope_note": "`function_totals` covers Wethersfield and its hand-built peer groups only, to keep the browser download small. All 170 entities are in Data/ct_ucoa/mfi_ucoa_by_function_2020-2023.csv.",
  "gap_note": "The source omits some town-years entirely; those years are absent rather than zero. Missing for Wethersfield: 2020, 2022, 2023.",
  "merge_note": "`function_totals` is not in this file. It is statewide and identical for every town, so it is published once at /data/ct_ucoa_function_totals.json and merged onto this payload at runtime by TownCharts.load(). `target_departments` below is this town's own department detail and appears nowhere else."
 },
 "target": "Wethersfield",
 "years": [
  "2020",
  "2021",
  "2022",
  "2023"
 ],
 "fiscal_years": [
  "19-20",
  "20-21",
  "21-22",
  "22-23"
 ],
 "target_departments": {
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2173673,
    "benefits": 920098,
    "other": 1149987,
    "total": 4243758
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2173673,
    "benefits": 920098,
    "other": 1149987,
    "total": 4243758
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6847481,
    "benefits": 3439894,
    "other": 1245806,
    "total": 11533181
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 6472397,
    "benefits": 3304622,
    "other": 457303,
    "total": 10234322
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 365084,
    "benefits": 134463,
    "other": 445321,
    "total": 944868
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 10000,
    "benefits": 809,
    "other": 343182,
    "total": 353991
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 5579506,
    "benefits": 2809799,
    "other": 10186620,
    "total": 18575925
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 925069,
    "benefits": 511710,
    "other": 90468,
    "total": 1527247
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 19186,
    "benefits": 1568,
    "other": 2050288,
    "total": 2071042
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 4418218,
    "total": 4418218
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 4635251,
    "benefits": 2296521,
    "other": 3627646,
    "total": 10559418
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 409138,
    "benefits": 153875,
    "other": 182417,
    "total": 745430
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 126172,
    "total": 126172
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 409138,
    "benefits": 153875,
    "other": 56245,
    "total": 619258
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2224671,
    "benefits": 989690,
    "other": 509066,
    "total": 3723427
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1106935,
    "benefits": 526000,
    "other": 326449,
    "total": 1959384
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 1117736,
    "benefits": 463690,
    "other": 182617,
    "total": 1764043
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 37272594,
    "benefits": 9690611,
    "other": 20531152,
    "total": 67494357
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 37272594,
    "benefits": 9690611,
    "other": 20531152,
    "total": 67494357
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 5859652,
    "total": 5859652
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 5859652,
    "total": 5859652
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 3005352,
    "other": 661480,
    "total": 3666832
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 3005352,
    "other": 661480,
    "total": 3666832
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 54507063,
    "benefits": 21009319,
    "other": 40326180,
    "total": 115842562
   }
  ]
 }
}