dhis2 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/dhis2.rb +1 -0
- data/lib/dhis2/api/category_option_combo.rb +6 -0
- data/lib/dhis2/api/user.rb +6 -0
- data/lib/dhis2/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23a68a6e9121453b5f029afc363dae6e4b2acf85
|
4
|
+
data.tar.gz: e6f31c8d2d40edbfbdeea5136a28ca7f08defa1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86bc17621e4f32b5dee4fbb350a5bfc5d0a82445cb468a8c7160450ae8f3bc72cfc0046a8a68463ef11219766b41741a30d97f1e7e4110e46fe2436402b4a9a5
|
7
|
+
data.tar.gz: 707583e0ed6e6c6af41573b49f68d7749f3dbb5f4b1161f2ab14fd45acfd95c8951ddbcbce6fc63f72583f7aba87732586e31edaf5717cdb52790afc914ce0fc
|
data/README.md
CHANGED
@@ -118,21 +118,23 @@ You can retreive data values this way:
|
|
118
118
|
|
119
119
|
## Supported features
|
120
120
|
|
121
|
-
The API is currently limited to
|
121
|
+
The API is currently limited to actions on the following elements:
|
122
122
|
|
123
123
|
* `OrganisationUnit`
|
124
124
|
* `OrganisationUnitGroup`
|
125
|
-
* `
|
125
|
+
* `OrganisationUnitLevel`
|
126
126
|
* `DataElement`
|
127
127
|
* `DataSet`
|
128
128
|
* `DataValueSet`
|
129
129
|
* `DataValue`
|
130
130
|
* `Analytic`
|
131
131
|
* `CategoryCombo`
|
132
|
-
* `
|
132
|
+
* `CategoryOptionCombo`
|
133
|
+
* `SystemInfo`
|
133
134
|
* `Attribute`
|
134
135
|
* `Indicator`
|
135
136
|
* `DataElementGroup`
|
137
|
+
* `User`
|
136
138
|
|
137
139
|
|
138
140
|
A very basic **write** use case exists for `DataElement` and `DataSet`:
|
@@ -157,7 +159,7 @@ DHIS2 API does not return the ids of the created elements, but you can retreive
|
|
157
159
|
|
158
160
|
### Full update
|
159
161
|
|
160
|
-
You can update a given item by retreiving it using
|
162
|
+
You can update a given item by retreiving it using its id, making any modification on it then calling "update":
|
161
163
|
|
162
164
|
org_unit = Dhis2.client.organisation_units.find(id)
|
163
165
|
org_unit.short_name = "New Short Name"
|
data/lib/dhis2.rb
CHANGED
data/lib/dhis2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dhis2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Van Aken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/dhis2/api/attribute.rb
|
124
124
|
- lib/dhis2/api/base.rb
|
125
125
|
- lib/dhis2/api/category_combo.rb
|
126
|
+
- lib/dhis2/api/category_option_combo.rb
|
126
127
|
- lib/dhis2/api/data_element.rb
|
127
128
|
- lib/dhis2/api/data_element_group.rb
|
128
129
|
- lib/dhis2/api/data_set.rb
|
@@ -133,6 +134,7 @@ files:
|
|
133
134
|
- lib/dhis2/api/organisation_unit_group.rb
|
134
135
|
- lib/dhis2/api/organisation_unit_level.rb
|
135
136
|
- lib/dhis2/api/system_info.rb
|
137
|
+
- lib/dhis2/api/user.rb
|
136
138
|
- lib/dhis2/client.rb
|
137
139
|
- lib/dhis2/collection_wrapper.rb
|
138
140
|
- lib/dhis2/configuration.rb
|