Skip to main content
Create patient records using IDs from your EHR, then link their consultations. Patients belong to the grant that created them. Scopes: scribe:read for reads; scribe:write for changes.

Create or find a patient

POST /patients
Example 201 response:
Save id as CORTEXA_PATIENT_ID. Reusing an external ID returns the existing patient unchanged. Use PATCH to update their details.

Read and update

The external ID is assigned at creation and is not an editable field. See pagination to walk through larger patient lists.

Attach existing sessions

You can supply patient_id when creating a session, or link sessions afterward. All IDs in a request must belong to the same grant.
The response contains patient_id, session_ids, and linked: true. To unlink, send the same body with DELETE to the same path. The response has linked: false. A batch accepts 1–100 session IDs and validates all resources before applying changes. Linking changes the session’s patient association; unlinking from a patient it is not attached to returns 409 PATIENT_LINK_MISMATCH.

Delete a patient

DELETE /patients/{patient_id} returns deleted_patient_ids. To delete a batch, use DELETE /patients:batch-delete with:
A batch accepts 1–100 IDs. Deletion detaches the patient’s sessions and keeps them available. The deleted patient’s external ID remains reserved.

Common problems

Next, create the patient’s consultation session.