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 17, 2024
1 parent ee59431 commit c7e7b75
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 @@ -35,6 +35,11 @@
"fullWidth": false
}
},
{
"name": "order-basket-ward-action-menu",
"component": "orderBasketActionMenu",
"slot": "action-menu-ward-patient-items-slot"
},
{
"name": "patient-orders-summary-dashboard",
"component": "ordersDashboardLink",
Expand All @@ -61,7 +66,8 @@
"title": "orderBasketWorkspaceTitle",
"component": "orderBasketWorkspace",
"type": "order",
"canHide": true
"canHide": true,
"groups": ["ward-patient"]
},
{
"name": "patient-orders-form-workspace",
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"]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,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 @@ -102,6 +102,7 @@ function LabOrderBasketPanel({ orderTypeUuid, label, icon }: LabOrderBasketPanel
launchPatientWorkspace('add-lab-order', {
orderTypeUuid: orderTypeUuid,
}),
closeWorkspaceGroup: false,
});
}, [orderTypeUuid]);

Expand All @@ -114,6 +115,7 @@ function LabOrderBasketPanel({ orderTypeUuid, label, icon }: LabOrderBasketPanel
order,
orderTypeUuid: orderTypeUuid,
}),
closeWorkspaceGroup: false,
});
},
[orderTypeUuid],
Expand Down

0 comments on commit c7e7b75

Please sign in to comment.