Re: [Dhis2-users] importing datasets between 2 2.25 instances

2017-02-28 Thread Morten Olav Hansen
Jason,

Would you mind giving me a fresh XML dump of the data set metadata? the
version Nick sent me, seem to be from an older version... I just want to
try and see if it can be imported into an empty database

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Feb 28, 2017 at 4:09 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Morten,
> We upgraded to the absolute latest version (as of yesterday) and had the
> same problem. However, in this case, there was more to the story. In the
> destination system, a catcombo existed with exactly the same categories and
> category options, but with a different UID.  After removing this in the
> destination system and reimporting the category combo, it worked.
>
> What did not work however was using the payload from the metadata
> dependency exporter. I had to create a script to first extract
>
> 1) All dependent category combos and cat option combos
> 2) All dependent indicators
> 3) All dependent data entry forms
>
> 1) and 2) were uploaded prior to uploading the dataset. 3) was uploaded
> separately after the import of the dataset.
>
> Neither 1 nor 2 worked via the UI, but only worked by POSTing direclty to
> the /api/25 end point.
>
> So, in general, quite a bit of gymnastics. I really hope we can get the
> dependency exporter back in place ,as this has really complicated workflows
> where we are creating things on a dev instance and then moving it to a
> production instance.
>
> Regards,
> Jason
>
>
> On Tue, Feb 28, 2017 at 9:44 AM, Morten Olav Hansen 
> wrote:
>
>> Hi Nick
>>
>> When did you update this instance last time? would you mind upgrading to
>> latest 2.25 and trying again? You might still see similar errors, but I see
>> from your payload.. that the export is probably from an older version of
>> 2.25?
>>
>> Both instances should also run the same version of 2.25 (if possible, as
>> there has been some backports)
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Feb 28, 2017 at 1:29 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Nick
>>>
>>> I'm looking into it (I can reproduce it locally)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Sat, Feb 25, 2017 at 2:05 PM, Shurajit Dutta >> > wrote:
>>>
 Hi,

 I am trying to import a dataset from a development instance (on 2.25)
 over to a production instance of 2.25. I exported the dataset from the
 development instance using the meta-data dependency export. I tried testing
 importing it locally (both through UI and by posting via cUrl) and am
 receiving the following error in the log file:

 Caused by: org.postgresql.util.PSQLException: ERROR: null value in
 column "categorycomboid" violates not-null constraint
 Detail: Failing row contains (363716, DTI66gwkiYc, PR_4, 2016-09-25
 16:37:50.541, 2017-02-25 12:34:41.404, PR_MSM reached with HIV prevention
 {Site (Outreach, DIC)} (V1), PR_MSM reached, null, 1.5. Number of men who
 have sex with men reached with HIV preven..., INTEGER_ZERO_OR_POSITIVE,
 AGGREGATE, SUM, null, null, f, null, null, 176738, , null).

 When I check the corresponding DE's in the XML file, they all have
 categorycomboid's (file attached). Is there anything else that might be
 causing this error?

 Thanks,
 Nick

 ___
 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
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
___
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] Graphs with consistent facilities

2017-02-28 Thread Davis, Kelly
Hi all,

I'm trying to create a graph for facility performance over multiple time 
periods. However, I'm having trouble finding a way to create this graph to only 
include those facilities that are consistently visited during each time period. 
Has anyone ever created a graph to only include consistent facilities (or 
something else such as consistent participants), or have any advice on how to 
do this? I would appreciate any advice!

Best,
Kelly

___
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] [Dhis2-devs] Aggregated Data Capture using Android app

2017-02-28 Thread gerald thomas
Dear Araz,
I do not know if it had been done before or not because i am not
having much feedback from my DHIS2 colleagues which means i rely
totally on you for this project to be successful.

We want to take Data Entry to chiefdom level and at this level we have
limited electricity and Internet connectivity. In that case we are
thinking of a tablet app that can store data offline and then
automatically sync those offline data into the central server when the
tablet is online.

My questions:
1. Do we have any extra technicalities
2. Can you give us hardware recommendation for this implementation


