-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update automated tests for CHT and OpenMRS endpoints in the mediator #123
Comments
At this moment, tests should be added to the openmrs-mediator branch, pending the merge of #115. Per discussion in Slack, Binod suggests:
|
@witash, I'm starting to work on this so you can focus on other needed developments. |
@witash I have a question about the |
Yes, it was, but #124 and #125 changed this; the point was to decoupe cht and openmrs, so cht only sends requests to the FHIR Server, and the same for OpenMRS; neither one knows or cares that the other side exists. So for patients, the only difference between this branch and the LTFU is that cht is sending raw documents instead of already FHIR formatted requests. And it creates Observation Resources as part of Encounters when CHT forms are submitted. updated sequence diagrams: Then, for OpenMRS, it doesn't have any subscription or event based messaging yet, so the mediator needs to poll it. So. for end to end tests we need
|
Okay, thanks. Independent of the point of decoupling cht and openers, does it still make sense to implement e2e test scenarios representing the entire workflow? CHT to OpenMRS workflow
OpenMRS to CHT workflow
And also, does it make sense to combine both? for example: New Patient in OpenMRS with New Encounter in CHT, testing the entire flow. |
Also, do your comments on "add cht configs to configurator" mean those are pending tasks you will implement? Or do I need to add the outbound push config as a precondition in the e2e tests? |
Also, do your comments on "add cht configs to configurator" mean those are pending tasks you will implement? Or do I need to add the outbound push config as a precondition in the e2e tests? And also, does it make sense to combine both? for example: New Patient in OpenMRS with New Encounter in CHT, testing the entire flow. |
More questions, @witash. Will all of this be replaced by the outbound push configuration? |
endpoint and organization are not required; they don't have any functional significance. serviceRequests are not synced in this workflow; cht can create tasks from transitions after the patient form is submitted. if necessary, but they are not created by openmrs or any interoperability thing. By the equivalent of inter_follow_up form is a form created in CHT config, for incoming data; if someone on OpenMRS submits a form that is being tracked in CHT, the mediator goes the other way and converts the Observations and Encounter to the records api. Currently one of these has to be created for every corresponding form in OpenMRS, and also for incoming patients |
@witash, this post is failing |
|
I added this element to outbound in
|
Co-authored-by: Maria Lorena Rodriguez Viruel <[email protected]> Co-authored-by: Maria Lorena Rodriguez Viruel <[email protected]> Co-authored-by: Tom Wier <[email protected]>
After discussion with @witash, he mentioned some cases that would need tests, once the current e2e tests in the
|
Automated tests cover only FHIR endpoints.
Now that there are additional endpoints for OpenMRS and CHT, these need to be added to automated tests.
The text was updated successfully, but these errors were encountered: