Add a Record Location
The "Add a Record Location" flow lets a patient add a new healthcare provider to their record without going through a full data refresh. Use this when a patient needs to fill a gap in their clinical history or connect a provider they have not previously added. This flow is offered in addition to the standard consent and Updating Patient Data flows — it does not replace them.
This flow is distinct from the Updating Patient Data flow:
| Update Patient Data | Add a Record Location | |
|---|---|---|
| Triggers TEFCA/RLS scan | Yes | No |
| Refreshes existing locations | Yes | No |
| Preserves existing locations | Yes | Yes |
| Patient selects new provider | Optional | Always |
| Requires patient interaction | Only when auth expired | Always |
What the patient experiences
Generic flow (no provider pre-selected):
Auth (if necessary) → Consent (if necessary) → Find a Record Location → Identify Record Location → Log into Patient Portal → Record Location added → Success
Specific flow (brandId, portalId, and endpointId provided):
Auth (if necessary) → Consent (if necessary) → Log into Record Location (or skip) → Log into Patient Portal → Record Location added → Success
On the generic flow, the patient may add another record location or return to the originating application after a successful add. On the specific flow, a failed add offers retry or go back. When redirectUri is provided, successful completion in either flow redirects the patient — see Setting Up a Hosted Redirect.
Authentication and consent are always enforced:
- Logged-out patients are shown the login screen first, then proceed to the Find a Record Location flow.
- Logged-in patients with valid tokens (including CLEAR or social login) go directly to the add-a-provider screen — welcome, how-it-works, and full-network refresh steps are skipped.
- Patients who have not yet consented to the project are shown the participation signature screen before proceeding.
- Patients who have already consented skip the consent screen entirely.
On success, hosted integrations that pass redirectUri on the URL (see Setting Up a Hosted Redirect) redirect the patient back to the originating application or AI agent. If redirectUri is omitted, the patient lands on the standard HealthEx success screen.
If a patient attempts to add a record location they have already connected, they are warned that doing so may create duplicates and are directed to refresh their records instead.
How to Invoke
Direct the patient to a well-known URL for your project (similar to the first-time OAuth enrollment link) with addRecordLocationsDirectly=true.
Generic URL
No provider pre-selected — the patient searches for and selects a provider:
https://app.healthex.io/#/patient-consent/<projectId>/enrollment/link?addRecordLocationsDirectly=true
Replace <projectId> with your project's ID.