
Case study · Healthcare
Tele-rehabilitation: reliable remote therapy sessions
Reliable remote therapy sessions with AI-assisted, clinician-reviewed documentation
- Client
- A UK and US tele-rehabilitation platform
- Industry
- Healthcare
- What we did
- Product Engineering
- Engagement
- Team Extension
- Team
- 1 engineer
- Duration
- 7 years, ongoing
In short
A web-based tele-rehabilitation platform connects therapists and patients for remote therapy sessions across the UK and US. ValueCoders staffed a dedicated Team Extension that prototyped and hardened an in-iframe screen-share and remote screen-control capability over WebRTC and PeerJS, stabilized live video and audio sessions, added AI-assisted SOAP-note documentation combining transcription with LLM-assisted note generation, and enabled isolated multi-region deployment across separate US, UK and demo databases. The platform runs on Angular and Node.js, with React and Node for the in-iframe screen-share module, WebRTC, PeerJS and Socket.io for live sessions and control transfer, and Deepgram paired with LLM-assisted note generation for documentation.
What was the situation?Let clinicians run reliable remote therapy and cut time spent on documentation, without the platform losing regional data boundaries or clinician control of the final clinical record.
Your clinicians can't deliver good remote care if the session keeps dropping mid-appointment, and they lose the rest of the day writing up notes by hand. For a tele-rehabilitation platform connecting therapists and patients over web video, WebRTC and PeerJS sessions had to hold steady through screen-sharing. That included holding steady alongside a separate third-party exercise application running in the same session. SOAP-note documentation had to stop eating into time that belonged to patients, not add to it.
Read the full accountShow less
At the same time, expanding across regions meant patient data for the US and UK could not sit in one shared store. Each region needed its own isolated databases and configuration as new markets came online. And because this is clinical documentation, any AI assistance had to stay clinician-reviewed rather than autonomous: the therapist keeps responsibility for the final record, however the draft note gets there.
None of this was happening in a quiet corner of healthcare. Remote rehabilitation has been one of the faster-growing categories in digital health, which meant a platform that couldn't hold a session, or that buried its clinicians in paperwork, was competing at a real disadvantage against better-resourced alternatives built for exactly this problem.
The real constraint
Session reliability had to come first. Connection stability, in-iframe media arbitration with the separate exercise application, and regional data boundaries were prerequisites, not features to bolt on once the AI layer looked interesting: a documentation shortcut is worthless if the appointment it documents never finished. The AI itself had to route uncertainty back to clinician review rather than act on its own. A therapist checks every drafted note before it becomes part of the record, so the model's job is to remove the blank page, not to remove the clinician.
What did we do?
ValueCoders extended the platform's engineering team with a dedicated Team Extension, treating session reliability, skeleton tracking with Google MediaPipe and AI-assisted documentation as one governed workflow rather than separate features. The order mattered: stabilize the connection first, keep regional boundaries explicit, and keep the clinician responsible for the record throughout. The team built on Angular and Node.js, WebRTC and PeerJS with Socket.io for live sessions, and Deepgram paired with LLM-assisted note generation for documentation, and Google MediaPipe for skeleton tracking.
- Stabilize: reliable live sessions
Hardened PeerJS connections with heartbeat monitoring and automatic reconnection, and resolved cross-origin and security conflicts that had been breaking sessions, so video, audio and screen-sharing hold through a full appointment rather than dropping partway through.
- Skeleton tracking: accurately monitoring and scoring patient movement
Implemented skeleton tracking with Google MediaPipe for patients while they exercise alongside the online session.
- Document: AI-assisted SOAP notes
Combined real-time transcription with LLM-assisted note generation, pre-processing transcripts for cleaner, more consistent SOAP-note drafts that clinicians review before saving. The model drafts; the clinician decides what stays in the record.
- Scale: isolated multi-region deployment
Deployed across US, UK and demo environments with region-specific PostgreSQL databases and configuration, keeping patient data separable by region as the platform expanded into new markets.
How was it built?
The platform is structured so connection reliability and regional data isolation are the foundation, with AI-assisted documentation layered on top as a clinician-reviewed step rather than an autonomous one. Live sessions, in-iframe remote control, transcription and notes, and regional storage are handled as separable concerns, so a change to one does not require touching the others.
Built with
- Angular
- React
- Node.js
- PostgreSQL
- WebRTC
- PeerJS
- Socket.IO
- Deepgram
- RustDesk
The layers
- Session layer
WebRTC video and audio, plus screen-sharing over PeerJS, with heartbeat monitoring and automatic reconnection for stability.
- Documentation layer
Deepgram transcription feeding LLM-assisted SOAP-note drafting, kept clinician-reviewed before the record is finalized.
- Regional data layer
Region-specific PostgreSQL databases and multi-domain deployment across US, UK and demo, keeping patient data isolated by region.
What does the work look like?
Dashboard Scheduling Dashboard Game Screen Patient Dashboard Patient Screen Patient list
A UK and US tele-rehabilitation platform · 6






What changed?
The platform's remote sessions were re-engineered to hold together through an appointment instead of dropping mid-session, with therapists able to view the patient's skeleton tracking during exercise. Clinical documentation shifted from fully manual write-ups to AI-assisted SOAP-note drafts that the clinician reviews, designed to give therapists back time that manual note-taking had consumed. Regional expansion became an architectural boundary rather than an afterthought: US and UK data run on region-specific PostgreSQL databases across dedicated domains, with a demo environment alongside, and the platform was moved onto Angular 16 and Node.js 20. Because this ran as a dedicated Team Extension carried from one phase into the next rather than a one-off build, the platform could keep evolving as a governed program instead of being handed back unfinished, with each phase building on the connection, control and documentation work that came before it.
What can the client count on?
- Reliable. Heartbeat monitoring and automatic reconnection keep live therapy sessions stable through screen-sharing, rather than leaving a dropped peer connection to end the appointment.
- Clinician-governed. AI-assisted notes are drafted from transcripts but reviewed by the clinician, who remains responsible for the final record and can edit or discard any line before it saves.
- Regionally isolated. Region-specific PostgreSQL databases keep US and UK patient data separable rather than pooled, so expansion into a new market does not mean merging data stores.
- Multiple patient sessions per therapist. A therapist can move between multiple sessions while the system keeps recording each patient's movement and score. The therapist does not have to be present for the whole session and can review the results afterwards.
The outcomeShow less
The substantive change is what a dropped connection used to cost. Before this work, a session interruption meant restarting part of a clinical assessment and asking a patient to reconnect mid-appointment. Heartbeat monitoring and automatic reconnection turned that into a background event the session absorbs rather than one that ends it. The second change is skeleton tracking. Therapists no longer need to rely on being present in the online session: with skeleton tracking, the patient's movements are tracked and scored per exercise level. The third change is who writes the clinical note. Documentation moved from a fully manual task completed after hours to a drafted note built from the session transcript, with the clinician still the one who decides what stays in the record. The fourth change is architectural: as the platform reached new regions, patient data stopped sharing one database and started living in region-specific stores, so expansion did not mean pooling data that needed to stay separate. Together, these changes moved the platform from a service that depended on a stable network and a clinician's evening to one built to keep working when the network wobbles, and to give some of that evening back.
Where this work fits
Tell us about the project you have in mind.We sign an NDA before you share confidential details. Your account owner replies with where to start.
Who you'll talk to
Sanjiv SethiVP, Sales
Ankit GuptaSenior Manager, Sales
Set up a call30 minutes with Sanjiv or Ankit, in your time zone
Loading open times…
Pick a time and add your details on the next screen.
Last updated


