DILIGENT Clinical Copilot supports clinicians during Drug-Induced Liver Injury (DILI) evaluations with a FastAPI backend and an Angular + TypeScript frontend. It collects anamnesis, medications, and lab values, then coordinates clinical analysis with optional RAG support and session persistence for review.
Work in Progress: This project is under active development and may contain incomplete features or defects.
Conceptual flow from case intake through guided DILI analysis, session recording, and review.
Run:
start_on_windows.batThe launcher prepares local runtimes/dependencies and starts backend plus frontend.
Prerequisites:
- Python 3.14+
- Node.js 18+ and npm
Backend:
cd app/server
python -m pip install -e ".[test]"
uvicorn app:app --host 127.0.0.1 --port 8000Frontend:
cd app/client
npm install
npm run build
npm run preview -- --host 127.0.0.1 --port 7861DILIGENT is configuration-first and uses one active runtime file: settings/.env.
Switch to local profile:
copy /Y settings\.env.local.example settings\.envSwitch to local Tauri profile:
copy /Y settings\.env.local.tauri.example settings\.envSee assets/docs/RUNTIME_MODES.md for full runtime and packaging details.
Typical workflow:
- Enter anamnesis, exam notes, medications, and lab values.
- Choose model/provider settings and optionally enable RAG/web search.
- Run analysis and review the generated report.
- Use Data Inspection to explore current knowledge base.
- Explore past sessions to modify and revise them.
Detailed user journeys and feature guidance are documented in assets/docs/USER_MANUAL.md.
Analysis dashboard focused on the report output area and execution controls.
Explore past sessions and improve DILI assessment iteratively.
Runtime source selection and current model configuration summary.
Session inspection table with status, timing, and record actions.
Build Windows desktop artifacts:
release\tauri\build_with_tauri.batGenerated outputs:
release/windows/installersrelease/windows/portable
Run:
setup_and_maintenance.batUse this script for offline maintenance operations (for example DB initialization and cleanup tasks).
From repository root:
app\tests\run_tests.bat modelconfig
app\tests\run_tests.bat modelconfigfullmodelconfig: validated regression slice (model-config unit + focused model-config/app-flow e2e checks, including conflict-feedback handling)modelconfigfull: model-config unit + fulltest_app_flow.py+test_model_config_api.py- If
uv --with pytest-playwrightcannot access package indexes on first use, run the PowerShell runner directly after cache warmup.
- If
Equivalent PowerShell runners:
.\app\tests\run_model_config_regression.ps1
.\app\tests\run_model_config_full_regression.ps1- Database schemas are not upgraded in place across this cleanup; recreate the schema (or local SQLite DB file) when upgrading.
- Runtime startup does not perform SQLite schema salvage/deletion.
- Ollama must support the chat-capable
/api/chatAPI;/api/generatefallback behavior has been removed.
assets/docs/USER_MANUAL.md: end-user operation, journeys, key commands.assets/docs/ARCHITECTURE.md: system boundaries and data flow.assets/docs/BACKGROUND_JOBS.md: job lifecycle and semantics.assets/docs/RUNTIME_MODES.md: runtime profiles and packaging.assets/docs/ERROR_HANDLING.md: backend/frontend error strategy.assets/docs/UI_STANDARDS.md: frontend design standards.
Non-commercial use is covered by the Polyform Noncommercial License 1.0.0; commercial licensing is available separately. See LICENSE.