Skip to content
On this page

在线调试

打开疾病识别开放平台,在在线调试中打开疾病问卷调试,选择疾病名称,点击发起调用即可完成在线调试。

疾病问卷

请求示例

名称类型是否必选示例值描述
diseaseCodeint1300疾病 code
surveyTypeint0问卷类型

请求参数示例

json
{
  "diseaseCode": 1300,
  "surveyType": 0
}

响应参数

名称类型示例值描述
diseaseCodeint1300疾病 code
surveyIdstring"a5e6c4fXXXX"问卷id
surveyTitlestring"SCL-90 量表"问卷名称
surveyDescstring"抑郁症 SCL-90 自测量表"问卷描述
subjectCountint10问卷题目数量
totalScoreint100问卷总分
subjectsarray见下表问卷题目列表

subjects 内容:

名称类型示例值描述
subjectIdstring"bcec5fa7ff4e36d0a5727e10a690b660"题目 id
subjectTitlestring"感到大多数人都不可信任"题目名称
subjectDescstring"焦虑症状"题目描述
subjectLabelstring"人际关系敏感,焦虑"题目标签,多个用逗号隔开
optionTypestring"RADIO"题目类型
optionsarray见下表题目选项

options 内容:

名称类型示例值描述
optionIdstring"c0e52283ebd825f9f2601a2da69465ee"选项 id
optionTitlestring"中等"选项描述
optionScorestring"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
}