dhis2 | DHIS2 Ruby client - Basic DHIS2 API client for Ruby | REST library
kandi X-RAY | dhis2 Summary
kandi X-RAY | dhis2 Summary
Basic DHIS2 API client for Ruby.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute the request
- Parses the response and returns the parsed response .
- Build the query parameters
- Logs out of a request
- Returns the client s params
- Formats an array of fields .
- Formats a filter .
- Determine player params
- Build the url
- Compute payload
dhis2 Key Features
dhis2 Examples and Code Snippets
Dhis2.client.organisation_units.fetch_paginated_data(
filter: "level:eq:2",
fields: %w(id level displayName parent)
).each do |organisation_unit, pager|
# do what you need here
end
# If you want pagination info in the loop:
Dhis2.client.organi
Dhis2.configure do |config|
config.url = "https://play.dhis2.org/2.28"
config.user = "admin"
config.password = "district"
config.version = "2.28"
end
::Dhis2.client.data_elements.list # => Array[,..]
# Or alternatively
::Dhis2.c
response = Dhis2.client.data_elements.create({
name: "TesTesT1",
shortName: "TTT1"
}, true)
summary = Dhis2.client.data_elements.bulk_create([{
name: "TesTesT1",
shortName: "TTT1"
}], true)
Community Discussions
Trending Discussions on dhis2
QUESTION
I've configured Let's Encrypt using cert-manager in my cluster and it works just fine for most of my use cases. However I have an application which is installed multiple times on the same hostname but with a different path.
My ingress is defined as below
...ANSWER
Answered 2021-May-20 at 05:22Error meaning
QUESTION
I am developing a react app over DHIS2 and data online that is structured like:
...ANSWER
Answered 2020-Aug-13 at 13:28so the issue got resolved. I don't know if its the DHIS2 system or something, but I can't update just one node of an indicator, also because POST is for creating nodes that don't exist.
So the correct way to use a PUT request, and also at the same time, instead of just passing the new data to the attributeValues node, am updating the whole indicator node i.e the corrent way should be :
QUESTION
I am trying to install an app into my dhis2 v2.28 instance. I install the app from the app store on the app management platform but after installation, i cannot find the app on my app list. Help!!
...ANSWER
Answered 2018-May-16 at 19:58When installing custom apps in DHIS2, the system will generate a new authority for the app. This authority will have the format "See_< app-name >".
I believe your user have not been granted the appropriate authority to access the app, which is required to both see and access it.
You can add the authority by creating or editing roles in the user app.
Hope this helps!
QUESTION
I have approximately 500 users of my dhis2 clone system, Where i need to change username of at least 400 users but when I opens Edit user window there is no option to do so, Can anyone help How can I update username of user in dhis2?
...ANSWER
Answered 2017-Oct-09 at 11:56I have found solution of above problem myself, Posting answer here so that it may help others in future.
Answer: go to users list, click on an item, select replicate option, change username and password, New User will be created with new credentials.
Note: All other settings will remain same.
Now you can delete old user.
QUESTION
So far, I have this PHP cURL code:
...ANSWER
Answered 2017-Jul-10 at 22:44First of all, you have
QUESTION
I'm beginner in RoR, I have an error When I run rspec in rails I'm getting this error message:
You have already activated json 2.0.2, but your Gemfile requires json 1.8.6. Prepending bundle exec
to your command may solve this. (Gem::LoadError)
I have tried to update json gem by "bundle update json", but still getting the same error message.
Could someone helps me on this. I'm using:- Ruby 2.3.0 - Rails 4.2.7.1 - gem version 2.5.1 Thank you!
Here is my Gemfile content:
...ANSWER
Answered 2017-Jan-19 at 06:52The version required by the gemfile is json 1.8.6 which is older than json 2.0.2 which you already have, you can try this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dhis2
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page