Skip to content

User Guide

Copilot edited this page Nov 23, 2026 · 4 revisions

Settings and behavior for the Epikrise desktop app. For installation, see Installers. For release history, see the CHANGELOG.

Software updates

The standard application build reports updates as unavailable. The separate src-tauri/tauri.release.conf.json overlay enables updater code for direct release builds. In an updater-enabled build, users must opt in under General settings and manually request each check; there are no background or startup checks. Administrator policy can prohibit opt-in, checks, and installs. Installing an update requires a separate confirmation and is blocked while a case or generation is active. Update requests use the fixed GitHub Releases endpoint and do not send case or template content.

Tauri updater artifacts require their own signature. This signature verifies the update payload; it is not Authenticode, Apple Developer ID signing, notarization, or Linux package signing. See Releasing for release configuration details.

On Linux, only the AppImage supports direct-release updates. Debian (.deb) and RPM packages are built without the updater, so they report updates as unavailable. Package-managed installs are owned by dpkg or rpm; replacing their files in place would bypass the package database. Update those installs through the system package manager or a future package repository.

Tauri must be able to find cargo on PATH. If the build fails while running cargo metadata with “No such file or directory”, see the local Rust setup instructions.

Templates

No clinical templates ship with Epikrise. The formatting rules used in a hospital encode institutional know-how and stay with the institution, so the app ships only a minimal generic starter template.

On first run you can import your own template as an .epitpl file or start from the generic template. .epitpl files and the app's templates.toml library use versioned TOML; template objects cross the Rust/UI boundary as JSON. A template defines the system prompt, its variables, toggleable sections and output rules. The app validates and previews a template before saving it. Older JSON .epitpl files and an existing templates.json library are migrated when read.

To convert a plain-text prompt locally, provide section labels explicitly:

  pnpm template:convert templates/prompt.txt templates/imported.epitpl \
  --name "Institutional template" --locale de-CH \
  --section diagnoses=Diagnosen --section findings=Befunde

The converter preserves the prompt text, writes TOML, and creates enabled sections from the labels you provide. It refuses to overwrite an existing output unless --force is supplied. Specialty/category examples are not required defaults; the converter does not infer sections or template variables, and prompts containing MiniJinja expressions must be converted manually. Both templates/ and .epitpl files are ignored by Git.

Provider generation settings

The provider settings include an output-token limit, defaulting to 8,192 tokens and configurable from 1 to 1,000,000. This is a ceiling, not a promise that a provider will return that many tokens; model and provider limits may be lower. Reasoning tokens can use part of this same output budget, depending on the provider, so raise the limit or choose a lower reasoning effort if the report is cut short.

Reasoning effort can be left at the provider default or set to none, minimal, low, medium, high, extra high, or maximum. These are provider hints: supported values and their effect vary by provider and model, and unsupported settings may be ignored or rejected.

Interface language

The interface defaults to German (Switzerland) and also supports English, French, Italian, and Spanish. On first launch, Epikrise uses the operating-system language when it is supported; otherwise it uses the default. Choose a language in General settings to save an override on this device. In General settings, the Theme option chooses Light, Dark, or Auto; Auto, the default, follows the operating-system appearance. The choice applies immediately and is saved on this device. Template names, field labels and clinical content continue to use the locale defined by each template.

Interface messages live in locales/<locale>/app.ftl. Keep message IDs aligned between shipped catalogs and run pnpm test:i18n after editing them. During development, the settings dialog also offers a temporary pseudo-localized preview to expose untranslated or layout-sensitive text.

Safety and scope

Epikrise sends material and a template to the selected language model to create a draft. The model may interpret findings or suggest diagnoses, and its output may be incomplete or incorrect. Epikrise does not independently validate clinical correctness and makes no claim of conformity with MDR, IVDR or any comparable regulation. Output cannot be copied until you explicitly confirm that you have reviewed it; that confirmation is reset when the output or case changes.

Material you ingest — especially fetched web pages — is untrusted input that may contain text crafted to influence the model. Epikrise labels and delimits every block to mitigate this, but the mitigation is not a guarantee. Review the output.

Administrator Egress Policy

IT can install a machine-wide policy.toml to restrict providers and URL ingestion. The app reads it once at startup; the UI cannot loosen it. A malformed policy prevents startup rather than silently disabling the restrictions. Supported locations are /etc/epikrise/policy.toml on Linux, /Library/Application Support/Epikrise/policy.toml on macOS, and %ProgramData%\Epikrise\policy.toml on Windows. The file and containing directory should be administrator-owned and not writable by standard users. Epikrise warns when it cannot verify that protection. On Linux and macOS, use a root-owned directory (mode 0755) and policy file (mode 0644). On Windows, grant write/modify access only to Administrators and SYSTEM; standard users should have read access only.

Start from policy.example.toml. allowed_providers uses adapter IDs (open_ai, anthropic, gemini, ollama, open_ai_compatible, open_router, xai, groq); omitted means all providers. local_only = true additionally restricts endpoints to localhost or a loopback IP, regardless of the allowlist. allow_url_ingestion = false disables URL extraction. In updater-enabled builds, allow_updater = false prevents opting in, checking, or installing updates; standard builds report the updater as unavailable. Set allow_template_import, allow_template_export, allow_template_edit, allow_template_creation, or allow_template_deletion to false to independently block template imports, exports, edits, direct creation, or deletion from settings. These restrictions are enforced by the backend as well as the settings UI.

allowed_models optionally lists exact, case-sensitive model identifiers scoped by provider, for example [{ adapter = "ollama", model = "llama3.2" }]; omitting it allows every model under the provider policy. max_output_tokens sets a hard ceiling on generated output tokens. max_reasoning_effort caps the selected reasoning effort (none, minimal, low, medium, high, x_high, or max); a provider-default selection is also capped. fixed_endpoint forces all provider operations to use one validated HTTP(S) endpoint, overriding the endpoint entered in settings. allow_credential_management = false prevents adding or removing credentials from the OS keychain. The review gate remains mandatory even if a policy sets require_review_gate = false.

Remote egress authorization is scoped to the case ID, provider adapter, and endpoint; confirming one remote endpoint does not authorize other endpoints in the same case.

The webview CSP restricts network connections to Tauri IPC. The app does not configure clinical-content logging; debug representations of case, extraction, image and chat payloads redact their contents. Production devtools and the context menu are disabled.

Clone this wiki locally