<?php

declare(strict_types=1);

namespace Kylin\Medical\Enums;

/**
 * 电子病历状态
 */
enum MedicalRecordStatus: string
{
    case DRAFT = 'draft';           // 草稿
    case SIGNED = 'signed';         // 已签名
    case ARCHIVED = 'archived';     // 已归档

    public function label(): string
    {
        return match ($this) {
            self::DRAFT => '草稿',
            self::SIGNED => '已签名',
            self::ARCHIVED => '已归档',
        };
    }
}