On 2/28/17, Araz Abishov  wrote:
> Hi,
>
> *@Calle, *
> In order to refresh metadata / data you either need to use pull-to-refresh
> gesture within “Aggregate Report” screen or just let android app to sync
> automatically (background service is invoked whenever device gets online).
> I will add refresh button in the next release, in order to make it more
> explicit (feel free to create an issue in jira).
>
> Aggregate data capture supports DHIS 2 starting from 2.23 and up to 2.26.
> If it fails to sync, there are changes or backports which could break API.
> If you notice this, please create a report in jira (including revision
> number of DHIS 2 instance).
>
> *@Gerald, *
> I guess a good place to start with android for DHIS 2 can be this document
> .
> Please, let us know if you have any specific questions.
>
> Best regards,
>
> —
> Araz Abishov,
> Android developer, DHIS 2
> University of Oslo
> https://www.dhis2.org/
>
> On February 28, 2017 at 8:44:52 AM, gerald thomas (gerald17...@gmail.com)
> wrote:
>
> Dear Araz & Colleagues,
> Please i am really out of ideas; any help from OpCo who had done this
> implementation before. Kindly remember that the key here is to do data
> entry off-line using tablets and once they are on-line their tablets
> should sync with the main server and all data are then uploaded.
>
> Thanks in advance for your help.
>
> On 2/27/17, Calle Hedberg  wrote:
>> Araz,
>>
>> I've just assisted Gerald with getting into the "Data capture for DHIS2"
>> app - the server is running 2.25 and we downloaded the latest app from
>> Google store.
>>
>> What is really perplexing is that the app only shows ONE data set - the
> one
>> called "Population estimates". Furthermore, the data elements under that
>> data set are old elements that were removed over a month ago - and none
> of
>> the current population data elements are showing.
>>
>> I cannot see any menu option for refreshing the database or anything like
>> that - there is only "Aggregate Report" and then "Choose Organisation
>> Unit".
>>
>> Is that app supported under 2.25?
>>
>> Regards
>> Calle
>>
>> On 27 February 2017 at 17:27, gerald thomas 
> wrote:
>>
>>> Araz,
>>> This is very new to me and i will like to know the best possible way
>>> we should implement this project. Please if you can kindly share
>>> everything with reference to similar project(s), i will be grateful.
>>> Also i know there will be challenges with reference to android
>>> devices, so i am kindly requesting that you should advice on the best
>>> android tablet specification for this project.
>>>
>>> On 2/27/17, Araz Abishov  wrote:
>>> > Hi Gerald,
>>> >
>>> > Do you questions regarding android specifically or more about
>>> configuration
>>> > part of the server?
>>> >
>>> > Best regards,
>>> >
>>> > —
>>> > Araz Abishov,
>>> > Android developer, DHIS 2
>>> > University of Oslo
>>> > https://www.dhis2.org/
>>> >
>>> > On February 27, 2017 at 3:15:27 PM, gerald thomas
>>> > (gerald17...@gmail.com
>>> )
>>> > wrote:
>>> >
>>> > Dear All,
>>> > We want to capture our aggregated data (HF1 to HF8 forms) at CHC level
>>> > (partial electricity & network coverage) to an android device and
>>> > later synced all information to our cloud hosting instance. Please can
>>> > anyone help me with the procedures to achieve it. I will also like to
>>> > know the challenges colleagues face and their approach to tackle these
>>> > issues.
>>> >
>>> > Thanks in advance for your help.
>>> > Regards,
>>> >
>>> > Gerald
>>> >
>>> > ___
>>> > 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
>>> >
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Gerald
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-d...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>>
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Re: [Dhis2-users] [Dhis2-devs] Aggregated Data Capture using Android app

2017-02-28 Thread Araz Abishov
Hi,

*@Calle, *
In order to refresh metadata / data you either need to use pull-to-refresh
gesture within “Aggregate Report” screen or just let android app to sync
automatically (background service is invoked whenever device gets online).
I will add refresh button in the next release, in order to make it more
explicit (feel free to create an issue in jira).

Aggregate data capture supports DHIS 2 starting from 2.23 and up to 2.26.
If it fails to sync, there are changes or backports which could break API.
If you notice this, please create a report in jira (including revision
number of DHIS 2 instance).

*@Gerald, *
I guess a good place to start with android for DHIS 2 can be this document
.
Please, let us know if you have any specific questions.

