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

Browse VFS

Lists the contents of a VFS path. Returns directory children with name, type, and preview, or file content when the path resolves to a file. Paths are relative to the patient root (e.g. /conditions/active); the patient is identified by the patientId route param. Defaults to the root when path is omitted.

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.vfs.browseVfs("<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}/vfs documents the parameters, the request body and the responses.

On this page