<?php

namespace App\Enums;

enum AreaOfInterest: string
{
    case POLYP_DETECTION = 'polyp_detection';
    case OPTICAL_DIAGNOSIS = 'optical_diagnosis';
    case AI_IN_ENDOSCOPY = 'ai_in_endoscopy';
    case ENDOSCOPIC_RESECTION = 'endoscopic_resection';
    case COLORECTAL_CANCER_SCREENING = 'colorectal_cancer_screening';
    case TRAINING = 'training';

    public function label(): string
    {
        return match ($this) {
            self::POLYP_DETECTION => 'Polyp detection',
            self::OPTICAL_DIAGNOSIS => 'Optical diagnosis',
            self::AI_IN_ENDOSCOPY => 'AI in endoscopy',
            self::ENDOSCOPIC_RESECTION => 'Endoscopic resection (EMR/ESD)',
            self::COLORECTAL_CANCER_SCREENING => 'Colorectal cancer screening',
            self::TRAINING => 'Training',
        };
    }

    public static function options(): array
    {
        return [
            self::POLYP_DETECTION->value => 'Polyp detection',
            self::OPTICAL_DIAGNOSIS->value => 'Optical diagnosis',
            self::AI_IN_ENDOSCOPY->value => 'AI in endoscopy',
            self::ENDOSCOPIC_RESECTION->value => 'Endoscopic resection (EMR/ESD)',
            self::COLORECTAL_CANCER_SCREENING->value => 'Colorectal cancer screening',
            self::TRAINING->value => 'Training',
        ];
    }
}