Best regards,

—
Araz Abishov,
Android developer, DHIS 2
University of Oslo
https://www.dhis2.org/

On February 28, 2017 at 8:44:52 AM, gerald thomas (gerald17...@gmail.com)
wrote:

Dear Araz & Colleagues,
Please i am really out of ideas; any help from OpCo who had done this
implementation before. Kindly remember that the key here is to do data
entry off-line using tablets and once they are on-line their tablets
should sync with the main server and all data are then uploaded.

Thanks in advance for your help.

On 2/27/17, Calle Hedberg  wrote:
> Araz,
>
> I've just assisted Gerald with getting into the "Data capture for DHIS2"
> app - the server is running 2.25 and we downloaded the latest app from
> Google store.
>
> What is really perplexing is that the app only shows ONE data set - the
one
> called "Population estimates". Furthermore, the data elements under that
> data set are old elements that were removed over a month ago - and none
of
> the current population data elements are showing.
>
> I cannot see any menu option for refreshing the database or anything like
> that - there is only "Aggregate Report" and then "Choose Organisation
> Unit".
>
> Is that app supported under 2.25?
>
> Regards
> Calle
>
> On 27 February 2017 at 17:27, gerald thomas 
wrote:
>
>> Araz,
>> This is very new to me and i will like to know the best possible way
>> we should implement this project. Please if you can kindly share
>> everything with reference to similar project(s), i will be grateful.
>> Also i know there will be challenges with reference to android
>> devices, so i am kindly requesting that you should advice on the best
>> android tablet specification for this project.
>>
>> On 2/27/17, Araz Abishov  wrote:
>> > Hi Gerald,
>> >
>> > Do you questions regarding android specifically or more about
>> configuration
>> > part of the server?
>> >
>> > Best regards,
>> >
>> > —
>> > Araz Abishov,
>> > Android developer, DHIS 2
>> > University of Oslo
>> > https://www.dhis2.org/
>> >
>> > On February 27, 2017 at 3:15:27 PM, gerald thomas
>> > (gerald17...@gmail.com
>> )
>> > wrote:
>> >
>> > Dear All,
>> > We want to capture our aggregated data (HF1 to HF8 forms) at CHC level
>> > (partial electricity & network coverage) to an android device and
>> > later synced all information to our cloud hosting instance. Please can
>> > anyone help me with the procedures to achieve it. I will also like to
>> > know the challenges colleagues face and their approach to tackle these
>> > issues.
>> >
>> > Thanks in advance for your help.
>> > Regards,
>> >
>> > Gerald
>> >
>> > ___
>> > 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
>> >
>>
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>


-- 
Regards,

Gerald
___
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] Interoperating 2 DHIS2 instances to pull data from one to other.

2017-02-28 Thread Terence Scott
Hi David

Thank you so much for the help! I will look into this and try it out with
the instances we are looking to mirror.

Kind regards,
Terence

Terence Scott

Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.sc...@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987


On Tue, Feb 28, 2017 at 12:59 PM, David Huser  wrote:

