Assessment Flow

The assessment flow can be followed by respecting the following guidelines:


Rendering the questions in the UI

  • Render the text property from the messages array in the order they are provided.
  • Render the text property from the choices array in the order they are provided. Use the choices[].id property to provide the answer in the API.
  • Render a UI that correctly maps the constraints object to either checkboxes or radio buttons.
  • Have a mechanism in place that correctly identifies the autocomplete flow 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 type and the choice ids in the included and excluded fields.
  • Only allow the user to call the step-back endpoint when the conversation_details.step_back_possible flag is true
  • Only allow the user to call the report endpoint when the conversation_details.report_possible flag is true



What’s Next