问诊引导

接口描述

调用此接口传入患者信息、病情信息、引导步数、历史特征标签等相关信息,获取下一步特征和标签

接口调用示例

测试环境请求地址:https://qaapi.macrocura.com/open/api/inquiry/guidance/step/

正式环境请求地址:https://api.macrocura.com/open/api/inquiry/guidance/step/

请求方法: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 是 诊断信息
step int 是 引导步数
add_feature_coun array(object) 是 增加特征数量
history_categories array(object) 是 历史特征标签

医院

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

医生

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

患者信息

字段名 类型 详细描述 是否必填
code 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字限制 否

历史特征标签

字段名 类型 详细描述 是否必填
category_name string 标签名称 是
features array(object) 特征 是

特征

字段名 类型 详细描述 是否必填
uuid string 特征编码 是
attributes array(object) 特征属性 否

{
    "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": {
        "code": "wangzehng",
        "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": "副肺叶"
            }
        ]
    },
    "step": 1,
    "add_feature_count": 0,
    "history_categories": [
        {
            "category_name": "头痛部位",
            "features": []
        },
        {
            "category_name": "头痛痛感",
            "features": []
        },
        {
            "category_name": "头痛程度",
            "features": []
        },
        {
            "category_name": "头痛发作特点",
            "features": []
        },
        {
            "category_name": "相关症状",
            "features": [
                {
                    "uuid": "7ca72907-1243-4d4a-afd8-f83f6007c102",
                    "attributes": []
                },
                {
                    "uuid": "f702e8e3-a515-4d4a-992a-940b035a6e53",
                    "attributes": []
                },
                {
                    "uuid": "06dced58-a975-48cf-ac3d-80119d8cd8f3",
                    "attributes": []
                },
                {
                    "uuid": "90a9cad5-9583-4d0a-a3b7-02e9a20bbc73",
                    "attributes": []
                },
                {
                    "uuid": "321d122f-1f51-43a6-b8ee-f71939be80db",
                    "attributes": []
                },
                {
                    "uuid": "89ed6c15-c127-46dd-8fad-7682282639d0",
                    "attributes": []
                },
                {
                    "uuid": "d461a8b7-6971-4a03-b9f3-65e1292c0c31",
                    "attributes": []
                },
                {
                    "uuid": "72dc0a8a-d98d-4bc3-932b-c1bbf5dc31a2",
                    "attributes": []
                },
                {
                    "uuid": "94c68008-3c29-4873-8a05-4b05bd7a67bc",
                    "attributes": []
                },
                {
                    "uuid": "acd08198-a472-44e1-b808-f3abb8423738",
                    "attributes": []
                }
            ]
        }
    ]
}

返回参数位置: HTTP Body

返回参数格式: JSON

返回参数详情:

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

data:

字段名 类型 详细描述
step_name string 引导步骤名称
is_complete bool 引导是否结束
categories array(object) 特征标签
history_categories array(object) 历史特征标签

历史特征标签

字段名 类型 详细描述 是否必填
category_name string 标签名称 是
features array(object) 特征 是

特征标签

字段名 类型 详细描述 是否必填
category_name string 标签名称 是
features array(object) 特征 是
{
    "code": 20000,
    "success": true,
    "msg": "成功",
    "data": {
        "step_name": "主诉追问",
        "is_complete": false,
        "categories": [
            {
                "category_name": "头痛高发情况",
                "features": [
                    "头痛夜晚高发",
                    "头痛白天高发"
                ]
            },
            {
                "category_name": "发热特点",
                "features": [
                    "寒热往来",
                    "但热不寒",
                    "恶寒发热",
                    "恶寒重发热轻",
                    "发热重恶寒轻",
                    "定时发热",
                    "午后发热",
                    "夜间发热",
                    "夜热早凉"
                ]
            },
            {
                "category_name": "全身游走痛相关",
                "features": [
                    "全身游走痛"
                ]
            },
            {
                "category_name": "肩背不适",
                "features": [
                    "肩背酸楚",
                    "肩背拘急",
                    "背部寒冷",
                    "背热",
                    "背痛",
                    "肩背沉重",
                    "项背强直"
                ]
            },
            {
                "category_name": "相关症状",
                "features": [
                    "颈项僵直",
                    "眼眶痛",
                    "肩背疼痛",
                    "鼻涕黄脓",
                    "鼻塞",
                    "鼻涕",
                    "身痛",
                    "易感冒",
                    "眼睛胀痛",
                    "恶心"
                ]
            }
        ],
        "history_categories": [
            {
                "category_name": "头痛高发情况",
                "features": []
            },
            {
                "category_name": "发热特点",
                "features": []
            },
            {
                "category_name": "全身游走痛相关",
                "features": []
            },
            {
                "category_name": "肩背不适",
                "features": []
            },
            {
                "category_name": "相关症状",
                "features": [
                    {
                        "uuid": "f2fc5c99-55d5-4743-9d1b-b2be6b2b636b",
                        "attributes": []
                    },
                    {
                        "uuid": "cf7baf3e-e576-4535-aa98-296cf0ac7a5b",
                        "attributes": []
                    },
                    {
                        "uuid": "ad0b0ffe-a467-40b1-aeaf-74b7e5ac09a1",
                        "attributes": []
                    },
                    {
                        "uuid": "b5500918-a86c-4d33-88bf-8f1d5695bbe6",
                        "attributes": []
                    },
                    {
                        "uuid": "a92768d1-3119-472f-bc1f-422c91e38e44",
                        "attributes": []
                    },
                    {
                        "uuid": "2e26b59b-478a-4591-a279-df5a400c7d8c",
                        "attributes": []
                    },
                    {
                        "uuid": "e6267853-ea7c-4d24-a91a-f6fb68e61e0e",
                        "attributes": []
                    },
                    {
                        "uuid": "780c56aa-32d6-4c1f-93cd-c61d21d1d547",
                        "attributes": []
                    },
                    {
                        "uuid": "4f7512ca-054b-4035-96c1-dfb2c8e4ce78",
                        "attributes": []
                    },
                    {
                        "uuid": "c4d8d1c8-b4c8-427f-8cb6-fe7ede4b141c",
                        "attributes": []
                    }
                ]
            }
        ]
    },
    "reason": null,
    "log_id": "f09f941e64bc44b9a3b1e9b634da1965"
}
By Macrocura, Copyright © 2020 all right reserved,powered by Gitbook            Last update: 2024-08-29 10:30:00