-
Notifications
You must be signed in to change notification settings - Fork 248
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-3547: Handle possibly undefined encounter.obs in LabResultsForm #1903
Merged
denniskigen
merged 2 commits into
openmrs:main
from
PiusKariuki:fix/add-results-action-error-on-the-lab-orders
Jul 10, 2024
Merged
(fix) O3-3547: Handle possibly undefined encounter.obs in LabResultsForm #1903
denniskigen
merged 2 commits into
openmrs:main
from
PiusKariuki:fix/add-results-action-error-on-the-lab-orders
Jul 10, 2024
Conversation
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
@brandones Please help me review this PR. |
Thanks @PiusKariuki for this. Did you test this with lab sets? |
@pirupius Yes I did. I used a list of lab tests
…On Mon, 8 Jul 2024, 6:09 pm Pius Rubangakene, ***@***.***> wrote:
Thanks @PiusKariuki <https://github.com/PiusKariuki> for this. Did you
test this with lab sets?
—
Reply to this email directly, view it on GitHub
<#1903 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJMOARGZPDRANPFW3LRD64LZLKTR7AVCNFSM6AAAAABKQSTYKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGM4TIMRRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
pirupius
reviewed
Jul 9, 2024
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.
@pirupius I have not experienced this behaviour let me test it again then I'll ping you on slack |
denniskigen
force-pushed
the
fix/add-results-action-error-on-the-lab-orders
branch
from
July 9, 2024 17:54
d4b2730
to
679a4f7
Compare
denniskigen
changed the title
fix: "add results" action error on the lab orders #O3-3547
(fix) O3-3547: Handle possibly undefined encounter.obs in LabResultsForm
Jul 9, 2024
ibacher
approved these changes
Jul 9, 2024
CynthiaKamau
approved these changes
Jul 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Summary
This PR fixes an issue in the
LabResultsForm
component where clicking theAdd results
button from theOrderDetails
table overflow menu would sometimes fail to successfully launch the form.To remedy this, I've tweaked the logic so that the code that sets
obsUuid
andisEditing
is in a useEffect hook. This ensures that we only try to accessencounter.obs
when it is available and not undefined. I've also moved the logic for fetching initial values into a separate useEffect hook that depends onisEditing
andobsUuid
.Screenshots
This is a recording of the issue
patient-orders-result-error.webm
This is the recording after the fix
fix-add-results.webm
Related Issue
LINK TO JIRA TICKET
Other