Challenge

Build an OpenAI Agents SDK Trial Matching Agent for IL-6 Inflammation Targets

Novartis and other pharmaceutical firms require automated participant screening to identify candidates eligible for IL-6 inflammatory target trials. Build an agent using OpenAI Agents SDK to parse electronic health records against complex inclusion/exclusion criteria and calculate trial eligibility.

Data ScienceHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Develop an OpenAI Agents SDK workflow to screen cardiovascular trial candidate EHR records based on IL-6 inflammatory biomarkers.

Delivery guide

How work is evaluated

Evaluation

Evaluates agent decision accuracy when matching patient FHIR bundles to trial inclusion parameters.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Loading datasets...
Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

eligibility_classification_match

Verifies that eligible patient is correctly marked true.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

screening_f1_score

F1 score across candidate patient cohort trial matching evaluations. • target: 0.95 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Implement structured autonomous agents with the OpenAI Agents SDK

  • Extract lab values (e.g., hsCRP, IL-6 levels) and diagnosis codes from FHIR JSON bundles

  • Evaluate eligibility logic against clinical trial protocol inclusion/exclusion constraints

  • Generate explicit reasoning logs explaining why patient records passed or failed screening

Resources and assets

Reference links and supporting material

Dataset notes

Cohort of 30 synthetic FHIR patient records with varying inflammatory biomarker profiles and cardiovascular history.

How this agent runs

Evaluates agent decision accuracy when matching patient FHIR bundles to trial inclusion parameters.

Challenge input

JSON FHIR patient resource bundle containing Observation and Condition resources.

OpenAI Agents SDK

Official framework for autonomous agent development.

Evaluated output

JSON containing is_eligible (boolean), matched_criteria (list), and exclusion_reasons (list).

Checks for
  • Verifies that eligible patient is correctly marked true.
  • F1 score across candidate patient cohort trial matching evaluations. • target: 0.95 • range: 0-1
Proof of success
  • Benchmark: FHIR Trial Screening Benchmark
  • Screening F1 Score target: 0.95
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox
View technical recipe

Configured tools

Action Space
  • OpenAI · Required
  • OpenVINO Toolkit · Optional
  • Lepton AI · Optional

Evaluation contract

  • eligibility_classification_match · Weight 1
  • screening_f1_score · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Build an OpenAI Agents SDK Trial Matching Agent for IL-6 Inflammation Targets