Files
ladill-care/app/Models/VitalSign.php
T
isaaccladandCursor 6c9c742ed8
Deploy Ladill Care / deploy (push) Failing after 13s
Initial Ladill Care release.
Healthcare management app: patients, appointments, consultations, lab,
pharmacy inventory, billing, and reports at care.ladill.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 11:36:22 +00:00

36 lines
872 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class VitalSign extends Model
{
use BelongsToOwner;
protected $table = 'care_vital_signs';
protected $fillable = [
'owner_ref', 'consultation_id', 'bp_systolic', 'bp_diastolic', 'pulse',
'temperature', 'weight_kg', 'height_cm', 'spo2', 'respiratory_rate',
'recorded_by', 'recorded_at',
];
protected function casts(): array
{
return [
'temperature' => 'decimal:1',
'weight_kg' => 'decimal:2',
'height_cm' => 'decimal:1',
'recorded_at' => 'datetime',
];
}
public function consultation(): BelongsTo
{
return $this->belongsTo(Consultation::class, 'consultation_id');
}
}