<?php

return [
    /*
    |----------------------------------------------------------------------
    | 智慧养老看护系统配置
    |----------------------------------------------------------------------
    */

    // 系统名称
    'name' => env('APP_NAME', '智慧养老看护系统'),

    // 紧急呼叫响应超时（分钟）
    'emergency_response_timeout' => env('EMERGENCY_RESPONSE_TIMEOUT', 5),

    // 用药提醒提前量（分钟）
    'medication_reminder_advance' => env('MEDICATION_REMINDER_ADVANCE', 5),

    // 漏服判定超时（分钟）
    'medication_missed_timeout' => env('MEDICATION_MISSED_TIMEOUT', 30),

    // 健康数据异常阈值
    'health_thresholds' => [
        'systolic' => ['low' => 90, 'warning_low' => 100, 'warning_high' => 160, 'high' => 180],
        'diastolic' => ['low' => 50, 'warning_low' => 60, 'warning_high' => 100, 'high' => 110],
        'heart_rate' => ['low' => 40, 'warning_low' => 50, 'warning_high' => 120, 'high' => 150],
        'blood_oxygen' => ['critical' => 85, 'warning' => 90],
        'temperature' => ['low' => 35, 'warning_low' => 36, 'warning_high' => 38.5, 'high' => 40],
    ],

    // 护理等级评估标准 (GB/T 42195)
    'care_level_thresholds' => [
        0 => ['max' => 3, 'label' => '能力完好'],
        1 => ['max' => 8, 'label' => '轻度失能'],
        2 => ['max' => 18, 'label' => '中度失能'],
        3 => ['max' => 130, 'label' => '重度失能'],
    ],

    // 评估周期（月）
    'assessment_cycle' => env('ASSESSMENT_CYCLE', 6),

    // 设备心跳超时（分钟）
    'device_heartbeat_timeout' => env('DEVICE_HEARTBEAT_TIMEOUT', 30),
];
