-
Notifications
You must be signed in to change notification settings - Fork 203
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-2614: Move Allergen tabs to a single picker in allergy form #1525
Conversation
98efc6f
to
5694782
Compare
80c815b
to
023bd8d
Compare
Update: the severity issue is now fixed. check 023bd8d and https://talk.openmrs.org/t/reassessing-allergy-severity-mapping-in-fhir/41083 |
Hi @jayasanka-sack !
Diving into the code now. |
Thanks for the work, @jayasanka-sack. Is having the dropdown automatically open after launching the workspace the ideal UX? I found it a bit jarring. allergies-dropdown.mp4 |
I can see some argument for having that pre-open. However, style-wise, it seems like the the search box and the list of items should match in terms of font-size and background color. See the Carbon pattern docs on search. Specifically, the examples I see there look like this: |
Thanks for the reviews! Using the carbon ComboBox makes much sense. I'll update it and let you know. |
5a70f98
to
8484d80
Compare
@vasharma05 @ibacher and @denniskigen I updated the PR. Would you mind taking a look when you have a moment? Thanks! 🙌 |
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.
Excellent work, @jayasanka-sack. Unfortunately, it looks like i18next-parser added zero width non-breaking space characters (\u200b
) to some Khmer translations. I've taken the liberty of pushing a commit that fixes that.
Two possible next steps in the evolution of the allergies feature are:
- Edit functionality for allergies
- Making sure the allergies details tile in the Patient Header works in the tablet viewport
Requirements
Summary
This pull request aims to enhance the user experience of the allergy form by consolidating allergen tabs into a single, efficient picker. The modifications have been made as part of the epic O3-2561.
Key Changes:
A new component, allergen-picker, has been created to serve as a custom field using the React Hook Forms controller. This component takes charge of rendering the allergen picker and implementing the filter functionality. Refer to the component's tests for a comprehensive understanding of its behavior.
Allergy form UI improvements - Watch Video
Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-2614
Other
Meanwhile, I've identified three bugs that warrant attention:
Both custom allergens and reactions consistently appear as "Other" regardless of the input provided. This anomaly is likely stemming from the FHIR module during the conversion of allergies to FHIR allergy objects. https://openmrs.atlassian.net/browse/O3-2634
On certain occasions, the severity is observed to display as "UNABLE-TO-ASSESS." To determine if this behavior is intentional or unintentional, further investigation is needed.
https://openmrs.atlassian.net/browse/O3-2633
When filling out the Allergy Form on OpenMRS, there is a bug preventing the submit button from enabling properly. The issue arises when the allergen and severity fields are filled first, followed by selecting reactions. The save button remains disabled until another field is changed.
https://openmrs.atlassian.net/browse/O3-2629