Skip to main contentSkip to main content

Get 15% off your first order — use code WELCOME15 at checkout

Index:
05
Industry:
Healthcare & Legal
Year:
2025
Duration:
Ongoing
Status:
Ongoing
MEDICO · Healthcare & Legal

MEDICO

A purpose-built, ongoing case management platform for medical-legal expert witnesses, from multi-tenant architecture and AI-powered report drafting to full NHS compliance documentation. Currently extending the software with a Google Maps API integration that auto-calculates mileage and travel time for accurate, fully automated invoices.

MEDICOGGX
MEDICO — Healthcare & Legal project by Glasgow GFX
The Challenge

Medical-legal work sits at the intersection of healthcare, law, and business, and the tooling has never kept up. Practitioners were juggling spreadsheets, email threads, and generic CRMs to manage complex caseloads. Every case passes through up to 20 workflow stages, involves multiple parties, and must produce court-ready reports to exacting standards. On top of that, the sector demands full UK GDPR compliance, NHS data security frameworks, and clinical risk management documentation. No purpose-built solution handled all of this.

The Solution

We designed MEDICO as a multi-tenant platform from the ground up with full data isolation per practice. The centrepiece is an AI transcription pipeline, doctors upload consultation audio, which flows through OpenAI Whisper for transcription and GPT-4o for intelligent report formatting, producing a structured medico-legal report draft in minutes instead of hours. The pipeline supports custom medical vocabulary per tenant and learns from corrections over time. We paired this with a visual Kanban board tracking cases through 20 workflow statuses, a practice CRM, financial management with Xero integration, appointment scheduling, and automated communications, all wrapped in role-based access across four permission tiers.

Plate 01

Platform Architecture & Multi-Tenancy

We laid the foundation with a multi-tenant architecture that gives each medical practice its own fully isolated environment, separate data, separate configurations, separate branding. Row-level security ensures one practice can never see another's data.

  • Multi-tenant architecture with complete data isolation per practice
  • Row-level security enforced at the database layer
  • Four role-based permission tiers tailored to medical-legal workflows
  • Tenant provisioning that onboards new practices with zero infrastructure changes
Platform Architecture & Multi-TenancyGGX
MEDICO — Platform Architecture & Multi-Tenancy
Plate 01 · Platform Architecture & Multi-Tenancy
Plate 02

Case Management & Workflow Engine

The heart of the platform is a visual Kanban board that tracks every case through up to 20 workflow stages, from initial instruction through examination, report drafting, review, and final submission. Each case maintains a full audit trail.

  • Visual Kanban board tracking cases through 20 workflow stages
  • Full audit trail for every case action, status changes, uploads, and communications
  • Automated notifications to solicitors and team members at key milestones
  • Practice CRM with solicitor and referring party management
  • Appointment scheduling with calendar integration
Case Management & Workflow EngineGGX
MEDICO — Case Management & Workflow Engine
Case Management & Workflow EngineGGX
MEDICO — Case Management & Workflow Engine detail
Plate 02 · Case Management & Workflow Engine
Plate 03

AI Transcription & Report Generation

The feature that changes everything. Doctors upload consultation audio, and the AI pipeline produces a structured medico-legal report draft in minutes, not hours. OpenAI Whisper handles transcription with custom medical vocabulary, then GPT-4o formats the output into a court-ready report structure.

  • AI transcription pipeline turning consultation audio into structured report drafts
  • Custom medical vocabulary per tenant, the system learns specialist terminology
  • Version-controlled reports with full revision history
  • Doctor signature support for court-ready PDF generation
  • Correction learning, the pipeline improves from practitioner edits over time
AI Transcription & Report GenerationGGX
MEDICO — AI Transcription & Report Generation
Plate 03 · AI Transcription & Report Generation
Plate 04

Financial Management & Integrations

We connected the platform directly to the business side of each practice. Xero integration keeps invoicing and accounting in sync without double entry. The financial dashboard gives practice managers real-time visibility into outstanding invoices, revenue by case type, and payment timelines.

  • Two-way Xero integration for invoicing and accounting
  • Configurable fee schedules per practice and case type
  • Financial dashboard with real-time revenue and payment visibility
  • Automated invoice generation tied to case milestones
  • Background job processing via BullMQ for reliable sync and report generation
Financial Management & IntegrationsGGX
MEDICO — Financial Management & Integrations
Financial Management & IntegrationsGGX
MEDICO — Financial Management & Integrations detail
Plate 04 · Financial Management & Integrations
05
Phase 5

NHS Compliance & Security

Healthcare software in the UK must meet some of the strictest regulatory standards in any sector. We delivered the full compliance documentation pack, NHS DSPT, DCB0129 and DCB0160, and 14 formal compliance documents, all without engaging separate compliance consultants.

  • NHS Data Security and Protection Toolkit (DSPT) compliance
  • DCB0129 and DCB0160 clinical risk management documentation
  • 14 formal compliance documents delivered as part of the project
  • Encryption at rest and in transit across all data
  • Comprehensive audit logging and configurable data retention policies
06
Phase 6

Google Maps & Automated Invoicing (In Progress)

The current build phase. We are integrating the Google Maps API directly into the invoicing engine so every case visit, home consultation, and tribunal appearance is billed with pinpoint accuracy. Mileage, routes, and travel time are calculated from verified postcodes and fed straight into the invoice, no spreadsheets, no manual entry, no disputes. The result is invoices that are more detailed, more defensible, and fully automated end-to-end.

  • Google Maps Distance Matrix and Directions APIs wired into the case engine for precise mileage and drive-time calculation
  • Travel and mileage fees auto-populated onto invoices against each practice's configured rate card
  • Multi-stop route optimisation for doctors visiting several claimants in a single day
  • Cached distance lookups with an audit trail, every charge can be traced back to a verified route
  • Tight integration with the existing Xero sync so automated invoices flow through to accounting without a second touch
Results
90%
Faster report drafting
20
Case workflow stages
14
Compliance documents delivered
4
Staff permission tiers
  • 01Report drafting time cut from hours to minutes, freeing practitioners to focus on clinical judgment instead of admin
  • 02Replaced a patchwork of spreadsheets and generic tools with one purpose-built system covering the entire case lifecycle
  • 03Full compliance documentation pack delivered, NHS DSPT, DCB0129/DCB0160, and 14 formal compliance documents, without engaging separate consultants
  • 04Multi-tenant architecture onboards new practices with complete data isolation, zero infrastructure changes per tenant
  • 05Version-controlled reports with doctor signature support produce court-ready PDFs to professional medico-legal standards
Spec Sheet
Architecture
Frontend
Next.js with React, server-side rendering and static generation
Backend
NestJS with modular service architecture and dependency injection
Database
PostgreSQL with Prisma ORM, row-level security, and schema-level tenant isolation
Infrastructure
Azure with Terraform-managed infrastructure as code
Job Processing
Redis + BullMQ for background transcription, report generation, and sync tasks
Multi-Tenancy
Full data isolation per practice with shared infrastructure and per-tenant configuration
Integrations
OpenAI Whisper
Audio transcription with custom medical vocabulary per tenant
GPT-4o
Intelligent report formatting and structured medico-legal output
Xero
Two-way accounting sync, invoices, payments, and reconciliation
Google Maps API
Distance Matrix and Directions APIs feed live mileage, travel time, and route data into the invoicing engine for accurate, automated billing
Email & Notifications
Automated communications to solicitors and team members at case milestones
Performance
Report Generation
Consultation audio to structured draft in minutes, not hours
Tenant Provisioning
New practices onboarded with zero infrastructure changes
Background Processing
BullMQ queues handle transcription and sync without blocking the UI
Data Isolation
Row-level security ensures zero cross-tenant data leakage
Code Quality
  • TypeScript strict mode across frontend and backend
  • Full NHS DSPT and DCB0129/DCB0160 compliance
  • UK GDPR compliant with configurable data retention
  • Comprehensive audit logging on all sensitive operations
  • Role-based access control across four permission tiers
  • Infrastructure as code via Terraform
Technologies
  • Next.js
  • NestJS
  • TypeScript
  • PostgreSQL
  • Prisma
  • OpenAI Whisper
  • GPT-4o
  • Google Maps API
  • Redis
  • BullMQ
  • Azure
  • Terraform
Next Project

Studio Management Platform

One platform for every service business, adaptive onboarding, intelligent forecasting, and a freelancer marketplace that scales from solo operator to multi-location chain.

SaaS & Business Tools

Have a project?

Web, software and brand work for businesses across the UK. Tell us what you are building.

Glasgow GFX Print Studio

Visit
The Pentagon Business Centre
Unit 204b, 36–38 Washington Street
Glasgow G3 8AZ
Hours
Mon–Fri 9:00–18:00
Sat 10:00–18:00
Sun closed
Service area
Glasgow, Hamilton, Paisley, East Kilbride, Motherwell. Free delivery across Central Scotland on orders over £50.