老年版体质辨识

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

说明:

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

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

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

请求参数

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

Body请求参数

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

请求示列

{
  "user":{
        "gender":"male",
        "age":"10"
    }
  "options":
          {
             "CA01":3,
             "CA02":3,
             "CA03":3,
             "CA04":3,
             "CA05":3,
             "CA06":3,
             "CA07":3,
             "CA08":3,
             "CA09":3,
             "CA10":3,
             "CA11":3,
             "CA12":3,...
             }

}

返回参数

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

返回实例

{
    "errcode": 0,
    "errmsg": "ok",
    "a_score": 50.0,
        "b_score": 50.0,
        "c_score": 50.0,
        "constitution": {
            "level": 1,
            "type": "B"
        },
        "created_at": 1657849847,
        "d_score": 50.0,
        "data_source": 3,
        "e_score": 50.0,
        "f_score": 50.0,
        "g_score": 50.0,
        "h_score": 50.0,
        "i_score": 50.0,
        "option_details": {
            "CA01": 3,
            "CA02": 3,
            "CA03": 3,
            "CA04": 3,
            "CA05": 3,
            ...
        },
        "other_constitution": [
            {
                "level": 1,
                "type": "D"
            },
            {
                "level": 1,
                "type": "E"
            },
            {
                "level": 1,
                "type": "C"
            },
            {
                "level": 1,
                "type": "G"
            },
            {
                "level": 1,
                "type": "H"
            },
            {
                "level": 1,
                "type": "I"
            },
            {
                "level": 1,
                "type": "F"
            }
        ],
        "version": 1
}
Copyright © https://www.tizhicm.com 2022 all right reserved,powered by Gitbook该文件修订时间: 2025-04-30 02:26:42

results matching ""

    No results matching ""