Changelog for the openmrs adaptor
@openfn/language-openmrs
5.3.6 - 28 November 2025
Patch Changes
- Updated dependencies [cfc66df]
- @openfn/language-common@3.2.1
5.3.5 - 12 November 2025
Patch Changes
- Updated dependencies [4d7a833]
- @openfn/language-common@3.2.0
5.3.4 - 04 November 2025
Patch Changes
- Updated dependencies
- @openfn/language-common@3.1.2
5.3.3
Patch Changes
- Updated dependencies [408a3a2]
- @openfn/language-common@3.1.1
5.3.2 - 18 September 2025
Patch Changes
- Updated dependencies [e2bc436]
- @openfn/language-common@3.1.0
5.3.1 - 01 September 2025
Patch Changes
- Updated dependencies [1d60531]
- @openfn/language-common@3.0.3
5.3.0 - 25 July 2025
Minor Changes
- 5c12ab4: - Add
http.put()helper function- Fix docs on
http.request()
- Fix docs on
5.2.2 - 14 July 2025
Patch Changes
- Updated dependencies [9b5a4f8]
- @openfn/language-common@3.0.2
5.2.1 - 10 July 2025
Patch Changes
- Updated dependencies [cf9c09f]
- @openfn/language-common@3.0.1
5.2.0 - 10 July 2025
Minor Changes
- 19f2d7e: Exported
as()function from common - 8d78db4: Export
map()function from common
Patch Changes
- Updated dependencies [ea85695]
- Updated dependencies [3fce58f]
- Updated dependencies [19f2d7e]
- Updated dependencies [f26bd2b]
- Updated dependencies [19f2d7e]
- @openfn/language-common@3.0.0
5.1.0
Minor Changes
- 3a97556: Add support for
languageoption
5.0.4 - 20 June 2025
Patch Changes
- Updated dependencies [28c2e8b]
- @openfn/language-common@2.5.0
5.0.3 - 14 June 2025
Patch Changes
- be854ec: Fix an issue where upsert will wrongly trigger creation of an existing item
- 59251d5: Fix an issue where upsert will create to the wrong URL if there is no UUID in the path
5.0.2 - 22 April 2025
Patch Changes
- 99e4b48: - Better handling of HTML content in http requests
- When logging HTTP requests, include query parameters
- Updated dependencies [99e4b48]
- Updated dependencies [13bf08f]
- @openfn/language-common@2.4.0
5.0.1 - 16 April 2025
Patch Changes
- Updated dependencies [b089c56]
- @openfn/language-common@2.3.3
5.0.0 - 11 April 2025
Major re-write of the OpenMRS API. Cleaned up the main namespace with a shorter,
cleaner API and automatic pagination on get().
Major Changes
- Signatures changed for
get(),update(),upsert(), andcreate() - Removed
getEncounter(),getEncounters(),getPatient(),searchPatient()andpost()andsearchPerson() - Added automatic pagination to
get() - Removed
response(and http semantics generally) fromget(), - Remove all callbacks
Minor Changes
- Added new
destroy()function (for delete) - Documentation improvements
Patch Changes
- Updated dependencies [d7105c0]
- @openfn/language-common@2.3.2
Migration Guide
Signatures have all changed for the main OpenMRS rest functions get(),
update(), upsert(), and create(). Generally they take the form
verb(path, [data], [options]).
All removed getters (ie, getPatient()) are replaced by the
get(path, options) function introduced in 4.10.0. Just pass a path to the
resource you need, and add a { query } options object to search.
For example:
- Instead of
getEncounters(), doget('encounters') - Instead of
getEncounter('1234'), doget('encounters/1234') - Instead of
searchPatient({ query: 'sarah' }), doget('patient', { query: 'sarah' }) - Instead of callback arguments, you can either use
.then():
get('encounter/1234', state => {
// the fetched resource is on state.data
return state;
});
Or use an fn block:
get('encounter/1234');
fn(state => {
// the fetched resource is on state.data
return state;
});
4.4.0 - 14 March 2025
Minor Changes
- 23ccb01: Allow errors to be passed to the http helpers. This overrides the behaviour to throw if an error code is returned
Patch Changes
- Updated dependencies [23ccb01]
- @openfn/language-common@2.3.1
4.3.0 - 28 January 2025
Minor Changes
-
909d81f: Added
http.post(),http.delete()andhttp.get().removed the undocumented callback in
http.request().
4.2.0 - 20 January 2025
Minor Changes
- 5d6839e: Implement namespaced http.request() function. The function makes a
call against the
instanceUrland the path provided, while allowing manipulation to the API call as needed.