<?php

return [
    'name' => 'MedSurgery',

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

    /*
    |--------------------------------------------------------------------------
    | WHO Surgical Safety Checklist — default item sets
    |--------------------------------------------------------------------------
    | The three phases seeded on case creation (SurgeryService::CHECKLIST_ITEMS is
    | the source of truth; kept mirrored here so a host can review them without
    | reading code). Each phase is a flat list of item labels; the stored row is
    | [{label, checked:false, by:null}]. Sign In precedes anaesthesia, Time Out
    | precedes incision (mandatory before in_or), Sign Out precedes leaving the OR.
    */
    'checklist_defaults' => [
        'sign_in' => [
            'Patient confirmed identity, site, procedure, consent',
            'Site marked / not applicable',
            'Anaesthesia safety check completed',
            'Pulse oximeter on patient and functioning',
            'Known allergy?',
            'Difficult airway / aspiration risk?',
            'Risk of >500ml blood loss (7ml/kg in children)?',
        ],
        'time_out' => [
            'All team members introduced by name and role',
            'Surgeon, anaesthetist and nurse confirm patient, site, procedure',
            'Anticipated critical events reviewed (surgeon)',
            'Anticipated critical events reviewed (anaesthesia)',
            'Anticipated critical events reviewed (nursing)',
            'Antibiotic prophylaxis given within last 60 minutes?',
            'Essential imaging displayed?',
        ],
        'sign_out' => [
            'Name of procedure recorded',
            'Instrument, sponge and needle counts correct',
            'Specimens labelled (incl. patient name)',
            'Equipment problems to be addressed?',
            'Key concerns for recovery and management reviewed',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | MedOrganization room type used as an operating room
    |--------------------------------------------------------------------------
    | OR rooms are org_rooms rows with this room_type. MedSurgery never creates a
    | parallel rooms table; if none exist the OR board prompts the user to add one
    | in MedOrganization.
    */
    'or_room_type' => 'operating',
];
