CI / ruff · pytest (pull_request) Successful in 24s
build_structured() aggregates a PatientCard into scores, flags and adherence (no patient text, no names); build_summary() sends it through the LLM gateway, falls back to a config-driven template, keeps an open acute alert first and caches per (token, provider, data hash). Refs #19 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
config/
Конфигурация клинической логики (ADR-008). Схемы задаёт зона core, значения утверждает психиатр (clinical).
scales/— шкалы: пункты, варианты, градации, флагиrules.yaml— правила алертов и действийmodules.yaml— модули и расписания шкалlexicon/risk_ru.yaml— лексикон рискаtexts/— тексты для пациента (кризисный скрипт, согласие, перефразировки)