Create Patient
Creates a new patient record.
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.
Provider IDs for Referrals
When creating patients with referral information, use theehr_id value from providers:
referred_to_provider_id(optional): Use theehr_idfromGET /v1/providers(not theid)
id here. The id field from GET responses is Cobalt’s internal UUID, used only for updating provider settings via PATCH endpoints.Referring Provider and PCP Options
When creating a patient, you can specify the referring provider and PCP (Primary Care Provider) using either names or provider IDs:Option 1: Provider Names (All EMRs)
Provide the provider’s first and last name:Option 2: Provider IDs (eClinicalWorks Only)
Usereferring_provider_id or pcp_id from GET /v1/referring-providers (UUID without dashes). This option:
- Automatically looks up the provider’s name, phone, and fax
- Provides more accurate matching by validating contact information in the EMR
- Falls back to using provided names if the ID is not found
Responsible Party (eClinicalWorks Only)
By default, the patient is their own responsible party (responsible_party: "self"). For minors or patients whose billing is managed by another person, set responsible_party to one of the values below and include the guarantor’s demographic fields.
When a non-self responsible party is provided alongside insurance, Cobalt will:
- Create a guarantor record in eCW with the provided demographics
- Link that guarantor to the insurance record
- Set the responsible party on the patient
| Value | eCW Code | Description |
|---|---|---|
self | 1 | Patient is the insured |
spouse | 2 | Patient is the spouse of the insured |
child | 3 | Natural Child — insured has financial responsibility |
adopted_child | 4 | Natural Child — insured does not have financial responsibility (includes legally adopted) |
step_child | 5 | Step Child |
foster_child | 6 | Foster Child |
ward_of_court | 7 | Ward of the Court |
employee | 8 | Employee |
unknown | 9 | Unknown / Other relationship |
handicapped_dependent | 10 | Handicapped Dependent |
organ_donor | 11 | Organ Donor |
cadaver_donor | 12 | Cadaver Donor |
grandchild | 13 | Grandchild |
niece_nephew | 14 | Niece/Nephew |
injured_plaintiff | 15 | Injured Plaintiff |
sponsored_dependent | 16 | Sponsored Dependent |
minor_dependent | 17 | Minor Dependent of a Minor Dependent |
parent | 18 | Parent |
grandparent | 19 | Grandparent |
life_partner | 53 | Life Partner |
other | 99 | Other |
responsible_party_first_name and responsible_party_last_name are required when using a non-self responsible party. The guarantor is created as a separate record in eCW — if a guarantor with those demographics already exists in your instance, a duplicate will be created.Registration Fields (eClinicalWorks Only)
Additional demographic and consent fields can be set at patient creation:| Field | Type | Description |
|---|---|---|
language | string | Preferred language. Must match a valid language name in your eCW instance. |
race | string | Race. Must match a valid race name in your eCW instance. |
ethnicity | string | Ethnicity. Must match a valid ethnicity code or display name in your eCW instance. |
release_of_info | boolean | Consent for release of information. Defaults to true. |
rx_history_consent | boolean | Consent for pharmacy history sharing. Defaults to true. |
self_pay | boolean | Explicitly marks the patient as self-pay, overriding insurance-derived logic. |
default_facility_id | string | The eCW facility ID to set as the patient’s primary service location. |
Insurance Options
When creating a patient, you can specify insurance using either the insurance name or an insurance provider ID: Option 1: Insurance Name (All EMRs)insurance_provider_id from GET /v1/insurance-providers (UUID without dashes). This option:
- Automatically looks up the insurance name, address, city, and state
- Provides more accurate matching when there are duplicate insurance names
- Falls back to using provided insurance_name if the ID is not found
Example Request
Basic Request
With Provider Names
With Provider IDs (eClinicalWorks Only)
Example Response
Webhook Notifications
When patient processing is complete, we will send a webhook to your registered endpoint. Here are examples of what those webhook payloads will look like:Success
Failure Examples
Thepatient.failed webhook event includes a failure_reason and may contain additional fields in the data object depending on the cause of the failure.
Duplicate Patient:
Authorizations
Body
Address line 2 (apartment, suite, unit, etc.)
Whether to check insurance eligibility for the patient
true, false Patient email address
Reason why email was not provided. Can be used instead of email when email is required. Only available for certain EMRs.
The id of an insurance provider from GET /v1/insurance-providers (UUID without dashes). Can be used instead of insurance_name for enhanced matching. Currently only supported for eClinicalWorks.
primary, secondary, tertiary The id of a PCP provider from GET /v1/referring-providers (UUID without dashes). Can be used instead of pcp_first_name and pcp_last_name. Currently only supported for eClinicalWorks.
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.
The responsible party for the patient. Non-self values (spouse, parent, child, other, unknown) are currently supported for eClinicalWorks only and require responsible_party_* demographic fields.
self, spouse, child, adopted_child, step_child, foster_child, ward_of_court, employee, unknown, handicapped_dependent, organ_donor, cadaver_donor, grandchild, niece_nephew, injured_plaintiff, sponsored_dependent, minor_dependent, parent, grandparent, life_partner, other male, female, unknown First name of the responsible party. Required when responsible_party is not self (eClinicalWorks only).
Last name of the responsible party. Required when responsible_party is not self (eClinicalWorks only).
Sex of the responsible party (eClinicalWorks only).
male, female Date of birth of the responsible party in YYYY-MM-DD format (eClinicalWorks only).
Phone number of the responsible party (eClinicalWorks only).
Patient preferred language (eClinicalWorks only). Must match a valid language name in your eCW instance.
Patient race (eClinicalWorks only). Must match a valid race name in your eCW instance.
Patient ethnicity (eClinicalWorks only). Must match a valid ethnicity code or display name in your eCW instance.
Consent for release of information (eClinicalWorks only). Defaults to true.
Consent for pharmacy history sharing (eClinicalWorks only). Defaults to true.
Explicitly marks the patient as self-pay, overriding insurance-derived self-pay logic (eClinicalWorks only).
The eCW facility ID to set as the patient primary service location (eClinicalWorks only).