blsq / dhis2 Goto Github PK
View Code? Open in Web Editor NEWDHIS2 Ruby client
License: MIT License
DHIS2 Ruby client
License: MIT License
this is missing from the api while type is used by 30% of dataviz manager queries.
Dataviz needs it to start configuring choropleth maps.
As for now, the names of the various attributes are created on the fly, based on their name in DHIS2 API - this does not give a very "Ruby" feel to it:
data_element.shortName # works, not ruby like
data_element.short_name # does not work but would be nicer
this could be done easily with inflecto or a custom case function
For example, you'd want to be able to pass {skip_meta: true}
to the list method of https://github.com/BLSQ/dhis2/blob/master/lib/dhis2/api/analytic.rb
Nb: The method should also make sure that all keys for options are camelized
I believe that having a similar release management as BLSQ/hesabu-manager@6adc1d7 would be beneficial.
Our current experience past the setup is pretty good and time saving.
I'm in dhis2 2.25 and this is not working and I don't receive any errors.
def add_to_dataset(name, dataset_id,postfix)
name = "#{name} #{postfix}"
data_element = $dhis.data_elements.find_by(name: name)
data_set = $dhis.data_sets.find(dataset_id)
status = data_set.add_relation(:dataSetElements, data_element.id)
puts status.inspect
end
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.