-
Notifications
You must be signed in to change notification settings - Fork 249
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-1738: Show more than just ten items in conditions widget #947
Conversation
Size Change: +1.09 kB (0%) Total Size: 5.72 MB
ℹ️ View Unchanged
|
Thanks @hadijahkyampeire I am going to test the changes to night and get the feedback asap. |
Thanks so much for your very quick work on this @hadijahkyampeire! This is indeed an improvement and I support merging it since it fixes the underlying issue. However many, many patients have >10 conditions, and we wouldn't want serious ones to be hidden behind pagination. Actually your screenshot in the ticket is a good example, where the very important Diagnoses of "Heart Failure" & Type 1 diabetes would be buried in Page #2. So there will need to be a second PR (or we should change this one I guess?). If it's easier than using the limit-less logic, could we just set the pagination length for this widget to default to 100 conditions? |
Thanks, @gracepotma I can remove the pagination and we just make the table scrollable if the conditions become very many. |
packages/esm-patient-conditions-app/src/conditions/conditions.resource.tsx
Outdated
Show resolved
Hide resolved
Hello @dkayiwa, do you know if there is a place where I can find FHIR endpoints for conditions well documented with expected payload, queryParams, response etc. That would be helpful in identifying whether pagination can be done on the backend (if yes what params do I pass), Also I am adding |
Hey @gracepotma ! Instead of removing the pagination to pull out important conditions, shouldn't there be a priority among the conditions so that we can order the conditions, instead of filling the page with around 100 conditions? |
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.
Approving now, as a quick fix, but this needs to be implemented in a proper way in the future.
@vasharma05 fair question re. the ordering by severity; however, I don't believe we should implement something like that for 2 reasons: (1) different types of clinicians can have very different opinions about what is higher priority (e.g. a cardiologist will have a different opinion than an oncologist, etc), and (2) it would become something of a metadata management nightmare. Mayyyybe in the future we could have something like a move up/move down UI that clinicians could use to reorder the list but again for reasons #1 and #2 I don't think it would work out long-term. I'm happy with how it looks for now with the long-page view :) Although of course if we find there are performance concerns due to this implementation, I'm happy to reevaluate. So given this information - @vasharma05 is there anything else you meant by "implementing this in a proper way in the future"? |
Requirements
Summary
500
results from the Backend so as to increase the returned conditions.Screenshots
Video recording
paginated.conditions.mov
Related Issue
Other