[Dhis2-devs] Cohort and referrals

2018-04-11 Thread Sakibou Alassani
Hi Please I would like to understand well how referral is managed in DHIS2 database management wise. In case of referral the enrollment organisation unit change in the database right? If yes how is cohort going to be managed in the health facility where the patient has been referred from before

Re: [Dhis2-devs] Program rule for Age value type

2018-04-11 Thread Edouard Lavaud
Hi Em Le Hong, If I well understand: You capture the age at a different moment than you would like the program rule to be executed? If no, program rule executed on the same stage as you capture the age: To be checked (never used the age value type so far), but age should be an integer.

[Dhis2-devs] Program rule for Age value type

2018-04-11 Thread Em Le Hong
Dear all, I create a tracker data element value type: Age For event program, I want to use program to check and show error if Age is under 5 I tried 2 functions d2:yearsBetween; d2:daysBetween with the expression as below but it doesn't work: d2:daysBetween(#{age_value_type}, V{event_date})

Re: [Dhis2-devs] Get number of days between two event dates in different program stages

2018-04-11 Thread Rady
Hello Edouard, Many thanks for your guidance. It works fine to me. Best, Rady On Wed, Apr 11, 2018 at 1:54 PM, Edouard Lavaud wrote: > Hi Rady, > > I used a kind of hack for doing that: > > I first used a program rule to copy the event_date into a new data > element

Re: [Dhis2-devs] Looking for DHIS2 version 2.16 or 2.17 war file

2018-04-11 Thread micnice
Thank you, Em On 11/04/2018 10:16, Em Le Hong wrote: Hi, I have the builds from 2.17 to 2.21 here https://drive.google.com/drive/folders/0B-tlJrv190f5Nm9PakE1b2JqTms you can use it. Regards, On Wed, Apr 11, 2018 at 1:42 PM, Calle Hedberg

Re: [Dhis2-devs] Looking for DHIS2 version 2.16 or 2.17 war file

2018-04-11 Thread Em Le Hong
Hi, I have the builds from 2.17 to 2.21 here https://drive.google.com/drive/folders/0B-tlJrv190f5Nm9PakE1b2JqTms you can use it. Regards, On Wed, Apr 11, 2018 at 1:42 PM, Calle Hedberg wrote: > Hi > > Will do - just give me a few hours, have a hectic morning > > Calle

Re: [Dhis2-devs] Get number of days between two event dates in different program stages

2018-04-11 Thread Edouard Lavaud
Hi Rady, I used a kind of hack for doing that: I first used a program rule to copy the event_date into a new data element of the program stage (so, yup, the date is kind of duplicated in the stage). However then I could create a program rule variable to fetch this date I wanted, and compare it

Re: [Dhis2-devs] Looking for DHIS2 version 2.16 or 2.17 war file

2018-04-11 Thread Calle Hedberg
Hi Will do - just give me a few hours, have a hectic morning Calle On 10 April 2018 at 11:39, micnice wrote: > Dear Calle, > > Thanks for the quick response. I couldn't find them on > https://ci.dhis.org, there is only version 2.22 onwards. You can share > the one you