Life Sciences
Rhino FCP

From Question to Evidence: Running RWE Studies With AI Agents on Data That Can't Move

By
The Rhino Team
No items found.
December 1, 2026

An AI agent can now plan a cohort, run a survival analysis, and summarize the result from one plain-language question. Whether anyone can trust that answer depends on two things the agent can't supply for itself. It needs the approved meaning of every term in the question, and it needs a governed path to data that often can't be pooled. A context layer built from the definitions you already maintain supplies the first, and a governed Model Context Protocol (MCP) server supplies the second.

This playbook walks through how a real-world evidence (RWE) team could put the two to work, from the first question to a result a statistician can reproduce, without moving any patient data. Experts approve the agent's plan and each stage of the analysis, and every step is logged so the result can be audited and rerun.

Why Evidence Questions Stall

Most evidence questions span more data than any one team holds. An outcomes scientist might ask for median overall survival for patients with EGFR-mutant lung cancer on second-line therapy, across US claims, EHR data held by European partners, and a CRO cohort.

The scientist can't put that question to the data in plain language, so today it becomes a project. A data engineer pulls each source, someone maps the codes, and a statistician verifies the cohort and runs the statistical tests. Weeks pass before the first count comes back. An agent can speed up the analysis, but three problems slow the project down before any analysis starts.

  • The data can't move: Data sits with different business units, affiliates, partners, and CROs, under licenses, contracts, and privacy rules that keep any one team from pooling them.
  • The definitions disagree: RWE, clinical operations, and commercial teams each define “second line” for their own purpose. An agent will pick one and return a confident answer no one can defend.
  • Security won't approve the agent: An agent with a path to patient-level data rarely clears privacy, security, and legal review.

The second problem is the easiest to miss, because the wrong answer still looks right. Semantic layers and catalogs keep definitions consistent inside one system, and evidence questions rarely stay inside one. The rest of this playbook covers how a team addresses all three, including what it sets up, what the agent does, and where people stay in the loop.

Your AI Agent Readiness Checklist for RWE

Most agent pilots in life sciences stall on context long before the agent runs a single query because no one has told it what the data means or which definitions to trust. The checklist below covers the five pieces to put in place before the pilot begins and who signs off on each.

What the agent needs Why it matters Who signs off
Data in a common model Sources with different field names and local codes can't answer the same question until they share a model such as OMOP, FHIR, or CDISC Data engineers
Field descriptions The agent picks datasets and columns by name and description, so vague or empty descriptions send it to the wrong field A domain expert
Approved definitions When sources define a term differently, the agent needs to know which version applies to the question at hand Each definition's owner
Governed access The agent should reach only the data and workloads its user is permitted to use Data owners and security
Privacy controls Every result that leaves a site has to meet the project's privacy thresholds, whoever asked Data owners and security

Field descriptions and approved definitions carry the most risk. An LLM can draft a context layer from raw tables in minutes, and it will faithfully copy every ambiguity already in them. Review by a subject-matter expert turns that draft into something the organization can rely on.

Take “second line.” An outcomes research definition might start a new line at the first regimen change after documented progression, while a commercial definition counts any new regimen. Both are reasonable for their purpose, which is why an expert needs to confirm which one applies before the agent uses it.

The Rhino Federated Computing Platform (Rhino FCP) has a capability for each item on this checklist. The Data Harmonization Engine maps sources to OMOP, FHIR, CDISC, or custom models, and agents draft field descriptions from your data dictionary for an expert to review. Enterprise Context Orchestration, now in early access, mines context from the catalogs, semantic layers, and documentation you already run and brings it to agents for expert review. The Rhino MCP server with role-based access control and per-project privacy-enhancing technologies such as differential privacy budgets and k-anonymity thresholds govern what agents can reach and what leaves each site.

A Step-by-Step Guide to Running RWE Studies With AI Agents

With the checklist in place, the lung cancer survival question from the top of this playbook runs as a conversation. Each step below covers what the agent does and who reviews it. The agent works through one stage at a time and stops after each so a person can approve the code, counts, and definitions before anything moves on.

Step 1: Ask the Question in Plain Language

The epidemiologist types the question into the AI tool the company already uses, whether that's Claude, an internal assistant, or another MCP-compatible agent. The request can be a single question or a short study plan.

Step 2: Match the Question to Approved Context

Before it plans anything, the agent runs context checks through an MCP server. It matches each term to an approved definition, finds the sources that hold the variables it needs, and confirms the user may query each one. The agent acts with its user's permissions in every source, so it can't reach anything its user couldn't.

Step 3: Plan the Analysis and Confirm the Intent

The agent plans the whole analysis and writes its intent on plain-language cards covering the population, criteria, index date, outcome, and definitions. A domain expert edits or approves each card, and every number that follows traces back to the approved intent.

Step 4: Check Data Quality and Explore the Data

Before any analysis, the agent checks each site's data for completeness, valid ranges, and consistent units. It then explores what's there, including how many patients meet the criteria and what continuous enrollment looks like. All of it runs where the data lives, and only aggregate counts come back, so clinical development teams can size a population across claims, partner EHRs, and a CRO cohort without filing a single extract request.

