How to Find and Register Patients in EHRs and Practice Management Systems with Unified.to's Healthcare API
·
Your product can search a practice's patients by name in EHRs such as Epic, Oracle Health, athenahealth, NextGen Healthcare and Veradigm, and in practice management systems such as Cliniko, Halaxy and Open Dental. It can also register or update patients in Canvas Medical, Cliniko, DrChrono, Elation Health, Healthie, Open Dental, Tebra and other integrations (as of 24 October 2026).
sdk.healthcare.listHealthcarePatients, createHealthcarePatient and updateHealthcarePatient use the same Patient object on each of them; the fields each system accepts vary. Every request is executed directly against the practice's system.
Why does patient matching come first?
Every healthcare integration starts with a patient ID in the practice's system: booking, intake forms (including insurance coverage), care programs, results, notes. Products that skip this step create duplicates, which practices then merge by hand, or fail to link to the chart at all.
The fix is to look the patient up before you create them, and to write intake data into the practice's own record instead of keeping a parallel one. Unified.to's Healthcare API returns patients as a single Patient object with names, birthdate, contact details, address and identifiers such as the medical record number.
What are the steps to find or register a patient?
- Authorize the practice's system and store one connection ID
- Search for the patient by name, and confirm the match on birthdate
- Register them if they're new
- Keep contact details current from your intake flow
Search for a patient
import { UnifiedTo } from '@unified-api/typescript-sdk';
const sdk = new UnifiedTo({
security: { jwt: process.env.UNIFIED_API_KEY },
});
const candidates = await sdk.healthcare.listHealthcarePatients({
connectionId,
query: 'Garcia',
limit: 50,
});
const match = candidates.find((p) => p.birthdate === '1984-03-12' && p.first_name?.toLowerCase() === 'maria');
query searches by name on the system's own search. Always confirm a match on at least one more field you trust, typically birthdate (always YYYY-MM-DD), before you attach data to a record; names aren't unique.
identifiers holds the record's business identifiers, each with a type (MRN, NPI, SSN, DRIVERS_LICENSE, PASSPORT, INSURANCE or OTHER) and value. When your customer gives you the medical record number, match on the MRN identifier; it's the most reliable key.
Register a new patient
const patient = await sdk.healthcare.createHealthcarePatient({
connectionId,
healthcarePatient: {
first_name: 'Maria',
last_name: 'Garcia',
birthdate: '1984-03-12',
gender: 'FEMALE',
emails: [{ email: 'maria@example.com', type: 'HOME' }],
telephones: [{ telephone: '+1 555 0100', type: 'MOBILE' }],
address: { address1: '1 Main St', city: 'Springfield', region: 'IL', postal_code: '62701', country: 'US' },
},
});
Systems differ in the fields they accept. The capability matrix lists writable fields per integration; build your intake form from it.
Large EHRs (Epic, Oracle Health, athenahealth, MEDITECH and others on patient-access APIs) don't accept patient registration through these APIs. Registration happens at the front desk; your product reads the result.
Update contact details
await sdk.healthcare.updateHealthcarePatient({
connectionId,
id: patient.id!,
healthcarePatient: { telephones: [{ telephone: '+1 555 0199', type: 'MOBILE' }] },
});
Send only the fields that changed. Updates are available on nearly every integration that accepts registration; check the integration's support matrix.
How do I know when patient details change?
Halaxy and WellSky Personal Care send native webhooks for patient changes. On Canvas Medical, Cliniko, Dentally, DrChrono, Elation Health, IntakeQ, Open Dental, Semble, SMART on FHIR, TietoEVRY Lifecare, TruBridge and Veradigm, Unified.to's virtual webhooks for healthcare_patient detect changes, and updatedGte returns patients changed since a timestamp (as of 24 October 2026).
→ Start your 30-day free trial → Book a demo
Frequently asked questions
What if the search returns several matches?
Show them to staff with birthdate and contact details and let a person choose. Don't auto-merge or pick the first.
Can I deactivate or delete a patient?
You can't delete a patient through the unified Patient object. On integrations where is_active is writable, such as Canvas Medical, DrChrono and Elation Health, an update can deactivate the record; elsewhere it's read-only.