-
Notifications
You must be signed in to change notification settings - Fork 3
Polling Request from OpenMRS Mediator Not Triggering Automatically #156
Copy link
Copy link
Open
Labels
Type: BugFix something that isn't working as intendedFix something that isn't working as intended
Description
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
- Start the docker container using
./startup.sh up-openmrs - Follow the steps in OpenHIM Admin Console guide, installing
CHT MediatorandOpenMrs Mediator - Follow the steps in Local setup of CHT Configuration guide
- Use the OpenMRS Interop.postman_collection.json with the corresponding dev.json env variables.
- Change
"key": "CHT_ADMIN_USER"to have valueadmininstead ofmedic - Execute the first six calls in the postman collection:
- Mediator Status
- OpenMRS Api Status
- createPatientIdentifierType
- createDocumentIdentifierType
- CHT Create Patient
- Get FHIR Patient
- In OpenHIM admin console, check the transactions log. You should have transactions similar to these:
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugFix something that isn't working as intendedFix something that isn't working as intended