Skip to content

(fix) O3-2313: Duplicate Diagnoses in Submitted JSON Form#63

Merged
ibacher merged 1 commit into
openmrs:mainfrom
openmrs-sh:O3-2313
Aug 28, 2023
Merged

(fix) O3-2313: Duplicate Diagnoses in Submitted JSON Form#63
ibacher merged 1 commit into
openmrs:mainfrom
openmrs-sh:O3-2313

Conversation

@AlexanderMizgirev

Copy link
Copy Markdown
Contributor

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This pull request fixes the bug that caused duplicate diagnoses. The bug, as I understand it, was due to the fact that recursion was used in the function to traverse the nodes, and the function didn't check whether a node had been processed or not. Now, with the addition of this check, such situations should be eliminated.

Screenshots

image

Related Issue

https://issues.openmrs.org/browse/O3-2313

Other

@ibacher ibacher merged commit d45e274 into openmrs:main Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants