The Context Engine Studio is now open source.  View on GitHub →
Clinia
Ingest

List ingestions

This patient's submissions, newest arrival last. status is derived per submission from the work it started, so filtering on it is also how to ask what is outstanding: ?status=pending,processing returns everything still to settle, and its meta.total is the count — zero means this patient's data has settled.

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 { data, error } = await client.ingest.listIngestions("<patient-id>");

// Print the response
console.log(data ?? error);

The environment variables are set in Install and authenticate, for JavaScript or Python.

API reference

GET /v1/patients/{patientId}/ingestions documents the parameters, the request body and the responses.

On this page