Skip to main content

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

Index:
02
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.

Case BoardGGX
3 overdue
Open cases
42
+5 this month
Due this week
9
Avg turnaround
11d
-2d vs target
Recent casesView all >
RefClaimantInstructing partyStatus
MC-1042R. AdeyemiGlenmuir LegalDrafting
MC-1039J. MackayStruan Reid LLPRecords
MC-1035S. BoyleKinloch PartnersReview
MC-1031H. FarooqGlenmuir LegalServed
MC-1028A. FergusonMarwick FyfeDrafting
MC-1024L. ChisholmKinloch PartnersClosed
MC-1021K. NesbittStruan Reid LLPRecords
Showing 7 of 42 casesPostgreSQL · row-level security
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-Tenancy · Case BoardGGX
3 overdue
Open cases
42
+5 this month
Due this week
9
Avg turnaround
11d
-2d vs target
Recent casesView all >
RefClaimantInstructing partyStatus
MC-1042R. AdeyemiGlenmuir LegalDrafting
MC-1039J. MackayStruan Reid LLPRecords
MC-1035S. BoyleKinloch PartnersReview
MC-1031H. FarooqGlenmuir LegalServed
MC-1028A. FergusonMarwick FyfeDrafting
MC-1024L. ChisholmKinloch PartnersClosed
MC-1021K. NesbittStruan Reid LLPRecords
Showing 7 of 42 casesPostgreSQL · row-level security
Plate 01 · Case Board · Next.js · PostgreSQL
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 Engine · Case WorkflowGGX
MEDICO/ Case Workflow
Pipeline · 14 active cases1 overdue
Avg. stage time
6.5d
Bottleneck
Records
4.2d avg
Served this month
11
SLA compliance
93%
+2pp vs target
Instructed3
1.2d avg
MC-1048P. SouterNew
MC-1047G. IqbalNew
MC-1046M. Cassidy2d ago
+ Add case
Records2
4.2d avg
MC-1039J. MackayOverdue 3d
MC-1021K. NesbittDue Fri
+ Add case
Appointment3
9.1d avg
MC-1033F. DochertyBooked 14 Jul
MC-1030R. NaismithBooking
MC-1027C. WintersBooked 18 Jul
+ Add case
Draft2
3.4d avg
MC-1042R. AdeyemiDue today
MC-1035S. BoyleDue Fri
+ Add case
Served2
n/a
MC-1031H. FarooqServed 2 Jul
MC-1024L. ChisholmServed 28 Jun
+ Add case
Legend
Overdueaction needed
Booked / servedon track
Pendingin progress
Status changes sync to instructing solicitor portal automaticallytRPC · caseRouter.updateStatus
Plate 02 · Case Workflow · Next.js · tRPC
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 Generation · AI TranscriptionGGX
MEDICO/ AI Transcription
MC-1042 · R. AdeyemiConsultation with Dr. N. Whitfield
AI draft
Audio waveform
00:0007:4218:36
1.0x speed
Transcript
Dr. N. Whitfield00:02

Mr Adeyemi presents today for an independent orthopaedic assessment following a road traffic collision in March. Can you describe how the accident happened?

R. Adeyemi00:19

I was stationary at the lights when a van struck the rear of my vehicle. My neck and lower back have been sore ever since, it has not really settled.

Dr. N. Whitfield00:41AI draft

On examination there is reduced cervical rotation to the left, approximately 60% of expected range, with paraspinal tenderness at C5 to C7.

R. Adeyemi01:03

It is worse first thing in the morning and after sitting at a desk for long periods. I have had six sessions of physiotherapy so far.

Dr. N. Whitfield01:22AI draft

Understood. I would expect a further course of physiotherapy alongside a graduated return to normal activity, with review in twelve weeks.

AI-flagged clinical findings
Reduced cervical rotationHigh
Paraspinal tendernessHigh
Prognosis 12wk reviewMedium
Duration 18:36Words 2,140Confidence 96.4%
Whisper large-v3
Plate 03 · AI Transcription · Whisper · OpenAI
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 & Integrations · FinancialsGGX
MEDICO/ Financials
Billed MTD
£84,200
+16.7% vs Jun
Outstanding
£19,450
4 overdue
Collected
78%
+3pp vs target
Revenue · last 6 months
FebMarAprMayJunJul
Aging report
0-30 days£11,200
31-60 days£5,650
61-90 days£2,100
90+ days£500
Revenue by party
Glenmuir Legal · 34%Kinloch Partners · 27%Struan Reid LLP · 21%Marwick Fyfe · 18%
Recent invoices
InvoiceCaseAmountStatus
INV-2118MC-1042£1,850Sent
INV-2117MC-1039£2,400Overdue
INV-2116MC-1035£1,200Paid
INV-2115MC-1031£3,150Paid
INV-2114MC-1028£980Draft
INV-2113MC-1024£2,700Paid
Payments reconciled nightly against Stripe payoutsStripe · webhooks
Plate 04 · Financials · Next.js · Stripe
Plate 05

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
NHS Compliance & Security · Compliance & AuditGGX
MEDICO/ Compliance & Audit
Records retained
1,284
within 7yr policy
Access events (24h)
317
DSARs open
2
due within 28d
Failed logins (24h)
0
MFA enforced
Compliance checklist
UK GDPR
Lawful basis recorded for all case files
Pass
Data retention
Auto-purge policy active, 7 year limit
Pass
Access controls
Role-based access reviewed quarterly
Pass
Encryption at rest
AES-256 on Supabase storage buckets
Pass
Backups verified
Restore drill passed 30 Jun
Pass
DSAR handling
2 requests awaiting fulfilment
Pending
Third-party audit
Annual penetration test overdue
Pending
Roles & permissions
Case manager
Full case read/write, no billing
Medical expert
Assigned cases only, report upload
Finance admin
Invoices & billing, no medical data
Auditor
Read-only, full access log
Platform admin
User provisioning, no case content
Access logExport CSV >
TimeUserActionCase
09:41D. OkaforViewed case fileMC-1042
09:38Dr. N. WhitfieldUploaded report draftMC-1042
09:12M. PryceExported invoice PDFINV-2116
08:55D. OkaforUpdated case statusMC-1039
08:30SystemNightly backup completedALL
08:02K. RossDownloaded medical recordsMC-1035
07:48D. OkaforLogged in (MFA)n/a
07:31L. GrantAmended expert detailsMC-1031
07:05SystemRetention sweep executedALL
Annual penetration test overdue by 12 days · scheduled for review
All access events are immutable and retained for audit purposesPostgres · append-only audit_log
Plate 05 · Compliance & Audit · Next.js · Audit log
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

Flora & Fable Floristry

Brand identity, bespoke e-commerce storefront, postcode delivery engine, and self-service admin dashboard for a Glasgow floristry business.

Wordmark
Flora & Fable
Seasonal · Glasgow
FloristEst. 2023
Mark
Mark reduces to
favicon & van decal
Applications
Kraft wrap
Recycled · Twine
Care card
Recipe stock
Van livery
One colour
Voice
  • · Grown-up and gentle, never twee
  • · Sentence case for headings, no exclamation marks
  • · Name the flowers, name the grower where we can
Palette
Fern
Ink
Clay
Cream
Typeface
Aa Gg
Reckless · Regular / Medium
Type specimen
DisplayIn bloom
HeadingWeekly bunches
BodyCut this morning, delivered by five.
MonoFLORIST · GLASGOW

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.