欢迎来到淘码网(TMA.CN)

门诊住院发票识别/医疗票据OCR识别/保险理赔/社保报销

价格: ¥ 0.01

最后更新: 2021-10-27 17:37:42

演示地址: 点击查看

安装费: 免费

分类
类 型
品 牌
语 言
数据库
是否加密
是否授权
大小
1 MB
发货方式
自动发货
下载方式
远程下载
安装方式
操作系统
运行环境
伪静态
备注说明
API参数 门诊住院发票识别 调用地址: http,https://medical.api.bdymkt.com/s/api/ocr/medical 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
  • 名称
  • 类型
  • 是否必须
  • 示例值
  • 描述
  • imgUrl
  • string
  • false
  • null
  • 图片的URL地址;优先使用该参数
  • imgBase64
  • string
  • false
  • null
  • 图片base64编码(包含data:image/png;base64,)
请求参数(Body) 请求参数(Path) 请求示例 javapythongocurlphpnodejs 示例代码使用, 需要使用Maven加入依赖
<dependency>
    <groupId>com.baidubce</groupId>
    <artifactId>api-explorer-sdk</artifactId>
    <version>1.0.0</version>
</dependency>
                                    
                                        
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;

// 门诊住院发票识别 Java示例代码
public class RequestDemo {
    public static void main(String[] args) {
        String path = "https://gwgp-akpqpvpbcku.n.bdcloudapi.com/s/api/ocr/medical";
        ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
        request.setCredentials("您的 access key", "您的 secret key");

        request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
        
        request.addQueryParameter("imgUrl", "");
        request.addQueryParameter("imgBase64", "");
        
        

        ApiExplorerClient client = new ApiExplorerClient(new AppSigner());

        try {
          ApiExplorerResponse response = client.sendRequest(request);
          // 返回结果格式为Json字符串
          System.out.println(response.getResult());
        } catch (Exception e) {
          e.printStackTrace();
        }
    }
}
                                    

                                    点击复制代码
                                
