Patients
Delete patient
Removes a patient and all associated entities, events, and relationships from the registry. Irreversible.
Usage
import { ContextEngineClient } from "@clinia/context-engine-js";
// Initialize the client
const client = new ContextEngineClient({
baseUrl: process.env.CLINIA_WORKSPACE,
auth: {
clientId: process.env.CLINIA_CLIENT_ID,
clientSecret: process.env.CLINIA_CLIENT_SECRET,
},
});
// Call the API
const { error } = await client.patients.deletePatient("<patient-id>");
// Print the response
console.log(error);The environment variables are set in Install and authenticate, for JavaScript or Python.
API reference
DELETE /v1/patients/{patientId} documents the parameters, the request body and the responses.