You may be interested on showing users the impact each of their answer is having on their risk score. Here, we discussed that the profile questionnaires are returned with updated progress, answers and impact of each answer on the risk. To fetch the same information later, you can always call the GET /service/profiles/profile-questionnaire/?profile_id={profile_id}endpoint.
It will return a list of all profile questionnaires, against the profile, i.e. all questionnaires that the user has so far attempted, and you can further filter by the questionnaire_id param.
Or, you can simply call the retrieve endpoint for a profile questionnaire, using the concerned profile questionnaire ID.
Sample response:
{
"id": "a2737e91-673b-409c-b9b8-359df2b17bec",
"questionnaire_id": "a85a1e95-3e7a-44a0-8847-b5c5145b0756",
"profile_id": "d76f4399-d6a5-4dec-ae40-f7c207b613f4",
"email": "",
"status": "unsent",
"answers": [
{
"id": "06e62c57-acb1-4503-b657-e1181c03bc25",
"question_id": "091db4b1-5f8d-422c-97f6-c58c0e52888f",
"profile_id": "d76f4399-d6a5-4dec-ae40-f7c207b613f4",
"options": [
"d9118922-5807-4845-8265-53bf0a2bfe34"
],
"response_text": "",
"impact": "decreasing",
"profile_questionnaire_id": "a2737e91-673b-409c-b9b8-359df2b17bec",
"is_actionable": false,
"is_available": true
},
],
"progress": 1.0,
"sent_at": null
},
*progress = 1.0 indicates that the assessment has been completed and risk score computed.
For more details, refer to the Profile Questionnaire entity.
