Skip to content

Commit

Permalink
Add 'ward-patient' workspace to the order basket related workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 committed Dec 4, 2024
1 parent 9a9fcf0 commit b019a98
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/esm-patient-medications-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"name": "add-drug-order",
"title": "addDrugOrderWorkspaceTitle",
"component": "addDrugOrderWorkspace",
"type": "order"
"type": "order",
"groups": ["ward-patient"]
}
]
}
8 changes: 7 additions & 1 deletion packages/esm-patient-orders-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"slot": "action-menu-patient-chart-items-slot",
"order": 0
},
{
"name": "order-basket-ward-action-menu",
"component": "orderBasketActionMenu",
"slot": "action-menu-ward-patient-items-slot"
},
{
"name": "patient-orders-summary-dashboard",
"component": "ordersDashboardLink",
Expand All @@ -59,7 +64,8 @@
"title": "orderBasketWorkspaceTitle",
"component": "orderBasketWorkspace",
"type": "order",
"canHide": true
"canHide": true,
"groups": ["ward-patient"]
},
{
"name": "patient-orders-form-workspace",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function AddLabOrderWorkspace({
closeWorkspace({
ignoreChanges: true,
onWorkspaceClose: () => launchPatientWorkspace('order-basket'),
closeWorkspaceGroup: false,
});
}, [closeWorkspace]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ export default function LabOrderBasketPanelExtension() {
closeWorkspace('order-basket', {
ignoreChanges: true,
onWorkspaceClose: () => launchPatientWorkspace('add-lab-order'),
closeWorkspaceGroup: false,
});
}, []);

const openEditLabForm = useCallback((order: OrderBasketItem) => {
closeWorkspace('order-basket', {
ignoreChanges: true,
onWorkspaceClose: () => launchPatientWorkspace('add-lab-order', { order }),
closeWorkspaceGroup: false,
});
}, []);

Expand Down
3 changes: 2 additions & 1 deletion packages/esm-patient-tests-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"name": "add-lab-order",
"type": "order",
"component": "addLabOrderWorkspace",
"title": "addLabOrderWorkspaceTitle"
"title": "addLabOrderWorkspaceTitle",
"groups": ["ward-patient"]
}
]
}

0 comments on commit b019a98

Please sign in to comment.