Explainable SaMD Dosage Calculator for Anti-Seizure Therapy, Built Compliance-First for the FDA 510(k) Pathway

Real-time

patient-specific dose recommendations with a step-by-step explanation and contextual safety warnings

Zero PHI

stored or persisted

Explainable SaMD Dosage Calculator

Project Overview

  • Country

    Global

  • Industry

    Life Sciences

The client is a global biopharmaceutical and life sciences company that develops specialized therapies for complex neurological conditions. Its FDA-approved prescription medication requires precise, patient-specific dose calculations for clinical safety and treatment efficacy.

Business Challenge

  • High-stakes manual dosing. The correct dose depends on body weight, baseline anti-seizure medications, specific drug combinations, renal or hepatic impairment, age, and CYP interactions, which is complex and error-prone by hand.

  • Strict SaMD regulatory bar. As a tool that guides clinical decisions, it qualifies as Class B SaMD, requiring an FDA 510(k) pathway, IEC 62304 lifecycle processes, and an ISO 13485 quality management system.

  • Accessibility and global readiness. The interface had to meet WCAG 2.1 AA and support a multilingual UI and dosage labeling for future country-specific deployments.

  • Privacy and security by design. No personal health data could be stored or persisted, and the sensitive computation logic had to be protected under HIPAA and GDPR.

Our Solution

Approach

Clinicians will only rely on a dosing tool they can verify, and regulators will only clear one that behaves the same way every time. Binariks built the calculator around both needs: a deterministic, explainable, accessible, and secure dosing tool, with engineering and regulatory strategy aligned from day one.

Rule-based logic engine

Configurable dosage algorithms derived directly from approved prescribing information, running as a deterministic, stateless cloud function for real-time reliability and strict adherence to clinical guidelines.

Comprehensive clinical inputs

Processes patient variables such as body weight, starting dose, and baseline concomitant medications, and automatically accounts for age, renal or hepatic impairment, and specific metabolic enzyme interactions.

Explained outputs

Returns a precise recommended single dose with context-aware clinical alerts and warnings. To build clinician trust, the interface shows a step-by-step explanation of exactly how the dose was calculated.

Input validation and safety

Rigorous input sanitization and error handling for every clinical parameter. The dose calculation function and explanation rendering are designated Critical-to-Safety (CTS) functions and go through enhanced medical-grade validation.

Architecture

  • React 18 and TypeScript UI with Tailwind CSS, embedded in the client's existing corporate HCP portal; WCAG 2.1 AA via react-aria and axe-core.
  • Azure Functions (Python 3.11) and FastAPI for the stateless calculation engine, with elastic scaling.
  • Azure API Management with Azure WAF for rate limiting, TLS checks, DDoS protection, and threat mitigation.
  • Azure SQL Database (Serverless) for clinical lookup tables only, with zero PHI; Azure Key Vault for certificates and secrets.
  • Terraform, GitHub Actions, pytest, Playwright, and schemathesis contract tests; Azure Application Insights and OpenTelemetry for observability.

Implementation

A phased, compliance-driven plan aligned software engineering and regulatory strategy from day one to de-risk FDA review.

Phase 1: Discovery and planning

  • Requirements validation, architecture planning, and risk analysis.
  • WCAG 2.1 AA-compliant wireframes with stakeholder reviews.

Phase 2: Product development

  • Built the secure frontend and backend logic and a compliant CI/CD pipeline.
  • Unit and integration testing.

Phase 3: Verification and validation

  • Penetration, usability, and accessibility testing.
  • Formal verification and Critical-to-Safety analysis.

Phase 4: FDA 510(k) submission

  • Compiled the full 510(k) submission package, including predicate device analysis and pre-submission regulatory strategy.

Phase 5: Production launch

  • Configured secure cloud hosting, deployed to production, and ran operational smoke tests.

Phase 6: Post-market support

  • Ongoing maintenance, post-market surveillance, patch management, and user support.

Technologies used

  • Typescript
  • React
  • Python
  • Azure Microsoft
  • GitHub Actions
  • Terraform
  • Tailwind CSS
  • Azure Key Vault
  • FastAPI

Value Delivered

Approved prescribing logic became a self-service clinical tool that clinicians can trust and regulators can review: real-time, explainable dosing on a secure, scalable foundation for new regions and therapies.

  • Real-time

    patient-specific dose recommendations with a step-by-step explanation and contextual safety warnings

  • Zero PHI

    stored or persisted

  • WCAG 2.1 AA

    accessible clinician interface

For Clinicians

  • Real-time, patient-specific dosing: instant, accurate dose calculations tailored to individual patient parameters, based strictly on approved prescribing guidelines.
  • Transparent, explainable calculations: every recommendation comes with a step-by-step clinical explanation and contextual safety warnings.

For the Business

  • Compliance and accessibility by design: security, privacy, and quality controls are built in, with zero PHI storage and WCAG 2.1 AA conformance.
  • Future-proof serverless architecture: an isolated Azure Functions backend integrates into the existing corporate HCP portal without disrupting current infrastructure and scales to new regions and therapies.

Let's Start Your Project

We'd love to hear about the project you're working on. Simply complete the form and we'll be in touch.

What happens next?

01

Our expert will reach out to understand your goals and challenges

02

If needed, we'll sign an NDA to ensure full confidentiality

03

You'll receive a tailored roadmap with solution suggestions, timelines, and budget estimates