> Hi Vunda and Terence
>
> Ideally you have an identical set of metadata for indicators, dataElements
> and dataSets (or dataElements and Programs). You can then pull dataValues
> (or events) via API of the source instance (1) and then post them again (2)
> to the API of the target instance. To routinely do this, install a cronjob
> which calls your script e.g. once a day.
>
> (1) https://docs.dhis2.org/2.22/en/developer/html/dhis2_
> developer_manual_full.html#d5274e1642
> https://docs.dhis2.org/2.22/en/developer/html/dhis2_
> developer_manual_full.html#d5274e1994
>
> (2) https://docs.dhis2.org/2.22/en/developer/html/dhis2_
> developer_manual_full.html#d5274e1316
> https://docs.dhis2.org/2.22/en/developer/html/dhis2_
> developer_manual_full.html#d5274e1788
>
> Best
> David
>
>
>
> On Tue, Feb 28, 2017 at 10:11 AM, Terence Scott <
> terence.sc...@rabiesalliance.org> wrote:
>
>> Hi Vunda
>>
>> We are also interested in interoperating two instances and would also
>> like to have data mirrored between the two instances automatically. Any
>> advice would be welcome as to how to proceed with this - we are
>> specifically interested in mirroring a tracker programme.
>>
>> Kind regards,
>> Terence
>>
>>
>> Terence Scott
>>
>> Global Alliance for Rabies Control (GARC)
>> Pan-African Rabies Control Network (PARACON) Steering Committee
>> terence.sc...@rabiesalliance.org
>> https://paracon.rabiesalliance.org
>> Skype: tpscott1987
>>
>>
>> On Wed, Feb 22, 2017 at 5:17 PM, vunda limbe  wrote:
>>
>>> Hi Every body,
>>>
>>> I want to interoperate two instance. the first is running version 2.22
>>> and the second is running v.2.23. I have a specific data elements,
>>> indicators that I want them pull automatically monthly data to the second
>>> Instance.
>>> I'm looking for a script or something else that can make its possible
>>> and the way  and where to set up.
>>> Your help is welcome,
>>>
>>>
>>> Thanks.
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
>
>
> *David Huser*
> DHIS2 Support Specialist
> dhu...@baosystems.com | https://baosystems.com | Skype: dafhus | 2900 K
> Street, Suite 406, Washington D.C. 20007
>
___
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] [Dhis2-devs] Fw: Tracker Events period issue

2017-02-28 Thread Immaculate Ayebazibwe
Hi Abyot,

Based on your explanation, even when you use only date, it will not go
beyond a given year.
For example it will show only dates within 2017, or dates within 2016.



Thank you and Kind Regards
*Immarcqulate. A (Emma Kassy) *

*"You miss 100% of the shots you don't take."*

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw 
wrote:

> Hi,
>
> Trying to clarify in case there is a misunderstanding in the creation of
> event in tracker capture
>
>- events have two types of dates - event date and due date
>- future date is allowed for due date not for event date as the event
>date is the date where the event has happened
>- the plus icon is to "Add new" while the calendar icon is to
>"Schedule new"
>
> A problem we have is for those events with period type - like daily,
> weekly, monthly, yearly For those without period type, but only date,
> the system works as expected.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati 
> wrote:
>
>> I have the same issue but i have resorted to using the Mobile Tracker
>> Capture instead as it gives an opportunity to backtrack dates.
>>
>> Unless there is another way round but I find the mobile version ideal in
>> this scenario
>>
>> On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA"  wrote:
>>
>>> Someone please help
>>>
>>>
>>>
>>>
>>> On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <
>>> absolo...@yahoo.com> wrote:
>>>
>>>
>>> Dear Community,
>>>
>>> I have a program in Tracker (DHIS v2.26) configured with 2 repeatable
>>> program stages. My issue is that when i try to add new events, I am not
>>> able to see months/year for 2017. it is only stuck in 2016. Has anyone
>>> encountered this before and willing to advise how i can resolve it?
>>> Thank you.
>>>
>>> Absolom
>>>
>>>
>>>
>>>
>>> ___
>>> 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-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> 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
>
>
___
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] Interoperating 2 DHIS2 instances to pull data from one to other.

2017-02-28 Thread David Huser
Hi Vunda and Terence

Ideally you have an identical set of metadata for indicators, dataElements
and dataSets (or dataElements and Programs). You can then pull dataValues
(or events) via API of the source instance (1) and then post them again (2)
to the API of the target instance. To routinely do this, install a cronjob
which calls your script e.g. once a day.

(1)
https://docs.dhis2.org/2.22/en/developer/html/dhis2_developer_manual_full.html#d5274e1642
https://docs.dhis2.org/2.22/en/developer/html/dhis2_developer_manual_full.html#d5274e1994

(2)
https://docs.dhis2.org/2.22/en/developer/html/dhis2_developer_manual_full.html#d5274e1316
https://docs.dhis2.org/2.22/en/developer/html/dhis2_developer_manual_full.html#d5274e1788

Best
David



