Response Structure Overview
When analysis completes successfully, you receive a webhook with aresult object containing:
Patient Response
ThepatientResponse 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
TheclinicianResponse 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 atype field in its metadata:
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
TheselectedElements 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.Research Tasks (Deep Agent Only)
For Deep Agent runs, theresearchTasks array lists the research queries that were executed:
Displaying Responses
Recommended Markdown Libraries
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 distincttype 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 withtype: "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
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 withtype: "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 withtype: "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.