scribe:read for reads; scribe:write for changes.
Create or find a patient
POST /patients
Example
201 response:
id as CORTEXA_PATIENT_ID. Reusing an external ID returns the existing
patient unchanged. Use PATCH to update their details.
Read and update
Attach existing sessions
You can supplypatient_id when creating a session, or link sessions
afterward. All IDs in a request must belong to the same grant.
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:
Common problems
Next, create the patient’s consultation session.