Pre-select the patient visit when opening notes from a row.
Deploy Ladill Care / deploy (push) Has been cancelled
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:
@@ -202,7 +202,7 @@ class CareMarAndNursingTest extends TestCase
|
|||||||
'shift_code' => 'day',
|
'shift_code' => 'day',
|
||||||
'body' => 'Vitals stable; pain controlled.',
|
'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', [
|
$this->assertDatabaseHas('care_nursing_notes', [
|
||||||
'visit_id' => $this->visit->id,
|
'visit_id' => $this->visit->id,
|
||||||
@@ -233,6 +233,11 @@ class CareMarAndNursingTest extends TestCase
|
|||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('Vitals stable');
|
->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)
|
$this->actingAs($this->owner)
|
||||||
->get(route('care.care-units.handovers', $this->unit))
|
->get(route('care.care-units.handovers', $this->unit))
|
||||||
->assertOk()
|
->assertOk()
|
||||||
|
|||||||
Reference in New Issue
Block a user