Add Prescribe to specialty workspace Actions.
Deploy Ladill Care / deploy (push) Successful in 41s

Reuse the GP consultation prescribe modal, gate with prescriptions.manage, and return to the specialty workspace after create.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-19 17:50:40 +00:00
co-authored by Cursor
parent dfb66369d0
commit b3805023b1
6 changed files with 200 additions and 5 deletions
@@ -829,6 +829,8 @@ class SpecialtyModuleController extends Controller
&& $canManageSpecialty
&& $permissions->can($member, 'blood_bank.manage'));
$canStartConsultation = $canConsult;
// Same ability as GP consultation chart — not consultations.manage alone.
$canPrescribe = $permissions->can($member, 'prescriptions.manage') && $canManageSpecialty;
$canCallNext = $canManageSpecialty;
$canManageClinical = $canManageSpecialty;
$canManageVitals = $canManageSpecialty && (
@@ -1176,6 +1178,7 @@ class SpecialtyModuleController extends Controller
'canConsult' => $canConsult,
'canAdvanceStage' => $canAdvanceStage,
'canStartConsultation' => $canStartConsultation,
'canPrescribe' => $canPrescribe,
'canCallNext' => $canCallNext,
'canManageClinical' => $canManageClinical,
'canManageVitals' => $canManageVitals,