[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 the transfer.
For instance if a patient is enrolled in January 2016 in health Facility A.
In the calculation of the cohort this patient should be alright counted.
If in 2017 the patient is referred to Facility B, when testing the program
indicators for 2016.This patient is no more counted for facility A.

-- 

**Sakibou
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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. So you could just do: #{age_value_type} < 5

If yes, program rule executed later on a different program stage:

Well, first you would be better off taking a date rather than the
age. The d2 functions you mentioned are only for comparing dates, but
age is not a date.

If you really want to use the age type, you have to convert it first
in a date following the DHIS2 date pattern: -MM-DD

For that, you need to choose how to approximate a date of birth. Will
you use the first day of the year? the last day? the 30 of June? The
day you collected the information?
Then you have to use the diverse d2 functions to create your date of 
birth.

As an example, in an enrollment form of a program I calculate the
date of birth automatically (note that the age here is just a value
type integer, and here all the program rules are performed in the same
event: the enrollment):

Program rule, priority 1, I calculate the age in days:
A{Age at enrollment} * 365.25
Program rule, priority 2, I calculate the date of birth according to
the day of data capture
d2:addDays(V{enrollment_date}, -#{Age at enrollment in days})
Program rule, priority 3, I round the date of birth to the 15 of June
d2:concatenate(d2:substring(#{Date of birth calculated}, 0, 4), 
'-06-15')


After that I obtain an approximate date of birth I can use in the d2
date functions.

Best,

Edouard

2018-04-11 11:59 UTC+02:00, 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})
> d2:yearsBetween(#{age_value_type}, V{event_date})
>
> I check the manual Table 21.13. Custom functions to use in a program rule
> expression
> https://docs.dhis2.org/2.29/en/user/html/configure_program_rule.html#create_program_rule
>  and don't see any functions for Age value type.
>
> I created a ticket on DHIS2 Jira https://jira.dhis2.org/browse/DHIS2-3381
>
>
> I'm really appreciated if anyone has experience on this can share.
>
>
> Regards,
>
>
>
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>


-- 
*Edouard Lavaud, *



*MSc in Health Policy, Planning & FinancingMEng in
TelecommunicationUniversity Diploma in ICT for Health*
*Email:* edouard.lav...@gmail.com
*Mobile:* 0033 6 7210 23 59

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[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})
d2:yearsBetween(#{age_value_type}, V{event_date})

I check the manual Table 21.13. Custom functions to use in a program rule
expression
https://docs.dhis2.org/2.29/en/user/html/configure_program_rule.html#create_program_rule
 and don't see any functions for Age value type.

I created a ticket on DHIS2 Jira https://jira.dhis2.org/browse/DHIS2-3381


I'm really appreciated if anyone has experience on this can share.


Regards,



-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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 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 with another one.
>
> Hope this could help.
>
> Best,
>
> Edouard
>
> 2018-04-11 6:39 UTC+02:00, Rady :
> > Hello DHIS2 community,
> >
> > I have a doubt how to get number of days between two event dates in
> > different program stages. For example,
> > *d2:daysBetween(programstage1.V{event_date},programstage2.V{
> event_date})*.
> >
> > Anybody used to have experience on this? please help.
> >
> > Thanks,
> > Rady
> >
>
>
> --
> *Edouard Lavaud, *
>
>
>
> *MSc in Health Policy, Planning & FinancingMEng in
> TelecommunicationUniversity Diploma in ICT for Health*
> *Email:* edouard.lav...@gmail.com
> *Mobile:* 0033 6 7210 23 59
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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 
> wrote:


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 have and I will give it a try.

Thank you

Michael


On 10/04/2018 02:03, Calle Hedberg wrote:

Michael,

I've got 2.17, but there should be a repository somewhere on
a server for both of them.

Let's see if anybody knows the uRL

Regards
Calle

On 9 April 2018 at 15:44, micnice > wrote:

Dear all

I am looking for the DHIS2 2.16 or 2.17 .war file if
anyone have it in their archives, I would like to restore
an old backup to extract data.

Thank you

Michael


___
Mailing list: https://launchpad.net/~dhis2-devs

Post to     : dhis2-devs@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

***







-- 


***

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

***



___
Mailing list: https://launchpad.net/~dhis2-devs

Post to     : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help   : https://help.launchpad.net/ListHelp





--
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com |*Skype:* 
em.hispviet...@gmail.com 








___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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
>
> 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 have and I will give it a try.
>>
>> Thank you
>>
>> Michael
>>
>> On 10/04/2018 02:03, Calle Hedberg wrote:
>>
>> Michael,
>>
>> I've got 2.17, but there should be a repository somewhere on a server for
>> both of them.
>>
>> Let's see if anybody knows the uRL
>>
>> Regards
>> Calle
>>
>> On 9 April 2018 at 15:44, micnice  wrote:
>>
>>> Dear all
>>>
>>> I am looking for the DHIS2 2.16 or 2.17 .war file if anyone have it in
>>> their archives, I would like to restore an old backup to extract data.
>>>
>>> Thank you
>>>
>>> Michael
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@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
>>
>> ***
>>
>>
>>
>
>
> --
>
> ***
>
> 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
>
> ***
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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 with another one.

Hope this could help.

Best,

Edouard

2018-04-11 6:39 UTC+02:00, Rady :
> Hello DHIS2 community,
>
> I have a doubt how to get number of days between two event dates in
> different program stages. For example,
> *d2:daysBetween(programstage1.V{event_date},programstage2.V{event_date})*.
>
> Anybody used to have experience on this? please help.
>
> Thanks,
> Rady
>


-- 
*Edouard Lavaud, *



*MSc in Health Policy, Planning & FinancingMEng in
TelecommunicationUniversity Diploma in ICT for Health*
*Email:* edouard.lav...@gmail.com
*Mobile:* 0033 6 7210 23 59

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


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 have and I will give it a try.
>
> Thank you
>
> Michael
>
> On 10/04/2018 02:03, Calle Hedberg wrote:
>
> Michael,
>
> I've got 2.17, but there should be a repository somewhere on a server for
> both of them.
>
> Let's see if anybody knows the uRL
>
> Regards
> Calle
>
> On 9 April 2018 at 15:44, micnice  wrote:
>
>> Dear all
>>
>> I am looking for the DHIS2 2.16 or 2.17 .war file if anyone have it in
>> their archives, I would like to restore an old backup to extract data.
>>
>> Thank you
>>
>> Michael
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@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
>
> ***
>
>
>


-- 

***

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

***
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp