-
Notifications
You must be signed in to change notification settings - Fork 248
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-3797: Add the Encounter List Table and Tabs to Patient Chart #1987
Conversation
Size Change: -197 kB (-1.21%) Total Size: 16 MB
ℹ️ View Unchanged
|
9d98eb8
to
582b365
Compare
a75476f
to
a530bbe
Compare
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
2577187
to
f02eef5
Compare
d20819d
to
e912834
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.
I haven't made it through this whole PR, but here are some of the more obvious either issues, things that weren't clear, or places where we should have improvements.
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
87fe3eb
to
e2ffc01
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.
High-level stuff:
- There's still too much reliance on
any
types - This should all be consolidated into a single
encounter-list
folder. We don't clearly need bothclinical-views
andencounter-list
- The component in
index.ts
must usegetAsyncLifecycle()
.
packages/esm-patient-chart-app/src/encounter-list/hooks/useFormsJson.ts
Outdated
Show resolved
Hide resolved
responses | ||
.map((response, index) => { | ||
const match = | ||
response?.data ?? response?.data?.find((result) => !result.retired && result.name === formUuids[index]); |
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.
fetchOpenMRSForms()
returns an array of Form
results, but each of those will have the Form
object as the response.data
, so response.data
is not an array of objects and so find
will always be undefined.
packages/esm-patient-chart-app/src/encounter-list/hooks/useFormsJson.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/hooks/usePatientDeathStatus.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/hooks/usePatientDeathStatus.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/clinical-views/utils/helpers.ts
Outdated
Show resolved
Hide resolved
Ping @hadijahkyampeire , is it clear to you how to move forward with this? |
@brandones I think @CynthiaKamau or @ODORA0 will be taking this on as I am currently unavailable to work. Thanks |
@CynthiaKamau or @ODORA0 will you be taking this on? |
i will take it up |
397aa4c
to
238ea77
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.
Thanks @CynthiaKamau! Didn't quite make it through the entire PR yet, but a left a few comments about suggestions or questions I had
packages/esm-patient-chart-app/src/encounter-list/utils/encounter-list-config-builder.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/utils/encounter-list-config-builder.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/utils/encounter-list-config-builder.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list-tabs.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-chart-app/src/encounter-list/components/encounter-list.component.tsx
Outdated
Show resolved
Hide resolved
983d5f1
to
7dfadc2
Compare
Requirements
Summary
Screenshots
encounter-list-tables.mov
Related Issue
Other