You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that there is more test data, WF1 is currently failing in Aissatou's recent tests because of issues newly discovered.
To Reproduce
Run wf1 with cursor { "lastRunDateTime": "2024-12-17T00:00:00.000Z" } --> only 50 patients are returned. No paging has been implemented --> please correct this in the job 2-get-teis-and-locations.js.
See run with cursor { "lastRunDateTime": "2024-12-17T00:00:00.000Z" } where Create Patients stepfails with error RangeError: Invalid time value
Implementation Notes
I have worked on this issue on app and sync the changes back to GitHub, See e3920ce. However we are encountering a new error when creating a patient in OpenMRS. See failed run here. From quick debug it seems to be related to attributes mapping.
Here is the quick summary of the changes
Fixed the paging issue by adding skipPaging: true param. See docs here
Added updateAfter: $.cursor to make sure we are fetching the latest teis. See docs here
I have fixed the Invalid date range issue by returning undefined if the age value is undefined when we are calculating birthdate
Describe the bug and expected behavior
Given that there is more test data, WF1 is currently failing in Aissatou's recent tests because of issues newly discovered.
To Reproduce
{ "lastRunDateTime": "2024-12-17T00:00:00.000Z" }
--> only50
patients are returned. No paging has been implemented --> please correct this in the job 2-get-teis-and-locations.js.{ "lastRunDateTime": "2024-12-17T00:00:00.000Z" }
where Create Patients stepfails with errorRangeError: Invalid time value
expression.js
state.json
MSF DHIS2 UAT - June 2024
MSF OpenMRS Demo
To test/resolve
WF1 should successfully sync a list of qualifying DHIS2 patients to OpenMRS.
Toggl
MSF 2024
The text was updated successfully, but these errors were encountered: