brainverse
brainverse copied to clipboard
Options parsing for select/radio buttons
Radio button style and options not showing as desired. For example, in grit01, Grit Total Score not displaying all the 5 options. If we look at the term (shown below for reference), in the 'valueRange' field, it has 5 values while in the 'notes', it has 2 values. Though for a human, it is easy to understand, for machine we need to provide rules for such case for parsing. One solution might be to check of number of options specified in valueRange field matches with the 'notes' field. If it does not, which ever filed provides more options should be considered and the other fields information can go into the tooltip.
{ "id": 2081184, "required": "Required", "condition": null, "aliases": [], "filterElement": "1", "position": 18, "dataElementId": 1289666, "name": "grit_total", "type": "Float", "size": null, "description": "Grit Total score", "valueRange": "1::5", "notes": "1=not at all gritty; 5=extremely gritty", "translations": [] }
@derry0822 Please have a look at this issue