{
 "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 Mansfield, including department detail.",
  "town_scope_note": "`function_totals` covers Mansfield 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 Mansfield: 2021.",
  "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": "Mansfield",
 "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": 0,
    "total": 0
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 14644612,
    "benefits": 4319210,
    "other": 11108440,
    "total": 30072262
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 14644612,
    "benefits": 4319210,
    "other": 0,
    "total": 18963822
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 11108440,
    "total": 11108440
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "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": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 14644612,
    "benefits": 4319210,
    "other": 11108440,
    "total": 30072262
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1748268,
    "benefits": 0,
    "other": 2256977,
    "total": 4005245
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1748268,
    "benefits": 0,
    "other": 2256977,
    "total": 4005245
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2628489,
    "benefits": 0,
    "other": 1995920,
    "total": 4624409
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 56030,
    "benefits": 0,
    "other": 1598339,
    "total": 1654369
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 2398492,
    "benefits": 0,
    "other": 387144,
    "total": 2785636
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 173967,
    "benefits": 0,
    "other": 10437,
    "total": 184404
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1942947,
    "benefits": 0,
    "other": 736896,
    "total": 2679843
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1548345,
    "benefits": 0,
    "other": 368052,
    "total": 1916397
   },
   {
    "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": 394602,
    "benefits": 0,
    "other": 368844,
    "total": 763446
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 784248,
    "benefits": 0,
    "other": 240909,
    "total": 1025157
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 144918,
    "total": 144918
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 784248,
    "benefits": 0,
    "other": 95991,
    "total": 880239
   },
   {
    "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": 747015,
    "benefits": 0,
    "other": 196529,
    "total": 943544
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 747015,
    "benefits": 0,
    "other": 196529,
    "total": 943544
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 13103631,
    "benefits": 7626075,
    "other": 17321716,
    "total": 38051422
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 13103631,
    "benefits": 7626075,
    "other": 6164296,
    "total": 26894002
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 11157420,
    "total": 11157420
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 3965431,
    "other": 0,
    "total": 3965431
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 3965431,
    "other": 0,
    "total": 3965431
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 20954598,
    "benefits": 11591506,
    "other": 22748947,
    "total": 55295051
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1306549,
    "benefits": 74026,
    "other": 1448204,
    "total": 2828779
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1306549,
    "benefits": 74026,
    "other": 1448204,
    "total": 2828779
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 3075354,
    "benefits": 69545,
    "other": 2062415,
    "total": 5207314
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 57297,
    "benefits": 2824,
    "other": 1653937,
    "total": 1714058
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 2426211,
    "benefits": 62825,
    "other": 370942,
    "total": 2859978
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 591846,
    "benefits": 3896,
    "other": 37536,
    "total": 633278
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 2573631,
    "benefits": 14858,
    "other": 1332430,
    "total": 3920919
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1971756,
    "benefits": 9284,
    "other": 645761,
    "total": 2626801
   },
   {
    "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": 601875,
    "benefits": 5574,
    "other": 686669,
    "total": 1294118
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 844718,
    "benefits": 7187,
    "other": 283639,
    "total": 1135544
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 147145,
    "total": 147145
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 844718,
    "benefits": 7187,
    "other": 136494,
    "total": 988399
   },
   {
    "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": 777388,
    "benefits": 2317,
    "other": 203466,
    "total": 983171
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 777388,
    "benefits": 2317,
    "other": 203466,
    "total": 983171
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 15336577,
    "benefits": 7950855,
    "other": 15643347,
    "total": 38930779
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 15336577,
    "benefits": 7950855,
    "other": 4036096,
    "total": 27323528
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 11607251,
    "total": 11607251
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "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": 3995076,
    "other": 195745,
    "total": 4190821
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 3995076,
    "other": 195745,
    "total": 4190821
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 23914217,
    "benefits": 12113864,
    "other": 21169246,
    "total": 57197327
   }
  ]
 }
}