[ 'enabled' => getenv('HIS_ENABLED') === 'true' ?: true, 'system_type' => 'HOSxP', // HOSxP | HomC | Meditech | GenericREST 'api_base_url' => getenv('HIS_API_URL') ?: 'https://his.hospital.local/api/v1', 'api_key' => getenv('HIS_API_KEY') ?: 'demo_his_api_secret_token_2026', 'timeout_seconds' => 5, 'auto_sync_on_register' => true, ], // HL7 / FHIR (Fast Healthcare Interoperability Resources) 'fhir' => [ 'enabled' => getenv('FHIR_ENABLED') === 'true' ?: true, 'server_url' => getenv('FHIR_SERVER_URL') ?: 'https://fhir.hospital.local/r4', 'facility_id' => 'THAI_MED_CENTER_01', 'resource_types' => [ 'Patient' => 'Patient', 'Encounter' => 'Encounter', 'Observation' => 'Observation', // สำหรับส่งค่า VAS Pain Score และ ROM 'Procedure' => 'Procedure', // สำหรับส่งหัตถการนวดไทย ], ], // Smart Card Reader (Thai National ID Card via APDU / WebUSB / PC/SC Agent) 'smartcard' => [ 'enabled' => true, 'agent_port' => 8443, // Local Agent Port 'auto_fill_form' => true, 'read_photo' => true, ], // ESC/POS Thermal Printer (80mm / 58mm Receipt & Queue Ticket) 'printer' => [ 'enabled' => true, 'driver' => 'network', // network | usb | browser_print 'default_ip' => '192.168.1.200', 'default_port' => 9100, 'paper_width' => '80mm', 'auto_cut' => true, 'print_logo' => true, ], // Notification Gateways (LINE OA, SMS, Telegram, Email) 'notification' => [ 'line_notify' => [ 'enabled' => true, 'token' => getenv('LINE_NOTIFY_TOKEN') ?: 'DEMO_LINE_NOTIFY_TOKEN_XXXXX', ], 'line_oa' => [ 'enabled' => true, 'channel_access_token' => getenv('LINE_OA_TOKEN') ?: '', 'channel_secret' => getenv('LINE_OA_SECRET') ?: '', ], 'sms' => [ 'enabled' => false, 'gateway_url' => 'https://api.sms-gateway.local/send', 'sender_id' => 'TTMQMS', ], ], // Calendar Integration (Google Calendar / Outlook ICS API) 'calendar' => [ 'google_enabled' => true, 'outlook_enabled' => true, 'ics_reminder_mins' => 120, // แจ้งเตือนล่วงหน้า 2 ชั่วโมง ], ];