- Focus screen renders versioned questionnaire items (iq: buttons): section chip, position (adaptive forms without "of N"), recall date, pause / help-now actions, optional skip, sleep-hours input, 0-10 scale anchors, RUS-AUDIT item 2 standard-drink table. - Paused / held-for-review questionnaires get their own screen. - Today: intake and diary tasks, review notice, therapy-day card on days 1/7/14. - Drug card /meds/:ref from data/meds/meds_reference.json (draft built from the Minzdrav guidelines: depression 2024, PTSD 2023) — expected effect, course, side effects, red flags; no doses shown. "Report a side effect" always available (med:side_effects:<ref>). - API: /instruments/catalog, /meds/reference; today gains questionnaire state, reference id, indication and therapy day; demo persona seeds the dashboard dose history. - INTAKE_DEMO=1 (demo clock only) opens the questionnaires on synthetic data without touching the clinical release gate in config/intake_runtime.yaml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Copy to .env. Secrets only here; .env is gitignored.
|
|
|
|
# --- LLM (152-FZ: GigaChat only). mock = offline demo without network (ADR-004)
|
|
LLM_PROVIDER=mock
|
|
GIGACHAT_CREDENTIALS=
|
|
GIGACHAT_SCOPE=GIGACHAT_API_PERS
|
|
GIGACHAT_MODEL=GigaChat
|
|
|
|
# --- Pseudonymisation key: 32+ random bytes, hex. Generate: python -c "import secrets;print(secrets.token_hex(32))"
|
|
PSEUDO_KEY=
|
|
|
|
# --- Databases (docker compose overrides the URLs to point at the postgres service)
|
|
POSTGRES_PASSWORD=postgres
|
|
IDENTITY_DB_PASSWORD=identity_app
|
|
CLINICAL_DB_PASSWORD=clinical_app
|
|
IDENTITY_DB_URL=postgresql+asyncpg://identity_app:identity_app@localhost:5432/identity
|
|
CLINICAL_DB_URL=postgresql+asyncpg://clinical_app:clinical_app@localhost:5432/clinical
|
|
|
|
# --- Telegram: prototype on synthetic data only; prod channel is MAX / Gosuslugi. Empty = bot disabled.
|
|
TG_BOT_TOKEN=
|
|
DOCTOR_NOTIFY_CHAT_ID=
|
|
|
|
# --- Demo virtual clock (ADR-005)
|
|
DEMO_CLOCK=true
|
|
# Questionnaires of the intake (#53) on synthetic data, demo only (needs DEMO_CLOCK). The clinical release gate in
|
|
# config/intake_runtime.yaml stays closed; without a signed routing policy every finished intake goes to review.
|
|
INTAKE_DEMO=false
|
|
TZ=Europe/Moscow
|
|
|
|
# --- Gitea (for Claude Code / team workflow, not used by the app)
|
|
GITEA_URL=https://gitea.24studbank.ru
|
|
GITEA_REPO=MedITron/PTSRaiAgent
|
|
GITEA_USER=
|
|
GITEA_TOKEN=
|