-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Context
New forms have been added in OpenMRS that need to sync to DHIS2 under their respective programs. The current wf2-omr-dhis2 workflow was designed to handle existing programs (MentalHealth, Family Planning, Surgery...). We need to modify the workflow to accommodate the F59 - F63 forms.
Specific Request
Update wf2-omrs-dhis2 workflow to include F59 - F63 forms custom form mappings.
- branch off from
staging:git checkout -b [167-new-forms] - Create a sandbox on the
msf-lime-mosul-stagingproject on app.openfn.org - Connect the sandbox to this branch(167-new-forms) on git
- toggl:
MSF Extension 2025 [Addendum 2 - July] - New Metadata file -
LIME EMR - Iraq Metadata - Release 1 - v2025-11-14.xlsx
Test Data
- Create a new patient in OMRS
- Create F59 - F63 encounters for the new patient on OMRS
See how to create encounters video here - Trigger
wf2-omrs-dhis2workflow fromGet patientssteps and watch out the
output ofGet Encountersstep. It should contain encounters for F59 - F63
Changes
In Events Mapping Step
-
Add custom logic mapping as per mapping spec for
F59 - F63forms. -
Mapping-specs can be found here in sheets named after the form names.
-
adaptor: [[email protected]]
-
credentials:
LP: ...,FN: OpenMRS Demo
In Create Events Step
When Get Encounters run successful, then Create events should run
successful. Troubleshoot any error that might be caused by the new mappings
- adaptor: [[email protected]]
- credentials:
LP: ...,FN: MSF DHIS2 UAT
Important
- How to? video links:
- How to create encounters in OpenMRS
video - How to test in DHIS2 // TODO: create loom video
- How to create encounters in OpenMRS
- See adaptor registry cache for available versions
- Claude Project for FAQ
Pre-deployment Checklist (For consultants)
Before closing off this issue, ensure the following items are checked:
- Run test suite: For major releases that affect most parts of the
workflow, run the entire test suite and ensure that it passes - Version-locking of Adaptors: Ensure that each job is version locked to
the adaptor versions that are specified in the
cache registry. - Export Configuration: Export both project.yaml (the project spec) and
projectState and version the release - Modify documentations and diagram: Consider if user guide, README
docs, diagrams, and/or test suite need to be updated. - Submit for Review on MSF github repo: Push changes to a GitHub branch
and create a PR for MSF to review.