-
Notifications
You must be signed in to change notification settings - Fork 242
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
(fix) O3-4270: Group obs by encounter instead of datetime #2150
base: main
Are you sure you want to change the base?
Conversation
Size Change: -41.4 kB (-0.26%) Total Size: 16 MB
ℹ️ View Unchanged
|
issued
datetime
packages/esm-generic-patient-widgets-app/src/obs-table/obs-table.component.tsx
Outdated
Show resolved
Hide resolved
@vasharma05 We may as well group by the encounter datetime, even though this won't necessarily align with the effective date of the obs, but since each obs can have it's own effective date, I don't see how we could get the right "logical" grouping. Maybe we put the obs effective date in a tooltip or something? |
Actually, the obs effective date is what is being shown under the |
…ient-chart into fix/group-obs-by-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.
LGTM, thanks @vasharma05 !
Please fix the conflict and CI, and then you should be good to merge |
Requirements
Summary
This PR makes a change in the
obs-by-encounter-widget
. Initially, the obs were grouped with the obs' issued date time. The issue with the above approach is that a new row in the table is created when the obs value is updated.The
obs
should be grouped by encounter rather than date and time, is because the obs are recorded as part of an encounter. Even if we groupobs
by time, the obs recorded together (as part of an encounter) will be grouped together, hence it makes sense to group the obs by related encounter, rather than recorded time.Screenshots
Configuration
Before
Screen.Recording.2024-12-12.at.19.02.42.mov
After
Related Issue
https://openmrs.atlassian.net/browse/O3-4270
Other