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

Polling Request from OpenMRS Mediator Not Triggering Automatically #156

Open
lorerod opened this issue Jan 20, 2025 · 0 comments
Open

Polling Request from OpenMRS Mediator Not Triggering Automatically #156

lorerod opened this issue Jan 20, 2025 · 0 comments
Labels
Type: Bug Fix something that isn't working as intended

Comments

@lorerod
Copy link
Contributor

lorerod commented Jan 20, 2025

Describe the bug
The polling request from the OpenMRS mediator is not behaving as expected.
The polling request didn’t go through automatically, even after waiting 10 minutes.
I had to manually send the request by calling the /mediator/openmrs/sync endpoint.

To Reproduce

  1. Start the docker container using ./startup.sh up-openmrs
  2. Follow the steps in OpenHIM Admin Console guide, installing CHT Mediator and OpenMrs Mediator
  3. Follow the steps in Local setup of CHT Configuration guide
  4. Use the OpenMRS Interop.postman_collection.json with the corresponding dev.json env variables.
  5. Change "key": "CHT_ADMIN_USER" to have value admin instead of medic
  6. Execute the first six calls in the postman collection:
  • Mediator Status
  • OpenMRS Api Status
  • createPatientIdentifierType
  • createDocumentIdentifierType
  • CHT Create Patient
  • Get FHIR Patient
  1. In OpenHIM admin console, check the transactions log. You should have transactions similar to these:

Image

  1. Wait more than 1 minute and confirm that no sync call is registered in the transaction log.

Expected behavior
A polling request from the OpenMRS mediator should trigger automatically within a maximum of 1 minute.

Environment

  • Branch: at the moment of the creation of this ticket, the branch I use is openmrs-mediator
  • Client platform: Docker desktop on MacOS Intel

Additional context
To continue the workflow, I called the OpenMRS sync endpoint manually

@lorerod lorerod added the Type: Bug Fix something that isn't working as intended label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended
Projects
Status: No status
Development

No branches or pull requests

1 participant