Appearance
在线调试
打开疾病识别开放平台,在在线调试中打开疾病问卷调试,选择疾病名称,点击发起调用即可完成在线调试。
请求示例
请求方式:POST
body 数据格式:application/json
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
diseaseCode | int | 是 | 1300 | 疾病 code |
surveyType | int | 否 | 0 | 问卷类型 |
请求参数示例
json
{
"diseaseCode": 1300,
"surveyType": 0
}
响应参数
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
diseaseCode | int | 1300 | 疾病 code |
surveyId | string | "a5e6c4fXXXX" | 问卷id |
surveyTitle | string | "SCL-90 量表" | 问卷名称 |
surveyDesc | string | "抑郁症 SCL-90 自测量表" | 问卷描述 |
subjectCount | int | 10 | 问卷题目数量 |
totalScore | int | 100 | 问卷总分 |
subjects | array | 见下表 | 问卷题目列表 |
subjects 内容:
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
subjectId | string | "bcec5fa7ff4e36d0a5727e10a690b660" | 题目 id |
subjectTitle | string | "感到大多数人都不可信任" | 题目名称 |
subjectDesc | string | "焦虑症状" | 题目描述 |
subjectLabel | string | "人际关系敏感,焦虑" | 题目标签,多个用逗号隔开 |
optionType | string | "RADIO" | 题目类型 |
options | array | 见下表 | 题目选项 |
options 内容:
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
optionId | string | "c0e52283ebd825f9f2601a2da69465ee" | 选项 id |
optionTitle | string | "中等" | 选项描述 |
optionScore | string | "1" | 选项得分 |
响应参数示例
json
{
"requestId": "19a672bd2df24749b411fa76d49ccbba",
"code": 0,
"msg": "success",
"data": {
"diseaseCode": 1302,
"surveyTitle": "SCL-90量表",
"surveyId": "a5e6c4f5f48a6ace1864f557348d12d5",
"surveyDesc": "抑郁症SCL-90自测量表",
"subjectCount": 42,
"totalScore": 630,
"subjects": [
{
"subjectId": "bcec5fa7ff4e36d0a5727e10a690b660",
"subjectTitle": "感到孤独",
"subjectDesc": "",
"subjectLabel": "焦虑",
"optionType": "RADIO",
"options": [
{
"optionId": "c0e52283ebd825f9f2601a2da69465ee",
"optionTitle": "没有",
"optionScore": "1"
},
{
"optionId": "f22915bc6a28a1ace3b9b0c53d7f935d",
"optionTitle": "很轻",
"optionScore": "2"
},
{
"optionId": "2ac5de19ae0de7534683b0af4b2d2547",
"optionTitle": "中等",
"optionScore": "3"
},
{
"optionId": "9833f97dd7ff175629a5343f93b77382",
"optionTitle": "偏重",
"optionScore": "4"
},
{
"optionId": "9a47f9acc5bc5aa531a3ce5779097a7b",
"optionTitle": "严重",
"optionScore": "5"
}
]
}
]
}
"time": 10
}