
Digitizing World-Class Clinical
Protocols for National Scale

Context
Counterweight is a UK-based digital health provider specializing in evidence-based weight management and Type 2 diabetes remission. Their clinical credibility is world-class — their core protocol supplied the intervention arm for the landmark DiRECT trial, the largest randomized controlled trial for T2D remission to date.
Despite a clinically proven programme partnered with the NHS, Counterweight's growth was being crippled by manual, non-scalable internal processes. The early tech prototype lacked the robustness needed for large-scale patient management.

The Challenge
A Clinical Triumph Blocked by Technical Limitations
Drowning in Manual Workflows
Dietitians were buried in manual onboarding processes and spreadsheet-based patient tracking — making scaling beyond a small cohort practically impossible.
Operations · Scalability
Data Loss in the Field
Patients frequently experienced unreliable internet connectivity, causing data loss when logging daily biometrics — a critical failure point for adherence in chronic care programmes.
Offline · Patient Safety
NHS Security Requirements
To secure larger NHS contracts, the platform urgently needed enterprise-grade security: penetration testing, DtAC compliance, MFA, and device integrity checks.
NHS · DtAC · Compliance
Fragile Early Architecture
The early microservices/GraphQL prototype lacked robustness for large-scale patient management, creating instability as the programme grew.
Architecture · Reliability
Our Role
MaxyLogic approached this not just as coders, but as a strategic HealthTech partner — transforming Counterweight's clinical protocols into a scalable digital ecosystem without compromising medical programme integrity.
Solution — Two Phases
Phase 1
NHS Compliance & Architecture
We transitioned the backend from a fragile microservices/GraphQL setup to a highly stable monolithic REST API — dramatically improving reliability and reducing operational complexity. Simultaneously we prepared the platform for NHS information security reviews.
- Backend simplified to stable REST API monolith
- MFA implementation & rooted/jailbreak device detection
- Security penetration testing & DtAC submissions supported

Phase 2
Flutter + Offline-First Patient App
Using Flutter, we built a high-performance patient app for iOS and Android, later extending the exact same core logic to Desktop/Web — a single codebase for every platform. The offline-first architecture was the defining technical achievement.
- Offline access to educational modules & biometric logging
- Conflict-safe sync when connectivity returns — zero data loss
- One Flutter codebase: iOS, Android & Web/Desktop


Core Platform Features
The unified digital ecosystem now seamlessly connects patients, dietitians, and e-commerce in a single, clinically integrated platform.
Patient App
- Biometric logging — weight, BP, HbA1c, mood
- Rich educational content with audio & video
- Habit tracking & goal setting
- Real-time chat with dietitian (GetStream)
- Offline-first with zero data loss
Dietitian Command Centre
- Centralized patient cohort management
- Automated content release schedules (Sanity CMS)
- Clinical progress monitoring
- Appointment & workflow management
- Admin & reporting dashboard
Integrated E-commerce
- In-app ordering of meal replacement products
- Clinically designed supplement range
- Seamless checkout within patient journey
- Order history & subscription management


Article & Education

Biometric Logging

Progress Tracking

Business Impact
From a manually operated clinical programme to a national-scale digital health service — serving multiple NHS regions.
National expansion — platform secured contracts across multiple NHS regions including North West London, Cornwall, and Suffolk
Platform scaled from fewer than 100 active patients to thousands, drastically reducing dietitian onboarding complexity
T2D remission rate among target achievers — supported by high patient engagement and biometric tracking in the app. ~50% discontinued diabetes medications entirely.


MaxyLogic is highly organized, structured, and always meets deadlines. They're a team player who helped us design and develop our mobile offering. Very responsive to fix issues in a timely way and transparent in their work.
Laura Sloman
CEO · Counterweight Ltd.
Built to NHS Standards
Healthcare platforms operating within the NHS face among the most stringent security and compliance requirements in the world. Every architectural decision we made was designed to pass these reviews and unlock access to larger NHS contracts.
DiRECT Trial Protocol
Counterweight's clinical programme supplied the intervention arm for the DiRECT trial — the largest RCT for Type 2 diabetes remission. MaxyLogic digitised that world-class protocol at national scale.
Translate Your Clinical Vision Into a Scalable Platform
At MaxyLogic, we don't just build apps — we translate complex clinical protocols into highly secure, scalable digital products that improve patient lives. Let's build yours.