medical_detail

1.接口描述

该 API 用于识别提取医疗费用清单上的文字信息。

  • 图片要求:
    1. 格式为 JPG(JPEG),PNG
    2. 宽和高大于 128px,小于等于 6000px
    3. 小于等于 5 MB

请求方式

POST

请求URL

2.请求参数

2.1 请求体

字段 类型 是否必需 描述
image_file file 见下方注释 需上传的图片文件,上传本地图片进行检测时选取此参数
image_base64 string 见下方注释 base64编码的图片内容
org_code string 组织机构代码;根据填写机构码匹配对应地区医保库;不填写会默认匹配国家甲类药品库
request_id string 本次请求的唯一标记,不指定服务端会自动生成
auto_rotate boolean 是否自动旋转图片,true开启,false不开启;默认false

请求参数 image_file,image_base64 二选一。
url 中若含有特殊字符,则需要对这些字符进行转义,所有中文和特殊字符必需以UTF-8编码转义。
参数 image_file 需把图片文件以 multipart/form-data 的形式放到 POST 消息体中。

3.返回参数

字段 类型 说明
status string 状态,正常为 OK
degree int 图片旋转角度
medical_result object 票据信息提取结果

3.1 medical_result 字段的参数:

字段 类型 说明
note_title string 票据标题
patient_name string 患者姓名
patient_gender int 性别:0-未知,1-男, 2-女
hospital_name string 医院名称
start_hospital_date string 入院日期
end_hospital_date string 出院日期
hospital_days float 住院天数
total_cost float 总金额
cost_detail_list array 细类项目
text_regions object 提取信息的坐标
confidence object 提取信息的置信度
3.1.2 cost_detail_list 字段的参数:
字段 类型 说明
ocr_name string 细目名称,基于票面名称拆解后细目名称,建议细目名称用此条
cost float 细目金额
amount float 细目数量
unit_price float 细目单价
spec string 规格
unit string 单位
medical_level string 医保等级,根据票面内容提取
selfpay_ratio float 自付比例,取值范围:[0-1],从票面提取或通过细目名称查询医保库获取
selfpay float 自付金额,从票面提取或通过细目金额 * 自付比例计算
medical_type int 项目类型:0-未知,1-西药,2-中药,3-诊疗项目
class string 细目所属大类,根据票面内容提取
item_coding string 项目编码,根据票面内容提取
origin_ocr_name string 票面上原始打印的细目名称
name string 通过细目名称匹配的医保库名称
3.1.3 text_regions的取值:
  • 坐标输出格式 : [左上角x, 左上角y, 右下角x, 右下角y]
