Skip to content
mulberryinteractive
Healthcare

Total Doctor

Private healthcare booking platform

total-doctor.png
total-doctor-mobile.png

The Challenge

Total Doctor needed to build a platform that removes barriers to private healthcare access. Instead of patients navigating referrals and wait times, they wanted direct booking for any service — whether that's a GP appointment, specialist consultation, MRI scan, or symptom triage. The platform had to:

  • Handle multiple service types with different booking workflows (GP, specialists, diagnostics, triage, capsule endoscopy)
  • Process payments securely while automatically splitting fees between Total Doctor and individual consultants
  • Integrate with Semble (formerly Heydoc) practice management system so bookings sync to consultants' existing systems
  • Onboard consultants with their own Stripe Connect accounts for automated payouts
  • Provide secure user registration with OTP verification
  • Manage consultant profiles with automated quality weighting based on profile completeness
  • Support discount codes and promotional pricing
  • Send automated notifications for bookings, confirmations, and cancellations

The Solution

Built a custom Drupal 10 platform with four integrated custom modules handling appointment management, payment processing, practice management integration, and discounting.

  • Custom appointment booking system: td_appointment and td_appointment_type entities with full CRUD operations, status workflows (pending, confirmed, cancelled), and consultant/patient relationship management
  • Stripe payment integration: Patient payment processing with Stripe Connect Express accounts for each consultant — automated application fee collection and payout distribution, webhook handling for payment events, and refund support
  • Semble practice management integration: GraphQL-based API integration that automatically creates patient records and bookings in Semble when appointments are made, maps Total Doctor practitioners/clinics to Semble entities, syncs appointment types to Semble products, and cancels Semble bookings when appointments are cancelled in Total Doctor
  • OTP verification: Secure user registration workflow using one-time passwords sent via SMS/email
  • Consultant profile weighting: Automated cron job that scores consultant profiles based on completeness (bio, qualifications, photos, clinic information) and surfaces higher-quality profiles in search results
  • Discount management: Percentage-based discount entity system that integrates with the booking workflow, with admin UI for creating and managing promotional codes
  • Material Design frontend: Custom theme with MDC components, custom templates for appointment booking, consultant profiles, and HTML email templates, with Webpack-based SCSS/JS compilation
  • Search and discovery: Search API integration with filtering by location, specialty, and service type
  • Message system: Automated notifications using Message module for booking confirmations, reminders, and cancellations

The Results

Delivered a platform that enables patients to book any healthcare service in minutes without phone calls or referrals. Consultants receive automated payouts via Stripe Connect with no manual intervention. The Semble integration means consultants manage their diaries in one place while Total Doctor bookings appear automatically. The automated profile weighting ensures high-quality consultant profiles rank higher, maintaining platform quality as it scales.

Total Doctor | Mulberry Interactive