Introducing OpenFn’s OpenMRS Adaptor v5.0.0
Dear Community,
We’re thrilled to announce the release of the new OpenMRS Adaptor v5.0.0, designed to make your integrations faster, easier, and more flexible than ever.
You can read the full details here.
New Features
1. Generic HTTP Request API
Write flexible jobs that interact with any OpenMRS API resource.
http.request("GET", "/ws/rest/v1/patient/d3f7e1a8-0114-4de6-914b-41a11fc8a1a8", {
query: {
limit: 1,
startIndex: 20
}
});
2. Versatile API Helpers
Use get
, post
, and destroy
to interact with any OpenMRS resource.
destroy("patient/12346", {
purge: true
});
3. Improved Documentation
- State annotations for every function to show how state changes.
- A comprehensive list of supported request parameters.
- Cleaner, more helpful examples for APIs like
upsert
.
4. Paginated get
Requests
Control page size and the number of records retrieved:
get("patient", { query: "brian", max: 100 });
Example Workflow
Here’s a real-world example from our Solutions Engineer — a workflow that fetches encounters from OpenMRS, syncs them to a National Data Registry, and persists them in a Postgres database.
Try It Out
- Explore the adaptor now at app.openfn.org
- Need help? Book a free demo
You’re entitled to a 2-hour free session with our Solutions Engineer to help build your first integration.
Happy automating!
— The OpenFn Team