MCRx: Unifying a Fragmented Medical Directory & Journaling Platform

How we engineered a highly compliant, zero-latency clinical directory and patient journaling platform to unify a fragmented and strictly regulated medical technology market.
MCRx: Unifying a Fragmented Medical Directory & Journaling Platform
Published 2026

Executive Summary

The medical directory and patient check-in space is historically fragmented. Patients navigate multiple clinics, pharmacies, and databases, often manually verifying prescriptions and tracking symptoms on disconnected paper forms. For modern clinics, maintaining engagement while adhering to rigorous regulatory guidelines (such as the MHRA Blue Guide for prescription-only medical compliance) presents a massive engineering barrier.

AHM Labs partnered with MCRx (Medical Cannabis Rx) to build a unified, privacy-first mobile-first directory and symptom journaling platform. By leveraging client-side SQLite WebAssembly (WASM) and browser-based OCR pipelines, we created a zero-latency database searching system and prescription verification gate that fully guarantees patient privacy while delivering a premium, lightning-fast application experience.


1. Unifying a Fragmented Market

In specialized medical sectors, information is scattered across dozens of individual clinic portals, independent pharmacy stock checkers, and patient forums. MCRx was envisioned as the single source of truth for patients seeking to locate registered clinics, compare pricing metrics, and securely track their therapeutic outcomes.

Bridging the Compliance Gap

A core design constraint was building a system compliant with the strict advertising guidelines for Prescription Only Medicines (POM) in the UK:

  1. The Verified Patient Gateway: Anyone can search clinics, check general consult fees, and access educational content. However, to view specific patient reviews, stock ratings, or the gated community board, the user must securely verify their patient status.
  2. Automated Content Moderation: We engineered server-side text-scanning pipelines that intercept and filter reviews containing curative claims or medical directives (ensuring patient-to-patient discussions focus on personal subjective experiences instead of diagnosing or prescribing).
  3. Adverse Action Scanning: The interface scans patient symptom entries in real-time, automatically prompting the user to report adverse side-effects to the official MHRA Yellow Card scheme.

2. Speed & Zero-Storage Privacy (Technical Architecture)

Security and responsiveness were paramount. A traditional server-side search querying sensitive patient directories introduces network latency and potential data leakage.

graph TD
    A[Astro Frontend / React 19] -->|Local OCR Scan| B[Tesseract.js in Browser]
    A -->|Sub-millisecond Search| C[SQLite WASM sql.js]
    A -->|JSON Metadata| D[Hono Node Server]
    D -->|Drizzle ORM| E[(PostgreSQL)]

To eliminate query latencies entirely, the directory synchronizes active clinic data directly into an in-memory SQLite database (sql.js) running inside the patient’s browser. Filtering complex data points (consultation fees, telehealth support, pharmacy integrations) takes less than 1 millisecond, running entirely client-side without hitting the database server.

Browser-Side OCR for absolute Privacy

To verify active patient status, patients upload their prescription receipts. Under typical architectures, this image is sent to a server-side OCR service.

At AHM Labs, we architected a Zero-Storage Privacy Policy:

  • The receipt is processed locally inside a browser worker thread using tesseract.js.
  • The raw image never leaves the user’s computer and is never saved.
  • Only the extracted validation metadata (e.g. clinic stamp, date, patient level) is securely posted to our server API. This protects highly sensitive patient PII from any server-side database breaches.

3. High-Performance Results

By moving heavy search operations and image analysis to the client, we drastically reduced server load and hosting costs while ensuring a high-performance score across the board:

Metric / AuditResultBusiness Impact
Search Query Latency< 1msImmediate feedback keeps patients engaged with directory listings.
Server Resource OverheadReduced by 85%Zero server-side image processing costs and minimal SQL database connections.
Privacy ComplianceGDPR / POM GatedAbsolute peace of mind for clinic operators and patients.

4. Conclusion: High-Performance Medical Solutions

Unifying a highly regulated and fragmented market requires careful engineering that balances data compliance, patient privacy, and performance.

The MCRx platform proves that you do not need to choose between data security and premium user experience. By deploying WebAssembly and edge processing techniques, AHM Labs is helping medical technology platforms deliver rapid, compliant, and cost-effective services.

Contact AHM Labs today to find out how we can modernize your medical or compliant application architecture.

© 2026 AHM Labs Sitemap
AHM Labs is a premium software engineering and bespoke web development studio. Partner with an expert web developer and software engineer in South Yorkshire & North Derbyshire (Sheffield, Rotherham, Barnsley, Doncaster, Chesterfield, Worksop) and across the UK.