← All work

Referral network map

GP and partner contact map for Hospital X

Role
Business development tooling
When
2026
Built with
JavaScript, Leaflet, SheetJS, Excel, Python, Playwright
Format
Live replica

Who sends us patients, and who should we call?

Referrals to Hospital X came from GPs, physios, opticians, schools, sports clubs and private clinics nearby, yet the contact list was a spreadsheet with no sense of distance or of who’d already been in touch. Nobody could see which partners actually sent patients, so outreach went wherever someone remembered to look.

From a spreadsheet to a map

It started as an Excel contact book. Every partner’s postcode is geocoded, which makes it searchable by distance from the hospital, and a gap report lists practices missing an email or phone number. To fill those gaps I wrote a Python scraper, using Playwright, that visits partner websites and picks up their contact emails.

Each area also gets a self-pay score built from the English Indices of Deprivation and postcode data. It’s a rough proxy, but it points the team at places where people are more likely to pay privately.

The map app sits on top of all that: one HTML file that opens the workbook in the browser. You can filter by category, self-pay band, radius and whether someone’s been contacted, and two views do most of the work. “Who refers to us” ranks partners by referrals; “Who to contact next” lists the ones nobody has called yet, highest self-pay and nearest first. Results export to CSV or straight into an email.

I wrote illustrated guides too, because the people using it every day weren’t the ones who built it.

Try it

This is the real app running on invented partners, and it’s easier to use full screen.

About the dataEvery partner, contact and postcode is invented. The map sits in a made-up area with 'XQ' postcodes, which don't exist in the UK.

The live replica

Open full screen