-
Notifications
You must be signed in to change notification settings - Fork 246
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-4136: Move lab-results components From esm-patient-orders-app To esm-patient-tests-app #2091
base: main
Are you sure you want to change the base?
Conversation
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.
Good start, @Twiineenock. I’ve left some feedback.
packages/esm-patient-tests-app/src/lab-results/lab-results-form.test.tsx
Outdated
Show resolved
Hide resolved
import { type OpenmrsResource, type Visit } from '@openmrs/esm-framework'; | ||
import { type Order } from '@openmrs/esm-patient-common-lib'; | ||
|
||
export interface Encounter { |
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.
I'm inclined to say we should add these instead to src/types/index.ts
Code looks good to me with the one caveat I mentioned. @ibacher could you just confirm that this work covers the extent of what you'd imagined with O3-4136? It really just moves the lab results entry workspace. |
Couple of quick comments:
|
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.
See this is, to me, the thing that should not exist, a shared reference to "lab orders"
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.
@Twiineenock It looks like you've moved lab resource stuff from esm-patient-orders-app
to esm-patient-common-lib
. I think the idea of this ticket is that all the lab stuff should be in esm-patient-tests-app
. Why is lab-resource
in esm-patient-common-lib
and not esm-patient-tests-app
?
packages/esm-patient-common-lib/src/lab-resource/types/order.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-common-lib/src/lab-resource/types/order.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-common-lib/src/lab-resource/types/order.ts
Outdated
Show resolved
Hide resolved
previousOrder: string; | ||
type: string; | ||
action: string; | ||
careSetting: string; |
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.
This, also, could be more tightly-bound.
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.
@Twiineenock please address this feedback
@@ -1,5 +1,5 @@ | |||
import { z } from 'zod'; | |||
import { type LabOrderConcept, useOrderConceptByUuid } from './lab-results.resource'; | |||
import { type LabOrderConcept, useOrderConceptByUuid } from '@openmrs/esm-patient-common-lib'; |
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.
This is probably minor, but do we really need a type for the concept for a lab order? That seems... decadent.
@Twiineenock is it clear to you how to move forward with this? |
@brandones , a lot was merged in since my first commit, I am making changes locally and pushing soon. |
a2dc87e
to
938572d
Compare
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.
Hi @ibacher and @brandones,
What are your thoughts on setting up translations in the esm-patient-common-lib
? I recently added a file with translations.
Hi @Twiineenock , I don't think it would make sense to put translations in Thank you for moving the translations over! |
Requirements
Summary
The
esm-patient-orders-app
should be limited to handling generic order-management functionalities. All laboratory-specific components and features should be contained within theesm-patient-tests-app
(see)Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-4136
Other
After the move!
lab-results.webm