Open the matching workspace tab after specialty stage advance.
Deploy Ladill Care / deploy (push) Successful in 45s

Stage Move CTAs and pills previously always redirected to overview; map each stage to its tab via shell config so examination lands on exam, etc.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-19 16:21:43 +00:00
co-authored by Cursor
parent be7bd8f433
commit 2f724daf49
11 changed files with 111 additions and 8 deletions
+37
View File
@@ -34,6 +34,12 @@ return [
'billing' => 'Billing',
'documents' => 'Documents',
],
// Maps visit specialty_stage → workspace ?tab= after Move / stage pill POST.
'stage_tabs' => [
'waiting' => 'overview',
'in_care' => 'clinical_notes',
'completed' => 'overview',
],
'actions' => [
'call_next' => 'Call next',
'start' => 'Start',
@@ -73,6 +79,13 @@ return [
'billing' => 'Billing',
'documents' => 'Documents',
],
'stage_tabs' => [
'arrival' => 'triage',
'resus' => 'triage',
'treatment' => 'clinical_notes',
'observation' => 'observation',
'disposition' => 'disposition',
],
],
'blood_bank' => [
'stages' => [
@@ -99,6 +112,13 @@ return [
'billing' => 'Billing',
'documents' => 'Documents',
],
'stage_tabs' => [
'request' => 'requests',
'crossmatch' => 'requests',
'issue' => 'issue',
'transfusion' => 'transfusion',
'completed' => 'overview',
],
],
'dentistry' => [
'stages' => [
@@ -138,6 +158,13 @@ return [
'billing' => 'Billing',
'documents' => 'Documents',
],
'stage_tabs' => [
'waiting' => 'overview',
'chair' => 'odontogram',
'procedure' => 'treat',
'recovery' => 'notes',
'completed' => 'overview',
],
],
'ophthalmology' => [
'stages' => [
@@ -175,6 +202,16 @@ return [
'billing' => 'Billing',
'documents' => 'Documents',
],
'stage_tabs' => [
'check_in' => 'overview',
'history' => 'overview',
'refraction' => 'refraction',
'exam' => 'exam',
'investigation' => 'investigations',
'plan' => 'plan',
'treatment' => 'treat',
'completed' => 'overview',
],
],
'physiotherapy' => [
'stages' => [