Re-Architecting Scripted’s Healthcare Platform by Randy RamnansinghRe-Architecting Scripted’s Healthcare Platform by Randy Ramnansingh

Re-Architecting Scripted’s Healthcare Platform

Randy Ramnansingh

Randy Ramnansingh

Re-Architecting Scripted’s Healthcare Platform

Healthcare Technology • FinTech • Payment Infrastructure • System Architecture • Backend Engineering

Technologies

TypeScript • Node.js • PostgreSQL • AWS • Airwallex • Stripe • REST APIs • GraphQL • Docker • Redis • React • OAuth • Webhooks

Overview

Scripted is a healthcare platform connecting physicians with patients while providing practice management, prescription fulfillment, and financial infrastructure for medical professionals.
As the lead engineer, I helped redesign and rebuild the platform from the ground up, transforming it from an early-stage application into a scalable backend capable of supporting complex clinical workflows, third-party integrations, payment processing, and physician payouts.
Unlike a traditional CRUD application, the platform combined healthcare operations, financial services, and marketplace functionality into a single product.

Objective

Scripted’s original platform had begun to outgrow its architecture.
The company needed a backend capable of supporting:
thousands of patient consultations
physician onboarding
pharmacy integrations
payment processing
physician wallets and payouts
secure document handling
regulatory compliance
expansion into new healthcare services
The objective wasn’t simply adding new features—it was rebuilding the foundation so the business could scale.

Scope of Work

Backend Platform Architecture

I helped redesign the backend architecture, separating business domains into maintainable services while introducing clean API boundaries and improving data modelling across the platform.
Areas included:
Patient management
Doctor management
Consultation workflows
Scheduling
Prescriptions
Orders
Financial services
Notifications
Administration

Healthcare Workflow Engine

One of the largest portions of the project involved building the workflow engine behind patient consultations.
This included:
patient intake
physician assignment
appointment lifecycle
prescription generation
pharmacy fulfillment
follow-up workflows
audit history
automated notifications
Every stage of the consultation lifecycle triggered downstream events that coordinated multiple internal and external systems.

Financial Infrastructure

One of the most technically challenging parts of the platform was the financial system.
We built functionality allowing Scripted to manage money flowing through the platform while tracking balances belonging to individual physicians.
The platform supported:
patient payments
provider earnings
commission calculations
platform fees
refunds
payout scheduling
reconciliation
transaction history
Rather than simply charging customers, the platform functioned similarly to a marketplace payment system where doctors maintained balances that could later be withdrawn.

Airwallex Integration

I designed and implemented deep integrations with Airwallex to power physician payouts.
Features included:
connected financial accounts
onboarding verification
payout initiation
transfer status monitoring
webhook processing
payment reconciliation
failure handling
retry mechanisms
Building this required careful handling of asynchronous financial events and ensuring transactions remained consistent across both systems.

Third-Party Vendor Integrations

The platform communicated with numerous healthcare vendors through secure APIs.
These included integrations for:
payment providers
pharmacy services
identity verification
messaging
email
document storage
analytics
Each integration was built behind abstraction layers so vendors could be replaced with minimal impact to the rest of the platform.

Security

Because the platform handled sensitive healthcare information and financial data, security was a primary architectural concern.
I implemented patterns including:
encrypted data storage
secure authentication
RBAC authorization
audit logging
webhook verification
API authentication
secret management
secure file handling

Scalability

The new architecture introduced:
asynchronous processing
background jobs
event-driven workflows
queue processing
caching
API optimization
database indexing
monitoring
These improvements enabled the platform to continue growing without major architectural bottlenecks.

My Role

I worked as a senior full-stack engineer with significant ownership across the platform.
My responsibilities included:
Designing backend architecture
Building APIs
Database design
Payment infrastructure
Financial ledger functionality
Airwallex integration
Third-party integrations
Authentication and authorization
Frontend development where required
Code reviews
Technical planning
Production support

Technical Highlights

Marketplace Financial System

Implemented a payment model supporting multiple stakeholders while maintaining transaction integrity and reconciliation across internal and external systems.

Event-Driven Integrations

Designed webhook-driven integrations that synchronized data between healthcare providers, payment vendors, and internal services with retry logic and idempotent processing.

Scalable Backend APIs

Built APIs consumed by web applications, administrative portals, and third-party services while maintaining clear service boundaries and versioning strategies.

Healthcare Data Management

Developed systems responsible for managing patient information, consultation records, prescriptions, physician workflows, and operational reporting while maintaining strict access controls.

Results

The rebuilt platform provided Scripted with a scalable foundation capable of supporting continued product expansion.
Key outcomes included:
Complete backend rearchitecture
Modernized healthcare workflows
Automated physician payment infrastructure
Secure financial ledger and payout system
Reliable third-party integrations
Improved platform scalability
Reduced operational overhead through workflow automation
Foundation for future healthcare products
Like this project

Posted Jun 26, 2026

Redesigned Scripted's healthcare platform to improve scalability and functionality.