<?php

return [
    'name' => 'MedEmergency',

    /*
    | Module version — written into the core `system` table as the
    | `medemergency_version` property by the InstallController (LOWERCASE key,
    | matching ModuleUtil::isModuleInstalled which reads strtolower(name).'_version').
    */
    'module_version' => '1.0.0',

    /*
    |--------------------------------------------------------------------------
    | ER board auto-refresh
    |--------------------------------------------------------------------------
    | Seconds between automatic ER-board polls. Kept in config so a host can tune
    | it without a code edit.
    */
    'board_refresh_seconds' => 30,

    /*
    |--------------------------------------------------------------------------
    | Triage auto-suggest thresholds
    |--------------------------------------------------------------------------
    | Vital thresholds that drive the triage-level auto-suggestion. Editable so a
    | facility can tune its own escalation rules without touching the service.
    */
    'triage_suggest' => [
        'rr_high'   => 30,  // respiratory_rate > 30  → emergent+
        'spo2_low'  => 90,  // spo2 < 90               → emergent+
        'hr_high'   => 130, // heart_rate > 130        → emergent+
        'gcs_low'   => 9,   // gcs_total < 9           → resuscitation
    ],
];
