Improve specialty workspace actions and Call next handoff.
Deploy Ladill Care / deploy (push) Successful in 40s
Deploy Ladill Care / deploy (push) Successful in 40s
Move timeline into a workspace tab, surface Complete consultation and Call again in Actions, and make Call next end the current encounter then open the next called patient. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -119,8 +119,27 @@ class SpecialtyShellService
|
||||
public function workspaceTabs(string $moduleKey): array
|
||||
{
|
||||
$tabs = $this->definition($moduleKey)['workspace_tabs'] ?? [];
|
||||
if (! is_array($tabs)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return is_array($tabs) ? $tabs : [];
|
||||
if (array_key_exists('timeline', $tabs)) {
|
||||
return $tabs;
|
||||
}
|
||||
|
||||
$merged = [];
|
||||
foreach ($tabs as $key => $label) {
|
||||
$merged[$key] = $label;
|
||||
if ($key === 'overview') {
|
||||
$merged['timeline'] = 'Timeline';
|
||||
}
|
||||
}
|
||||
|
||||
if (! array_key_exists('timeline', $merged)) {
|
||||
$merged['timeline'] = 'Timeline';
|
||||
}
|
||||
|
||||
return $merged;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user