Unified.to
All articles

How to Build a Patient Chart Summary for Clinicians and AI from EHRs with Unified.to's Healthcare API

·

Your product can read a patient's problem list, allergies, medications, immunizations and visit history from Epic, Oracle Health, athenahealth, MEDITECH, NextGen Healthcare, Veradigm, PointClickCare and other EHRs through one connection (as of 24 October 2026), and assemble them into one chart summary.

sdk.healthcare.listHealthcareConditions, listHealthcareAllergies, listHealthcareMedications, listHealthcareImmunizations and listHealthcareEncounters return the same objects on each EHR that supports them. Every request is executed directly against the customer's EHR, so the summary reflects the chart now.

Why build a chart summary first?

Pre-visit preparation, AI scribes and assistants, care coordination, referral packets and patient apps all start from the same five lists: what the patient has, what they react to, what they take, what they've been vaccinated against, and when they were last seen. They are also the lists most EHRs on Unified.to return.

Each EHR returns these five lists differently, and coded data arrives in several code systems at once. Unified.to's Healthcare API returns each list as one object with readable names and the original codings side by side: Condition, Allergy, Medication, Immunization and Encounter.

What are the steps to build a chart summary?

  1. Authorize the customer's EHR and store one connection ID
  2. Read the five lists for one patient, in parallel
  3. Keep what's active and current
  4. Render a summary, or pass a compact version to an AI model

Read the chart

import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
  security: { jwt: process.env.UNIFIED_API_KEY },
});

const [conditions, allergies, medications, immunizations, encounters] = await Promise.all([
  sdk.healthcare.listHealthcareConditions({ connectionId, patientId }),
  sdk.healthcare.listHealthcareAllergies({ connectionId, patientId }),
  sdk.healthcare.listHealthcareMedications({ connectionId, patientId }),
  sdk.healthcare.listHealthcareImmunizations({ connectionId, patientId }),
  sdk.healthcare.listHealthcareEncounters({ connectionId, patientId }),
]);

Which records belong in a chart summary?

A chart summary usually shows active problems, active allergies by criticality, active medications, completed immunizations and the last few visits.

Problems. status is the clinical status (ACTIVE, RECURRENCE, RELAPSE, INACTIVE, REMISSION, RESOLVED); type separates the long-term problem list (PROBLEM) from visit diagnoses (DIAGNOSIS) and health concerns.

Allergies. Show ACTIVE allergies with criticality (HIGH first) and reactions. type says whether it's a food, medication, environmental or biologic allergy.

Medications. status follows the prescription (ACTIVE, ON_HOLD, COMPLETED, STOPPED …); show ACTIVE. dosage is the instructions as the prescriber wrote them; for structured route and dose, see How to Read Patient Demographics, Emergency Contacts and Medication Dosing.

Immunizations. COMPLETED records with administered_at; codes carry the CVX vaccine code.

Visits. Sort encounters by start_at and show the last few with type (AMBULATORY, EMERGENCY, INPATIENT, VIRTUAL …) and reasons. condition_ids link each visit to the diagnoses made in it.

const summary = {
  problems: conditions.filter((c) => c.status === 'ACTIVE' && c.type !== 'DIAGNOSIS').map((c) => c.name),
  allergies: allergies.filter((a) => a.status === 'ACTIVE').map((a) => ({ name: a.name, criticality: a.criticality })),
  medications: medications.filter((m) => m.status === 'ACTIVE').map((m) => ({ name: m.name, dosage: m.dosage })),
  lastVisit: encounters.sort((a, b) => String(b.start_at).localeCompare(String(a.start_at)))[0],
};

Every record also carries codes (ICD-10 and SNOMED CT for problems, RxNorm for medications, CVX for vaccines). Use them for logic and deduplication, and name for display.

How do I pass a chart summary to an AI model?

Pass the compact summary, not raw records, to the model, and keep id on each item so an answer can cite the record it came from. Read at request time rather than embedding a stored copy: the chart changes between visits, and a stale allergy list is a safety problem.

What if an EHR doesn't keep clinical lists?

Handle 501 separately from an empty list. Practice management systems that don't keep clinical lists return 501 Not Implemented. Show "not available from this system" rather than "none". An empty list means nothing is recorded; those aren't the same thing on an allergy list.

Check support before you scope on the Supported Integrations page.

Clinical lists are read-only through the unified objects.

How do I keep a chart summary current?

On Canvas Medical, Oracle Health, SMART on FHIR, TruBridge and Veradigm, Unified.to's [virtual webhooks](/blog/what_are_virtual_webhooks_how_they_differ_from_sync_based_webhooks) and updatedGte cover conditions, allergies, medications and immunizations; encounters are also covered on Cliniko, DrChrono, Elation Health, Epic and Google Cloud Healthcare API (as of 24 October 2026). Elsewhere, read the summary when it's needed, typically when a visit is opened.

→ Start your 30-day free trial → Book a demo

Frequently asked questions

Where are lab results and notes?

Lab and vital-sign values are Observations, grouped into Reports; notes are Documents. See How to Read Lab and Imaging Reports and How to Read Clinical Notes.

Does Unified.to store the chart?

No. Every request runs against the EHR when you make it, and Unified.to keeps no customer records at rest; connection credentials and operational metadata are encrypted at rest. A HIPAA BAA is available on Scale.

All articles