Skip to main content

Configuration

Environment variables

VariableDefaultDescription
PORT3333HTTP server port.
DB_PATH./test/resources/deepphe.sqlite3SQLite database path.
TEST_PATIENT_IDnonePatient ID used by tests and local examples.

Database path precedence

At startup, the server resolves the database path in this order:

  1. --db <path>, --db=<path>, or -d <path>
  2. DB_PATH
  3. The default in src/config/database.js

Packaged binaries require an explicit database path with --db or DB_PATH.

SQLite file store

The database uses a key-value style files table:

ColumnPurpose
filenameDocument or patient key.
contentJSON payload, either raw or compressed.
encodingPayload encoding, such as raw or zstd.

Common key shapes include {patientId}, {patientId}_D_{documentId}.json, {patientId}_Cancers.json, and {patientId}_Concepts.json.