-
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-4235: Add config support for observations display on active visits table #1392
Conversation
Size Change: +3.18 kB (+0.04%) Total Size: 7.16 MB ℹ️ View Unchanged
|
Size Change: +3.19 kB (+0.04%) Total Size: 7.16 MB ℹ️ View Unchanged
|
packages/esm-active-visits-app/src/active-visits-widget/active-visits.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-active-visits-app/src/active-visits-widget/active-visits.component.tsx
Show resolved
Hide resolved
baf57a7
to
f0bee53
Compare
}; | ||
} | ||
|
||
export function useTableHeaders(t, config, obsConcepts) { |
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.
Since this is a hook, you can directly use the useTranslation
and useConfig
in this hook.
|
||
const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/Patient%20Summary'; | ||
const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/Patient%20Summary'; |
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.
You need to redirect to just /chart
and the dashboard to redirect, let it be Patient Summary or any other is handled by the patient chart itself.
Requirements
Summary
This PR adds configuration support for displaying observation(s) as columns on the active visits table. This add obs array to activeVisits config schema to specify obs concept UUIDs, that should be displayed.
Testing:
Screenshots
Related Issue
Other
https://openmrs.atlassian.net/browse/O3-4235