Question Type Reference

Refer to the different question types and their JSON format for when adding items to forms using APIs.

Question Type Visual of data in Clinical One Platform JSON Code
Text text.png
"questionType": "text",
"refname": "TEXT_01",
"sasVariable": "TEXT_01",
"sasLabel": "Subject initials"
Number number.png
"questionType": "numeric",
"refname": "NUMBER_01",
"sasVariable": "NUMBER_01",
"sasLabel": "Age",

Date/Time

datetime.png
"questionType": "datetime",
"refname": "DATETIME_01",
"sasVariable": "DATETIME_01",
"sasLabel": "Informed Consent Date",
"format": "dd-MMM-yyyy HH:mm",
"allowPartialDate": 0,

Dropdown

dropdown.png
"questionType": "choice",
"refname": "DROPDOWN_01"
"sasVariable": "DROPDOWN_01",
"sasLabel": "Sex",
"display": "selectbox",
"options": [{
        "label": "Male",
        "value": "1"
    },
    {
        "label": "Female",
        "value": "2"
    }
]

Checkbox

Checbox.png
"questionType": "choice",
"refname": "CHECKBOX_01",
"sasVariable": "CHECKBOX_01",
"sasLabel": "Sex",
"display": "checkbox",
"options": [{
        "label": "Male",
        "value": "1"
    },
    {
        "label": "Female",
        "value": "2"
    }
]

Radio Button

Radiobutton.png
"questionType": "choice",
"refname": "RADIOSET_01",
"sasVariable": "RADIOSET_01",
"sasLabel": "Sex",
"display": "radioset",
"options": [{
        "label": "Male",
        "value": "1"
    },
    {
        "label": "Female",
        "value": "2"
    }
]

Age

Age.png
"questionType": "datetime",
"refname": "SMARTITEM_01_DOB",
"sasVariable": "SMARTITEM_01_DOB",
"sasLabel": "Age",
"format": "dd-MMM-yyyy",
"allowPartialDate": 0,