CI / ruff · pytest (pull_request) Successful in 22s
Freeze interfaces between lanes A (bot), B (backend), C (dashboard) so three developers work in parallel without touching each other's files: dialog Event/Reply + engine registry with echo stub, integration protocols with in-memory defaults, MonitoringService with noop stub, /api/v1 schemas with fixture-backed routes, frozen main.py wiring, config/modules.yaml + due_scales(), DAR-5, tzdata, Andrey trajectory, lanes in WORKFLOW, ADR-010. Refs #34 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.9 KiB
YAML
43 lines
1.9 KiB
YAML
# Clinical modules (ADR-001, docs/info/CLINICAL_MODULES.md). Starting values; final ones are approved by the
|
||
# team psychiatrist (#8). Read by the dialog engine (start screening, daily question) and the scheduler (#13).
|
||
#
|
||
# schedule: a scale is due when `every_days` have passed since it was last completed; `from_day`/`until_day`
|
||
# bound the therapy-day window (day 0 = visit where therapy was prescribed).
|
||
|
||
core:
|
||
daily: [mood, med_taken] # every module: mood 0–10 + dose confirmation
|
||
silence_alert_days: 3 # no answer for N days → reach out (silence is a risk signal)
|
||
item9_followup: cssrs_screen # PHQ-9 item 9 >= 1 → C-SSRS → escalation
|
||
|
||
modules:
|
||
veteran:
|
||
title: "Ветераны боевых действий"
|
||
start_scales: [pcptsd5, pcl5, phq9, auditc]
|
||
start_questions: [trauma_exposure, weapon_access]
|
||
daily_question: sleep_nightmares
|
||
schedule:
|
||
- {scale: pcl5, every_days: 14}
|
||
- {scale: phq9, every_days: 14}
|
||
- {scale: dar5, every_days: 14}
|
||
- {scale: auditc, every_days: 30}
|
||
enables_depression_if: {scale: phq9, op: ">=", value: 10}
|
||
|
||
depression:
|
||
title: "Депрессия и суицидальный риск"
|
||
start_scales: [phq9, gad7, cssrs_screen]
|
||
start_questions: []
|
||
daily_question: null
|
||
schedule:
|
||
- {scale: phq9, every_days: 7, until_day: 42} # weekly during the first 4–6 weeks
|
||
- {scale: phq9, every_days: 14, from_day: 43}
|
||
- {scale: cssrs_screen, every_days: 7}
|
||
enhanced_monitoring_under_age: 25 # FDA warning: young adults early in antidepressant therapy
|
||
|
||
family: # optional future direction (epic #40)
|
||
title: "Близкие ветеранов"
|
||
start_scales: [phq4]
|
||
start_questions: [hits]
|
||
daily_question: null
|
||
schedule:
|
||
- {scale: phq4, every_days: 30}
|