Files
ladill-care/app/Models/NursingNote.php
T
isaaccladandCursor cb6e59e5ed
Deploy Ladill Care / deploy (push) Successful in 52s
Add ward MAR board plus nursing notes and SBAR handovers.
Nurses can chart given/held/refused doses from active prescriptions on placed patients, and document chronologic notes and unit shift handovers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 10:15:58 +00:00

51 lines
1.0 KiB
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class NursingNote extends Model
{
use BelongsToOwner, SoftDeletes;
protected $table = 'care_nursing_notes';
protected $fillable = [
'owner_ref',
'organization_id',
'visit_id',
'patient_id',
'care_unit_id',
'note_type',
'shift_code',
'body',
'recorded_by',
'recorded_at',
];
protected function casts(): array
{
return [
'recorded_at' => 'datetime',
];
}
public function visit(): BelongsTo
{
return $this->belongsTo(Visit::class, 'visit_id');
}
public function patient(): BelongsTo
{
return $this->belongsTo(Patient::class, 'patient_id');
}
public function careUnit(): BelongsTo
{
return $this->belongsTo(CareUnit::class, 'care_unit_id');
}
}