Step 5: Build the Cohort

The agent applies each criterion and returns an attrition funnel with the number of patients remaining at each step. Every patient keeps their flags, so the team can test a different threshold with a quick filtered count instead of rebuilding the cohort. A statistician then checks that the cohort is valid and the comparison groups are balanced before the analysis runs.

Step 6: Run the Analysis Where the Data Lives

The Kaplan-Meier analysis goes to each environment with the approved definitions pinned. Each site runs it locally, and only aggregates that pass the project's privacy thresholds return. The same pattern covers Cox regression, statistical tests such as t-tests and chi-squared, and epidemiology measures such as incidence and odds ratios, on one site or many. Teams can also train models across sites with federated learning.

Step 7: Iterate, Reproduce, and Export

The team can adjust a criterion or definition and rerun any stage without starting over. The final answer arrives as aggregate-only results with their sources, the definitions used, and a full audit log, plus an SDK notebook that reproduces every step. Anyone can rerun the analysis later in the team's own tools and get the same result.

Across all seven steps, patient-level data stays at its site, and every decision that shapes the answer has a named reviewer. The agent handles the repetitive work so that epidemiologists, statisticians, and data scientists can spend their time on the judgment calls.

On the Rhino Federated Computing Platform, agents reach each stage of this workflow through the Rhino MCP server. Its tools cover feasibility counts, cohort building, statistical tests, epidemiology measures, and survival analysis across multiple tables and sites, and Rhino skills package common steps such as concept code lookup and cohort building, or a team's full RWE workflow. Every run is logged automatically, and the analysis exports as SDK code the team can rerun. The platform also supports federated learning for teams that train models across sites.

What Changes for Each Team

An agent changes the day-to-day work for every team that touches an evidence question.

  • Data engineers: Harmonize each new source once, with AI tools handling much of the mapping, and every agent and analyst can use it.
  • Epidemiologists: Run feasibility checks and multi-step analyses directly with the agent handling the steps and the expert approving each one.
  • Statisticians: Get rigorous tests along with the code behind every result.
  • Data scientists: Train models and run analyses on data held in other silos without it leaving its site.
  • Data owners: Decide what runs on their data and what leaves, and see every agent action in the log.

Each team still owns its part of the answer with less time spent on handoffs and repeat requests.

Common Pitfalls

Teams that stall with agents tend to hit the same few problems.

  • Letting the agent pick the definition: When two teams define a term differently and nothing reconciles them, the agent chooses one and rarely says so.
  • Bootstrapping context without review: Descriptions generated from raw tables or query logs can turn existing ambiguity into an official definition. Have an expert approve the context layer before anyone relies on it.
  • Vague prompts: “Patients on second-line therapy” hides decisions about which definition, which drug codes, and which time window. The agent fills gaps with standard choices, so state them up front.
  • Agents with wider access than their users: An agent should carry its user's permissions in each source. A service account that reads only metadata is fine. One that reads patient data is a liability.
  • Answers without code: A result no one can reproduce won't survive review. Choose a setup that logs every run automatically, so the code behind each answer is always on record.
  • Expecting the agent to know your workflow: A general-purpose agent doesn't know how your team runs a study, from preferred code lists to the order of review steps. Build those conventions into the agent's context and skills before the pilot, or it will fall back on generic choices.

Most of these trace back to the checklist above, so revisit it whenever a new source, definition, or team joins the project.

Where to Start

You can test this approach without a large rollout or a new data program. Pick one evidence question your team asks often and write down every definition it depends on. Each place those definitions disagree is work to resolve before an agent can answer reliably. Start with one dataset in your own environment, check the answers against your existing methods, and then extend the same approved definitions to partner sites.

Enterprise Context Orchestration is in early access today on the Rhino Federated Computing Platform, which is used by 9 of the top 20 pharmas and installed at more than 70 leading institutions. Early access teams also get Rhino skills for feasibility counts, code lists, and cohort building.

Want to see this on your own data? Book a demo and bring one question your teams can't answer today.

Frequently Asked Questions

Does the AI model ever see patient-level data?

No. Each analysis runs inside the site's own environment, and only aggregates that pass the project's privacy controls return to the agent.

Which AI tools and agents work with this approach?

Any MCP-compatible tool can connect through the Rhino MCP server, including Claude, Gemini, internal assistants, and in-house agents.

Do we have to replace our data catalog or semantic layer?

No. A context layer for agents should read definitions from the catalogs and semantic layers you already run, and those tools stay the system of record. The context layer's job is to bring those definitions to agents in a form they can use.

What does a data owner approve?

Owners approve what code runs on their data and what results leave. Organizations that want tighter control can limit agents to pre-approved workloads.

Can partners without their own DevOps team take part?

Yes. Each dataset can stay in place at its site or sit in a Rhino-hosted environment, and the same controls apply either way.

How can our security team evaluate Rhino?

Your security team can find reports, policies, and architecture docs in the Trust Center (trust.rhinofcp.com).

Build your Federated Network