<?php

return [
    'name' => 'MedPortal',

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

    /*
    |--------------------------------------------------------------------------
    | Record release defaults
    |--------------------------------------------------------------------------
    | Per the patient_portal spec: "clinical notes are shown only AFTER provider
    | release". Everything else (labs, imaging, prescriptions, vitals) is visible
    | by default once the patient portal is linked. RecordAccessService honours
    | these defaults, overridable per-patient per-type via mportal_record_releases.
    */
    'release_defaults' => [
        'clinical_note'  => false, // notes: released only after provider action
        'lab_result'     => true,
        'imaging_report' => true,
        'prescription'   => true,
        'vitals'         => true,
        'full'           => false, // "release everything" master toggle, opt-in
    ],

    /*
    |--------------------------------------------------------------------------
    | Telemedicine (STUB — backlog)
    |--------------------------------------------------------------------------
    | The "generate link" action stores a placeholder join_url only. Real video
    | integration (Zoom/Meet/Teams/built-in WebRTC) is BACKLOG — see README §Stubs.
    */
    'telemedicine' => [
        'providers'         => ['zoom', 'meet', 'teams', 'builtin', 'other'],
        'placeholder_base'  => 'https://telemedicine.example/join/', // stub only
    ],

    /*
    |--------------------------------------------------------------------------
    | Online payment (STUB — backlog)
    |--------------------------------------------------------------------------
    | Payment intents are recorded and can be marked paid MANUALLY by staff. No
    | real gateway is wired — the ERP invoice remains the source of truth. Real
    | gateway integration (Stripe/PayTabs/…) is BACKLOG — see README §Stubs.
    */
    'payment' => [
        'methods'  => ['cash', 'card', 'online', 'insurance', 'other'],
    ],
];
