-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) O3-4223: Allow adding different order types in the order basket #2109
base: main
Are you sure you want to change the base?
Conversation
Size Change: -547 kB (-3.31%) Total Size: 16 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial remarks. Architecture-wise, requiring users to list all orderables in configuration is a step backwards. This should be done through concept sets so that it can be maintained as metadata.
packages/esm-patient-orders-app/src/components/test-order.component.tsx
Outdated
Show resolved
Hide resolved
@@ -119,6 +120,15 @@ const OrderBasket: React.FC<DefaultPatientWorkspaceProps> = ({ | |||
})} | |||
name="order-basket-slot" | |||
/> | |||
{config?.orderTypes?.length > 0 && | |||
config?.orderTypes?.map((orderType) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config?.orderTypes?.map((orderType) => ( | |
config.orderTypes.map((orderType) => ( |
packages/esm-patient-orders-app/src/order-basket/order-types/generic-order-panel.scss
Outdated
Show resolved
Hide resolved
packages/esm-patient-orders-app/src/order-basket/order-types/generic-order-panel.scss
Outdated
Show resolved
Hide resolved
packages/esm-patient-orders-app/src/order-basket/order-types/generic-order-type.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-tests-app/src/test-orders/add-test-order/test-order-form.component.tsx
Outdated
Show resolved
Hide resolved
I also want to be clear that we cannot merge this in if it breaks the existing lab order functionality in any way, so be careful that things still work there with no code or configuration changes for implementers. Since this is widely-used in production, we have less freedom to break things "just because". |
01b63e0
to
2097c05
Compare
c9c4195
to
bc1e953
Compare
bc1e953
to
e99c807
Compare
Requirements
Summary
This PR adds new configuration points to allow placing orders for different order types ('order', 'testorder').
Screenshots
None
Related Issue
https://openmrs.atlassian.net/browse/O3-4223
Other