On Tue, Feb 28, 2017 at 10:11 AM, Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Hi Vunda
>
> We are also interested in interoperating two instances and would also like
> to have data mirrored between the two instances automatically. Any advice
> would be welcome as to how to proceed with this - we are specifically
> interested in mirroring a tracker programme.
>
> Kind regards,
> Terence
>
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
>
> On Wed, Feb 22, 2017 at 5:17 PM, vunda limbe  wrote:
>
>> Hi Every body,
>>
>> I want to interoperate two instance. the first is running version 2.22
>> and the second is running v.2.23. I have a specific data elements,
>> indicators that I want them pull automatically monthly data to the second
>> Instance.
>> I'm looking for a script or something else that can make its possible and
>> the way  and where to set up.
>> Your help is welcome,
>>
>>
>> Thanks.
>>
>> ___
>> 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
>
>


-- 


*David Huser*
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com | Skype: dafhus | 2900 K
Street, Suite 406, Washington D.C. 20007
___
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] [Dhis2-devs] Fw: Tracker Events period issue

2017-02-28 Thread Absolom MURAMIRA
Dear Abyot,
My problem is on program stages which are repeatable on monthly/yearly periods.
Thank you.
Absolom



On Tuesday, February 28, 2017 12:31 PM, Abyot Asalefew Gizaw 
 wrote:
 

 Hi,
Trying to clarify in case there is a misunderstanding in the creation of event 
in tracker capture   
   - events have two types of dates - event date and due date   

   - future date is allowed for due date not for event date as the event date 
is the date where the event has happened
   - the plus icon is to "Add new" while the calendar icon is to "Schedule new"
A problem we have is for those events with period type - like daily, weekly, 
monthly, yearly For those without period type, but only date, the system 
works as expected.
--
Abyot A. Gizaw.
Senior Engineer, DHIS2University of Oslohttp://www.dhis2.org
On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati  wrote:

I have the same issue but i have resorted to using the Mobile Tracker Capture 
instead as it gives an opportunity to backtrack dates.
Unless there is another way round but I find the mobile version ideal in this 
scenario
On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA"  wrote:

Someone please help



On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA 
 wrote:
 

 Dear Community,
I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program 
stages. My issue is that when i try to add new events, I am not able to see 
months/year for 2017. it is only stuck in 2016. Has anyone encountered this 
before and willing to advise how i can resolve it?Thank you.
Absolom


   
__ _
Mailing list: https://launchpad.net/~dhis2-u sers
Post to     : dhis2-us...@lists.launchpad.ne t
Unsubscribe : https://launchpad.net/~dhis2-u sers
More help   : https://help.launchpad.net/Lis tHelp



__ _
Mailing list: https://launchpad.net/~dhis2- devs
Post to     : dhis2-d...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2- devs
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] Fw: Tracker Events period issue

2017-02-28 Thread Stanley Kalyati
Yes Absolom,the android tracker capture app.

Thanks

Stanley

On Tue, Feb 28, 2017 at 12:10 PM, Absolom MURAMIRA 
wrote:

> Dear Stanley,
>
> Thank you for your feedback. Do you mean the android tracker capture app?
>  Absolom 
>
>
>
> On Tuesday, February 28, 2017 12:00 PM, Stanley Kalyati <
> skaly...@gmail.com> wrote:
>
>
> I have the same issue but i have resorted to using the Mobile Tracker
> Capture instead as it gives an opportunity to backtrack dates.
>
> Unless there is another way round but I find the mobile version ideal in
> this scenario
>
> On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA"  wrote:
>
> Someone please help
>
>
>
>
> On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <
> absolo...@yahoo.com> wrote:
>
>
> Dear Community,
>
> I have a program in Tracker (DHIS v2.26) configured with 2 repeatable
> program stages. My issue is that when i try to add new events, I am not
> able to see months/year for 2017. it is only stuck in 2016. Has anyone
> encountered this before and willing to advise how i can resolve it?
> Thank you.
>
> Absolom
>
>
>
>
> __ _
> 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] How to implement interoperability between 2 DHIS2 instance

2017-02-28 Thread David Huser
Hi Vunda

Can you share what you got so far and what you would like to do eventually?
Maybe data or metadata synchronization would be an option?
https://docs.dhis2.org/master/en/user/html/dhis2_user_manual
_en_full.html#dataAdmin_dataSync
https://docs.dhis2.org/master/en/user/html/dhis2_user_manual
_en_full.html#metadata_sync

I attached a very basic Python script that just adds "myChange" to all
names of dataElements that begin with "ANC" (on Demo server).

