DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.
Is there a reason for this?
As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.
···
Regards,
Crizelle Nel
Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org
66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984
right, that was an unnecessary constraint. It has been removed now in trunk and 2.21.
Note that the option set value type refers to the code of the option, not the name. For analytics of the values entered through option sets, the code is used for aggregation.
DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.
Is there a reason for this?
As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.
–
Regards,
Crizelle Nel
Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org
66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984
On Wed, Dec 9, 2015 at 1:01 PM, Lars Helge Øverland larshelge@gmail.com wrote:
Hi Crizelle,
right, that was an unnecessary constraint. It has been removed now in trunk and 2.21.
Note that the option set value type refers to the code of the option, not the name. For analytics of the values entered through option sets, the code is used for aggregation.
DHIS2 prohibits you from adding single-digit numbers as Options for Option Sets, irrespective of whether the Option Set has a Value Type of “Positive Integer”, “Positive or Zero Integer”, “Number” or Text. Hence the numbers 1-9 cannot be used as Options.
Is there a reason for this?
As a work-around I tried using 01-09, but get the error message “Value must be a [positive] integer”, except for the Option Sets with value type “Text” for which it was successfully added. This is not optimal though as calculations cannot be done with text fields.
–
Regards,
Crizelle Nel
Software Development and Information Systems
**Health Information Systems Program (HISP) - SA
------------------------------------------------------------------------------**Email: crizelle@hisp.org
Cell: +27 84 580 3342
Fax: 0866 509 502
Skype: crizelle_nel
Website: http://www.hisp.org
66 Rigel Avenue North, Waterkloof Ridge
Pretoria, 0181, South Africa
E -25.7847787 S 28.2347984