Files
ladill-care/app/Models/InvestigationResultValue.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

34 lines
837 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class InvestigationResultValue extends Model
{
use BelongsToOwner;
protected $table = 'care_investigation_result_values';
protected $fillable = [
'owner_ref', 'investigation_result_id', 'parameter', 'value', 'unit',
'reference_low', 'reference_high', 'reference_text', 'is_abnormal',
];
protected function casts(): array
{
return [
'reference_low' => 'decimal:4',
'reference_high' => 'decimal:4',
'is_abnormal' => 'boolean',
];
}
public function result(): BelongsTo
{
return $this->belongsTo(InvestigationResult::class, 'investigation_result_id');
}
}