Pre-select the patient visit when opening notes from a row.
Deploy Ladill Care / deploy (push) Has been cancelled

Per-patient Notes links pass visit id so the nursing note form opens ready to write.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 18:26:46 +00:00
co-authored by Cursor
parent 1678b05017
commit df3e79d595
+6 -1
View File
@@ -202,7 +202,7 @@ class CareMarAndNursingTest extends TestCase
'shift_code' => 'day',
'body' => 'Vitals stable; pain controlled.',
])
->assertRedirect(route('care.care-units.notes', $this->unit));
->assertRedirect(route('care.care-units.notes', [$this->unit, 'visit' => $this->visit->id]));
$this->assertDatabaseHas('care_nursing_notes', [
'visit_id' => $this->visit->id,
@@ -233,6 +233,11 @@ class CareMarAndNursingTest extends TestCase
->assertOk()
->assertSee('Vitals stable');
$this->actingAs($this->owner)
->get(route('care.care-units.notes', [$this->unit, 'visit' => $this->visit->id]))
->assertOk()
->assertSee('value="'.$this->visit->id.'" selected', false);
$this->actingAs($this->owner)
->get(route('care.care-units.handovers', $this->unit))
->assertOk()