字段 类型 说明
patient_gender array 性别
patient_name array 患者姓名
start_hospital_date array 入院日期
end_hospital_date array 出院日期
hospital_days array 住院天数
hospital_name array 医院名称
note_title array 票据标题
total_cost array 总金额
cost_detail_list array 细类项目列表坐标。数组中的单个元素表示一组细目,单个元素的内容按照key-value键值对输出,输出字段与提取字段一一对应,无坐标则输出为[]
3.1.4 confidence 的取值:
字段 类型 说明
patient_gender float 性别
patient_name float 患者姓名
start_hospital_date float 入院日期
end_hospital_date float 出院日期
hospital_days float 住院天数
hospital_name float 医院名称
note_title float 票据标题
total_cost float 总金额
cost_detail_list array 细目列表置信度。数组中的单个元素表示一组细目,单个元素的内容按照key-value键值对输出,输出字段与提取字段一一对应,无置信度则输出为-1
返回结果示例
{
    "degree": 0,
    "medical_result": {
        "confidence": {
            "cost_detail_list": [
                {
                    "amount": 0.9872,
                    "class": -1,
                    "cost": 0.9983,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.0111,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.5731,
                    "spec": -1,
                    "unit": 0.9996,
                    "unit_price": 0.9997
                },
                {
                    "amount": 0.9827,
                    "class": -1,
                    "cost": 0.6575,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.9474,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.7822,
                    "spec": -1,
                    "unit": 0.9998,
                    "unit_price": 0.9996
                },
                {
                    "amount": 0.6739,
                    "class": -1,
                    "cost": 0.9067,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.855,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.946,
                    "spec": -1,
                    "unit": 0.9862,
                    "unit_price": 0.9895
                },
                {
                    "amount": 0.9949,
                    "class": -1,
                    "cost": 0.8111,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.9975,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.9795,
                    "spec": -1,
                    "unit": 0.9923,
                    "unit_price": 0.9995
                },
                {
                    "amount": 0.9146,
                    "class": -1,
                    "cost": 0.9865,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.9575,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.9911,
                    "spec": -1,
                    "unit": 0.9993,
                    "unit_price": 0.9989
                },
                {
                    "amount": 0.9863,
                    "class": -1,
                    "cost": 0.5023,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.5687,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.4197,
                    "spec": -1,
                    "unit": 0.8496,
                    "unit_price": 0.9989
                },
                {
                    "amount": 0.978,
                    "class": -1,
                    "cost": 0.994,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.8973,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.987,
                    "spec": -1,
                    "unit": 0.9982,
                    "unit_price": 0.9989
                },
                {
                    "amount": 0.9487,
                    "class": -1,
                    "cost": 0.9174,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.7352,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.7304,
                    "spec": -1,
                    "unit": 0.7513,
                    "unit_price": 0.9992
                },
                {
                    "amount": 0.9338,
                    "class": -1,
                    "cost": 0.9444,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.9489,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.9418,
                    "spec": -1,
                    "unit": 0.8041,
                    "unit_price": 0.9985
                },
                {
                    "amount": 0.982,
                    "class": -1,
                    "cost": 0.8719,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.473,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.994,
                    "spec": -1,
                    "unit": 0.4996,
                    "unit_price": 0.9979
                },
                {
                    "amount": 0.9959,
                    "class": -1,
                    "cost": 0.9686,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.4568,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.964,
                    "spec": -1,
                    "unit": 0.9992,
                    "unit_price": 0.9963
                },
                {
                    "amount": 0.9765,
                    "class": -1,
                    "cost": 0.52,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.0249,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.9883,
                    "spec": -1,
                    "unit": 0.9529,
                    "unit_price": 0.9996
                },
                {
                    "amount": 0.6729,
                    "class": -1,
                    "cost": 0.55,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.3766,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.8861,
                    "spec": -1,
                    "unit": 0.9842,
                    "unit_price": 0.7773
                },
                {
                    "amount": 0.7258,
                    "class": -1,
                    "cost": 0.9043,
                    "item_coding": -1,
                    "medical_level": -1,
                    "medical_type": -1,
                    "name": -1,
                    "ocr_name": 0.5819,
                    "origin_ocr_name": -1,
                    "selfpay": -1,
                    "selfpay_ratio": 0.8571,
                    "spec": -1,
                    "unit": 0.8885,
                    "unit_price": 0.9827
                }
            ],
            "end_hospital_date": 0.773,
            "hospital_days": -1,
            "hospital_name": 0.4083,
            "note_title": -1,
            "patient_gender": 0.9976,
            "patient_name": 0.6053,
            "start_hospital_date": 0.773,
            "total_cost": 0.9909
        },
        "cost_detail_list": [
            {
                "amount": 1,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 13,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "职业部力评定(/)",
                "origin_ocr_name": "职业部力评定(/)",
                "selfpay": 13,
                "selfpay_ratio": 1,
                "spec": null,
                "unit": "次",
                "unit_price": 13
            },
            {
                "amount": 1,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 20,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "作业疗法(/)",
                "origin_ocr_name": "作业疗法(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 20
            },
            {
                "amount": 1,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 130,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "急诊监护费(/)",
                "origin_ocr_name": "急诊监护费(/)",
                "selfpay": 26,
                "selfpay_ratio": 0.2,
                "spec": null,
                "unit": "天",
                "unit_price": 130
            },
            {
                "amount": 6,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 30,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "静脉注射",
                "origin_ocr_name": "静脉注射(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 5
            },
            {
                "amount": 7,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 56,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "静脉输液(/)",
                "origin_ocr_name": "静脉输液(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 8
            },
            {
                "amount": 3,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 39,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "静脉穿刺置管术(/)",
                "origin_ocr_name": "静脉穿刺置管术(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 13
            },
            {
                "amount": 2,
                "check_amount_unitprice_cost": 0,
                "class": null,
                "cost": 9,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "皮内注射",
                "origin_ocr_name": "皮内注射(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 4
            },
            {
                "amount": 2,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 2.6,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "静脉输液每瓶加收(/)",
                "origin_ocr_name": "静脉输液每瓶加收(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "瓶",
                "unit_price": 1.3
            },
            {
                "amount": 1,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 39,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "特大换药(骨)(/)",
                "origin_ocr_name": "特大换药(骨)(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 39
            },
            {
                "amount": 10,
                "check_amount_unitprice_cost": 0,
                "class": null,
                "cost": 352,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "高光功率光子治疗(理疗)(/)",
                "origin_ocr_name": "高光功率光子治疗(理疗)(/)",
                "selfpay": 352,
                "selfpay_ratio": 1,
                "spec": null,
                "unit": "每5分钟",
                "unit_price": 22
            },
            {
                "amount": 8,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 272,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "L、指动脉检测(/)",
                "origin_ocr_name": "L、指动脉检测(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 34
            },
            {
                "amount": 4,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 80,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "斯脱伤换药(/)",
                "origin_ocr_name": "斯脱伤换药(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 20
            },
            {
                "amount": 1,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 195,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "外固定调整术(康复)(/)",
                "origin_ocr_name": "外固定调整术(康复)(/)",
                "selfpay": 0,
                "selfpay_ratio": 0,
                "spec": null,
                "unit": "次",
                "unit_price": 195
            },
            {
                "amount": 14,
                "check_amount_unitprice_cost": 1,
                "class": null,
                "cost": 731.5,
                "item_coding": null,
                "medical_level": null,
                "medical_type": null,
                "name": null,
                "ocr_name": "丹参多酚酸盐粉针",
                "origin_ocr_name": "丹参多酚酸盐粉针(50mg)",
                "selfpay": 219.45,
                "selfpay_ratio": 0.3,
                "spec": "50mg",
                "unit": "支",
                "unit_price": 52.25
            }
        ],
        "end_hospital_date": "2020-08-20",
        "hospital_days": 7,
        "hospital_name": "XXX第九人民医院(无锡市骨科医院)",
        "note_title": "",
        "patient_gender": 1,
        "patient_name": "XXX",
        "start_hospital_date": "2020-08-13",
        "text_regions": {
            "cost_detail_list": [
                {
                    "amount": [
                        597.0549,
                        304.0041,
                        641.057,
                        324.0088
                    ],
                    "class": [],
                    "cost": [
                        844.0548,
                        304.0308,
                        896.057,
                        324.0364
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0546,
                        298.9504,
                        248.0576,
                        325.9663
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        921.0548,
                        304.0391,
                        995.057,
                        324.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0546,
                        301.993,
                        517.0572,
                        325.9954
                    ],
                    "unit_price": [
                        701.0548,
                        304.0153,
                        755.057,
                        324.0211
                    ]
                },
                {
                    "amount": [
                        597.0511,
                        339.0041,
                        641.0532,
                        359.0088
                    ],
                    "class": [],
                    "cost": [
                        844.0511,
                        339.0308,
                        899.0532,
                        359.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0509,
                        335.9504,
                        210.0536,
                        360.9622
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0511,
                        339.0412,
                        995.0532,
                        359.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0509,
                        338.993,
                        517.0532,
                        360.9954
                    ],
                    "unit_price": [
                        701.0511,
                        339.0153,
                        755.0532,
                        359.0211
                    ]
                },
                {
                    "amount": [
                        597.0474,
                        373.0041,
                        641.0496,
                        393.0088
                    ],
                    "class": [],
                    "cost": [
                        834.0474,
                        373.0297,
                        899.0496,
                        393.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        104.0471,
                        367.9508,
                        230.0501,
                        395.9644
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        931.0474,
                        376.0402,
                        995.0492,
                        393.0471
                    ],
                    "spec": [],
                    "unit": [
                        498.0474,
                        370.9934,
                        517.0498,
                        392.9954
                    ],
                    "unit_price": [
                        693.0474,
                        373.0144,
                        755.0496,
                        393.0211
                    ]
                },
                {
                    "amount": [
                        594.0436,
                        408.0037,
                        639.0458,
                        428.0086
                    ],
                    "class": [],
                    "cost": [
                        844.0436,
                        408.0308,
                        899.0458,
                        428.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0434,
                        405.9504,
                        210.046,
                        429.9622
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0436,
                        408.0412,
                        995.0458,
                        428.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0436,
                        405.993,
                        517.046,
                        427.9954
                    ],
                    "unit_price": [
                        711.0436,
                        408.0164,
                        755.0458,
                        428.0211
                    ]
                },
                {
                    "amount": [
                        594.0398,
                        443.0037,
                        639.042,
                        463.0086
                    ],
                    "class": [],
                    "cost": [
                        844.0398,
                        443.0308,
                        899.042,
                        463.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0396,
                        439.9504,
                        210.0423,
                        464.9622
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0398,
                        443.0412,
                        995.042,
                        463.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0398,
                        439.993,
                        517.0423,
                        462.9954
                    ],
                    "unit_price": [
                        711.0398,
                        443.0164,
                        755.042,
                        463.0211
                    ]
                },
                {
                    "amount": [
                        594.0362,
                        477.0037,
                        639.0383,
                        497.0086
                    ],
                    "class": [],
                    "cost": [
                        844.0362,
                        477.0308,
                        899.0383,
                        497.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0362,
                        471.9504,
                        267.0389,
                        496.9684
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0362,
                        480.0412,
                        995.038,
                        497.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0362,
                        474.993,
                        517.0385,
                        496.9954
                    ],
                    "unit_price": [
                        703.0362,
                        477.0155,
                        755.0383,
                        497.0211
                    ]
                },
                {
                    "amount": [
                        594.0327,
                        512.0037,
                        639.0345,
                        529.0086
                    ],
                    "class": [],
                    "cost": [
                        854.0327,
                        512.0318,
                        896.0345,
                        529.0364
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0324,
                        506.9504,
                        210.0351,
                        531.9622
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0327,
                        512.0412,
                        995.0345,
                        529.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0324,
                        509.993,
                        517.0347,
                        531.9954
                    ],
                    "unit_price": [
                        713.0327,
                        512.0166,
                        755.0345,
                        529.0211
                    ]
                },
                {
                    "amount": [
                        594.0289,
                        544.0037,
                        641.0311,
                        564.0088
                    ],
                    "class": [],
                    "cost": [
                        854.0289,
                        544.0318,
                        899.0311,
                        564.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0289,
                        541.9504,
                        285.0313,
                        563.9703
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0289,
                        547.0412,
                        995.0307,
                        564.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0289,
                        541.993,
                        517.0313,
                        563.9954
                    ],
                    "unit_price": [
                        711.0289,
                        544.0164,
                        755.0311,
                        564.0211
                    ]
                },
                {
                    "amount": [
                        597.0251,
                        579.0041,
                        641.0273,
                        599.0088
                    ],
                    "class": [],
                    "cost": [
                        844.0251,
                        579.0308,
                        899.0273,
                        599.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0249,
                        578.9504,
                        250.0273,
                        600.9666
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0251,
                        579.0412,
                        995.0273,
                        599.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0249,
                        578.993,
                        517.0273,
                        600.9954
                    ],
                    "unit_price": [
                        701.0251,
                        579.0153,
                        755.0273,
                        599.0211
                    ]
                },
                {
                    "amount": [
                        587.0215,
                        614.003,
                        641.0235,
                        633.0088
                    ],
                    "class": [],
                    "cost": [
                        834.0215,
                        614.0297,
                        896.0235,
                        633.0364
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0211,
                        610.9504,
                        344.0238,
                        635.9767
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        924.0215,
                        614.0394,
                        993.0235,
                        633.0469
                    ],
                    "spec": [],
                    "unit": [
                        470.0211,
                        610.9903,
                        542.0238,
                        635.9981
                    ],
                    "unit_price": [
                        701.0215,
                        614.0153,
                        755.0235,
                        633.0211
                    ]
                },
                {
                    "amount": [
                        594.0177,
                        648.0037,
                        639.0198,
                        668.0086
                    ],
                    "class": [],
                    "cost": [
                        834.0173,
                        648.0297,
                        899.0198,
                        671.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0171,
                        645.9504,
                        267.0201,
                        672.9684
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        938.0177,
                        651.0409,
                        993.0195,
                        668.0469
                    ],
                    "spec": [],
                    "unit": [
                        495.0173,
                        645.993,
                        517.02,
                        670.9954
                    ],
                    "unit_price": [
                        701.0177,
                        648.0153,
                        755.0198,
                        668.0211
                    ]
                },
                {
                    "amount": [
                        594.0139,
                        683.0037,
                        641.016,
                        703.0088
                    ],
                    "class": [],
                    "cost": [
                        844.0139,
                        683.0307,
                        899.016,
                        703.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0137,
                        679.9504,
                        228.0164,
                        704.9642
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        938.0139,
                        683.0409,
                        995.016,
                        703.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0137,
                        679.993,
                        517.0164,
                        704.9954
                    ],
                    "unit_price": [
                        701.0139,
                        683.0153,
                        755.016,
                        703.0211
                    ]
                },
                {
                    "amount": [
                        597.0102,
                        720.0041,
                        641.0121,
                        737.0088
                    ],
                    "class": [],
                    "cost": [
                        834.0102,
                        718.0297,
                        899.0123,
                        737.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        101.0097,
                        714.9504,
                        324.0126,
                        741.9745
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        941.0102,
                        720.0412,
                        995.012,
                        737.0471
                    ],
                    "spec": [],
                    "unit": [
                        495.0099,
                        714.993,
                        517.0126,
                        739.9954
                    ],
                    "unit_price": [
                        693.0102,
                        718.0144,
                        758.0123,
                        737.0215
                    ]
                },
                {
                    "amount": [
                        584.0024,
                        789.0026,
                        641.0046,
                        809.0088
                    ],
                    "class": [],
                    "cost": [
                        832.0024,
                        789.0295,
                        899.0046,
                        809.0367
                    ],
                    "item_coding": [],
                    "medical_level": [],
                    "medical_type": [],
                    "name": [],
                    "ocr_name": [
                        104.0021,
                        786.9508,
                        314.0048,
                        811.9735
                    ],
                    "origin_ocr_name": [],
                    "selfpay": [],
                    "selfpay_ratio": [
                        928.0024,
                        789.0398,
                        993.0046,
                        809.0469
                    ],
                    "spec": [],
                    "unit": [
                        495.0021,
                        786.993,
                        517.0048,
                        811.9954
                    ],
                    "unit_price": [
                        701.0024,
                        789.0153,
                        755.0046,
                        809.0211
                    ]
                }
            ],
            "end_hospital_date": [
                64.0672,
                179.9465,
                384.0704,
                209.981
            ],
            "hospital_days": [],
            "hospital_name": [
                413.0802,
                21.9842,
                639.0875,
                89.0086
            ],
            "note_title": [],
            "patient_gender": [
                386.0704,
                150.9813,
                470.0735,
                179.9903
            ],
            "patient_name": [
                245.0706,
                150.966,
                366.0735,
                177.9791
            ],
            "start_hospital_date": [
                64.0672,
                179.9465,
                384.0704,
                209.981
            ],
            "total_cost": [
                237.999,
                816.9653,
                280.0016,
                840.9698
            ]
        },
        "total_cost": 10932.38
    },
    "status": "OK"
}

4.错误码

状态码 status 字段 说明
400 INVALID_ARGUMENT 请求参数错误
400 DETETION_FAILED 图片检测失败
403 NO_PERMISSION 无调用权限
403 OUT_OF_QUOTA 调用次数超出限额
404 NOT_FOUND 请求路径错误
500 INTERNAL_ERROR 服务器内部错误

备注: 以上40X系列错误描述请参考error字段

输出样例
{
  "status": "PARAMETER_ERROR",
  "error": "image_file、image_base64 or image_url required",
}

5.示例代码

results matching ""

    No results matching ""