Deploy Ladill Care / deploy (push) Failing after 13s
Healthcare management app: patients, appointments, consultations, lab, pharmacy inventory, billing, and reports at care.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
614 B
PHP
29 lines
614 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToOwner;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Diagnosis extends Model
|
|
{
|
|
use BelongsToOwner;
|
|
|
|
protected $table = 'care_diagnoses';
|
|
|
|
protected $fillable = [
|
|
'owner_ref', 'consultation_id', 'code', 'description', 'is_primary', 'notes',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['is_primary' => 'boolean'];
|
|
}
|
|
|
|
public function consultation(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Consultation::class, 'consultation_id');
|
|
}
|
|
}
|