Skip to main content
This guide explains the structure of Helios API responses, including how to parse and display the patient and clinician reports, and how to use the citations system.

Response Structure Overview

When analysis completes successfully, you receive a webhook with a result object containing:

Patient Response

The patientResponse is a Markdown-formatted string written in warm, accessible language for patients. It includes:
  • Health Summary: Overview of the patient’s health findings
  • Key Health Areas: Explanation of conditions and concerns
  • Recommended Tests: Suggested follow-up tests with timing
  • What You Can Do: Actionable lifestyle and health recommendations
  • Timeline: Suggested schedule for follow-up care

Example Patient Response Structure

The patient response uses numbered citations like [1], [2] that reference entries in the citations.patient object.

Clinician Response

The clinicianResponse is a Markdown-formatted clinical report designed for healthcare providers. It includes:
  • Clinical Summary: Comprehensive patient overview
  • Problem-by-Problem Analysis: Detailed analysis of each condition
  • Longitudinal Trends: Lab value trends over time (tables)
  • Cross-System Analysis: Connections between conditions
  • Recommendations: Lab testing, imaging, medications, referrals
  • Monitoring Plan: Short, medium, and long-term follow-up

Example Clinician Response Structure

Citations System

Both responses include numbered citations [1], [2], etc. that reference the citations object in the webhook payload.

Citations Object Structure

Guideline citations include additional metadata fields: source (society acronyms like “ACC/AHA”, “KDIGO”), author (full society names), doi, pubdate, abstract_snippet, and specialties. Not all fields are present on every citation — only type is guaranteed in the metadata object.

Citation Types

Each citation includes a type field in its metadata:
Guideline citations are sourced from a curated database of clinical practice guidelines published by authoritative medical societies. These are prioritized for clinical protocols, treatment recommendations, screening guidance, and standard-of-care references. See Evidence Sources for more details.

Parsing Citations

Here’s how to match citation numbers in the text to their metadata:

Rendering a References Section

You can also generate a references list to display at the end of the response:

Selected Elements

The selectedElements array contains the health data elements that were analyzed:

Lab Results Agent Response

The Lab Results Agent response differs slightly from the EHR Agent:
The Lab Results Agent does not include selectedElements since all provided labs are analyzed directly. Instead, it includes labResults (the labs that were processed) and metadata with processing statistics.
See the Lab Results Agent documentation for complete request and response details.

Research Tasks (Deep Agent Only)

For Deep Agent runs, the researchTasks array lists the research queries that were executed:

Displaying Responses

Both patientResponse and clinicianResponse are formatted in Markdown. Use a Markdown rendering library to display them properly with headers, lists, tables, and formatting.

Example React Implementation

Citation Counts

Typical citation counts vary by agent type and case complexity:
These ranges include citations from all source types — medical literature, clinical guidelines, database insights, and web sources. Citation counts may be lower for cases with limited health data or when external research services have issues. The responses are still valid even with fewer citations.

Evidence Sources

Helios agents draw from multiple evidence sources to provide comprehensive, well-cited analysis. Each source type appears as a distinct type in the citation metadata.

Medical Literature (PubMed / PMC)

Peer-reviewed biomedical articles from the National Library of Medicine. Includes research papers, systematic reviews, meta-analyses, and clinical trials. These are the most common citation type and appear with type: "pubmed" or type: "pmc".

Clinical Guidelines

A curated corpus of 3,000+ clinical practice guideline articles from authoritative medical societies, including:
  • ACC/AHA — American College of Cardiology / American Heart Association
  • KDIGO — Kidney Disease: Improving Global Outcomes
  • ADA — American Diabetes Association
  • USPSTF — U.S. Preventive Services Task Force
  • ASCO — American Society of Clinical Oncology
  • ESC — European Society of Cardiology
  • IDSA — Infectious Diseases Society of America
  • NICE — National Institute for Health and Care Excellence
  • CDC — Centers for Disease Control and Prevention
  • NLA, ATA, ASRM, and many others
Guideline citations are prioritized for clinical protocols, treatment recommendations, screening guidance, monitoring schedules, and risk stratification. They appear with type: "guideline" and include additional metadata such as doi, source (society acronyms), and specialties.

Database Insights

Curated medical knowledge entries matched to the patient’s specific data. These provide targeted clinical context based on evidence-based findings relevant to the patient’s conditions and lab results. They appear with type: "insight". The Lab Results Agent also reports metadata.insightsMatched — the number of insights matched for the analysis.

Web Sources

Additional medical content from peer-reviewed journals, professional society websites, and other authoritative health resources. These appear with type: "web" or type: "journal" depending on the source.

Next Steps

Webhooks

Learn about webhook delivery and signature verification.

EHR Agent

Full EHR Agent request and response reference.

Lab Results Agent

Full Lab Results Agent request and response reference.

API Overview

Shared concepts: auth, errors, privacy.