<?php

declare(strict_types=1);

namespace Kylin\Medical\Enums;

/**
 * 问诊状态
 */
enum ConsultationStatus: string
{
    case WAITING = 'waiting';           // 等待接诊
    case IN_PROGRESS = 'in_progress';   // 问诊中
    case ENDED = 'ended';               // 已结束
    case TRANSFERRED = 'transferred';   // 已转诊

    public function label(): string
    {
        return match ($this) {
            self::WAITING => '等待接诊',
            self::IN_PROGRESS => '问诊中',
            self::ENDED => '已结束',
            self::TRANSFERRED => '已转诊',
        };
    }
}
