Re: [Dhis2-users] API Access to indicators

2015-11-03 Thread Matt Berg
Lars thank you understood.  Thanks everyone this is extremely helpful.

Matt

On Wednesday, November 4, 2015, Lars Helge Øverland 
wrote:

> Hi Matt,
>
> note that we do not store indicator values at all in the system.
> Calculated / aggregated indicator values are computed on the fly and can be
> retrieved through the analytics web api resource
> .
>
> Like Jan says, playing with the web pivot table app and going to download
> > plain datasource > json is a good way to learn the syntax.
>
> One example query URL looks like this:
>
>
> https://apps.dhis2.org/demo/api/analytics.json?dimension=dx:Uvn6LCg7dVU;OdiHJayrsKo&dimension=pe:LAST_12_MONTHS&filter=ou:ImspTQPwCqd&displayProperty=SHORTNAME
>
>
>
> Lars
>
>
>
>
> On Mon, Nov 2, 2015 at 1:52 AM, Matt Berg  > wrote:
>
>> Hi DHIS2 Community,
>>
>> The DHIS2 indicator engine is very possible.  We are interested in
>> exploring ways to integrate it with external platforms and UI's.
>>
>> I'm curious on the API support for indicators.  From the documentation,
>> it looks like you might only be able to get indicator descriptions from the
>> API?  Is there an API endpoint that handles the standard CRUD operations
>> for indicators?
>>
>> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html
>>
>> Also, is there any documentation on how to access generated indicator
>> values via the API once they've been created.  For adding data, I assume we
>> just use the standard data input API's.
>>
>> Thanks for your help with this.
>>
>> Matt
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> 
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API Access to indicators

2015-11-03 Thread Lars Helge Øverland
Hi Matt,

note that we do not store indicator values at all in the system. Calculated
/ aggregated indicator values are computed on the fly and can be retrieved
through the analytics web api resource
.

Like Jan says, playing with the web pivot table app and going to download >
plain datasource > json is a good way to learn the syntax.

One example query URL looks like this:

https://apps.dhis2.org/demo/api/analytics.json?dimension=dx:Uvn6LCg7dVU;OdiHJayrsKo&dimension=pe:LAST_12_MONTHS&filter=ou:ImspTQPwCqd&displayProperty=SHORTNAME



Lars




On Mon, Nov 2, 2015 at 1:52 AM, Matt Berg  wrote:

> Hi DHIS2 Community,
>
> The DHIS2 indicator engine is very possible.  We are interested in
> exploring ways to integrate it with external platforms and UI's.
>
> I'm curious on the API support for indicators.  From the documentation, it
> looks like you might only be able to get indicator descriptions from the
> API?  Is there an API endpoint that handles the standard CRUD operations
> for indicators?
>
> https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html
>
> Also, is there any documentation on how to access generated indicator
> values via the API once they've been created.  For adding data, I assume we
> just use the standard data input API's.
>
> Thanks for your help with this.
>
> Matt
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Reporting Rates in Data Visualizer

2015-11-03 Thread Lars Helge Øverland
Hi Nick,

you are right. This is inconsistent. In fact, "Data sets" is the same as
"Reporting rates", so you can use that for now. We will update the label.

regards,

Lars


On Tue, Nov 3, 2015 at 3:22 AM, Shurajit Dutta 
wrote:

> Hello.
>
> I have noticed that reporting rates are no longer available as a data item
> in the data visualizer in 2.21. Is this by design? This was using the demo
> database available on dhis2.org. They seem to be there for pivot tables
> and GIS still.
>
> [image: Inline image 1]
>
> On another note, for the demo instance, I can't seem to get the GIS app to
> load. It just hangs at the loading screen. It looks like the maps on the
> dashboard are not loading either. This is working offline however using
> 2.21 on a different instance.
>
> Nick
> --
> Shurajit Dutta
> Health Information Consultant
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Quick bug identified for Metadata import between versions …

2015-11-03 Thread Lars Helge Øverland
Hi David,

that sounds correct. Unfortunately for 2.20 and 2.21 we changed some values
into enums (predefined values in the data model) so 2.18 exports might not
be compatible with 2.20 / 2.21.

One solution is to upgrade the target system before making the system to
match the version of the destination system.

regards,

Lars


On Tue, Nov 3, 2015 at 5:36 AM, David Hagan 
wrote:

> Hi there …
>
> My first posting I believe …
> I suppose it should go over into the Developers List as well… but here’s a
> heads-up in case you try the following:
>
> *Scenario*
>
>- We were taking metadata definitions for data elements (XML format)
>from and instance of DHIS2 on version 2.18 to an instance on 2.20
>- Imports were failing with Error 500: Internal Server Error
>
> *Reason*
>
>- Version 2.18 exports have an attribute dataDimensionType, that when
>set to disaggregation, as in
>disaggregation, is not compatible
>with the XML import parser for version 2.20
>- Version 2.20 exports and only imports the value in ALL CAPS … as
>in DISAGGREGATION
>
> I haven’t had time to dig down further to see if this case-sensitivity
> issue is global, just for this attribute or valid for other versions (e.g.
> 2.21). Work-around obviously was to do a search/replace and capitalise the
> value before import.
>
> Cheers
>
>
> David Hagan
> Skype: david.j.hagan
> Mobile: +41 79 848 5359
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Quick bug identified for Metadata import between versions …

2015-11-03 Thread David Hagan
Hi there …

My first posting I believe …
I suppose it should go over into the Developers List as well… but here’s a
heads-up in case you try the following:

