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) refactor program enrollment action #167

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

ODORA0
Copy link
Member

@ODORA0 ODORA0 commented Feb 5, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

We needed to check if the payload.dateEnrolled property is not already defined or is falsy, and assign the value of patientProgramEnrollment.dateEnrolled. This is needed so that using the ProgramEnrollmentSubmissionAction to add a client to a program works for a form without the enrollmentDate in the config obj

Screenshots

Related Issue

Other

@kajambiya kajambiya merged commit 9280d84 into openmrs:main Feb 5, 2024
5 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