Back to News
EnterpriseAI Understanding briefing

Flatiron Health scales oncology data extraction to millions of patients using Databricks

Flatiron Health leveraged Databricks to move from a 100,000-patient ceiling to extracting clinical data for 2.5 million oncology patients with large language models, enabling faster research and new interactive tools.

4 min readRead the primary source
Source-page capture accompanying Flatiron Health scales oncology data extraction to millions of patients using Databricks
Primary-source documentSource recorded
Publisher
databricks.com
Source type
Primary document — an official announcement, paper, filing, or first-party page we read directly.
ContextUnderstand this in 60 seconds

Key terms

API (Application Programming Interface)
A structured way for one software system to send requests to and receive responses from another system.
Large Language Model (LLM)
A language model trained on massive text corpora to generate and analyze text.
Inference
The runtime phase where a trained model generates predictions or outputs.

What happened

Flatiron Health, a provider of real-world oncology datasets, migrated its unstructured-data pipelines to the Databricks platform and integrated large language models (LLMs) for clinical extraction. The move replaced a static, shared-compute batch system that capped cohort sizes at roughly 100 k patients. By late-2023 the team began using Databricks-managed, ephemeral clusters for each job, and by early-2024 production pipelines were scoring three -derived variables on a 1-million-patient breast-cancer cohort. Scaling continued, and by 2026 LLM extraction covered nearly 2.5 million patients across breast, prostate, non-small-cell lung cancer, and hematologic datasets. The workflow uses Ray on Databricks for distributed prompt generation (up to one million prompts per variable, ~20 k tokens each) and leverages Amazon Bedrock for model . Engineers define compute resources in code, eliminating separate Terraform or CI steps, and can spin up clusters on demand for days-long jobs. The platform also supports new interactive applications that let researchers query unstructured records and receive LLM-summarized evidence within minutes.

Flatiron Health historically relied on manual abstractors and in-house deep-learning models running on a static batch compute platform, limiting cohort sizes to about 100 k patients. The company’s Panoramic datasets, which provide detailed oncology histories, required extraction of unstructured information such as pathology notes and treatment rationales.

In late 2023 the engineering team transitioned to Databricks, adopting cost-efficient, ephemeral clusters for each pipeline. This shift provided workload isolation, elastic compute, and reduced operational complexity. By the end of 2024 the pipelines produced 1.5 billion extracted data points across millions of patients.

The team introduced LLMs for extraction, using Amazon Bedrock for and Ray on Databricks to orchestrate massive prompt generation—up to one million prompts per variable, each averaging 20 k tokens. The first variables went into production in December 2024, and by February 2025 a full-scale run scored three variables on a 1-million-patient breast-cancer cohort.

Scaling continued, and by 2026 extraction covered nearly 2.5 million patients across four cancer types. The pipelines run monthly, with each job provisioning its own compute via Python-defined cluster specifications, eliminating separate Terraform or CI changes. Engineers can adjust resources directly in code, streamlining the move from prototype to production.

Flatiron also built interactive applications that let researchers query unstructured records and receive -summarized evidence in minutes, and an internal Ray-as-a-primitive that lets remote applications dispatch jobs to Databricks clusters without additional orchestration layers.

Source details: databricks.com

Why it matters

The announcement shows how a major health-data company can overcome long-standing scalability bottlenecks in clinical text extraction by pairing LLMs with a cloud-native data platform. By moving to Databricks, Flatiron eliminated a hard ceiling on cohort size, reduced engineering overhead, and accelerated time-to-insight—from months to sprints. This enables researchers, regulators, and pharmaceutical companies to access richer, real-world evidence across millions of patients, potentially speeding drug development and improving oncology care. The approach also demonstrates a practical blueprint for other health-tech firms: using ephemeral, job-specific clusters and Ray for distributed prompting can make massive workloads feasible without massive infrastructure teams. However, the story leaves open questions about model licensing (Amazon Bedrock), cost structures for such large-scale prompting, and how abstractor-level quality is maintained across diverse international datasets.

Scalability: The move to Databricks removed a hard ceiling on patient cohort size, enabling extraction at a scale previously unattainable with the legacy batch system.

Operational efficiency: Ephemeral clusters and code-defined compute reduce the need for separate infrastructure teams, Terraform changes, and CI pipelines, allowing a small engineering team to manage massive workloads.

Clinical impact: By meeting abstractor-level quality standards (the VALID framework), the -derived data can be trusted by regulators and pharma companies as real-world evidence, potentially accelerating drug development and improving patient outcomes.

Blueprint for the industry: The combination of Ray, Databricks, and on Bedrock provides a replicable model for other health-tech firms facing similar unstructured-data challenges.

Open questions: The story does not disclose the cost of running millions of large prompts, the licensing terms of the Bedrock models, or how abstractor-level validation will be maintained as the dataset expands internationally.

Interactive Mechanism

Interactive Mechanism: How It Actually Works

Explore the underlying technology behind this development interactively.

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
Interactive Concept Check+10 Points
AI Data Extraction Pipelines Quiz

What is the main goal of an AI data extraction pipeline?

What to watch next

Future updates on Flatiron’s expansion into the UK, Germany, and Japan; cost and performance metrics for the -driven pipelines; any regulatory scrutiny of AI-generated clinical evidence; adoption of similar architectures by other health-data providers; and the evolution of Flatiron’s VALID framework for measuring abstractor-level quality.

Geographic expansion: Monitoring how Flatiron adapts the pipelines for UK, Germany, and Japan datasets, which may involve different EHR formats and regulatory environments.

Cost transparency: Future disclosures on compute spend and pricing for the massive prompting workload will be crucial for assessing economic viability.

Regulatory response: As AI-generated clinical evidence becomes more prevalent, regulators may issue guidance or requirements that affect Flatiron’s VALID framework.

Industry adoption: Other health-data companies may adopt similar Databricks-Ray- stacks; tracking such moves will indicate broader impact.

Model evolution: Changes in the underlying (e.g., newer Bedrock models) could affect extraction quality and cost, influencing Flatiron’s roadmap.

Related guides & quizzes

Found this useful?