{
 "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 Hamden, including department detail.",
  "town_scope_note": "`function_totals` covers Hamden 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 Hamden: 2020.",
  "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": "Hamden",
 "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": 7736566,
    "benefits": 8007995,
    "other": 3697200,
    "total": 19441761
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 7736566,
    "benefits": 8007995,
    "other": 3697200,
    "total": 19441761
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 26416049,
    "benefits": 27342826,
    "other": 3702150,
    "total": 57461025
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 14265382,
    "benefits": 14765867,
    "other": 2151022,
    "total": 31182271
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 12150667,
    "benefits": 12576959,
    "other": 1403125,
    "total": 26130751
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 148003,
    "total": 148003
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 6199872,
    "benefits": 6417387,
    "other": 6207601,
    "total": 18824860
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 5752528,
    "benefits": 5954349,
    "other": 6202595,
    "total": 17909472
   },
   {
    "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": 447344,
    "benefits": 463038,
    "other": 5006,
    "total": 915388
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 735241,
    "benefits": 761036,
    "other": 1099270,
    "total": 2595547
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 580016,
    "total": 580016
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 305037,
    "benefits": 315739,
    "other": 103269,
    "total": 724045
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 430204,
    "benefits": 445297,
    "other": 415985,
    "total": 1291486
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 2247584,
    "benefits": 2326439,
    "other": 449280,
    "total": 5023303
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1748802,
    "benefits": 1810157,
    "other": 338741,
    "total": 3897700
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 399802,
    "benefits": 413829,
    "other": 100020,
    "total": 913651
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 98980,
    "benefits": 102453,
    "other": 10519,
    "total": 211952
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 67804000,
    "benefits": 73204674,
    "other": 7564217,
    "total": 148572891
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 67804000,
    "benefits": 73204674,
    "other": 7564217,
    "total": 148572891
   },
   {
    "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": 16181643,
    "total": 16181643
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 16181643,
    "total": 16181643
   },
   {
    "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": 111139312,
    "benefits": 118060357,
    "other": 38901361,
    "total": 268101030
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 4490448,
    "benefits": 3526356,
    "other": 9239492,
    "total": 17256296
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 4490448,
    "benefits": 3526356,
    "other": 9239492,
    "total": 17256296
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 19309345,
    "benefits": 15163659,
    "other": 12512997,
    "total": 46986001
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 10234960,
    "benefits": 8037530,
    "other": 6632541,
    "total": 24905031
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 8715827,
    "benefits": 6844553,
    "other": 5648100,
    "total": 21208480
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 358558,
    "benefits": 281576,
    "other": 232356,
    "total": 872490
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 5716407,
    "benefits": 4489103,
    "other": 8152671,
    "total": 18358181
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 5220885,
    "benefits": 4099969,
    "other": 7445963,
    "total": 16766817
   },
   {
    "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": 495522,
    "benefits": 389134,
    "other": 706708,
    "total": 1591364
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 639345,
    "benefits": 502079,
    "other": 1648827,
    "total": 2790251
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 639345,
    "benefits": 502079,
    "other": 1648827,
    "total": 2790251
   },
   {
    "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": 2195647,
    "benefits": 1724245,
    "other": 924684,
    "total": 4844576
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1781472,
    "benefits": 1398993,
    "other": 750257,
    "total": 3930722
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 329968,
    "benefits": 259124,
    "other": 138964,
    "total": 728056
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 84207,
    "benefits": 66128,
    "other": 35463,
    "total": 185798
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 72391111,
    "benefits": 56848853,
    "other": 29373400,
    "total": 158613364
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 72391111,
    "benefits": 56848853,
    "other": 29373400,
    "total": 158613364
   },
   {
    "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": 17253609,
    "total": 17253609
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 17253609,
    "total": 17253609
   },
   {
    "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": 104742303,
    "benefits": 82254295,
    "other": 79105680,
    "total": 266102278
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 5295494,
    "benefits": 6029450,
    "other": 9812917,
    "total": 21137861
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 5295494,
    "benefits": 6029450,
    "other": 9812917,
    "total": 21137861
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 28008001,
    "benefits": 32870498,
    "other": 2146811,
    "total": 63025310
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 14803619,
    "benefits": 16855402,
    "other": 1401301,
    "total": 33060322
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 13108692,
    "benefits": 14925558,
    "other": 700402,
    "total": 28734652
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 95690,
    "benefits": 1089538,
    "other": 45108,
    "total": 1230336
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 7049584,
    "benefits": 8026657,
    "other": 7505339,
    "total": 22581580
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 6121809,
    "benefits": 6970292,
    "other": 7007807,
    "total": 20099908
   },
   {
    "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": 927775,
    "benefits": 1056365,
    "other": 497532,
    "total": 2481672
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 419808,
    "benefits": 477993,
    "other": 1862954,
    "total": 2760755
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 419808,
    "benefits": 477993,
    "other": 1862954,
    "total": 2760755
   },
   {
    "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": 2508467,
    "benefits": 2856041,
    "other": 1000427,
    "total": 6364935
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 1812467,
    "benefits": 2063575,
    "other": 423310,
    "total": 4299352
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 572617,
    "benefits": 651982,
    "other": 416147,
    "total": 1640746
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 123383,
    "benefits": 140484,
    "other": 160970,
    "total": 424837
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 69308492,
    "benefits": 57992526,
    "other": 22086433,
    "total": 149387451
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 69308492,
    "benefits": 57992526,
    "other": 22086433,
    "total": 149387451
   },
   {
    "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": 17348713,
    "total": 17348713
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 17348713,
    "total": 17348713
   },
   {
    "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": 112589846,
    "benefits": 108253165,
    "other": 61763594,
    "total": 282606605
   }
  ]
 }
}