Skip to main content
PUT
cURL

Overview

Updates a patient’s demographic fields, preserving all other data on the resource (identifiers, contacts, links, flags, etc.). Demographics present in the body are merged onto the existing record:
  • firstName/lastName always update the name.
  • gender, dob, and address update only when provided.
  • email and phone_number replace their respective telecom entries while preserving other channels (e.g. fax).
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.

Path Parameters

string
required
External patient id. Must match the id in the request body.

Request Body

string
required
External patient id (must match the path parameter).
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 404 when no patient matches the external id.

Authorizations

Authorization
string
header
required

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

Path Parameters

patientId
string
required

External patient id (must match body id)

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 updated successfully

success
boolean
message
string
data
object