Add numerical question to Question Editor in Monitoring Setup
Background
HCP already have one question type to ask for numbers: the slider question. That one though is unitless and has a set min/max of 0/100 and also is meant to use a slider as the answering widget and restricted to integer values.
To complement this we now add free input number question to the stack, that HCPs can use for questions where a slider 0-100 might not be the best choice: i.e. logging hours of sleep, alcohol intake, amount of chocolate etc.
What is to be done?
-
Add a new question type to the question editor dropdown: 'Number question' (en), 'Anzahl/-Häufigkeit' (de) -
Can you think of better names for this kind of question?
-
-
Add an editing widget including an input for the unit (works just like the counterpart on medication questions) -
text is appended to the end of the question text
-
-
Questions generated by this new widget should all have: -
a .min value of 0 -
a .type value of 'decimal'. -
no options
-
What about the answering widget?
The corresponding QueryWidgetComponent is subject of another issue: #605+ If that issue was not closed yet, you will probably get the FallbackQueryWidgetComponent (just a generic input) in the preview of the monitoring setup.
Clickup: https://app.clickup.com/t/861mt1xb3
Edited by Andreas Pittrich