Re: [Dhis2-users] [Dhis2-devs] Using program rule expressions in Program indicator expressions

2018-02-15 Thread Sam Johnson
Hi Markus and Bernard, At the start of last year, we reported this exclusion of parentheses from all program indicator functions as a bug (DHIS2-590), but it actually turned out to be intentional, so was changed from a bug to an Improvement. Since it

Re: [Dhis2-users] Unable to retrieve events via API or import/export apps for programs with Custom Combinations of Categories

2018-02-15 Thread Ocaya Stephen
Hi JM, Looks like the issues has never been resolved right? I have confirmed this in Version 2.27, 2.28, and I assume it is the same case with lower version. Is this supposed to be so or it is yet in plan for implementation in a future version? Regards On Thu, Feb 15, 2018 at 10:43 PM, JM

Re: [Dhis2-users] Unable to retrieve events via API or import/export apps for programs with Custom Combinations of Categories

2018-02-15 Thread JM Alcantara
Hello Stephen Please take a look at Jira issue https://jira.dhis2.org/browse/DHIS2-2048 JM > El 15/02/2018, a las 20:29, Ocaya Stephen escribió: > > > HI, I Posted a bug in DHIS2 on JIRA HERE >

[Dhis2-users] Unable to retrieve events via API or import/export apps for programs with Custom Combinations of Categories

2018-02-15 Thread Ocaya Stephen
HI, I Posted a bug in DHIS2 on JIRA HERE but seems not response to it. Kindly review the details below: The problem happens when a custom category combination is applied to a program. When done, it is impossible to get data from import/export (Export

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
This is super, I will try and work around that. Thank you. == Isaiah Nyabuto +254729572616 Bsc. Health Records Management and Informatics On Feb 15, 2018 17:10, "Knut Staring" wrote: > Everything done from the user interface is done through the API,

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Knut Staring
Everything done from the user interface is done through the API, so yes. The API also gives you more flexibility to filter etc. The manual describes this. https://docs.dhis2.org/master/en/developer/html/webapi_metadata_crud.html

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
Hi Knut, Yes. And is it possible to do that APIs? Thank you. == Isaiah Nyabuto +254729572616 Bsc. Health Records Management and Informatics On Feb 15, 2018 16:29, "Knut Staring" wrote: > Hi Isaiah, > > When you say "extract", you mean you want to

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Knut Staring
Hi Isaiah, When you say "extract", you mean you want to take metadata from one instance of DHIS2 and import to another one? That can be done through the user interface as described in the user manual: https://docs.dhis2.org/master/en/user/html/import_export.html

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
Hi Jason, Thank you. I am going to look into that keenly. And If I may ask, is there a way I can extract dhis2 metadata that can be imported directly or with minimal transformations? This will be helpful. Thank you. == Isaiah Nyabuto +254729572616 Bsc. Health Records

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Jason Pickering
Hi Isaiah, You have "parent":"vpiZlB5cdK7" It should be parent":{"id":"vpiZlB5cdK7"}} Be sure your JSON structure is exactly as it should be, otherwise, you will get those kinds of errors. Study the example here

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
Thank you for the tip. It still doesn't work. what does this error mean? httr::content(r, "text") [1] "{\"httpStatus\":\"Internal Server Error\",\"httpStatusCode\": 500,\"status\":\"ERROR\",\"message\":\"Can not instantiate value of type [simple type, class

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Jason Pickering
All of your fields must have exactly the correct names: shortname -> shortName featuretype-> featureType Keep hacking at it! You will get there! Regards, Jason On Thu, Feb 15, 2018 at 11:08 AM, Isaiah Nyabuto wrote: > Hi Jason, > > Here is some bit of my post data.

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
Hi Jason, Here is some bit of my post data. {"organisationUnits":[{"name":"Wikithuki Dispensary","uid":"Bc371uxfYD5","code":"16925","parent":"vpiZlB5cdK7","shortname":"Wikithuki

Re: [Dhis2-users] coordinates not found

2018-02-15 Thread Henning Håkonsen
Hi Natalie I have looked at the supplied files and noticed that there are coordinates in the list which are not separated with ‘,’. This applies for both files. I would try to go through the files and verify that all coordinates are properly separated and try to import the files another time.

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Jason Pickering
Hi Isaiah, Post a bit of your JSON here from toJSON(list(organisationUnits=new_org), auto_unbox = TRUE) One other problem I noticed as well is this [{"name":"Wikithuki Dispensary","uid":"Bc371uxfYD5" It should be [{"name":"Wikithuki Dispensary","id":"Bc371uxfYD5" Regards, Jason On Thu,

Re: [Dhis2-users] Posting Metadata in dhis2.

2018-02-15 Thread Isaiah Nyabuto
Hi Jason, I get an internal server error code: 500, after trying that. Here is the response; httr::content(r, "text")[1] "{\"httpStatus\":\"Internal Server Error\",\"httpStatusCode\":500,\"status\":\"ERROR\",\"message\":\"Can not instantiate value of type [simple type, class