Add nursing assessment packs, ward board, and nurse performance KPIs.
Deploy Ladill Care / deploy (push) Successful in 55s

Seeds NEWS2/Braden/Morse/pain packs with visit vitals and a unit dashboard for MAR, assessments, notes, and handover activity.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 10:32:52 +00:00
co-authored by Cursor
parent cb6e59e5ed
commit 9eb6c21828
18 changed files with 1511 additions and 16 deletions
@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Visit-scoped vitals for ward nursing (no consultation required).
*/
return new class extends Migration
{
public function up(): void
{
Schema::create('care_visit_vitals', function (Blueprint $table) {
$table->id();
$table->string('owner_ref')->index();
$table->foreignId('organization_id')->constrained('care_organizations')->cascadeOnDelete();
$table->foreignId('visit_id')->constrained('care_visits')->cascadeOnDelete();
$table->foreignId('patient_id')->constrained('care_patients')->cascadeOnDelete();
$table->foreignId('care_unit_id')->nullable()->constrained('care_care_units')->nullOnDelete();
$table->unsignedSmallInteger('bp_systolic')->nullable();
$table->unsignedSmallInteger('bp_diastolic')->nullable();
$table->unsignedSmallInteger('pulse')->nullable();
$table->decimal('temperature', 4, 1)->nullable();
$table->unsignedSmallInteger('spo2')->nullable();
$table->unsignedSmallInteger('respiratory_rate')->nullable();
$table->string('recorded_by')->nullable();
$table->timestamp('recorded_at');
$table->text('notes')->nullable();
$table->timestamps();
$table->index(['visit_id', 'recorded_at']);
$table->index(['care_unit_id', 'recorded_at']);
});
}
public function down(): void
{
Schema::dropIfExists('care_visit_vitals');
}
};