Skip to main content
POST
cURL

Overview

Creates a patient record. id, first_name, and last_name are required; all other fields are optional. id is the patient’s external id, the same identifier used by the professional claim endpoints, so a patient created here can be reused in later claim submissions. This endpoint manages demographic data only. Insurance/policy data is not accepted — a body containing a policies field (or any unknown field) is rejected with a 400.

Authentication

JWT Bearer token from /api/token.

Request Body

string
required
External patient id.
string
required
Patient’s first name.
string
required
Patient’s last name.
string
Patient’s full name.
string
One of male, female, other, or unknown.
string
Date of birth in yyyy-MM-dd format.
string
Patient email address.
string
Patient phone number.
object
Patient address with line1, line2, city, state, zip, and country.

Example

Response

Returns 409 Conflict when a patient with the same id already exists. Use PUT /api/patient/{patientId} to update an existing patient.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Patient demographics. id is the external patient id, keyed by the Cair customer-patient-id naming system (https://fhir.cairhealth.com/fhir/identifier/customer-patient-id)

id
string
required

External patient id

first_name
string
required

Patient's first name

last_name
string
required

Patient's last name

name
string | null

Patient's full name

gender
enum<string> | null

Patient gender

Available options:
male,
female,
other,
unknown
dob
string | null

Date of birth, yyyy-MM-dd

email
string | null

Patient email address

phone_number
string | null

Patient phone number

address
object

Patient address

Response

Patient created successfully

success
boolean
message
string
data
object