wip
This commit is contained in:
parent
7784f33fea
commit
280a795350
@ -12,7 +12,6 @@
|
||||
use App\Models\User;
|
||||
use App\Services\AuditTrail\Activity;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class StudyAssignmentController extends HashidControllerBase
|
||||
{
|
||||
|
43
app/Services/ACL/AccessControl.php
Normal file
43
app/Services/ACL/AccessControl.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
enum WorklistColumn: string
|
||||
{
|
||||
case PatientName = 'patient_name';
|
||||
case PatientId = 'patient_id';
|
||||
case StudyDate = 'study_date';
|
||||
case StudyTime = 'study_time';
|
||||
case Modality = 'modality';
|
||||
case StudyDescription = 'study_description';
|
||||
case AccessionNumber = 'accession_number';
|
||||
case ReferringPhysician = 'referring_physician';
|
||||
case Status = 'status';
|
||||
case Priority = 'priority';
|
||||
case CreatedAt = 'created_at';
|
||||
case UpdatedAt = 'updated_at';
|
||||
}
|
||||
|
||||
final readonly class AccessControl
|
||||
{
|
||||
public static function worklistColumns(?int $user_id): array
|
||||
{
|
||||
$user = $user_id !== null ? User::findOrFail($user_id) : auth()->user();
|
||||
$columns = [
|
||||
'patient_name',
|
||||
'patient_id',
|
||||
'study_date',
|
||||
'study_time',
|
||||
'modality',
|
||||
'study_description',
|
||||
'accession_number',
|
||||
'referring_physician',
|
||||
'status',
|
||||
'priority',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user