Lionheart Clinic: a documentation agent in daily clinical use, with patient details removed before any external model sees the text.
· Case study · Lionheart Clinic · May 2024 to present
AI Consultant & Developer
- Clinician documentation time per session
- 90 to 20 minutes
- Visits, enquiries, bookings and revenue
- More than tenfold
- Website users
- 14K
- Website users, year on year
- +1,130%
Context
Lionheart Clinic is a child and adolescent psychiatry practice my wife founded. I work with it as a consultant and built its systems.
I started in May 2024. The practice is small, the work is clinical and the records are among the most sensitive a business can hold. Every system had to be faster for clinicians and safer for patients at the same time.
Who wanted what
Clinicians wanted the writing taken off their plate and they did not want identifiable patient detail leaving the practice to get there. Families wanted to know what was still needed from them without ringing to ask. Admin wanted fewer phone calls chasing forms. The fastest technical answer, sending raw transcripts to a model, would have pleased almost nobody once they understood it. Saying so early was the uncomfortable part.
The documentation agent
I sat with the clinician and mapped how notes and letters were really written. We cut the steps that did not need to exist and decided where a person stays. Only then did I build.
The agent turns session transcripts and the clinician's notes into draft clinical notes and GP letters. It is in daily clinical use. A clinician approves every letter.
Documentation fell from about 90 minutes a session to about 20 on average.
How patient details stay inside the practice
Whisper transcribes the recording. Diarisation separates the speakers. GLiNER detects personal details and placeholders replace them. The language model drafts from that text. Re-identification puts the real details back when the draft returns.
An invented line shows the shape:
- Before: "Sam saw Dr Nguyen on 3 March and will return in six weeks."
- What the model sees: "[PATIENT] saw [CLINICIAN] and will return in [+6 weeks]."
A person verifies the output before any external model call. Any outbound text that fails a check is blocked. Neither step can be skipped.
How it is tested
I tune the agent on real output. I compared six of the clinician's finished letters with the machine drafts. The drafts of initial assessments ran more than twice as long. They also turned rating scales and school reports into prose. I rewrote the drafting guides from those six letters.
I test for failures that raise no error. On a different hardware setting the detection model found 4 personal details in a long test note where the standard setting found 49. Nothing crashed and the health check passed, because the check used a short sentence. The system stays on the setting that works. It now tests the model at load time and falls back if the model finds nothing.
What else I built
A practice-management system: booking backend, clinical transcription, task management and secure messaging.
The Chase system replaced the admin chase list with one requirements primitive. The patient owns their own chase. Admin handles the exceptions.
On the public side I built an answer-engine layer: llms.txt, a robots allowlist for 18 AI crawlers, FAQPage schema and a Google Search Console measurement loop. All of it stays AHPRA-compliant.
Outcome
Clinical documentation fell from about 90 minutes a session to about 20, a 78% cut.
Website visits, enquiries, bookings and revenue all grew more than tenfold in four months and have held there since. The site reached 14K users, up 1,130% year on year.
The method behind it
how I work: see the whole picture, listen to people, find a shared direction and put ideas into practice.
Questions and answers
- What does the documentation agent at Lionheart Clinic do?
- It turns session transcripts and a clinician's notes into draft clinical notes and GP letters. It is in daily clinical use. A clinician approves every letter.
- How much clinician time did the system save?
- Documentation that took about 90 minutes a session now takes about 20 minutes on average, a 78% cut.
- What does the de-identification pipeline at Lionheart Clinic do?
- It turns a recorded consultation into a draft note without sending identifiable details to an external model. Whisper transcribes, diarisation separates speakers, GLiNER finds personal details and placeholders replace them. A person verifies the result before any external model call and real details are restored only when the draft comes back.
- How is the de-identification tested?
- Checks run on the text before it leaves the practice. Any outbound text that fails a check is blocked. The detection model is tested on long notes as well as short sentences, because a fault can pass a short test and still fail on real length.
- What is the Chase system?
- One requirements primitive for everything a patient still needs to provide. The patient owns their own chase and can see what is outstanding. Admin staff handle only the exceptions.
- What did the answer-engine optimisation work involve?
- An llms.txt file, a robots.txt allowlist for 18 AI crawlers, FAQPage structured data on the pages people ask about and a measurement loop in Google Search Console. The site stays AHPRA-compliant.
- What is Ken's relationship to Lionheart Clinic?
- Lionheart Clinic is a child and adolescent psychiatry practice my wife founded. I work with it as a consultant and built its systems.
Related work
- Kuki Tanuki: Building Kuki Tanuki’s systems from scratch, with people at the centre of the technology, across twelve years in hospitality.
- bethany.chat: A psychological-mirroring chatbot reached 200 users in three days. I saw manipulation and disclosure risks and I shut it down rather than scale it.