Skip to main content
←Back to MedFill

MedFill Security & Architecture Overview

Technical Architecture & Data Handling Specifications

Updated October 2026

1. Architecture Overview & PHI Handling

How we handle PHI. Direct identifiers (names, dates, MRNs) are masked in your browser before transmission. The resulting de-identified note text is then sent over an encrypted connection to our secure processing API to generate your draft. We do not use your charts to train AI models, and we do not store identifiable clinical notes in our primary database. De-identification is an automated best-effort process — review the masked text and avoid submitting identifiable PHI unless your organization has approved the workflow.

🛡️

Browser-Based Identifier Masking

For text notes, browser-based pattern matching masks direct identifiers (names, dates of birth, policy IDs, phone numbers) in your local browser before de-identified text is transmitted to our secure processing API. De-identification is automated best-effort, so clinicians must review the masked text before submission.

⚡

Client-Side PDF Assembly

Generated CMS-1500 claim forms and clinical letters are compiled directly on the clinician's computer using client-side vector libraries. The finished document downloads directly to your local file system.

⏱️

Ephemeral Processing & 24h Purge

Encounter text is held ephemerally in active memory. Any unfinalized temporary drafts are permanently purged within 24 hours by an automated daily maintenance sweeper (03:00 UTC). Payment webhook logs are purged after 14 days.

🔒

Minimal Account Data Storage

Our central database stores account credentials, subscription tiers, and pseudonymous verification records (cryptographic SHA-256 hashes) to track encounter limits. We do not store clinical notes in the database.

2. Operational Safeguards & Clinician Controls

Workflow AreaMedFill ImplementationClinician Role
Clinical Note InputBrowser-side pattern matching redacts common identifiers for text notesQuick verification of masked text before submission
Coding & Document SuggestionsDrafting suggestions based on documented chart facts; no claim filingMandatory clinical review and final code selection
Work Excuse OutputDesigned to keep diagnoses out of work excuses with activity restrictionsReview and sign off before providing to patient
Patient After-Visit GuidePlain-language and optional Spanish care summary with clinician noticeConfirm instructions match intended patient care plan
Data Hygiene & PurgeAutomated daily 03:00 UTC sweeper permanently purges volatile drafts >24h and webhook receipts >14dDownload or export finalized PDFs locally to EHR before session expiry

3. Third-Party Infrastructure & Clinical Processing

UseMedFill relies on vetted US-hosted cloud infrastructure, secure network routing, and dedicated language engines for administrative drafting:

MedFill AI™ Clinical Reasoning & Revenue Guard: Redacted text is processed ephemerally using frontier US-hosted clinical language models under ephemeral clinical routing requests and deterministic clinical validation rules.
MedFill Humanize AI™ Empathy Engine: Redacted text is processed ephemerally using dedicated US-hosted bedside communication models configured for high-empathy plain-language drafting. Data is processed in volatile memory and not retained by MedFill for model training.
Rate Limiting & Abuse Prevention (Upstash): Serverless Redis infrastructure records account identifiers and client IP addresses (with a 30-day window for unauthenticated guest previews) to maintain system availability and enforce request limits.
Application Hosting & Compute (Vercel): US-hosted web application deployment, serverless runtime execution, and edge routing.
Product Analytics (PostHog): Privacy-configured product telemetry with text masking enabled and session recording permanently disabled. Does not capture note text.
Error Diagnostics (Sentry): Exception monitoring with automated scrubbers to strip authorization tokens, cookies, and sensitive headers from diagnostic stack traces.
Security Tripwire Alerting (Resend): Automated security notification dispatch triggered only upon unauthorized security probing or honeypot traversal.
Clinician Support (Crisp): Customer support live chat on public marketing pages. Automatically disabled on clinical note drafting pages to prevent accidental transmission of chart details.

Enterprise BAA & Healthcare Compliance Governance

For standard self-service subscriptions, MedFill operates under browser-based identifier masking followed by secure API processing: direct identifiers are pattern-masked in your local browser memory before encrypted transmission, generation payloads are processed transiently via a secure API without database persistence, and automated daily data hygiene routines permanently purge temporary working state within 24 hours.

Enterprise Practice Tiers: For institutional covered entities requiring executed Business Associate Agreements (BAAs) and custom Data Processing Agreements (DPAs) with dedicated enterprise infrastructure, please contact enterprise@usemedfill.com. Security reports and audit requests: security@usemedfill.com.

© 2026 MedFill Technologies • Technical Overview