Project Overview

Digital Fractal worked with a subject-matter expert in the longevity and peptide clinic space to stabilize, standardize, and extend a clinical software platform used by clinics to manage patient protocols, lab work, check-ins, consent, messaging, billing, and treatment adherence.

The customer already had the product direction and clinical domain expertise. Our role was to provide technical execution: auditing the existing codebase, improving architecture, standardizing development practices, supporting multi-tenant scalability, developing and hardening the patient mobile application, and establishing production-grade CI/CD and support processes.

The result was a more stable, scalable, and clinic-ready platform connecting clinic operations with the patient experience through a secure web and mobile system.

The Problem

Longevity and peptide clinics were managing high-stakes clinical workflows using tools not designed for this type of care delivery: spreadsheets for treatment protocols, PDFs and paper forms for intake, email and text messages for follow-up, and manual chasing for labs and weekly patient check-ins.

This created several operational and safety challenges.

No Single Source of Truth

Protocol details, dosing schedules, lab values, patient history, notes, and follow-up information were scattered across separate systems, making it difficult for practitioners to see the full patient picture at the point of care.

Weak Adherence and Follow-Through

Once patients left the clinic, there was no reliable way to know whether they were taking doses correctly, following schedules, or responding well to treatment.

Manual, Error-Prone Data Capture

Lab results, intake forms, and patient-reported information often had to be entered manually, creating delays, administrative burden, and avoidable transcription risk.

No Scalable Multi-Clinic Model

The customer needed to support multiple independent clinics from one platform while ensuring strict tenant data isolation — a critical requirement in a privacy-sensitive clinical environment.

They needed a purpose-built platform that was secure, auditable, scalable, multi-tenant, and connected directly to patients through a mobile experience.

How We Helped

Digital Fractal helped strengthen the platform across three coordinated surfaces.

Platform Superadmin Console

A management layer for the platform operator to onboard clinics, manage subscription plans, configure platform-wide settings, and support the business model across multiple clinics.

Clinic Admin Web Application

A practitioner-facing system for managing patients, creating peptide protocols, handling ePRO surveys, reviewing uploaded labs, storing consult notes, messaging patients, managing consent forms, and supporting billing workflows.

Native iOS Patient App

A mobile patient experience that turns treatment plans into guided, trackable workflows.

The iOS app supported:

  • Protocol and dose tracking
  • Active treatment schedules
  • Dose logging and vial level tracking
  • Calendar views for completed and missed doses
  • Weekly ePRO check-ins
  • Patient-reported outcomes such as weight, body composition, energy, adherence, and side effects
  • Lab result uploads using photos and PDFs
  • AI-assisted extraction of blood-work values
  • Apple Health integration
  • Secure two-way messaging
  • Digital consent forms
  • Progress photos
  • Push notifications
  • Appointment reminders
  • Apple Wallet membership pass support

Every clinic’s data was isolated within the multi-tenant architecture, and sensitive clinical activity was designed to support auditability and traceability.

Our Development Approach

Codebase Audit and Stabilization

We reviewed the existing codebase, identified technical risks, and helped standardize the application structure so development could move forward with greater reliability.

Contract-First, Type-Safe Architecture

The platform was strengthened around a TypeScript monorepo, shared database schema, and generated end-to-end typed API contracts. This reduced the risk of the web app, mobile app, and backend drifting out of sync.

Shared Logic Across Web and Mobile

Where appropriate, shared domain logic was factored into common libraries so patient-facing behaviour remained consistent across platforms.

Multi-Tenant Architecture

We helped support a structure where multiple clinics could operate on the same platform while keeping data isolated. This was critical for onboarding, operational scalability, and privacy-sensitive use cases.

Safety-First Data Principles

Health metrics were designed to reflect real data, not mock or placeholder values. Where data was unavailable, the application could show honest empty states instead of misleading information.

Clinical records such as consent content and protocol details were treated carefully, with versioning and immutability considerations to support defensible records.

Native iOS Implementation

The iOS app was built and hardened around native mobile capabilities, including:

  • HealthKit
  • Push notifications
  • Apple Wallet
  • Camera and photo uploads
  • HEIC image handling
  • PDF uploads
  • TestFlight distribution
  • Production backend connectivity

The app was tested against real-world platform behaviours and iOS release changes to improve reliability on patient devices.

CI/CD and Production Delivery

Digital Fractal helped implement reproducible delivery processes for iOS builds and application updates. Automated builds and controlled deployment workflows made it easier to ship fixes and improvements safely.

Security and Access Control

The platform included session-based authentication for web, token-based authentication for mobile, tenant isolation, and safeguards to reduce the risk of cross-patient or cross-clinic data exposure.

Key Platform Features

Multi-Tenant Clinic Management

The platform supports multiple independent clinics from one system, with each clinic’s patients, protocols, messages, labs, and records isolated from other tenants.

Patient Protocol Tracking

Patients can view active treatment protocols, track doses, monitor schedules, and log adherence through the mobile app.

Electronic Patient-Reported Outcomes

Structured ePRO check-ins allow clinics to capture patient progress between visits instead of relying only on memory, phone calls, or manual follow-up.

Lab Upload and AI Extraction

Patients can upload lab results using PDFs, images, or iPhone photo formats. AI-assisted extraction helps map lab values into structured data, reducing manual re-entry.

Apple Health Integration

The app can access live health data through Apple Health integration, supporting a richer and more connected patient experience.

Messaging and Notifications

Secure messaging, reminders, push notifications, and appointment prompts help clinics maintain stronger patient follow-through.

Consent and Auditability

Digital consent forms, versioned clinical content, and careful handling of patient records support traceability in a sensitive healthcare-adjacent environment.

The Outcome

The customer gained a more stable, scalable, and production-ready clinical platform that supports clinic operations and patient engagement from one integrated system.

Key outcomes included:

  • A live multi-tenant platform supporting clinics, patients, protocols, ePRO, labs, consent, messaging, and billing workflows
  • A native iOS patient app delivered through TestFlight and connected to the production backend
  • Improved patient adherence tracking through mobile dose logging and structured check-ins
  • Reduced manual lab entry through AI-assisted extraction of uploaded lab results
  • Stronger clinic visibility into patient progress between visits
  • A scalable foundation for onboarding additional clinics without rebuilding the platform each time
  • Improved development reliability through standardized architecture, shared contracts, CI/CD, and support practices

Technologies and Capabilities Involved

  • Native iOS development
  • TypeScript monorepo
  • Shared API contracts
  • Multi-tenant architecture
  • Patient mobile app development
  • HealthKit integration
  • Apple Wallet integration
  • Push notifications
  • AI-assisted lab data extraction
  • PDF and HEIC upload handling
  • Secure messaging
  • CI/CD implementation
  • TestFlight deployment
  • Production support
  • Code audit and stabilization
  • Web and mobile platform integration

Conclusion

Digital Fractal helped transform a fragmented clinical workflow into a more connected, scalable, and patient-facing platform. By improving code quality, supporting multi-tenant architecture, developing the patient mobile experience, integrating device-level health capabilities, and establishing reliable deployment practices, we helped the customer move toward a repeatable platform model for longevity and peptide clinics.