Platform modules

One platform. Twelve modules. Built for UK medical cannabis.

ClinicalFlow is a modular monolith — one deployable app with strict internal boundaries enforced in code. Each module below maps to a published ADR or PRD in our design corpus.

ADR-0004 / 0006

Multi-tenancy

Every record carries a tenant_id; access is gated by TenantScopedDb. Cross-tenant clinician membership supported for shared care across organisations.

PRD-002 / 003

Identity & RBAC

Passport.js session auth, 2FA TOTP, role-aware portals. Patients, nurses, specialists, pharmacist IPs, dispensing pharmacists, tenant admins, platform admins.

PRD-006 / 007 / 008

Patient journey

Self-registration, eligibility screening, consent capture, consultation booking, ongoing care.

PRD-009

SCA authoring

Specialists author Shared Care Agreements with explicit GREEN/AMBER/RED limits on indication, product, dose and review cadence.

PRD-010 / ADR-0007

SCA enforcement engine

Evaluates every prescription at write-time and dispense-time. GREEN auto-approves, AMBER warns, RED blocks and escalates.

PRD-014 / ADR-0005

Wet-ink prescribing (FP10PCD)

MHRA-compliant Schedule 2 wet-ink flow. SignatureProvider abstraction lets us swap to digital when permitted.

PRD-017

Dispensing

Dispense queue, FP10PCD verification, partial dispensing, returns. Built for real pharmacy operations.

PRD-016 / 018

CD register & inventory

Schedule 2 controlled-drug register, batch and stock tracking, reconciliation reports.

PRD-015 / 019

Pharmacy connectivity

Takoda1 PMR onboarding first; generalised provider interface for further UK pharmacy management systems.

PRD-012

Escalation workflow

AMBER/RED prescription events auto-route from pharmacist IPs back to the supervising specialist with full context.

PRD-001 / ADR-0002

Audit emitter & ClinicalScopedDb

Tamper-evident audit on every clinical write. Commercial admins physically cannot read clinical records.

PRD-029 / 033 / 034 / 035

Reporting, DSPT & DSAR

Compliance portal, audit reports, DSAR tooling, CQC and DSPT evidence packs.

Want the deep dive?

Our design corpus includes 38 PRDs, 10 ADRs and 9 architecture diagrams. We'll walk you through the modules relevant to your role on a call.

Book a technical walkthrough