辩证指数

接口描述

调用此接口传入患者和病情相关信息,获取辩证雷达的分数和进度数据

接口调用示例

测试环境请求地址:https://qaapi.macrocura.com/open/api/dialectical-radar/score/

正式环境请求地址:https://api.macrocura.com/open/api/dialectical-radar/score/

请求方法:post

请求参数

R -- 必填 O -- 选填

字段名 类型 是否必填 详细描述
app_id string 应用id,对接外部应用的唯一id号
app_secret string 应用密钥,对接外部应用的秘钥,秘钥和id是一对一的关系
auth_code string 授权码,一个设备使用一个
hospital object 医院,50字限制
doctor object 医生,50字限制
appointment_date string 就诊时间, 示例: 2023-10-05
scene_code string 引擎场景编码,例如主治方场景code: wxEfRasIOVbjlohq
patient object 患者信息
record object 病情信息
diagnose object 诊断信息

医院

字段名 类型 详细描述 是否必填
code string 医院编码
name string 医院名称

医生

字段名 类型 详细描述 是否必填
code string 医生编码
name string 医生名称

患者信息

字段名 类型 详细描述 是否必填
gender string 患者性别 ,男、女
age int 患者年龄,0~150
province string 患者省份
city string 患者城市
height float 身高,1~250cm
weight float 体重,1~500kg
temperature float 体温,1~50℃
heart_rate float 心率,1~300
systolic_blood_pressure float 收缩压 ,1~300
diastolic_blood_pressure float 舒张压,1~300

病情信息

字段名 类型 详细描述 是否必填
main_remark string 主诉,500字限制
disease_remark string 现病史,500字限制
physique_remark string 体格检查,500字限制
assist_check string 辅助检查,500字限制
disease_history string 既往史,500字限制
allergy_history string 过敏史,500字限制
family_history string 家族史,500字限制
menstrual_history string 月经史,500字限制,男性不用填写
pregnancy_history string 孕产史,500字限制 ,男性不用填写

诊断信息:

字段名 类型 说明 是否必填
gbs array(Object) 中医诊断
syndromes Object 证型
therapys Object 治法
icd10s array(Object) 西医诊断

中医诊断:

字段名 类型 说明 是否必填
code String 中医诊断编码 ,50字限制
name String 中医诊断名称 ,50字限制

证型:

字段名 类型 说明 是否必填
code String 证型编码 ,50字限制
name String 证型名称 ,50字限制

治法:

字段名 类型 说明 是否必填
code String 治法编码 ,50字限制
name String 治法名称 ,50字限制

西医诊断:

字段名 类型 说明 是否必填
code String 西医诊断编码,50字限制
name String 西医诊断名称 ,50字限制

{
    "app_id": "19996cd8f2d94489936be7c90ed688e8",
    "app_secret": "a422db65404a495e924c7655bff0b383",
    "auth_code": "ca40674a00dc45709a57625bd7b8ca06",
    "medical_record_code": "111",
    "hospital": {
        "code": "1111111111111111111111111",
        "name": ""
    },
    "doctor": {
        "code": "111",
        "name": ""
    },
    "appointment_date": "2023-10-09",
    "patient": {
        "gender": "男",
        "age": "85",
        "height": "111",
        "weight": "22",
        "temperature": "",
        "heart_rate": "",
        "systolic_blood_pressure": "",
        "diastolic_blood_pressure": "",
        "province": "",
        "city": ""
    },
    "record": {
        "main_remark": "头痛",
        "disease_remark": "发烧",
        "physique_remark": "",
        "assist_check": "",
        "disease_history": "",
        "allergy_history": "",
        "family_history": "",
        "menstrual_history": "",
        "pregnancy_history": ""
    },
    "diagnose": {
        "gbs": [
            {
                "code": "",
                "name": "风痱"
            }
        ],
        "syndrome": {
            "code": "",
            "name": "寒证"
        },
        "therapy": {
            "code": "",
            "name": "寒者热之"
        },
        "icds": [
            {
                "code": "",
                "name": "副肺叶"
            }
        ]
    }
}

返回参数位置: HTTP Body

返回参数格式: JSON

返回参数详情:

字段名 类型 详细描述
code int 返回业务状态码
log_id string 日志id,便于追溯和排查问题
success bool 请求是否成功
msg string 失败或者成功信息
data object 返回的数据

data:

字段名 类型 详细描述
score string 辩证得分(辩证指数5档:0~5~19~35~52~100)
percentage array(object) 辩证进度百分比(指数进度条更新为: 0~52分转化为进度百分比,52分则100%进度,转化公式参考:进度=MIN(MAX((0.92/51)(ML辨证分-1)+0.08,0),1)100)
{
    "code": 20000,
    "success": true,
    "msg": "成功",
    "data": {
        "score": 53.5,
        "percentage": 60.7
    },
    "reason": null,
    "log_id": "3a14ce89078b41cc836091bffcb1205d"
}
By Macrocura, Copyright © 2020 all right reserved,powered by Gitbook            Last update: 2024-06-24 10:20:00