正常返回示例
                                    {
    "code": 0,
    "reqId": "8cb4d00e-008d-11ec-a4ae-2cf05d25f2ca",
    "status": 200,
    "message": "success",
    "serialNo": "391656486431883264",
    "data": {
        "insured": {
            "not_receipt_count": 0,
            "receipt_hospitalization": "",
            "receipt_outpatient": {
                "receipts": [
                    {
                        "AccResults": [],
                        "medicare_pay": {
                            "score": 1.0,
                            "pos": [],
                            "raw_field": "医保统筹基金支付",
                            "value": "0.00"
                        },
                        "receipt_no": {
                            "score": 1.0,
                            "pos": [],
                            "value": "61912218572"
                        },
                        "medicare_type": {
                            "score": 1.0,
                            "pos": [],
                            "raw": "城镇职工",
                            "value": "城镇职工"
                        },
                        "sex": {
                            "score": 1.0,
                            "pos": [],
                            "raw": "男",
                            "value": "男"
                        },
                        "addition_pay": "",
                        "social_no": "",
                        "self_cost": {
                            "score": 1.0,
                            "pos": [],
                            "raw_field": "个人自费",
                            "value": "14.70"
                        },
                        "feedetails": [
                            {
                                "number": "",
                                "unit": "",
                                "total_amount": "",
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "胶质止血明胶海"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/块",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "14.7000"
                                },
                                "item_name": {
                                    "score": 0.996119300319711,
                                    "pos": [],
                                    "raw": "(瑞/",
                                    "value": "(瑞"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/人次",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "4.0000"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "牙科综合治疗台/",
                                    "value": "牙科综合治疗台"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/每牙",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "510.0000"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "微创复杂牙拔除术/",
                                    "value": "微创复杂牙拔除术"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/2小",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "127.0000"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "上领神经阻涌麻醉/",
                                    "value": "上领神经阻涌麻醉"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/包",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "3.2900"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "一次性口腔器植盒/",
                                    "value": "一次性口腔器械盒"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "1/支",
                                    "value": "1"
                                },
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "7.0000"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "raw": "丙睿卡国肾上腺素/1.7ml",
                                    "value": "丙睿卡国肾上腺素"
                                },
                                "unit_price": "",
                                "specifications": {
                                    "score": null,
                                    "pos": null,
                                    "raw": "",
                                    "value": "1.7ml"
                                },
                                "self_amount": "",
                                "ratio": ""
                            }
                        ],
                        "self_pay_two": {
                            "score": 1.0,
                            "pos": [],
                            "raw_field": "自付二",
                            "value": "40.80"
                        },
                        "image_name": "",
                        "third_pay": "",
                        "self_pay_one": {
                            "score": 1.0,
                            "pos": [],
                            "raw_field": "自付一",
                            "value": "610.49"
                        },
                        "medicares": {
                            "outpatient_larger_payment": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "门诊大额支付",
                                "value": "0.00"
                            },
                            "deductible": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "起付金额",
                                "value": "610.49"
                            },
                            "outpatient_large_cumulative_payment": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "年度门诊大额支付",
                                "value": "0.00"
                            },
                            "super_large_cap_payment": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "超封顶金额",
                                "value": "0.00"
                            }
                        },
                        "zone": "",
                        "total_amount": {
                            "score": 1.0,
                            "pos": [],
                            "raw": "665.99",
                            "value": "665.99"
                        },
                        "name": "",
                        "bill_type": {
                            "score": "1.0",
                            "pos": [],
                            "value": "1"
                        },
                        "global_detail": {
                            "pay_list": [
                                {
                                    "name": "其他支付",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "其他支付",
                                        "value": "0.00"
                                    }
                                },
                                {
                                    "name": "个人自付",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "个人自付",
                                        "value": "651.29"
                                    }
                                },
                                {
                                    "name": "医保范围内",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "医保范围内",
                                        "value": "610.49"
                                    }
                                },
                                {
                                    "name": "退休补充支付",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "退休补充支付",
                                        "value": "0.00"
                                    }
                                },
                                {
                                    "name": "年度医保范围内",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "年度医保范围内",
                                        "value": "957.20"
                                    }
                                },
                                {
                                    "name": "个人账户余额",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "个人账户余额",
                                        "value": "0.00"
                                    }
                                },
                                {
                                    "name": "残军补助支付",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "残军补助支付",
                                        "value": "0.00"
                                    }
                                },
                                {
                                    "name": "单位补充险支付",
                                    "word": {
                                        "score": 1.0,
                                        "raw_field": "单位补充险支付",
                                        "value": "0.00"
                                    }
                                }
                            ],
                            "insurance_num": {
                                "score": 1.0,
                                "pos": [],
                                "value": "12647682900S"
                            },
                            "insurance_seq_no": {
                                "score": 1.0,
                                "pos": [],
                                "value": "081550070A210304000067"
                            },
                            "social_credit_no": {
                                "score": 1.0,
                                "pos": [],
                                "value": "370285********5312"
                            },
                            "settle_status": {
                                "score": 1.0,
                                "pos": [],
                                "value": "医保已实时结算"
                            },
                            "region_specific": [
                                {
                                    "name": "发票类型",
                                    "word": {
                                        "score": 1.0,
                                        "pos": [],
                                        "value": "中央医疗门诊收费票据"
                                    }
                                },
                                {
                                    "name": "门诊号",
                                    "word": {
                                        "score": 1.0,
                                        "pos": [],
                                        "value": "99202542"
                                    }
                                }
                            ],
                            "amount_in_words": {
                                "score": 1.0,
                                "pos": [],
                                "value": "陆佰陆拾伍元玖角玖分"
                            },
                            "invoice_date": {
                                "score": 1.0,
                                "pos": [],
                                "value": "2021-03-04"
                            }
                        },
                        "visit_date": {
                            "score": 1.0,
                            "pos": [],
                            "value": "2021-03-04"
                        },
                        "others": {
                            "payee": "",
                            "receivables_institution": "",
                            "self_cash_amount": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "个人现金支付",
                                "value": "665.99"
                            },
                            "treatment_date": "",
                            "self_acount_amount": {
                                "score": 1.0,
                                "pos": [],
                                "raw_field": "个人账户支付",
                                "value": "0.00"
                            },
                            "medical_institution_type": {
                                "score": 1.0,
                                "pos": [],
                                "raw": "专业医院",
                                "value": "专业医院"
                            },
                            "business_transaction": {
                                "score": 1.0,
                                "pos": [],
                                "value": "40077709721030400107D"
                            }
                        },
                        "feeitems": [
                            {
                                "number": "",
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "18.70"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "治疗费"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": "",
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "637.00"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "手术费"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": "",
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "3.29"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "卫生材料费"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            },
                            {
                                "number": "",
                                "unit": "",
                                "total_amount": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "7.00"
                                },
                                "item_name": {
                                    "score": 1.0,
                                    "pos": [],
                                    "value": "西药费"
                                },
                                "unit_price": "",
                                "specifications": "",
                                "self_amount": "",
                                "ratio": ""
                            }
                        ],
                        "hospital_name": ""
                    }
                ]
            },
            "receipt_count": 1
        },
        "textType": "全国统一门诊"
    }
}
                                
失败返回示例
                                    {
    "serialNo": "343839777521696229",
    "message": "检测文字失败,请确认上传的文件是否合法",
    "status": 400,
    "code": 3000
}
                                
错误码定义
  • code
  • message
  • status
  • 描述
  • 0
  • 成功
  • 200
  • 识别接口调用成功
  • --
  • 业务异常,具体message提示
  • 400
  • 业务异常,具体message提示
0 (0%)

好评

0 (0%)

中评

0 (0%)

差评

  • 会员中心
  • 浏览记录
  • 我的订单
  • 我的收藏
  • 在线客服

    点击这里给我发消息 点击这里给我发消息

    官方微信

    仅处理投诉、举报及平台使用问题;
    商品问题请咨询商家客服!

  • 意见反馈
  • 返回顶部
浏览记录