This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug] Fix Patient Search when patients have the same name (#1396)
Jira Ticket Number: [CTW-1620](https://zeushealth.atlassian.net/browse/CTW-1620) This PR fixes a bug in patient search when there are multiple patients with the same name. Previously the `ComboBoxOption`'s value was the label, which comprised the patient's full name. When an option was selected, the `ComboBoxField` would use the label to look up the first occurrence in the results, so if there are 2 or more patients with the same full name, it would always return the first patient. Now the `ComboBoxOption`'s value is the entire option so we can just return the option's value to the `onCustomSelectChange` callback. ## How did you test it? Manually tested in the demo app. Manually tested with relative dependancies in standalone. ## How will you know that this is working after deployment? Manually test in all environments [CTW-1620]: https://zeushealth.atlassian.net/browse/CTW-1620?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
1 parent
c2f5c54
commit 72ef732
Showing
4 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zus-health/ctw-component-library": patch | ||
--- | ||
|
||
Fix ComboBoxField to select the correct option when multiple options have identical labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters