Data Projects by Arun Emilsson

Project 01Working demonstration

Projects / NHS waiting time comparison

NHS waiting time comparison

A practical data project: collecting published NHS waiting time figures, storing them in Azure SQL and presenting them in a working comparison tool.

Project notes

Question: How can published specialty waiting times be compared without treating trust averages as a promise about an individual appointment?

Tools: Python · Beautiful Soup · Azure SQL · SQL · JavaScript · HTML/CSS

Process: My Planned Care pages → Python collection and validation → Azure SQL tables and view → JSON export → comparison interface.

A SQL view is a saved database query that selects the records needed for the website. JSON is the structured data file the comparison tool reads.

Current scope: Three trusts, 28 distinct specialties and 256 waiting time records. Available waiting time figures updated by My Planned Care on 30 October 2026; exported on 31 October 2026. Postcode distance estimates use a separate, partially verified hospital and clinic directory.

Status: Working prototype. Data refreshes are manually triggered; the published site displays a dated export. Specialty to site mapping remains partial.

Try the working tool below · Download the SQL view · Download the published dataset

Working demonstration

Published waiting times for NHS trusts serving Coventry and Warwickshire. Choose a specialty to compare providers, then discuss suitable referral options with your GP.

Coventry and Warwickshire pilot · 3 trustsLoading published waiting time data… This snapshot does not refresh automatically. Published averages are not appointment offers.

Choose your comparison

Distance to hospital and clinic sites

Approximate straight line miles between postcode centres. Road journeys will differ. Your postcode is sent to Postcodes.io only when you calculate; This site does not save it.

Specialty locations are checked individually and coverage is still partial. A listed clinic does not confirm referral acceptance or the location of your particular treatment. Waiting times remain trust level figures.

Enter a postcode to add distances to the results below.

Published waiting times

Average wait: shortest first

“Data unavailable” means no figure was published in the collected record. “Specialty not listed” means it was absent from that trust’s source page. Neither confirms whether a service is offered. Trust level figures may cover several hospital sites.

Using these results

  1. Compare the same specialty and waiting time measure across trusts.
  2. Consider the service you need, travel and follow up appointments. Distances are approximate straight line estimates; confirm your appointment site and referral availability with the provider.
  3. Use “Prepare GP summary” to print the figures and questions to discuss with your GP.

About the data

What do the waiting time figures mean?

My Planned Care reports mean waits within a specialty at a hospital trust. Some people wait less and others wait longer. The “8 in 10” figure is the published time within which 80% of patients are seen. These figures do not predict the wait for your own referral.

Can I request another provider?

Ask your GP whether the provider offers the service you need and can accept your referral. Changing provider while already waiting can involve different rules.

NHS referral and patient choice guidance
Sources, coverage and privacy

Source: NHS My Planned Care. This snapshot includes all specialty sections collected for University Hospitals Coventry and Warwickshire, South Warwickshire and George Eliot. Collection and publication dates appear with each result; missing publication dates remain unknown. This pilot does not cover the whole UK.

No patient details are requested. If you use the optional distance checker, your postcode is sent to Postcodes.io for coordinates. This site does not save it; Postcodes.io receives the request and has its own data handling practices. Your comparison selections stay in your browser. This comparison is an independent project and is not an NHS service.

Official My Planned Care directory for England

Hospital and clinic addresses and specialty locations are linked to their official sources in the results. Site records checked 11 October 2026. Postcode coordinates: Postcodes.io / ONS postcode data. The directory is an initial selection of sites, not a complete list of every community clinic.

What this project has taught me

This project has helped me practise taking data from a public source through a database and into a usable output.

Python collection and validation
Reading web tables, checking expected measures and source dates, and stopping a load when the source does not match the expected structure.
Relational database design
Separating trusts, specialties and waiting time records, and connecting them with primary and foreign keys.
SQL queries and views
Joining tables and creating a reusable view that selects each trust’s latest successful collection.
Repeatable data loading
Updating existing records without adding duplicates, and using transactions so failed loads can be rolled back.
Data quality and interpretation
Preserving missing figures as NULL, distinguishing collection dates from publication dates, and explaining why a trust average is not an individual prediction.
Location data and APIs
Using postcode coordinates to calculate approximate straight line distances and verifying specialty locations separately from trust ownership.
Privacy conscious troubleshooting with LLMs
Using ChatGPT to explain error messages, discuss SQL queries and refine Python and SQL code. This has helped me learn to minimise what is shared in a prompt: focus on public datasets and sanitised examples, and remove personal details, credentials and confidential information before asking for help. The project uses published trust level figures, not patient level data. AI suggestions need to be reviewed and checked against source data and expected behaviour.
Publishing and testing
Exporting website ready JSON, checking comparison logic, and connecting a custom domain through DNS and HTTPS.

Next development steps: unattended refreshes, broader specialty location verification and further usability testing.

Project 02: UK investment ownership · Return to all projects