Re: [Dhis2-users] Program Indicator question

2016-09-08 Thread Iuri Fanti
Anyway, I would strongly sugget that the developers add the ASSIGN action
in the GUI as well.

Juri

2016-09-08 18:05 GMT+02:00 Iuri Fanti :

> Thank you very much Alex. I solved the problem creating a legend in GIS
> for Age.
>
> Thanks again,
>
> Juri
>
> 2016-09-08 16:32 GMT+02:00 Alex Tumwesigye :
>
>> Dear Luri,
>>
>> There is a program rule action called 'ASSIGN' which is supported via the
>> Web API. You need to create program Rule in json and then use ASSIGN as
>> your action to have your program indicator used as a value for a
>> dataElement in a stage.
>> See this section for more info.
>> http://dhis2.github.io/dhis2-docs/2.23/en/developer/html/dhi
>> s2_developer_manual_full.html#d6099e4339
>>
>> Alex
>>
>> On Wed, Sep 7, 2016 at 5:59 PM, Iuri Fanti  wrote:
>>
>>> I have a similar issue: I'd like to automatically fill a program field
>>> with the patient's age range (i.e. "from 1 to 4", "from 5 to 15", ecc)
>>> based on the manually filled age field.  A program indicator can only
>>> return numbers, and a program rule can only hide sections/fields or
>>> show warnings/errors (see attacched ). So, what should I do?
>>>
>>> Thank you in advance for any help,
>>>
>>> Iuri
>>>
>>> 2016-06-30 21:23 GMT+02:00 Markus Bekken :
>>> > Hi Nick!
>>> > (possibly wrong list?)
>>> >
>>> > Indicators should normally result in a number that can be aggregated
>>> > somehow. Did you want to calculate (and show) the due date to avoid
>>> that the
>>> > user has to do this himself? In that case it is probably not a program
>>> > indicator, but we can do it with program rules - adding 283 days to
>>> the LMP
>>> > date and either show the result on the data entry screen or assign it
>>> to
>>> > another data element.
>>> >
>>> > Markus
>>> >
>>> > 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta >> >:
>>> >
>>> > Hi everyone
>>> >
>>> > Quick question about program indicators.
>>> >
>>> > If I want to estimate a mother's due date based on last menstrual
>>> period for
>>> > example, how does the expression for the program indicator look like?
>>> >
>>> > 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
>>> >
>>>
>>>
>>>
>>> --
>>> @-`-,--
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Alex Tumwesigye
>>
>> Technical Advisor - DHIS2 (Consultant),
>> Ministry of Health/AFENET  | HISP Uganda
>> Kampala
>> Uganda
>> +256 774149 775, + 256 759 800161
>> Skype ID: talexie
>>
>> IT Consultant (Servers, Networks and Security, Health Information Systems
>> - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant
>>
>>
>> "I don't want to be anything other than what I have been - one tree hill "
>>
>
>
>
> --
> @-`-,--
>



-- 
@-`-,--
___
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] Program Indicator question

2016-09-08 Thread Iuri Fanti
Thank you very much Alex. I solved the problem creating a legend in GIS for
Age.

Thanks again,

Juri

2016-09-08 16:32 GMT+02:00 Alex Tumwesigye :

> Dear Luri,
>
> There is a program rule action called 'ASSIGN' which is supported via the
> Web API. You need to create program Rule in json and then use ASSIGN as
> your action to have your program indicator used as a value for a
> dataElement in a stage.
> See this section for more info.
> http://dhis2.github.io/dhis2-docs/2.23/en/developer/html/
> dhis2_developer_manual_full.html#d6099e4339
>
> Alex
>
> On Wed, Sep 7, 2016 at 5:59 PM, Iuri Fanti  wrote:
>
>> I have a similar issue: I'd like to automatically fill a program field
>> with the patient's age range (i.e. "from 1 to 4", "from 5 to 15", ecc)
>> based on the manually filled age field.  A program indicator can only
>> return numbers, and a program rule can only hide sections/fields or
>> show warnings/errors (see attacched ). So, what should I do?
>>
>> Thank you in advance for any help,
>>
>> Iuri
>>
>> 2016-06-30 21:23 GMT+02:00 Markus Bekken :
>> > Hi Nick!
>> > (possibly wrong list?)
>> >
>> > Indicators should normally result in a number that can be aggregated
>> > somehow. Did you want to calculate (and show) the due date to avoid
>> that the
>> > user has to do this himself? In that case it is probably not a program
>> > indicator, but we can do it with program rules - adding 283 days to the
>> LMP
>> > date and either show the result on the data entry screen or assign it to
>> > another data element.
>> >
>> > Markus
>> >
>> > 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
>> >
>> > Hi everyone
>> >
>> > Quick question about program indicators.
>> >
>> > If I want to estimate a mother's due date based on last menstrual
>> period for
>> > example, how does the expression for the program indicator look like?
>> >
>> > 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
>> >
>>
>>
>>
>> --
>> @-`-,--
>>
>> ___
>> 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
>>
>>
>
>
> --
> Alex Tumwesigye
>
> Technical Advisor - DHIS2 (Consultant),
> Ministry of Health/AFENET  | HISP Uganda
> Kampala
> Uganda
> +256 774149 775, + 256 759 800161
> Skype ID: talexie
>
> IT Consultant (Servers, Networks and Security, Health Information Systems
> - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant
>
>
> "I don't want to be anything other than what I have been - one tree hill "
>



-- 
@-`-,--
___
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] Program Indicator question

2016-09-08 Thread Alex Tumwesigye
Dear Luri,

There is a program rule action called 'ASSIGN' which is supported via the
Web API. You need to create program Rule in json and then use ASSIGN as
your action to have your program indicator used as a value for a
dataElement in a stage.
See this section for more info.
http://dhis2.github.io/dhis2-docs/2.23/en/developer/html/dhis2_developer_manual_full.html#d6099e4339

Alex

On Wed, Sep 7, 2016 at 5:59 PM, Iuri Fanti  wrote:

> I have a similar issue: I'd like to automatically fill a program field
> with the patient's age range (i.e. "from 1 to 4", "from 5 to 15", ecc)
> based on the manually filled age field.  A program indicator can only
> return numbers, and a program rule can only hide sections/fields or
> show warnings/errors (see attacched ). So, what should I do?
>
> Thank you in advance for any help,
>
> Iuri
>
> 2016-06-30 21:23 GMT+02:00 Markus Bekken :
> > Hi Nick!
> > (possibly wrong list?)
> >
> > Indicators should normally result in a number that can be aggregated
> > somehow. Did you want to calculate (and show) the due date to avoid that
> the
> > user has to do this himself? In that case it is probably not a program
> > indicator, but we can do it with program rules - adding 283 days to the
> LMP
> > date and either show the result on the data entry screen or assign it to
> > another data element.
> >
> > Markus
> >
> > 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
> >
> > Hi everyone
> >
> > Quick question about program indicators.
> >
> > If I want to estimate a mother's due date based on last menstrual period
> for
> > example, how does the expression for the program indicator look like?
> >
> > 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
> >
>
>
>
> --
> @-`-,--
>
> ___
> 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
>
>


-- 
Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET  | HISP Uganda
Kampala
Uganda
+256 774149 775, + 256 759 800161
Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems -
DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant


"I don't want to be anything other than what I have been - one tree hill "
___
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] Program Indicator question