*Scenario*

   - We were taking metadata definitions for data elements (XML format)
   from and instance of DHIS2 on version 2.18 to an instance on 2.20
   - Imports were failing with Error 500: Internal Server Error

*Reason*

   - Version 2.18 exports have an attribute dataDimensionType, that when
   set to disaggregation, as in
   disaggregation, is not compatible
   with the XML import parser for version 2.20
   - Version 2.20 exports and only imports the value in ALL CAPS … as
   in DISAGGREGATION

I haven’t had time to dig down further to see if this case-sensitivity
issue is global, just for this attribute or valid for other versions (e.g.
2.21). Work-around obviously was to do a search/replace and capitalise the
value before import.

Cheers


David Hagan
Skype: david.j.hagan
Mobile: +41 79 848 5359
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Problem using d2:condition()

2015-11-03 Thread ramaso hasina
Hi Ese,

Thank you for your help, you know what I mean.

It works fine.

Hasina



2015-11-03 1:50 GMT+03:00 Ese Egerega :

> Hi Hasina,
>
> Am not sure if this is what you mean but I had an experience where program
> indicators with the d2:condition function always evaluated to "false" when
> displayed in the tracker.
>
> You may want to try using the ternary conditional operator instead:
>
> condition ? if_true : if_false
>
> So your first expression will look like this...
>
> 1 > 0 ? 1 : 0
>
> The result will be 1 since the expression (1 > 0) evaluates to true.
>
> Thanks,
>
> -Ese
> On Oct 30, 2015 1:30 PM, "ramaso hasina"  wrote:
>
>> Hi all,
>>
>> I've created a program with some program stages.
>> When I create a program indicator using the function d2:condition,
>> the result is not what I'm expected.
>>
>> Example in the expression field :
>>   - d2:condition('1 > 0',1,0) => result "false".
>>   - d2:condition('#{w7N4mScR2g6.Sv4bRYIiSHy} == true',1,0) => result
>> "false" (#{w7N4mScR2g6.Sv4bRYIiSHy} having a "true" value)
>>
>> Need help.
>>
>> Thanks.
>>
>> Hasina.
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Reporting Rates in Data Visualizer

2015-11-03 Thread Shurajit Dutta
Possibly. Am trying it in incognito mode. Probably not so important if its
working for others though.

On Tue, Nov 3, 2015 at 4:33 PM, Knut Staring  wrote:

> Not sure about your main question, but the GIS module seems to load ok for
> me in the online demo. Could it be a cache issue?
>
> Knut
>
> On Tue, Nov 3, 2015 at 10:22 AM, Shurajit Dutta 
> wrote:
>
>> Hello.
>>
>> I have noticed that reporting rates are no longer available as a data
>> item in the data visualizer in 2.21. Is this by design? This was using the
>> demo database available on dhis2.org. They seem to be there for pivot
>> tables and GIS still.
>>
>> [image: Inline image 1]
>>
>> On another note, for the demo instance, I can't seem to get the GIS app
>> to load. It just hangs at the loading screen. It looks like the maps on the
>> dashboard are not loading either. This is working offline however using
>> 2.21 on a different instance.
>>
>> Nick
>> --
>> Shurajit Dutta
>> Health Information Consultant
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>



-- 
Shurajit Dutta
Health Information Consultant
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Reporting Rates in Data Visualizer

2015-11-03 Thread Knut Staring
Not sure about your main question, but the GIS module seems to load ok for
me in the online demo. Could it be a cache issue?

Knut

On Tue, Nov 3, 2015 at 10:22 AM, Shurajit Dutta 
wrote:

> Hello.
>
> I have noticed that reporting rates are no longer available as a data item
> in the data visualizer in 2.21. Is this by design? This was using the demo
> database available on dhis2.org. They seem to be there for pivot tables
> and GIS still.
>
> [image: Inline image 1]
>
> On another note, for the demo instance, I can't seem to get the GIS app to
> load. It just hangs at the loading screen. It looks like the maps on the
> dashboard are not loading either. This is working offline however using
> 2.21 on a different instance.
>
> Nick
> --
> Shurajit Dutta
> Health Information Consultant
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Reporting Rates in Data Visualizer

2015-11-03 Thread Shurajit Dutta
Sorry, just to add. My offline instance is build 20853, while the demo
is 20872.
Reporting rate does not appear in data visualizer for both.

Nick

On Tue, Nov 3, 2015 at 4:22 PM, Shurajit Dutta 
wrote:

> Hello.
>
> I have noticed that reporting rates are no longer available as a data item
> in the data visualizer in 2.21. Is this by design? This was using the demo
> database available on dhis2.org. They seem to be there for pivot tables
> and GIS still.
>
> [image: Inline image 1]
>
> On another note, for the demo instance, I can't seem to get the GIS app to
> load. It just hangs at the loading screen. It looks like the maps on the
> dashboard are not loading either. This is working offline however using
> 2.21 on a different instance.
>
> Nick
> --
> Shurajit Dutta
> Health Information Consultant
>



-- 
Shurajit Dutta
Health Information Consultant
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Reporting Rates in Data Visualizer

2015-11-03 Thread Shurajit Dutta
Hello.

I have noticed that reporting rates are no longer available as a data item
in the data visualizer in 2.21. Is this by design? This was using the demo
database available on dhis2.org. They seem to be there for pivot tables and
GIS still.

[image: Inline image 1]

On another note, for the demo instance, I can't seem to get the GIS app to
load. It just hangs at the loading screen. It looks like the maps on the
dashboard are not loading either. This is working offline however using
2.21 on a different instance.

Nick
-- 
Shurajit Dutta
Health Information Consultant
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp