Skip to content

4、获取病情分析 - 智能问诊模块

接口描述


该接口用于根据当前问诊上下文分析病情关键词,并返回后续诊断所需的问题选项,辅助进行初步判断。适用于智能问诊流程中的自动引导环节。

调用接口

请求方式: POST(HTTPS)
请求地址: https://ms-ai.chongzhiling.com/api/v2.0/ai-b/aidoc/analysis?token=[ACCESS_TOKEN]

请求参数

json
{
  "pet_profile_id": 0,
  //宠物档案id
  "session_id": "string"
  //会话id
}

参数列表

Body 参数(application/json

名称类型必填说明
pet_profile_idnumber宠物档案ID
session_idstring会话 ID,用于关联当前问诊上下文

请求示例

{ "pet_profile_id": 12345, "session_id": "sess_abc123" }

返回结果

json
{
  "data": {
    "questions": [
      {
        "content": "腹痛持续多久了?",
        //问题
        "id": "ques1",
        //问题标识
        "options": [
          {
            "choice": "一天内",
            "title": "持续时间"
          }
        ]
      },
      {
        "content": "精神状态如何?",
        "id": "ques2",
        "options": [
          {
            "choice": "较差",
            "title": "精神状态"
          }
        ]
      },
      {
        "content": "食欲是否正常?",
        "id": "ques3",
        "options": [
          {
            "choice": "下降",
            "title": "食欲"
          }
        ]
      }
    ]
  },
  "error_code": 0,
  "message": "Get successfully.",
  "success": true
}

安全说明

本接口需携带有效的 token 参数进行身份验证,token 应通过登录接口获取。 未授权访问将返回错误码并拒绝请求

返回参数说明

名称类型说明
dataobject返回数据对象
error_codestring错误码
messagestring返回信息描述
successboolean是否成功,成功返回true,失败返回false

接口调试