2016-09-07 Thread Iuri Fanti
I have a similar issue: I'd like to automatically fill a program field
with the patient's age range (i.e. "from 1 to 4", "from 5 to 15", ecc)
based on the manually filled age field.  A program indicator can only
return numbers, and a program rule can only hide sections/fields or
show warnings/errors (see attacched ). So, what should I do?

Thank you in advance for any help,

Iuri

2016-06-30 21:23 GMT+02:00 Markus Bekken :
> Hi Nick!
> (possibly wrong list?)
>
> Indicators should normally result in a number that can be aggregated
> somehow. Did you want to calculate (and show) the due date to avoid that the
> user has to do this himself? In that case it is probably not a program
> indicator, but we can do it with program rules - adding 283 days to the LMP
> date and either show the result on the data entry screen or assign it to
> another data element.
>
> Markus
>
> 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
>
> Hi everyone
>
> Quick question about program indicators.
>
> If I want to estimate a mother's due date based on last menstrual period for
> example, how does the expression for the program indicator look like?
>
> 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
>



-- 
@-`-,--
___
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] Program Indicator question

2016-07-02 Thread Prosper BT
Thanks Markus,

There are many use cases for this scenario for both displaying in the
tracked entity dashboard and also including in line listing event reports.

 Wish you can work on availing the calculated field using program rules in
the UI.

Regards

On Fri, Jul 1, 2016 at 2:23 AM, Markus Bekken 
wrote:

> Hi Nick!
> (possibly wrong list?)
>
> Indicators should normally result in a number that can be aggregated
> somehow. Did you want to calculate (and show) the due date to avoid that
> the user has to do this himself? In that case it is probably not a program
> indicator, but we can do it with program rules - adding 283 days to the LMP
> date and either show the result on the data entry screen or assign it to
> another data element.
>
> Markus
>
> 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
>
> Hi everyone
>
> Quick question about program indicators.
>
> If I want to estimate a mother's due date based on last menstrual period
> for example, how does the expression for the program indicator look like?
>
> 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
>
>


-- 
Prosper Behumbiize, MPH
Global DHIS2 Implementation| HISP Uganda/University Of Oslo
+256 752 751 776 | +256 776 139 139
pros...@hispuganda.org  | pros...@dhis2.org | Skype:
prospertb
___
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] Program Indicator question

2016-06-30 Thread Markus Bekken
Hi Nick!
(possibly wrong list?)

Indicators should normally result in a number that can be aggregated somehow. 
Did you want to calculate (and show) the due date to avoid that the user has to 
do this himself? In that case it is probably not a program indicator, but we 
can do it with program rules - adding 283 days to the LMP date and either show 
the result on the data entry screen or assign it to another data element. 

Markus

> 30. jun. 2016 kl. 11.02 skrev Shurajit Dutta :
> 
> Hi everyone
> 
> Quick question about program indicators.
> 
> If I want to estimate a mother's due date based on last menstrual period for 
> example, how does the expression for the program indicator look like?
> 
> 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


[Dhis2-users] Program Indicator question

2016-06-30 Thread Shurajit Dutta
Hi everyone

Quick question about program indicators.

If I want to estimate a mother's due date based on last menstrual period
for example, how does the expression for the program indicator look like?

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