40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Domain\Study;
|
|
|
|
enum WorkflowLevel: int
|
|
{
|
|
case Received = 10;
|
|
case Unassigned = 20;
|
|
case Assigned = 30;
|
|
case Dictated = 40;
|
|
case Transcribed = 50;
|
|
case Repetition = 60;
|
|
case ReadInProgress = 70;
|
|
case DraftAvailable = 80;
|
|
case Finalized = 90;
|
|
case UnderReview = 100;
|
|
case Published = 110;
|
|
case Archived = 200;
|
|
case Cancelled = 240;
|
|
|
|
public function description(): string
|
|
{
|
|
return match ($this) {
|
|
self::Received => 'Study Received',
|
|
self::Unassigned => 'Unassigned',
|
|
self::Assigned => 'Assigned',
|
|
self::Dictated => 'Dictated',
|
|
self::Transcribed => 'Transcribed',
|
|
self::Repetition => 'Repetition',
|
|
self::ReadInProgress => 'Read In Progress',
|
|
self::DraftAvailable => 'Draft interpretation available',
|
|
self::Finalized => 'Repoort finalized',
|
|
self::UnderReview => 'Under Review',
|
|
self::Published => 'Report published',
|
|
self::Archived => 'Study archived',
|
|
self::Cancelled => 'Cancelled',
|
|
};
|
|
}
|
|
}
|