XUND API Documentation

ReportAskedQuestion

Model definition

Property name

Property type

Property description

text

string (localized HTML text)

Text of the asked question

options

TypeScript
Array<{
  //Localized text of the answer
  text: string
  //True is the answer was selected during the check
  isSelected: boolean
}>

Question’s possible option items

Examples

Click to expand...

Question with more option items

JSON
{
    "text": "Where exactly do you have pain in your abdomen?",
    "options": [
        {
            "text": "Lateral Abdomen",
            "isSelected": false
        },
        {
            "text": "Lower-right abdomen",
            "isSelected": false
        },
        {
            "text": "Navel",
            "isSelected": false
        },
        {
            "text": "Upper-right abdomen",
            "isSelected": false
        },
        {
            "text": "Everywhere",
            "isSelected": false
        },
        {
            "text": "Lower-left abdomen",
            "isSelected": true
        },
        {
            "text": "Lower-central abdomen",
            "isSelected": false
        },
        {
            "text": "Lower abdomen",
            "isSelected": false
        },
        {
            "text": "Upper abdomen",
            "isSelected": false
        },
        {
            "text": "Left upper abdomen",
            "isSelected": false
        },
        {
            "text": "Upper-central abdomen",
            "isSelected": false
        }
    ]
}


Question with fewer option items

JSON
{
    "text": "Will the pain be better if you lean forward?",
    "options": [
        {
            "text": "Yes",
            "isSelected": true
        },
        {
            "text": "No",
            "isSelected": false
        }
    ]
}