简易版体质辨识

POST https://www.tizhicm.com/open-api/simple/identify

1.请对数据进行整合,请将全部的题目数据作为参数,缺少题目或选项将无法得到辨识结果!

2.题目分数需要按照量表返回的标准分数进行赋值,如果高于上限分数或者低于下限分数将不能进行辨识。

3.体质辨识是根据需求人真实的身体感受情况所分析得到的结果,所以为保证辨识的准确性请提示用户按照最近一年的身体实际感受来进行量表的填写

Query 参数

参数 类型 必填 说明
access_token string 调用凭证

Body 参数 (application/json)

参数 类型 必填 说明
options json (题目code做key【字符类型】得分分数做value【int类型】)
user object 用户参数体
user.age int 年龄
user.gender string 性别 (male,female)

请求示列

{
    "user":{
        "age":"10",
        "gender":"male"
    },
    "options": {
        "CS01": 3,
        "CS02": 3,
        "CS03": 3,
        "CS04": 3,
        "CS05": 3,
        "CS06": 3,
        "CS07": 3,
        "CS08": 3,
        "CS09": 3,
        "CS10": 3,
        "CS11": 3,
        "CS12": 3,
        "CS13": 3,
        "CS14": 3,
        "CS15": 3,
        "CS16": 3,
        "CS17": 3,
        "CS18": 3,
        "CS19": 3,
        "CS20": 3,
        "CS21": 3,
        "CS22": 3,
        "CS23": 3,
        "CS24": 3,
        "CS25": 3,
        "CS26": 3,
        "CS28": 3
    }
}

返回参数

参数 类型 说明
errcode int 返回码
errmsg string 返回装填描述
result object 返回信息
result.a_score float 平和体质得分
result.b_score float 气虚质得分
result.c_score float 阳虚质得分
result.d_score float 阴虚质得分
result.e_score float 痰湿体质得分
result.f_score float 湿热质得分
result.g_score float 血瘀质得分
result.h_score float 气郁质得分
result.i_score float 特禀质得分
result.constitution.level int 体质级别 2:倾向是,1:是 0 否
result.constitution.type str 主体质名称
result.created_at int 辨识时间 (毫秒值)
result.other_constitution.level int 兼夹体质级别 体质级别 1-是,2-倾向是
constitution_state str 'success' 正常辨识体质; 'unknown' 未能辨识体质
result.other_constitution.type int 兼夹体质名称
result.version int 版本
  1. 其中返回的体质特殊代码编号如下所示 (A = 平和质 B = 气虚质 C = 阳虚质 D = 阴虚质 E = 痰湿质 F = 湿热质 G = 血瘀质 H = 气郁质 I = 特禀质)
  2. 体质level代表这个体质的级别,当显示时需要用该数据作为依据

返回实例

{
    "errcode": 0,
    "errmsg": "string",
    "a_score": 0,
    "b_score": 0,
    "c_score": 0,
    "constitution": {
        "level": 0,
        "type": "string"
    },
    "created_at": 0,
    "d_score": 0,
    "e_score": 0,
    "f_score": 0,
    "g_score": 0,
    "h_score": 0,
    "i_score": 0,
    "other_constitution": [
        {
            "level": 0,
            "type": "string"
        }
    ],
    "version": "string"
}
Copyright © https://www.tizhicm.com 2022 all right reserved,powered by Gitbook该文件修订时间: 2025-04-30 02:26:42

results matching ""

    No results matching ""