To run it, you need to install the library *requests* (it's a very good
library for making API calls but you can use built-in methods as well) with
pip:

1) Install pip: https://pip.pypa.io/en/stable/installing/
2) In a terminal: pip install requests
3) Change directories to the folder where you downloaded de-renamer.py with cd
/path/to/folder
4) Inspect the code and what it does
5) In the same terminal:  python de-renamer.py

Good luck! Let us know how it went.

David


On Mon, Feb 27, 2017 at 9:23 PM, vunda limbe  wrote:

> It seems that david change is mail adress.
>
> On Mon, Feb 27, 2017 at 9:22 PM, vunda limbe  wrote:
>
>> Hi David and Everybody,
>>
>> I begun to learn what you told me, but I'm stucked at the begining. Do
>> you have an example of script that I can based on to build mine that work?
>> Thanks for your support.
>>
>> On Tue, Apr 5, 2016 at 9:18 AM, David Huser 
>> wrote:
>>
>>> Hi Vunda
>>>
>>> The nature of a Web API is its openness to be used by any software. As a
>>> start, I would start in trying to understand how such an API works, which
>>> is based on "HTTP REST" principles.
>>> REST in layman's terms: http://www.looah.com/source/view/2284
>>> REST basics (IBM developers): https://www.ibm.com/developerw
>>> orks/library/ws-restful/index.html
>>> Specification for DHIS2: https://dhis2.github.io/dhis2-
>>> docs/master/en/developer/html/dhis2_developer_manual_full.html
>>>
>>> As an example, the programming language Python can be used, which is
>>> installable on any system and is on Ubuntu by default. DHIS2 supports the
>>> transportation format JSON. There's a new library on github (
>>> https://github.com/dhis2/dhis2-python, but have not tried it yet) or
>>> you can write your own.
>>> So a basic procedure would be:
>>>
>>> myscript.py
>>> 1. load a configuration of both APIs (username, url, passwords)
>>> 2. make a GET request to a specific endpoint of MoH API
>>> 3. validate, transform,... the received data
>>> 4. make a POST request to another specific endpoint of your other
>>> instance's API
>>>
>>> and then install a cronjob which calls this script with "* * * * *
>>> python myscript.py"
>>>
>>> Further extensions could be logging to a file and a mail notification if
>>> something goes wrong.
>>>
>>> I hope this can help a bit.
>>>
>>> Best regards
>>> David
>>>
>>>
>>>
>>>
>>> On 03.04.2016 08:34, vunda limbe wrote:
>>>
>>> Hi All,
>>>
>>>
>>> I'm newbie on DHIS2. I implemented an instance that work for my
>>> organisation and I need to Interoperate with MOH instance to retrieve data
>>> each month for some health facilities.
>>> I need guidance on how to set up interoperability by using web API and
>>> how to create a cronjob that will fetch data from MOH instance to my
>>> instance each month.
>>>
>>> Could you please help me to find ressources (course, tutorials, step by
>>> step code, etc.) and advises on how to implement?
>>>
>>> Thank you all for your help.
>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>>
>>>
>>
>


-- 


*David Huser*
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com | Skype: dafhus | 2900 K
Street, Suite 406, Washington D.C. 20007
#!/usr/bin/python

import json, requests

# config
baseurl = 'https://play.dhis2.org/demo'
username = 'admin'
password = 'district'

#fetch data elements
req = requests.get(url='{}/api/dataElements?paging=false=id,name,shortName,aggregationType,domainType,valueType,categoryCombo=name:^like:ANC'.format(baseurl), auth=(username, password))
data_elements = req.json()

#rename data elements
for elem in data_elements['dataElements']:	
	elem['name'] = "{} myChange".format(elem['name'])

print("Written {} elements".format(len(data_elements['dataElements'])))

#dump import file
with open('renamed_upload.json', 'w') as f:
	rn = json.dump(data_elements, f, indent=4)

#post file

req2 = requests.post(url='{}/api/metadata'.format(baseurl), json=data_elements, auth=(username, password))
print(req2.text)___
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] [Dhis2-devs] Fw: Tracker Events period issue

2017-02-28 Thread Abyot Asalefew Gizaw
Hi,

