dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #11287
Re: Program Indicator question
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 <iuri.fanti@xxxxxxxxx> 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 <markus.bekken@xxxxxxxxx>:
> > 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 <shurajitdutta@xxxxxxxxx>:
> >
> > 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@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-users
> > More help : https://help.launchpad.net/ListHelp
> >
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-users
> > Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-users
> > More help : https://help.launchpad.net/ListHelp
> >
>
>
>
> --
> @-`-,--
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> 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 "
Follow ups
References