POST /v2/nc.ms.smart.department.recommend

通过输入描述身体症状的自然语言文本,获得就诊科室的推荐信息

请求参数

参数名称类型是否必须备注示例
contentstring待分析文本,最大长度为 1000 字符,支持 UTF-8 编码肚子疼

返回数据说明

参数名称类型备注
department_codestring科室 ID
department_namestring科室名称
department_levelinteger科室级别(数值越大,科室粒度越细)
childrenarray子科室
children.department_codestring科室 ID
children.department_namestring科室名称
children.department_levelinteger科室级别(数值越小,科室级别越高,顶层科室级别为 1)
children.scoreinteger预测指数,范围 [0,1],两位小数

请求及返回示例

请求

POST https://medical.nocode.com/open/v2/nc.ms.smart.department.recommend

{
  "content": "肚子疼"
}

返回结果

{
  "data": [
    {
      "children": [
        {
          "score": 0.99,
          "department_code": "1103",
          "department_name": "消化内科",
          "department_level": 2
        }
      ],
      "department_code": "11",
      "department_name": "内科",
      "department_level": 1
    }
  ],
  "meta": {
    "intent_score": 0.4
  }
}
;