Trying to clarify in case there is a misunderstanding in the creation of
event in tracker capture

   - events have two types of dates - event date and due date
   - future date is allowed for due date not for event date as the event
   date is the date where the event has happened
   - the plus icon is to "Add new" while the calendar icon is to "Schedule
   new"

A problem we have is for those events with period type - like daily,
weekly, monthly, yearly For those without period type, but only date,
the system works as expected.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati 
wrote:

> I have the same issue but i have resorted to using the Mobile Tracker
> Capture instead as it gives an opportunity to backtrack dates.
>
> Unless there is another way round but I find the mobile version ideal in
> this scenario
>
> On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA"  wrote:
>
>> Someone please help
>>
>>
>>
>>
>> On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <
>> absolo...@yahoo.com> wrote:
>>
>>
>> Dear Community,
>>
>> I have a program in Tracker (DHIS v2.26) configured with 2 repeatable
>> program stages. My issue is that when i try to add new events, I am not
>> able to see months/year for 2017. it is only stuck in 2016. Has anyone
>> encountered this before and willing to advise how i can resolve it?
>> Thank you.
>>
>> Absolom
>>
>>
>>
>>
>> ___
>> 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-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> 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] [Dhis2-devs] IMPORTING AN OU

2017-02-28 Thread Dennis Banga
Hi Stanley,

If you can access the tomcat log file, check to see the error being thrown.
Probably you're importing the file in the wrong format. The tomcat log file
can help in troubleshooting.

On 28 Feb 2017 12:08, "Stanley Kalyati"  wrote:

> I am trying to import an OU from another instance but i keep getting this
> message.I have waited the whole night but the process is not completing.
>
> What could be the cause.
>
> I am using DHIS2 2.23 build 23044
>
> Kindly advise
>
> Stanley
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> 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] Fw: Tracker Events period issue

2017-02-28 Thread Stanley Kalyati
I have the same issue but i have resorted to using the Mobile Tracker
Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in
this scenario

On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA"  wrote:

> Someone please help
>
>
>
>
> On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <
> absolo...@yahoo.com> wrote:
>
>
> Dear Community,
>
> I have a program in Tracker (DHIS v2.26) configured with 2 repeatable
> program stages. My issue is that when i try to add new events, I am not
> able to see months/year for 2017. it is only stuck in 2016. Has anyone
> encountered this before and willing to advise how i can resolve it?
> Thank you.
>
> Absolom
>
>
>
>
> ___
> 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] IMPORTING AN OU

2017-02-28 Thread Carlos Nyembwe
Hi Stanley

Could attach the file, and which formt of file are you importing to?

On Tue, Feb 28, 2017 at 10:08 AM, Stanley Kalyati 
wrote:

> I am trying to import an OU from another instance but i keep getting this
> message.I have waited the whole night but the process is not completing.
>
> What could be the cause.
>
> I am using DHIS2 2.23 build 23044
>
> Kindly advise
>
> Stanley
>
> ___
> 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
>
>


-- 
*Carlos Nyembwe*
*I'm just a Computer Scientist*

*Skype: carloscnk1*
*Cell: (+243)813166381*
*Find me in: | Google Plus  |
**Linkedin
 | Facebook
 | Twitter
 |*
___
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] Fw: Tracker Events period issue

2017-02-28 Thread Abyot Asalefew Gizaw
Hi Absolom,

We are looking into and hope to come with a solution soon.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Mon, Feb 27, 2017 at 7:56 AM, Absolom MURAMIRA 
wrote:

> Dear Abyot,
>
> I hope that you are fine. Can you please advise me on how to get tracker
> capture display periods for the year 2017?
> Thank you.
>
> Absolom
>
>
>
> On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <
> absolo...@yahoo.com> wrote:
>
>
> Dear Community,
>
> I have a program in Tracker (DHIS v2.26) configured with 2 repeatable
> program stages. My issue is that when i try to add new events, I am not
> able to see months/year for 2017. it is only stuck in 2016. Has anyone
> encountered this before and willing to advise how i can resolve it?
> Thank you.
>
> Absolom
>
>
>
>
___
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] importing datasets between 2 2.25 instances

2017-02-28 Thread Morten Olav Hansen
Hi Nick

When did you update this instance last time? would you mind upgrading to
latest 2.25 and trying again? You might still see similar errors, but I see
from your payload.. that the export is probably from an older version of
2.25?

Both instances should also run the same version of 2.25 (if possible, as
there has been some backports)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Tue, Feb 28, 2017 at 1:29 PM, Morten Olav Hansen 
wrote:

> Hi Nick
>
> I'm looking into it (I can reproduce it locally)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Sat, Feb 25, 2017 at 2:05 PM, Shurajit Dutta 
> wrote:
>
>> Hi,
>>
>> I am trying to import a dataset from a development instance (on 2.25)
>> over to a production instance of 2.25. I exported the dataset from the
>> development instance using the meta-data dependency export. I tried testing
>> importing it locally (both through UI and by posting via cUrl) and am
>> receiving the following error in the log file:
>>
>> Caused by: org.postgresql.util.PSQLException: ERROR: null value in
>> column "categorycomboid" violates not-null constraint
>> Detail: Failing row contains (363716, DTI66gwkiYc, PR_4, 2016-09-25
>> 16:37:50.541, 2017-02-25 12:34:41.404, PR_MSM reached with HIV prevention
>> {Site (Outreach, DIC)} (V1), PR_MSM reached, null, 1.5. Number of men who
>> have sex with men reached with HIV preven..., INTEGER_ZERO_OR_POSITIVE,
>> AGGREGATE, SUM, null, null, f, null, null, 176738, , null).
>>
>> When I check the corresponding DE's in the XML file, they all have
>> categorycomboid's (file attached). Is there anything else that might be
>> causing this error?
>>
>> Thanks,
>> Nick
>>
>> ___
>> 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] [Dhis2-devs] Aggregated Data Capture using Android app

2017-02-28 Thread gerald thomas
Dear Araz & Colleagues,
Please i am really out of ideas; any help from OpCo who had done this
implementation before. Kindly remember that the key here is to do data
entry off-line using tablets and once they are on-line their tablets
should sync with the main server and all data are then uploaded.

Thanks in advance for your help.

On 2/27/17, Calle Hedberg  wrote:
> Araz,
>
> I've just assisted Gerald with getting into the "Data capture for DHIS2"
> app - the server is running 2.25 and we downloaded the latest app from
> Google store.
>
> What is really perplexing is that the app only shows ONE data set - the one
> called "Population estimates". Furthermore, the data elements under that
> data set are old elements that were removed over a month ago - and none of
> the current population data elements are showing.
>
> I cannot see any menu option for refreshing the database or anything like
> that - there is only "Aggregate Report" and then "Choose Organisation
> Unit".
>
> Is that app supported under 2.25?
>
> Regards
> Calle
>
> On 27 February 2017 at 17:27, gerald thomas  wrote:
>
>> Araz,
>> This is very new to me and i will like to know the best possible way
>> we should implement this project. Please if you can kindly share
>> everything with reference to similar project(s), i will be grateful.
>> Also i know there will be challenges with reference to android
>> devices, so i am kindly requesting that you should advice on the best
>> android tablet specification for this project.
>>
>> On 2/27/17, Araz Abishov  wrote:
>> > Hi Gerald,
>> >
>> > Do you questions regarding android specifically or more about
>> configuration
>> > part of the server?
>> >
>> > Best regards,
>> >
>> > —
>> > Araz Abishov,
>> > Android developer, DHIS 2
>> > University of Oslo
>> > https://www.dhis2.org/
>> >
>> > On February 27, 2017 at 3:15:27 PM, gerald thomas
>> > (gerald17...@gmail.com
>> )
>> > wrote:
>> >
>> > Dear All,
>> > We want to capture our aggregated data (HF1 to HF8 forms) at CHC level
>> > (partial electricity & network coverage) to an android device and
>> > later synced all information to our cloud hosting instance. Please can
>> > anyone help me with the procedures to achieve it. I will also like to
>> > know the challenges colleagues face and their approach to tackle these
>> > issues.
>> >
>> > Thanks in advance for your help.
>> > Regards,
>> >
>> > Gerald
>> >
>> > ___
>> > 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
>> >
>>
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>


-- 
Regards,

Gerald

___
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