Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Releases: OpenFn/language-dhis2

Better logs (security, readability)

31 Jul 13:36
Compare
Choose a tag to compare

This release trims server responses from dhis2 for better readability and to avoid exposing sensitive data unintentionally.

Fixed migration helper

07 May 12:24
Compare
Choose a tag to compare
  • Fixed helper not returning updated state.configuration
  • Added warning to update config in the logs.

Use hostUrl, not apiUrl

05 May 22:13
Compare
Choose a tag to compare

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

07 Apr 22:00
Compare
Choose a tag to compare
v1.1.0

test against more node version

better docs and security enhancements

20 Sep 06:38
Compare
Choose a tag to compare
v1.0.1

update createTEI docs to include enrollment in readme

analytics api

27 Feb 16:19
Compare
Choose a tag to compare

added fetchAnalytics

fetchAnalytics({
  query: {
    dimension: [
      "dx:CYI5LEmm3cG;GDVU1o5rTNF",
      "pe:LAST_6_MONTHS"
    ],
    filter: "ou:GHlyx9Pg9mn",
    displayProperty: "NAME",
    outputIdScheme: "UID"
  }
});

new dataValueSet(...) syntax

29 Sep 18:01
Compare
Choose a tag to compare

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

06 Sep 14:28
Compare
Choose a tag to compare

Implements functions fetchEvents and fetchData that receive fields for query and a optional post URL

Support for "each", enrollment, and updating tracked entity instances

18 Aug 11:37
Compare
Choose a tag to compare

Support for tracked entity instances on DHIS2

28 Jul 22:25
Compare
Choose a tag to compare

We've added createTEI to allow users to add new tracked entity instances.