{
 "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 Ridgefield, including department detail.",
  "town_scope_note": "`function_totals` covers Ridgefield 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 Ridgefield: none.",
  "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": "Ridgefield",
 "years": [
  "2020",
  "2021",
  "2022",
  "2023"
 ],
 "fiscal_years": [
  "19-20",
  "20-21",
  "21-22",
  "22-23"
 ],
 "target_departments": {
  "2020": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 0,
    "benefits": 0,
    "other": 12362171,
    "total": 12362171
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 0,
    "benefits": 0,
    "other": 12362171,
    "total": 12362171
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 8987662,
    "benefits": 0,
    "other": 1140773,
    "total": 10128435
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4812715,
    "benefits": 0,
    "other": 605209,
    "total": 5417924
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 4174947,
    "benefits": 0,
    "other": 402130,
    "total": 4577077
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 133434,
    "total": 133434
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2336317,
    "benefits": 0,
    "other": 4754099,
    "total": 7090416
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2066829,
    "benefits": 0,
    "other": 561825,
    "total": 2628654
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 269488,
    "benefits": 0,
    "other": 4192274,
    "total": 4461762
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 341017,
    "benefits": 0,
    "other": 153753,
    "total": 494770
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 234886,
    "benefits": 0,
    "other": 10020,
    "total": 244906
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 106131,
    "benefits": 0,
    "other": 143733,
    "total": 249864
   },
   {
    "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": 3636761,
    "benefits": 0,
    "other": 4243987,
    "total": 7880748
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 2342306,
    "total": 2342306
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 2531212,
    "benefits": 0,
    "other": 772731,
    "total": 3303943
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 1105549,
    "benefits": 0,
    "other": 1128950,
    "total": 2234499
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 57671666,
    "benefits": 19019807,
    "other": 32824630,
    "total": 109516103
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 57671666,
    "benefits": 19019807,
    "other": 32824630,
    "total": 109516103
   },
   {
    "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": 11335461,
    "total": 11335461
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 11335461,
    "total": 11335461
   },
   {
    "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": 0,
    "other": 36250,
    "total": 36250
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 36250,
    "total": 36250
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 72973423,
    "benefits": 19019807,
    "other": 66851124,
    "total": 158844354
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2313612,
    "benefits": 0,
    "other": 3262632,
    "total": 5576244
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2313612,
    "benefits": 0,
    "other": 3262632,
    "total": 5576244
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 9322122,
    "benefits": 0,
    "other": 5493502,
    "total": 14815624
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4726278,
    "benefits": 0,
    "other": 0,
    "total": 4726278
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 4435779,
    "benefits": 0,
    "other": 0,
    "total": 4435779
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 160065,
    "benefits": 0,
    "other": 5493502,
    "total": 5653567
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2512311,
    "benefits": 0,
    "other": 5465106,
    "total": 7977417
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2451418,
    "benefits": 0,
    "other": 0,
    "total": 2451418
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 10786,
    "benefits": 0,
    "other": 0,
    "total": 10786
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 50107,
    "benefits": 0,
    "other": 0,
    "total": 50107
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 5465106,
    "total": 5465106
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 398658,
    "benefits": 0,
    "other": 212102,
    "total": 610760
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 237526,
    "benefits": 0,
    "other": 0,
    "total": 237526
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 107955,
    "benefits": 0,
    "other": 0,
    "total": 107955
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 53177,
    "benefits": 0,
    "other": 212102,
    "total": 265279
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 5198245,
    "benefits": 0,
    "other": 4325760,
    "total": 9524005
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1546045,
    "benefits": 0,
    "other": 854473,
    "total": 2400518
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 3652200,
    "benefits": 0,
    "other": 3471287,
    "total": 7123487
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 112309407,
    "total": 112309407
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 112309407,
    "total": 112309407
   },
   {
    "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": 10735987,
    "total": 10735987
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 10735987,
    "total": 10735987
   },
   {
    "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": 0,
    "other": 36000,
    "total": 36000
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 36000,
    "total": 36000
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 19744948,
    "benefits": 0,
    "other": 141840496,
    "total": 161585444
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2381112,
    "benefits": 0,
    "other": 3815566,
    "total": 6196678
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2381112,
    "benefits": 0,
    "other": 3815566,
    "total": 6196678
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 10132695,
    "benefits": 0,
    "other": 5457682,
    "total": 15590377
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4968108,
    "benefits": 0,
    "other": 645418,
    "total": 5613526
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 4531682,
    "benefits": 0,
    "other": 550292,
    "total": 5081974
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 632905,
    "benefits": 0,
    "other": 4261972,
    "total": 4894877
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2474605,
    "benefits": 0,
    "other": 5160269,
    "total": 7634874
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2194323,
    "benefits": 0,
    "other": 0,
    "total": 2194323
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 280282,
    "benefits": 0,
    "other": 5160269,
    "total": 5440551
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 409288,
    "benefits": 0,
    "other": 250937,
    "total": 660225
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 242877,
    "benefits": 0,
    "other": 7619,
    "total": 250496
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 111493,
    "benefits": 0,
    "other": 88159,
    "total": 199652
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 54918,
    "benefits": 0,
    "other": 155159,
    "total": 210077
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 5644470,
    "benefits": 0,
    "other": 4651529,
    "total": 10295999
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1734473,
    "benefits": 0,
    "other": 710894,
    "total": 2445367
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 3090684,
    "benefits": 0,
    "other": 0,
    "total": 3090684
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 819313,
    "benefits": 0,
    "other": 3940635,
    "total": 4759948
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 116880645,
    "total": 116880645
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 116880645,
    "total": 116880645
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 9711819,
    "total": 9711819
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 9711819,
    "total": 9711819
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 21042170,
    "benefits": 0,
    "other": 145928447,
    "total": 166970617
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 2456118,
    "benefits": 0,
    "other": 3905073,
    "total": 6361191
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 2456118,
    "benefits": 0,
    "other": 3905073,
    "total": 6361191
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 10122406,
    "benefits": 0,
    "other": 5306991,
    "total": 15429397
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5050457,
    "benefits": 0,
    "other": 706072,
    "total": 5756529
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 4342419,
    "benefits": 0,
    "other": 604161,
    "total": 4946580
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 729530,
    "benefits": 0,
    "other": 3996758,
    "total": 4726288
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2418607,
    "benefits": 0,
    "other": 6010897,
    "total": 8429504
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 2418607,
    "benefits": 0,
    "other": 4547158,
    "total": 6965765
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 69057,
    "total": 69057
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 1394682,
    "total": 1394682
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 418554,
    "benefits": 0,
    "other": 260102,
    "total": 678656
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 251863,
    "benefits": 0,
    "other": 135399,
    "total": 387262
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 109247,
    "benefits": 0,
    "other": 88503,
    "total": 197750
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 57444,
    "benefits": 0,
    "other": 36200,
    "total": 93644
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 5765674,
    "benefits": 0,
    "other": 5035329,
    "total": 10801003
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1710173,
    "benefits": 0,
    "other": 2546250,
    "total": 4256423
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 4055501,
    "benefits": 0,
    "other": 2489079,
    "total": 6544580
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 122067544,
    "total": 122067544
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 122067544,
    "total": 122067544
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 8247877,
    "total": 8247877
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 8247877,
    "total": 8247877
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 21181359,
    "benefits": 0,
    "other": 150833813,
    "total": 172015172
   }
  ]
 }
}