How mgoldenitz/ontario-er-wait-time-scorecard works
This repository delivers a five-page Power BI scorecard for comparing Trillium Health Partners emergency-department waits with Ontario benchmarks and other hospitals. The main workflow is to load monthly trend exports and provincial rankings, model measures and targets, then explore the report’s scorecard, trends, rankings, and patient-mix views. A Python script independently rebuilds the tables and analyzes correlations and regression. Power BI internals are documented in the README rather than shown in source excerpts, so those links are based on that documentation.
Main entry points: er_analysis.py Analysis script · ER_Wait_Time_Scorecard.pbix Data model · trends Monthly trend exports · hospital_rankings_2026-07.xlsx Hospital rankings
Components 20
Power BI report
- Power BI scorecard
ER_Wait_Time_Scorecard.pbix - DAX measures
ER_Wait_Time_Scorecard.pbix - Scorecard page
ER_Wait_Time_Scorecard.pbix - Trends page
ER_Wait_Time_Scorecard.pbix - Province ranking
ER_Wait_Time_Scorecard.pbix - Volume and mix
ER_Wait_Time_Scorecard.pbix - Methods and caveats
ER_Wait_Time_Scorecard.pbix
Inputs and model
- Power Query
ER_Wait_Time_Scorecard.pbix - Data model
ER_Wait_Time_Scorecard.pbix - Monthly trend exports
data/trends - Hospital rankings
data/hospital_rankings_2026-07.xlsx
Python analysis
- Analysis script
er_analysis.py - Trend table rebuild
er_analysis.py - Ranking table rebuild
er_analysis.py - Scorecard statistics
er_analysis.py - Patient mix and correlations
er_analysis.py - Adjusted regression
er_analysis.py
Published views
- Regression chart
- Static report
Goldenitz_ER_Wait_Time_Scorecard.pdf
Other components
- Report user
Connections 28
- Report user → Power BI scorecard: opens report
README.md - Monthly trend exports → Power Query: loads exports
README.md - Hospital rankings → Power Query: loads workbook
README.md - Power Query → Data model: shapes tables
README.md - Data model → DAX measures: feeds measures
README.md - DAX measures → Scorecard page: supplies metrics
README.md - DAX measures → Trends page: supplies metrics
README.md - Data model → Province ranking: supplies rankings
README.md - Data model → Volume and mix: supplies volumes
README.md - Report user → Scorecard page: selects site
README.md - Report user → Trends page: selects measure
README.md - Report user → Province ranking: compares hospitals
README.md - Report user → Volume and mix: explores mix
README.md - Report user → Methods and caveats: reviews caveats
README.md - Report user → Analysis script: runs script
README.md - Analysis script → Trend table rebuild: calls loader
er_analysis.py - Analysis script → Ranking table rebuild: calls loader
er_analysis.py - Monthly trend exports → Trend table rebuild: reads CSVs
er_analysis.py - Hospital rankings → Ranking table rebuild: reads workbook
er_analysis.py - Analysis script → Scorecard statistics: computes metrics
er_analysis.py - Trend table rebuild → Scorecard statistics: provides trends
er_analysis.py - Ranking table rebuild → Scorecard statistics: provides rankings
er_analysis.py - Analysis script → Patient mix and correlations: computes analysis
er_analysis.py - Trend table rebuild → Patient mix and correlations: provides trends
er_analysis.py - Analysis script → Adjusted regression: fits models
er_analysis.py - Trend table rebuild → Adjusted regression: provides trends
er_analysis.py - Adjusted regression → Regression chart: writes figure
er_analysis.py - Report user → Static report: views report
README.md