Update Patient
Updates an existing patient. The update process differs based on the current status of the patient.
Documentation Index
Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt
Use this file to discover all available pages before exploring further.
id in the URL path. The {id} parameter should be the Cobalt patient ID returned from API responses or GET endpoints, not the MRN or EHR ID.1. Updating Pending or Failed Patients
For patients with a status of ‘pending’ or ‘failed’, the patient does not yet exist in the EHR. You can update any attribute, and the new values will be used the next time the patient creation runs.| Parameter | Type | Required | Description |
|---|---|---|---|
| Any patient attribute | varies | No | Any attribute of the patient can be updated. All fields are optional. |
2. Updating Active Patients
For patients with a status of ‘active’ (already created in the EHR), you can update the patient’s contact information, address, and provider assignments. The change is queued and applied to the EHR asynchronously; the patient’s status will move to ‘pending_update’ while the update is in flight and back to ‘active’ once the EHR write completes.Contact & Address Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
phone | string | No | Home phone, formatted as 222-333-4444. |
cell_phone | string | No | Cell phone, formatted as 222-333-4444. |
email | string | No | Patient email address. |
address_street | string | No | Street address line 1. |
address_line2 | string | No | Address line 2 (apartment, suite, unit, etc.). |
address_city | string | No | City. |
address_state | string | No | Two-letter state code (e.g. CA). DC is accepted. |
address_zip | string | No | ZIP code. Accepts 5-digit (12345) or ZIP+4 (12345-6789) formats. |
save_previous_address | boolean | No | When true (default), the patient’s current address is saved as address history in the EHR before the new address is applied. Set to false to overwrite without preserving history. eClinicalWorks only. |
Provider Fields (eClinicalWorks Only)
| Parameter | Type | Required | Description |
|---|---|---|---|
referring_provider_first_name | string | No | Referring provider’s first name. Must be used with referring_provider_last_name. |
referring_provider_last_name | string | No | Referring provider’s last name. Must be used with referring_provider_first_name. |
referring_provider_id | string | No | Cobalt referring provider UUID (from GET /v1/referring-providers). Looks up the provider’s name and contact info for more accurate matching. |
pcp_first_name | string | No | PCP’s first name. Must be used with pcp_last_name. |
pcp_last_name | string | No | PCP’s last name. Must be used with pcp_first_name. |
pcp_id | string | No | Cobalt referring provider UUID (from GET /v1/referring-providers). Looks up the provider’s name and contact info for more accurate matching. |
referred_to_provider_id | string | No | Rendering provider EHR ID — use the ehr_id value from GET /v1/providers (not the id). |
Example Request for Updating a Pending/Failed Patient
Example Request for Updating an Active Patient’s Contact Info
Example Request for Updating an Active Patient’s Address
save_previous_address: false:
Example Request for Updating an Active Patient’s Providers
Example Response
Authorizations
Path Parameters
The patient's ID
Body
- Option 1
- Option 2
Updates for pending/failed patients. Any allowed attribute can be updated; values are used the next time patient creation runs against the EHR.
Address line 2 (apartment, suite, unit, etc.)
Patient email address
primary, secondary, tertiary The ehr_id of the provider this patient is being referred to (rendering provider). Use the ehr_id from GET /v1/providers
First name of the referring provider
Last name of the referring provider
The id of a referring provider from GET /v1/referring-providers (UUID without dashes). Can be used instead of referring_provider_first_name and referring_provider_last_name. Currently only supported for eClinicalWorks.
male, female, unknown