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>
34 lines
837 B
PHP
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');
|
|
}
|
|
}
|