Understanding the structure of patient and clinician responses with citations
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.
## 👤 Your Health SummaryBased on analysis of your health records.---Hello!We've completed a thorough review of your health record...**Understanding Your Key Health Areas*** **Heart and Metabolic Health**: Your records show... [1] [2]* **Diabetes Risk**: You have prediabetes, which means... [3]### 🧪 Recommended Tests* **HbA1c**: Monitor blood sugar control. *Get every 3-6 months.* [4]* **Lipid Panel**: Check cholesterol levels. *Get within 6 months.* [5]### 💡 What You Can Do* Focus on a heart-healthy diet... [6]* Aim for 150 minutes of exercise weekly... [7]
The patient response uses numbered citations like [1], [2] that reference entries in the citations.patient object.
The Lab Results Agent response differs slightly from the EHR Agent:
Copy
{ "result": { "labResults": [...], // Labs that were analyzed (after limiting) "patientResponse": "...", // Markdown-formatted patient summary "clinicianResponse": "...", // Markdown-formatted clinical report "citations": { "patient": {...}, "clinician": {...} }, "metadata": { "labsReceived": 15, // Number of labs sent in request "labsAnalyzed": 15, // Number after 200-lab limit applied "insightsMatched": 8 // Database insights matched } }}
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.
For Deep Agent runs, the researchTasks array lists the research queries that were executed:
Copy
{ "researchTasks": [ "Research current ADA guidelines for glycemic control in Type 2 Diabetes", "Investigate SGLT2 inhibitor cardiovascular benefits in patients with CKD", "Analyze optimal statin therapy for diabetic patients with elevated LDL" ]}
Both patientResponse and clinicianResponse are formatted in Markdown. Use a Markdown rendering library to display them properly with headers, lists, tables, and formatting.
Typical citation counts vary by agent type and case complexity:
Agent
Patient Citations
Clinician Citations
Light Agent
10-20
15-30
Deep Agent
15-25
30-50
Lab Results Agent
10-20
15-30
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.