Re: [Dhis2-users] [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 <edouard.lav...@gmail.com>
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 <tryr...@gmail.com>:
> > 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-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


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

2018-04-10 Thread 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
___
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] org unit in program variable/rule

2018-04-10 Thread Rady
Hello Bernard,

You can use *V{orgunit_code}* in program rule to retrieve orgunit code.

Thanks,
Rady

On Tue, Apr 10, 2018 at 5:59 PM, Bernard Sadaka (IM Advisor) <
lib@pu-ami.org> wrote:

> Hello all,
>
> Is there a way to get the organization unit as a program variable and/or
> use it in the program rules?
>
> My usecase is that I want to use the program rule to create a unique value
> based on:
>
> · The PHCC (org unit)
>
> · The family number
>
> · The individual number
>
> Thanks in advance for the help.
>
>
>
> All the best,
>
> Bernard
>
>
>
> [image: cid:image002.png@01D36F50.572585A0]
>
> *Bernard Sadaka*
>
> *Information Management Advisor*
>
> Première Urgence - Aide Médicale Internationale
>
> Nehmeh Building, Sanine Street, Chiyah, 3rd Floor
>
> Ain el Remmaneh, Beirut, Lebanon
>
> *E-mail:* lib@pu-ami.org
>
> *Cell:* +961 71 004 881 (208)
>
> *Skype:* imapuami
>
> *Website:* https://www.pu-ami.org
>
>
>
>
>
> ___
> 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] Program rule to hide Tracked entity attribute field show a warning in console

2017-10-16 Thread Rady
Hello Markus,

I'm using Version: 2.27, Build revision: c5ef790, Build date: 2017-09-24
06:25.

I will raised this issue in Jira.

Thanks for your response.
Regards,
Rady

On Oct 16, 2017 12:54 PM, "Markus Bekken" <mar...@dhis2.org> wrote:

> Hi there Rady,
> Nicely spotted. Which version of DHIS are you running? This message is
> noise from a runtime validation that is a bit too strict, and can be
> disregarded for the purposes of the users. Log noise is still important to
> clean up, so it would be great if you can submit a Jira with the details.
>
> Regards
> Markus
>
> 12. okt. 2017 kl. 07.24 skrev Rady <tryr...@gmail.com>:
>
> Dear DHIS2 team,
>
> I have tried using Program rule to hide Tracked entity attribute field, it
> works properly. But it shows a warning message "*ProgramRuleAction
> C1pSVKWZ40F is of type HIDEFIELD, bot does not have a dataelement defined*"
> in console (see attached files). However, if I tried the same program rule
> to hide data element field, it does not show such warning message in
> console. Does anyone have experience with this?
>
> Regards,
> Rady
> ___
> 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


[Dhis2-users] Program rule to hide Tracked entity attribute field show a warning in console

2017-10-11 Thread Rady
Dear DHIS2 team,

I have tried using Program rule to hide Tracked entity attribute field, it
works properly. But it shows a warning message "*ProgramRuleAction
C1pSVKWZ40F is of type HIDEFIELD, bot does not have a dataelement defined*"
in console (see attached files). However, if I tried the same program rule
to hide data element field, it does not show such warning message in
console. Does anyone have experience with this?

Regards,
Rady
___
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