Hi everyone.
I have a question related to Quality Management API.
When using GET /api/v2/quality/forms/evaluations/{formId} I get the following json.
{
"id": "05f0fba7-b5ab-4264-92e0-7e6f769d078a",
"name": "Formulário Voz",
"modifiedDate": "2020-01-07T14:48:12.351Z",
"published": true,
"contextId": "2b0db163-0448-412c-b499-c445db9d8002",
"questionGroups": [
{
"id": "e5930a50-d1a0-4f0a-90dc-2f09aa8f7e12",
"name": "Procedimentos de Atendimento",
"type": "questionGroup",
"defaultAnswersToHighest": false,
"defaultAnswersToNA": false,
"naEnabled": false,
"weight": 35,
"manualWeight": true,
"questions": [
{
"id": "40bea010-550e-40ce-b335-c2046c747f13",
"text": "Abertura",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "02678f7f-8cca-48d7-aca0-316bae784ea0",
"text": "Cumpre",
"value": 1
},
{
"id": "ecb24e56-7bac-46b1-b313-b78c7ed35150",
"text": "Não Cumpre",
"value": 0
},
{
"id": "245bab1d-1786-4222-8315-aa0429b389c6",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
},
{
"id": "aa424d8d-0e79-477b-a2a7-2f728c902be3",
"text": "Gestão da Espera",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "95935515-cce9-477d-aedb-f47c51791fc4",
"text": "Cumpre",
"value": 1
},
{
"id": "91ad759d-9c65-42de-99b8-21f96693dc9b",
"text": "Não Cumpre",
"value": 0
},
{
"id": "fe0e60be-ba3c-4cb6-8439-b8d005322d9f",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
}
]
},
{
"id": "258db954-b17a-4ef6-b67d-d2b2b3f83060",
"name": "Gestão da Chamada",
"type": "questionGroup",
"defaultAnswersToHighest": true,
"defaultAnswersToNA": false,
"naEnabled": true,
"weight": 40,
"manualWeight": false,
"questions": [
{
"id": "a12808f8-dbe1-4e37-bac8-61e3a93d838a",
"text": "Pesquisa de Informação",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "b43dc991-abb5-47ea-b390-ea4cf74ea176",
"text": "Cumpre",
"value": 1
},
{
"id": "c88e4423-7f2b-4c30-b961-90fb145a41a9",
"text": "Não Cumpre",
"value": 0
},
{
"id": "4040568f-06fd-43b1-af10-5fe3fe918f59",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
},
{
"id": "a8827168-5554-4ad1-8b68-c3f04c4a535b",
"text": "Escuta Ativa",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "c8f13a7b-1541-48eb-b85f-8794ec172ca5",
"text": "Cumpre",
"value": 1
},
{
"id": "952563ca-737c-4709-a079-944adc25b78c",
"text": "Não Cumpre",
"value": 0
},
{
"id": "7b0423d4-c3a9-453f-b727-56e0f51d3df1",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
},
{
"id": "c6910105-f771-4741-a4ed-811b8fa39f14",
"text": "Reformulação",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "4780ae16-793a-4165-a787-bfa1ae7e63be",
"text": "Cumpre",
"value": 1
},
{
"id": "5d79d450-dff8-4ef0-9ce0-92806cb4cca5",
"text": "Não Cumpre",
"value": 0
},
{
"id": "c2c94388-a6a4-43bd-b6b8-1981423d933d",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
}
]
},
{
"id": "419a9978-f726-443b-97eb-30b091b86da6",
"name": "Linguagem",
"type": "questionGroup",
"defaultAnswersToHighest": false,
"defaultAnswersToNA": false,
"naEnabled": false,
"weight": 25,
"manualWeight": true,
"questions": [
{
"id": "0352cd00-4415-4303-b42c-8b28bada3d40",
"text": "Linguagem Verbal",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "8515205b-fcb7-4dab-9670-c9e5dc1b5aad",
"text": "Cumpre",
"value": 1
},
{
"id": "54c49c45-164f-4ed7-9b1b-ed6c4639af8d",
"text": "Não Cumpre",
"value": 0
},
{
"id": "1e811da4-b9ba-454b-bd7f-9fda2a4c5fc7",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
},
{
"id": "86ea42ba-9278-4677-a38a-7ff7e4af18a4",
"text": "Linguagem não Verbal",
"helpText": "",
"type": "multipleChoiceQuestion",
"naEnabled": false,
"commentsRequired": false,
"answerOptions": [
{
"id": "8d9f1418-0f46-4e47-b739-73386213746b",
"text": "Cumpre",
"value": 1
},
{
"id": "edad2166-5130-4afb-a3de-63ab9c1573ae",
"text": "Não Cumpre",
"value": 0
},
{
"id": "0484f8ae-1ba5-42ad-a8c3-ff38b6b2b763",
"text": "NA",
"value": 0
}
],
"isKill": false,
"isCritical": false
}
]
}
],
"selfUri": "/api/v2/quality/publishedforms/evaluations/05f0fba7-b5ab-4264-92e0-7e6f769d078a"
}
However, on each “questionGroups” and “questions” I don’t have any information about the display order, as “Question Group 1”/”Question Group 2“…. Or “Question 1”/”Question 2”…..
My question is: How do I get the display order?
Thanks in advance.
Best regards,
Ana Laia