fmt
This commit is contained in:
parent
24163fb2c5
commit
d9f104f5b3
@ -292,22 +292,6 @@ public function registerMediaCollections(): void
|
|||||||
->useFallbackPath(public_path(self::FALLBACK_IMAGE), 'tn');
|
->useFallbackPath(public_path(self::FALLBACK_IMAGE), 'tn');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function casts(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'is_locked' => 'boolean',
|
|
||||||
'is_archived' => 'boolean',
|
|
||||||
'study_status' => StudyLevelStatus::class,
|
|
||||||
'report_status' => ReportStatus::class,
|
|
||||||
'priority' => Priority::class,
|
|
||||||
'received_at' => 'immutable_datetime',
|
|
||||||
'reported_at' => 'immutable_datetime',
|
|
||||||
'assigned_at' => 'immutable_datetime',
|
|
||||||
'study_date' => 'immutable_datetime',
|
|
||||||
'patient_birthdate' => 'immutable_date',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getGenderIconAttribute(): string
|
public function getGenderIconAttribute(): string
|
||||||
{
|
{
|
||||||
return match (strtolower($this->patient_sex ?? '')) {
|
return match (strtolower($this->patient_sex ?? '')) {
|
||||||
@ -325,4 +309,20 @@ public function getGenderNameAttribute(): string
|
|||||||
default => 'Other',
|
default => 'Other',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function casts(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'is_locked' => 'boolean',
|
||||||
|
'is_archived' => 'boolean',
|
||||||
|
'study_status' => StudyLevelStatus::class,
|
||||||
|
'report_status' => ReportStatus::class,
|
||||||
|
'priority' => Priority::class,
|
||||||
|
'received_at' => 'immutable_datetime',
|
||||||
|
'reported_at' => 'immutable_datetime',
|
||||||
|
'assigned_at' => 'immutable_datetime',
|
||||||
|
'study_date' => 'immutable_datetime',
|
||||||
|
'patient_birthdate' => 'immutable_date',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user