Files
ladill-care/app/Models/DentalTooth.php
T
isaaccladandCursor 0edd653187
Deploy Ladill Care / deploy (push) Failing after 36s
Ship commercial Dentistry suite with odontogram and treatment plans.
Replace placeholder clinical forms with patient-level FDI charting, multi-visit plans, procedure-to-bill linking, imaging, reports, and demo seed data.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 16:33:34 +00:00

37 lines
790 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class DentalTooth extends Model
{
public const STATUS_PRESENT = 'present';
public const STATUS_MISSING = 'missing';
public const STATUS_EXTRACTED = 'extracted';
public const STATUS_IMPLANT = 'implant';
protected $table = 'care_dental_teeth';
protected $fillable = [
'dental_chart_id', 'tooth_code', 'status', 'surfaces', 'conditions', 'notes',
];
protected function casts(): array
{
return [
'surfaces' => 'array',
'conditions' => 'array',
];
}
public function chart(): BelongsTo
{
return $this->belongsTo(DentalChart::class, 'dental_chart_id');
}
}