Skip to content
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) Avoid adding duplicate session obs to obs payload #89

Merged

Conversation

icrc-jofrancisco
Copy link
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.
  • My work includes tests or is validated by existing tests.

Summary

This PR fixes an issue in the handleEncounterCreate function where concepts from activeSessionMeta could be redundantly added to the obs payload, leading to duplicates. The function now checks if a concept from activeSessionMeta already exists in payload.obs before adding it.

Screenshots

Related Issue

Other

@icrc-jofrancisco icrc-jofrancisco merged commit 1582f02 into openmrs:main Jan 14, 2025
4 checks passed
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