Clinic referral handoff
L2–L4
Level range
8
Sprints
40
Tasks
Backend and frontend
Built as
What you’ll build
A referral system between clinics. One clinic sends a referral that carries only what the other clinic needs to see. The receiving clinic accepts or declines it with a reason, and the sending clinic is told by email, without watching the screen. Both clinics see everything still waiting on the other side, and referrals nobody has answered are chased automatically.
A skill in every sprint
You show you have it in a pull request your team reviews, then explain it in a walkthrough.
Authentication
You can register and sign in a user, keep a request authenticated without asking for the password again, and explain where the credential lives in the browser and why there rather than somewhere else.
Referring a patient onward
You can create a referral, share exactly the records it covers, and show that access ends when the referral does.
Search and filtering
You can search a list by keyword, combine that with filters, and say what the database does to answer the query — including which part uses an index and which part cannot.
Notifications people do not mute
You can notify a user when an event concerns them, show an unread count that survives a refresh, and honour a preference that says stop.
Background jobs
You can hand work to a worker, tell the user it is in progress, and show the result when it lands — and say what happens to that work if the process dies halfway.
Email verification
You can issue a verification link, activate the account when it is followed, and explain what the link contains and why it cannot simply be a user id.
Going live
Somebody who has never met you can open a URL and use the product — and you can say what is different about the copy running there, where its secrets come from, and what you do when a release turns out to be wrong.
8 sprints, 40 tasks
Every sprint has a goal and a set of tasks. Open a sprint to see the tasks you will pick up.
- Sprint 01
Two clinics, two front doors
Somebody can register a clinic, invite a colleague into it, and sign back in to the same clinic the next day.
4 tasks
- Let a clinic register and start using the product straight away
- Let staff sign in again later and sign out safely on a shared computer
- Let staff invite a colleague into their clinic
- Make the clinic, not the person who registered it, own everything
- Sprint 02
Sending it
One clinic writes a referral and sends it to another clinic, which can read that referral and nothing else about the patient.
5 tasks
- Let clinics say what they treat and find each other in a directory
- Let a clinic write a referral and save it before it is finished
- Send a referral so it appears at the receiving clinic
- Let a clinic read only the referrals it sent or received
- Let the sending clinic withdraw a referral sent to the wrong clinic
- Sprint 03
The other end answers
The receiving clinic accepts a referral or declines it with a reason, a referral can only ever have one answer, and a clinic that declines loses access to the patient's details.
5 tasks
- Let the receiving clinic accept a referral
- Let the receiving clinic decline a referral with a reason
- Make sure a referral can only ever have one answer
- End a clinic's access to the patient's details when it declines
- Show both clinics the same history of each referral
- Sprint 04
Neither side loses track
Each clinic opens one screen that lists its outstanding work, and no referral is skipped while colleagues work through it.
5 tasks
- Record when the receiving clinic first opens a referral
- Give the receiving clinic one queue of referrals to answer
- Give the sending clinic a list of everything it is waiting on
- Let both clinics filter and search their referral lists
- Stop referrals being skipped when the queue changes during paging
- Sprint 05
Told without watching the screen
Each clinic is told by email what happened to its referrals without keeping the product open, with routine news in one daily summary and urgent news straight away.
5 tasks
- Email the receiving clinic when a referral arrives
- Email the sending clinic when its referral is accepted or declined
- Keep every detail that identifies the patient out of emails
- Gather routine referral news into one daily summary per clinic
- Send urgent referrals and their answers straight away
- Sprint 06
Nothing waits forever
The product notices an unanswered referral by itself, chases it once rather than four times, and reports when its own work fails.
5 tasks
- Send each clinic's daily summary automatically at its chosen hour
- Let each clinic set how quickly it aims to answer each urgency
- Chase referrals that pass their target without an answer
- Make sure the same chase is never sent twice
- Report failed scheduled work to whoever runs the product
- Sprint 07
Proving the address
A clinic can only send or receive referrals once somebody there has proved they can read its email address.
5 tasks
- Ask each new clinic to prove it can read its email address
- Keep clinics with unconfirmed addresses out of the directory
- Make the confirmation link unguessable, single use and short lived
- Help a clinic whose confirmation email is slow, lost or mistyped
- Keep the old address working until a new clinic address is confirmed
- Sprint 08
Where both clinics are
Two clinics on two different networks use the same product at the same web address, and nobody has to keep a laptop open.
6 tasks
- Put the product on a server two clinics can reach from anywhere
- Move every setting and secret out of the code and onto the server
- Run the scheduled summaries and chases on the server
- Deliver the product's emails to real inboxes
- Give the product a short web address with a secure connection
- Make a bad release quick to undo
Read before you build
Senior engineers read the docs before they touch the code. Every Blueprint comes with short documents on the product and its world, the kind a team hands a new hire. Read them well and you ask sharper questions and walk into every review prepared.
What you are building
The product, the two clinics that use it, what it does not do, and what finished means.
Both ends of a handoff
Background on referrals: what one contains, why the wait for an answer is the risky part, what a decline is for, and two designs we chose not to build.
More health Blueprints
Clinic appointment booking
Online booking for one small clinic. Patients find a time that is really free and book it themselves. The front desk sees the whole day on one screen. Nobody arrives to find their time was given to somebody else.
Prescription renewal requests
Repeat prescription requests for one practice. Patients ask for more of a medicine they already take. A clinician approves or declines each request with a reason the patient can read. Every decision is kept on a record that the product cannot change afterwards.
Immunisation record
A vaccination record for families. A parent sees what each child has had and what is due next. A practice sees which of its children are behind. The parent can download the record as a card to give to a school.
Not the one for you?
Every Blueprint is planned the same way, across health, shopping, money, education and more.
Browse all BlueprintsBuild clinic referral handoff.
Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.
Start today, for free