{
 "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 Goshen, including department detail.",
  "town_scope_note": "`function_totals` covers Goshen 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 Goshen: 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": "Goshen",
 "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": 365967,
    "benefits": 387996,
    "other": 348285,
    "total": 1102248
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 365967,
    "benefits": 387996,
    "other": 348285,
    "total": 1102248
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 27709,
    "benefits": 0,
    "other": 113860,
    "total": 141569
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 22733,
    "benefits": 0,
    "other": 58422,
    "total": 81155
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 4976,
    "benefits": 0,
    "other": 55438,
    "total": 60414
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 398621,
    "benefits": 0,
    "other": 768545,
    "total": 1167166
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 397556,
    "benefits": 0,
    "other": 560319,
    "total": 957875
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 1065,
    "benefits": 0,
    "other": 208226,
    "total": 209291
   },
   {
    "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": 2498,
    "benefits": 0,
    "other": 75319,
    "total": 77817
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 15826,
    "total": 15826
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 2498,
    "benefits": 0,
    "other": 59493,
    "total": 61991
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 218285,
    "benefits": 0,
    "other": 103768,
    "total": 322053
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 121161,
    "benefits": 0,
    "other": 33299,
    "total": 154460
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 97124,
    "benefits": 0,
    "other": 70469,
    "total": 167593
   },
   {
    "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": 8035587,
    "total": 8035587
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 8035587,
    "total": 8035587
   },
   {
    "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": 1013080,
    "benefits": 387996,
    "other": 9445364,
    "total": 10846440
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 271105,
    "benefits": 354893,
    "other": 483075,
    "total": 1109073
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 271105,
    "benefits": 354893,
    "other": 483075,
    "total": 1109073
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 24645,
    "benefits": 0,
    "other": 118700,
    "total": 143345
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 21053,
    "benefits": 0,
    "other": 62865,
    "total": 83918
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 3592,
    "benefits": 0,
    "other": 55835,
    "total": 59427
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 404862,
    "benefits": 0,
    "other": 801944,
    "total": 1206806
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 403989,
    "benefits": 0,
    "other": 566775,
    "total": 970764
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 873,
    "benefits": 0,
    "other": 235169,
    "total": 236042
   },
   {
    "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": 2879,
    "benefits": 0,
    "other": 72741,
    "total": 75620
   },
   {
    "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": 2879,
    "benefits": 0,
    "other": 72741,
    "total": 75620
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 202998,
    "benefits": 0,
    "other": 87246,
    "total": 290244
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 117352,
    "benefits": 0,
    "other": 33264,
    "total": 150616
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 85646,
    "benefits": 0,
    "other": 53982,
    "total": 139628
   },
   {
    "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": 8340713,
    "total": 8340713
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 8340713,
    "total": 8340713
   },
   {
    "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": 906489,
    "benefits": 354893,
    "other": 9904419,
    "total": 11165801
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 349547,
    "benefits": 366700,
    "other": 464450,
    "total": 1180697
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 349547,
    "benefits": 366700,
    "other": 464450,
    "total": 1180697
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 23834,
    "benefits": 0,
    "other": 149119,
    "total": 172953
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 21319,
    "benefits": 0,
    "other": 82500,
    "total": 103819
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 2515,
    "benefits": 0,
    "other": 66619,
    "total": 69134
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 425539,
    "benefits": 0,
    "other": 757348,
    "total": 1182887
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 424642,
    "benefits": 0,
    "other": 501244,
    "total": 925886
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 897,
    "benefits": 0,
    "other": 256104,
    "total": 257001
   },
   {
    "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": 1939,
    "benefits": 0,
    "other": 72115,
    "total": 74054
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 1939,
    "benefits": 0,
    "other": 3500,
    "total": 5439
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 68615,
    "total": 68615
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 228226,
    "benefits": 0,
    "other": 126400,
    "total": 354626
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 124897,
    "benefits": 0,
    "other": 33628,
    "total": 158525
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 103329,
    "benefits": 0,
    "other": 92772,
    "total": 196101
   },
   {
    "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": 8680922,
    "total": 8680922
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8680922,
    "total": 8680922
   },
   {
    "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": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1029085,
    "benefits": 366700,
    "other": 10250354,
    "total": 11646139
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 359107,
    "benefits": 370504,
    "other": 471162,
    "total": 1200773
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 359107,
    "benefits": 370504,
    "other": 471162,
    "total": 1200773
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 33731,
    "benefits": 0,
    "other": 113278,
    "total": 147009
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 24070,
    "benefits": 0,
    "other": 77676,
    "total": 101746
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 9661,
    "benefits": 0,
    "other": 35602,
    "total": 45263
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 422582,
    "benefits": 0,
    "other": 847908,
    "total": 1270490
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 421271,
    "benefits": 0,
    "other": 576263,
    "total": 997534
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 1311,
    "benefits": 0,
    "other": 271645,
    "total": 272956
   },
   {
    "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": 2804,
    "benefits": 0,
    "other": 78041,
    "total": 80845
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 2804,
    "benefits": 0,
    "other": 4400,
    "total": 7204
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 73641,
    "total": 73641
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 215164,
    "benefits": 0,
    "other": 119814,
    "total": 334978
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 131622,
    "benefits": 0,
    "other": 34784,
    "total": 166406
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 83542,
    "benefits": 0,
    "other": 85030,
    "total": 168572
   },
   {
    "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": 8316201,
    "total": 8316201
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 8316201,
    "total": 8316201
   },
   {
    "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": 201995,
    "total": 201995
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 201995,
    "total": 201995
   },
   {
    "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": 1033388,
    "benefits": 370504,
    "other": 10148399,
    "total": 11552291
   }
  ]
 }
}