WCP - Schemas and Structures |
2024-04-25 |
Param | Value |
---|---|
"type" | String; "instruction" |
"resultType" | null |
"key" | String |
"title" | String |
"text" | String |
"skippable" | Boolean; false |
"groupName" | String; null |
"repeatable" | Boolean; false |
"repeatableText" | String; null |
"destinations" | Array |
Param | Value |
---|---|
"type" | String; "question" |
"resultType" | String; QuestionResultType |
"key" | String |
"title" | String |
"text" | String |
"skippable" | Boolean |
"groupName" | String |
"repeatable" | Boolean; false |
"repeatableText" | String; null |
"destinations" | [ |
“healthDataKey” | String |
"format" | Dictionary; QuestionFormat |
[
{
"text": string,
"value": string,
"detail": string, nil
"exclusive": bool true
}
]; Min:2, Max:8
[
{
"text": string,
"value": string,
"detail": string, nil
"exclusive": bool, true
}
];
[
{
"image": string,
"selectedImage": string,
"text": string,
"value": string
}
]; Image Size 45px-60px
[
{
"text": string,
"value": string,
"detail": string, nil
"exclusive" : bool,
"other": {
"placeholder": string,
"isMandatory": bool,
"textfieldReq": bool
}
}
];
Param | Value |
---|---|
"type" | String; "form" |
"resultType" | String; "grouped" |
"key" | String |
"title" | String |
"text" | String |
"skippable" | Boolean |
"groupName" | String; null |
"repeatable" | Boolean |
"repeatableText" | String |
"destinations" | Array |
"steps" | Array; [Question] |
Param | Value |
---|---|
"type" | String; "task" |
"resultType" | String; ActiveTaskType |
"key" | String |
"text" | String |
"options" | [ActiveTaskOptions] |
"format" | Dictionary; ActiveTaskFormat |
[
{
"resultType": string, numeric
"key": string, duration
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": double
} ,
{
"resultType": string, numeric
"key": string, count
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": double
}
]
[
{
"resultType": string, numeric
"key": string, score
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": Integer
} ,
{
"resultType": string, numeric
"key": string, number of games
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": Integer
},
{
"resultType": string, numeric
"key": string, number of failures
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": Integer
}
]
[
{
"resultType": string, numeric
"key": string, puzzle was solved
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": bool
} ,
{
"resultType": string, numeric
"key": string, number of moves
"startTime": string, null
"endTime": string, null
"skipped": bool, false
"value": Integer
}
]
Param | Value |
---|---|
"type" | String; "questionnaire" |
"metadata" | Dictionary; { |
"steps" | [Steps]; Does not contain ActiveTaskStep |
{
"studyId": string,
"activityId": string,
"version": string,
"activityRunId": string
},
{
"startTime": string,
"endTime": string,
"results": [StepResult]
}
Param | Value |
---|---|
"type" | String; "task" |
"metadata" | Dictionary { |
"steps" | [Steps]; Contains ActiveTaskStep |
{
"studyId" string,
"activityId" string,
"version" string,
"activityRunId" string
},
{
"startTime": string,
"endTime": string,
"results": [StepResult]
}