Doctorlink has joined HealthHerohealthheroLearn More
doctorlink
  • Home
  • Authentication
  • Traversal API
  • Example Responses
  • Traversal Client
  • Health Risk Assessment API
  • Advanced Techniques

Radio Button

One selection only allowed (Radio Buttons)

Radio buttons are usually organised in a distinct group. When a radio button is selected for any question type it is the only submission allowed. This could look something like this:

qt-radio-button.png

1{
2  "traversalId": "55babc25-b76b-4f7c-86d3-b4c970ae4ab1",
3  "algoId": 4550,
4  "nodes": [
5    {
6      "nodeId": 532,
7      "assetId": 0,
8      "errors": [],
9      "displayText": null,
10      "title": null,
11      "explanation": null,
12      "data": null,
13      "questions": [
14        {
15          "nodeId": 532,
16          "questionId": 70,
17          "displayText": "What is your sex at birth?",
18          "title": null,
19          "answers": [
20            {
21              "nodeId": 532,
22              "questionId": 70,
23              "answerId": 88,
24              "controlType": "Radio",
25              "controlValue": null,
26              "controlChecked": false,
27              "displayText": "Male",
28              "explanation": "",
29              "data": {}
30            },
31            {
32              "nodeId": 532,
33              "questionId": 70,
34              "answerId": 89,
35              "controlType": "Radio",
36              "controlValue": null,
37              "controlChecked": false,
38              "displayText": "Female",
39              "explanation": "",
40              "data": {}
41            }
42          ],
43          "explanation": "This refers to your sex at birth. Many problems relate specifically to genetically male and female organs.",
44          "data": {}
45        }
46      ],
47      "isTable": false
48    }
49  ],
50  "assessmentType": 0,
51  "algoName": "Age & Gender",
52  "errors": [],
53  "previousDisabled": true,
54  "nextDisabled": false,
55  "language": "DEFAULT"
56}