Two questions on program indicators (sorry if they have been asked already):
How to calculate the Age at clinical examination based on an Age-type attribute? I thought the Age type attribute was stored as a date, but the expression is invalid when using it (despite the same expression was valid with Date of birth).
I have some program indicators that are equal to a data element (in order to make it visible/available across all stages). Would it be possible to display the name of the option set rather than the code?
Thanks
Lise.
Dr. Lise Grout
Epidemiologist
World Health Organization
Department of Neglected Tropical Diseases (HTM/NTD/IDM) Innovative and Intensified Disease Management Unit 20, Avenue Appia; CH-1211 Geneva 27 Tel.+41 22 791 2341
Hi Lise!
1. You are right. It turned out there is a small problem with the expression validator, but the program indicator should still work. A fix is checked in for the , please let me know if the indicator does not work.
2. If you are on 2.27 or later you can use program rules instead. There is a program rule action type that is called "Display text" and another one called "Display key value pair" that is used to show a dynamic text in your program. The dynamic text can be a program rule variable, and in configuring this variable you can choose wether you want it to contain code or name for option sets.
Markus
···
14. nov. 2017 kl. 18.24 skrev GROUT, Lise <groutl@who.int>:
Dear all,
Two questions on program indicators (sorry if they have been asked already):
1. How to calculate the Age at clinical examination based on an Age-type attribute? I thought the Age type attribute was stored as a date, but the expression is invalid when using it (despite the same expression was valid with Date of birth).
2. I have some program indicators that are equal to a data element (in order to make it visible/available across all stages). Would it be possible to display the name of the option set rather than the code?
Thanks
Lise.
Dr. Lise Grout
Epidemiologist
World Health Organization
Department of Neglected Tropical Diseases (HTM/NTD/IDM)
Innovative and Intensified Disease Management Unit
20, Avenue Appia; CH-1211 Geneva 27
Tel. +41 22 791 2341
Mobile +41 79 290 68 61
Skype: tigrouveto http://www.who.int/neglected_diseases
Thanks for bringing the issues again. After the release and utilization of “Age” data value Type, we had a discussion about the challenges of not being usable in Analytic simply because program indicator expression don’t recognize it. This was reported in JIRA.
Markus regards to: "It turned out there is a small problem with the expression validator, but the program indicator should still work. A fix is checked in for the , please let me know if the indicator does not work"
It doesn’t work for me.
I think the community shall benefit a lot if the useful “Age” data value type can be supported on Analytics
Best Regards
Hi Lise!
You are right. It turned out there is a small problem with the expression validator, but the program indicator should still work. A fix is checked in for the , please let me know if the indicator does not work.
If you are on 2.27 or later you can use program rules instead. There is a program rule action type that is called “Display text” and another one called “Display key value pair” that is used to show a dynamic text in your program. The dynamic text can be a program rule variable, and in configuring this variable you can choose wether you want it to contain code or name for option sets.
Markus
···
On Tuesday, November 14, 2017 10:41 PM, Markus Bekken markus@dhis2.org wrote:
Two questions on program indicators (sorry if they have been asked already):
How to calculate the Age at clinical examination based on an Age-type attribute? I thought the Age type attribute was stored as a date, but the expression is invalid when using it (despite the same expression was valid with Date of birth).
I have some program indicators that are equal to a data element (in order to make it visible/available across all stages). Would it be possible to display the name of the option set rather than the code?
Thanks
Lise.
Dr. Lise Grout
Epidemiologist
World Health Organization
Department of Neglected Tropical Diseases (HTM/NTD/IDM) Innovative and Intensified Disease Management Unit 20, Avenue Appia; CH-1211 Geneva 27
*Tel. *+41 22 791 2341