This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Releases: OpenFn/language-dhis2
Releases · OpenFn/language-dhis2
Better logs (security, readability)
This release trims server responses from dhis2 for better readability and to avoid exposing sensitive data unintentionally.
Fixed migration helper
- Fixed helper not returning updated
state.configuration
- Added warning to update config in the logs.
Use hostUrl, not apiUrl
Asking for apiUrl
in config is misleading, as /api/...
is appended to most calls anyway. Instead, we'll use hostUrl
.
{
"configuration": {
"username": "admin",
"password": "district",
"hostUrl": "https://play.dhis2.org/2.31.1"
},
"data": {
"a": 1,
"b": 2,
}
}
testing against new node versions
v1.1.0 test against more node version
better docs and security enhancements
v1.0.1 update createTEI docs to include enrollment in readme
analytics api
added fetchAnalytics
fetchAnalytics({
query: {
dimension: [
"dx:CYI5LEmm3cG;GDVU1o5rTNF",
"pe:LAST_6_MONTHS"
],
filter: "ou:GHlyx9Pg9mn",
displayProperty: "NAME",
outputIdScheme: "UID"
}
});
new dataValueSet(...) syntax
simplified syntax for using data from state inside dataValueSets:
dataValueSet({
dataSet: dataValue("set"),
orgUnit: "DiszpKrYNg8",
period: "201402",
completeData: "2014-03-03",
dataValues: [
dataElement("f7n9E0hX8qk", dataValue("site_school_number")),
dataElement("Ix2HsbDMLea", dataValue("patients")),
dataElement("eY5ehpbEsB7", 30)
]
});
Fetch functions for Events and Data Value Set
Implements functions fetchEvents and fetchData that receive fields for query and a optional post URL
Support for "each", enrollment, and updating tracked entity instances
v0.0.4 Bumped version
Support for tracked entity instances on DHIS2
We've added createTEI
to allow users to add new tracked entity instances.