What a Telemedicine Platform Must Get Right
Telemedicine moved from a niche service to an everyday part of care. A video call is the visible part, but a dependable platform also needs scheduling, identity verification, a virtual waiting room, secure messaging, clinical documentation and integration with existing health records, all while protecting sensitive health data and coping with patients on poor connections.
This guide covers the architecture, the video layer, security and compliance, and what to measure once the platform is live.
Core Architecture
Service Breakdown
A practical design separates the platform into a small number of services with clear responsibilities: an Auth Service for patient and provider authentication with MFA, an Appointment Service for scheduling and availability management, a Video Service for WebRTC-based consultations, a Chat Service for real-time messaging, and a Documentation Service for clinical notes. Keeping video separate matters most: it has very different scaling and networking needs from the rest of the system.
Technology Choices
| Component | Technology | Rationale |
|---|---|---|
| Frontend | Next.js + React | SSR for SEO, excellent UX |
| Video Engine | WebRTC (mediasoup SFU) | Low latency, scalable |
| Database | MongoDB Atlas | Flexible schema, global scaling |
| Message Queue | RabbitMQ | Reliable async processing |
| Cache | Redis | Session management, rate limiting |
These are common, proven choices rather than the only ones. A managed video API can replace a self-hosted SFU if your team does not want to operate media servers, and PostgreSQL works equally well for the clinical and scheduling data.
Video Consultation Implementation
WebRTC with a Selective Forwarding Unit (SFU), for example mediasoup, is a strong default. The SFU forwards media streams without decoding them, which keeps server CPU usage low and makes multi-party calls (a doctor, a patient and an interpreter or family member) practical.
| Topology | How it works | Best for |
|---|---|---|
| Peer-to-peer (mesh) | Browsers connect directly | Simple one-to-one calls; no server media cost |
| SFU | Server forwards each stream | Most consultations, including small groups |
| MCU | Server mixes streams into one | Very low-powered devices; high server cost |
- Plan for TURN servers. A meaningful share of users sit behind corporate or hospital firewalls where direct connections fail. Without TURN relays, those calls simply do not connect.
- Degrade gracefully. Use adaptive bitrate (simulcast), offer a one-tap switch to audio-only, and show the patient a clear connection indicator.
- Run a pre-call check. Test camera, microphone and bandwidth in the waiting room, before the clinician joins.
- Make reconnection automatic. A dropped connection should rejoin the same session without the patient having to start again.
The Consultation Flow
- Booking: the patient chooses a slot; reminders go out by email or SMS with a secure, expiring join link.
- Check-in and waiting room: identity and consent are confirmed, the device check runs, and the clinician sees who is ready.
- Consultation: video, chat and file sharing, with notes taken alongside.
- Wrap-up: notes are signed, prescriptions or referrals are issued, and a follow-up is booked.
Real-Time Clinical Documentation
Doctors should be able to take notes during the consultation without switching systems. Store notes against the patient record using FHIR resources: an Encounter for the consultation itself, with Observation, Condition and DocumentReference resources for findings and notes. This keeps telemedicine visits in the same record as in-person care. See our guide to building a FHIR-compliant healthcare platform for the data model, and our EHR integration best practices for connecting to hospital systems.
Security and Compliance
- Encryption: WebRTC media is encrypted in transit (DTLS-SRTP). With an SFU, the server can technically access the streams, so host it in a controlled, compliant environment, or use end-to-end encryption where your requirements demand it.
- Regulation: HIPAA in the United States and GDPR in Europe both apply to health data. Every vendor that handles it, including video and SMS providers, needs a Business Associate Agreement or Data Processing Agreement as applicable.
- Recording: record only with explicit consent, store recordings like any other clinical record, and define how long they are kept.
- Access: join links that expire, MFA for clinicians, and an audit log of who accessed which consultation and when.
- Clinical rules: remote care is regulated differently by country and region, for example around prescribing and where a clinician is licensed. Confirm the rules for each market before launch.
Our HIPAA compliance guide for developers covers the technical safeguards in more detail.
What to Measure
- Call setup success rate and time to connect
- Call quality: packet loss, jitter, round-trip time and the share of calls that fell back to audio-only
- Dropped calls and reconnection success
- No-show rate and waiting-room time
- Patient and clinician satisfaction, collected after the call
Collect WebRTC statistics from the browser during each call. They are the only reliable way to tell whether a complaint about a "bad call" came from the network, the device or the platform.
Launch Checklist
- TURN servers deployed in the regions you serve
- Pre-call device check and audio-only fallback in place
- Consent, identity verification and recording policy defined
- Agreements signed with every vendor that touches health data
- Notes stored in the patient record, not in a separate silo
- Call-quality monitoring and alerting live
Conclusion
A good telemedicine platform feels simple to patients because the hard parts, such as networking, security and documentation, are handled behind the scenes. Planning a telehealth product? Explore our healthcare software services or talk to our team.