Assessment Flow
The assessment flow can be followed by respecting the following guidelines:
Rendering the questions in the UI
- Render the
textproperty from themessagesarray in the order they are provided. - Render the
textproperty from thechoicesarray in the order they are provided. Use thechoices[].idproperty to provide the answer in the API. - Render a UI that correctly maps the
constraintsobject to either checkboxes or radio buttons. - Have a mechanism in place that correctly identifies the
autocompleteflow and lets the user add symptoms based on our symptom-search. - When a question with no required answer is asked (
constraints.min == 0), make sure you add an option for "Select none of these", so that the user explicitly excludes all choices.
Making API requests
- Answer the questions by providing the respective
typeand the choice ids in theincludedandexcludedfields. - Only allow the user to call the
step-backendpoint when theconversation_details.step_back_possibleflag istrue - Only allow the user to call the
reportendpoint when theconversation_details.report_possibleflag istrue
Updated 3 months ago
What’s Next
