medical_invoice
1.接口描述
该 API 用于识别提取医疗发票上的字段信息。
- 图片要求:
- 格式为 JPG(JPEG),PNG
- 宽和高大于 128px,小于等于 6000px
- 小于等于 5 MB
请求方式
POST
请求URL
支持省份
province | 说明 |
---|---|
beijing | 北京 |
tianjin | 天津 |
shanghai | 上海 |
zhejiang | 浙江 |
shandong | 山东 |
henan | 河南 |
jiangsu | 江苏 |
guangdong | 广东 |
hebei | 河北 |
shaanxi | 陕西 |
sichuan | 四川 |
liaoning | 辽宁 |
jilin | 吉林 |
anhui | 安徽 |
guangxi | 广西 |
hubei | 湖北 |
hunan | 湖南 |
shanxi | 山西 |
chongqing | 重庆 |
fujian | 福建 |
gansu | 甘肃 |
guizhou | 贵州 |
hainan | 海南 |
yunnan | 云南 |
jiangxi | 江西 |
neimenggu | 内蒙古 |
ningxia | 宁夏 |
xinjiang | 新疆 |
heilongjiang | 黑龙江 |
e_invoice | 电子发票 |
URL调用不加后缀province(省份标识),则表示通用门诊住院发票识别提取
2.请求参数
字段 | 类型 | 必需 | 描述 |
---|---|---|---|
request_id | string | 本次请求的id | |
image_file | file | 见下方注释 | 需上传的图片文件。上传本地图片进行检测时选取此参数 |
image_base64 | string | 见下方注释 | base64编码的图片内容 |
image_url | string | 见下方注释 | 网络影像的url地址 |
请求参数
image_file
、image_base64
、image_url
三选一。
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 | 票据标题 |
type | int | 票据类型:0-未知,1-门诊票据,2-住院票据 |
note_no | string | 票据号码 |
patient_name | string | 患者姓名 |
patient_gender | int | 性别:0-未知,1-男, 2-女 |
billing_date | string | 开票日期 |
cost_categories | array | 大类项目 |
cost_detail_list | array | 细类项目 |
hospital_name | string | 医院名称 |
start_hospital_date | string | 入院日期 |
end_hospital_date | string | 出院日期 |
hospital_days | float | 住院天数 |
total_cost | float | 发票总金额 |
medical_insurance_type | string | 医保类型,根据票面内容提取 |
medical_organization_type | string | 医疗机构类型 |
service_serial_no | string | 业务流水号 |
social_security_card_no | string | 社会保障号码 |
payments_info | array | 支付信息项 |
checksum | object | 票据内校验结果:-1-无法校验,0-校验不通过,1-校验通过,根据票内逻辑关系校验 |
charging_units | string | 收款单位 |
hospital_no | string | 住院号/门诊号 |
payee | string | 收款人 |
reviewer | string | 复核人 |
hospital_departments | string | 住院科别 |
work_unit | string | 工作单位 |
payment_channel | string | 支付渠道 |
medical_insurance_no | string | 医保编号 |
medical_card_no | string | 就诊卡号 |
check_code | string | 校验码 |
note_code | string | 票据代码 |
medical_record_no | string | 病历号 |
unified_social_credit_code | string | 交款人社会统一信用代码 |
treatment_date | string | 就诊日期 |
text_regions | object | 提取信息的坐标 |
confidence | object | 提取信息的置信度 |
3.1.1 checksum 字段的参数:
字段 | 类型 | 说明 |
---|---|---|
total_cost | int | 总金额 |
cost_detail_list | int | 细目金额,细目金额之和是否等于总金额 |
cost_categories | int | 大类金额,大类金额之和是否等于总金额 |
note_no | int | 发票号,仅北京门诊校验(非电子票) |
billing_date | int | 开票日期,仅北京医保门诊校验(非电子票) |
payments_class_b | int | 自付二,仅北京、上海、浙江门诊(非电子票) |
payments_class_c | int | 自费,仅北京、上海、浙江门诊(非电子票) |
3.1.2 cost_categories 字段的参数:
字段 | 类型 | 说明 |
---|---|---|
name | string | 大类单项名称 |
cost | float | 大类单项金额 |
3.1.3 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 | 通过细目名称匹配的医保库名称 |
check_amount_unitprice_cost | int | 细目校验规则:单价(unit_price)*数量(amount)=金额(cost),1-成立,0-不成立,-1-缺失规则字段 |
3.1.4 payments_info 的字段:
字段 | 类型 | 说明 |
---|---|---|
name | string | 名称 |
cost | float | 金额 |
check_info | int | 金额校验是否通过:-1-无法校验,0-校验不通过,1-校验通过 |
3.1.4.1 payments_info中`name`的取值:
以下字段不同地区票面打印内容不一致,我方将含义一致的词进行了统一化处理,不同发票相同含义词均按以下词表中的词固定输出,如需对应的词库请联系商务索取
例如:北京的“自付二”和上海“分类自负”含义一致,均输出为“自付二”
以下字段如票面中不包含或未提取到,不做输出
字段 |
---|
预缴金额 |
补缴金额 |
退费金额 |
医保统筹基金支付 |
其他支付 |
个人账户支付 |
个人现金支付 |
附加基金支付 |
医保账户余额 |
当年支付 |
历年支付 |
本年余额 |
历年余额 |
按比例自付 |
个人自付 |
自付一 |
自付二 |
个人自费 |
起付标准 |
本次医保范围内金额 |
累计医保内范围金额 |
年度门诊大额累计支付 |
超封顶金额 |
门诊大额支付 |
退休补充支付 |
残军补充支付 |
单位补充险[原公疗]支付 |
统筹累计支付 |
公务员补助 |
师职补助 |
大病保险报销 |
大病补充报销 |
医疗救助 |
产前检查费 |
民政救助 |
大病救助 |
伤残补助 |
其他补助 |
商业保险 |
医院承担 |
3.1.5 confidence 的取值:
字段 | 类型 | 说明 |
---|---|---|
note_no | float | 票据号码 |
patient_name | float | 患者姓名 |
patient_gender | float | 性别 |
billing_date | float | 开票日期 |
hospital_name | float | 医院名称 |
start_hospital_date | float | 入院日期 |
end_hospital_date | float | 出院日期 |
total_cost | float | 发票总金额 |
medical_insurance_type | float | 医保类型 |
medical_organization_type | float | 医疗机构类型 |
service_serial_no | float | 业务流水号 |
social_security_card_no | float | 社会保障号码 |
charging_units | float | 收款单位 |
hospital_no | float | 住院号/门诊号 |
payee | float | 收款人 |
reviewer | float | 复核人 |
hospital_departments | float | 住院科别 |
work_unit | float | 工作单位 |
payment_channel | float | 支付渠道 |
medical_insurance_no | float | 医保编号 |
medical_card_no | float | 就诊卡号 |
check_code | float | 校验码 |
note_code | float | 票据代码 |
medical_record_no | float | 病历号 |
unified_social_credit_code | float | 交款人统一信用代码 |
treatment_date | float | 就诊日期 |
payments_info | array | 支付信息列表置信度。数组单个元素表示一组金额信息 ,数组元素与提取内容排列顺序相同,单个元素顺序:[金额名称,金额] |
cost_categories | array | 大类项目列表置信度。数组单个元素表示一组大类信息,数组元素与提取内容排列顺序相同,单个元素顺序:[大类名称,大类金额]。置信度单个字段为float类型,无置信度则输出为-1 |
cost_detail_list | array | 细目列表置信度。数组中的单个元素表示一组细目,单个元素的内容按照key-value键值对输出,输出字段与提取字段一一对应,无置信度则输出为-1 |
3.1.6 text_regions的取值:
坐标输出格式
: [左上角x, 左上角y, 右下角x, 右下角y]
字段 | 类型 | 说明 |
---|---|---|
note_no | array | 票据号码 |
patient_name | array | 患者姓名 |
patient_gender | array | 性别 |
billing_date | array | 开票日期 |
hospital_name | array | 医院名称 |
start_hospital_date | array | 入院日期 |
end_hospital_date | array | 出院日期 |
total_cost | array | 发票总金额 |
medical_insurance_type | array | 医保类型 |
medical_organization_type | array | 医疗机构类型 |
service_serial_no | array | 业务流水号 |
social_security_card_no | array | 社会保障号码 |
charging_units | array | 收款单位 |
hospital_no | array | 住院号/门诊号 |
payee | array | 收款人 |
reviewer | array | 复核人 |
hospital_departments | array | 科室 |
work_unit | array | 工作单位 |
payment_channel | array | 支付渠道 |
medical_insurance_no | array | 医保编号 |
medical_card_no | array | 就诊卡号 |
check_code | array | 校验码 |
note_code | array | 票据代码 |
medical_record_no | array | 病历号 |
unified_social_credit_code | array | 交款人统一信用代码 |
treatment_date | array | 就诊日期 |
payments_info | array | 支付信息列表坐标, 数组单个元素表示一组金额信息,数组元素与提取内容排列顺序相同,单个元素顺序: [金额名称,金额] |
cost_categories | array | 大类项目列表坐标。数组单个元素表示一组大类信息,数组元素与提取内容排列顺序相同,单个元素顺序:[大类名称,大类金额],无坐标则输出为[] |
cost_detail_list | array | 细类项目列表坐标。数组中的单个元素表示一组细目,单个元素的内容按照key-value键值对输出,输出字段与提取字段一一对应,无坐标则输出为[] |
返回结果示例
{
"degree": 0,
"medical_result": {
"billing_date": "2018-05-10",
"charging_units": null,
"check_code": null,
"checksum": {
"billing_date": 1,
"cost_categories": 0,
"cost_detail_list": -1,
"note_no": 1,
"payments_class_b": 1,
"payments_class_c": 0,
"total_cost": 1
},
"confidence": {
"billing_date": 0.9987,
"charging_units": -1,
"check_code": -1,
"cost_categories": [
[
0.9943,
0.9994
],
[
0.9998,
0.9997
]
],
"cost_detail_list": [
{
"amount": -1,
"class": -1,
"cost": 0.9996,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9999,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9992,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.883,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9991,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9401,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9994,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9989,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9992,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9551,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9985,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9812,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9992,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9377,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9994,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9998,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9991,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9983,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9988,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.978,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9989,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9995,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9984,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9983,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9991,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9984,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9989,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 1,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9992,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9996,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9978,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9983,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9986,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9991,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
},
{
"amount": -1,
"class": -1,
"cost": 0.9987,
"item_coding": -1,
"medical_level": -1,
"medical_type": -1,
"name": 0.9091,
"ocr_name": -1,
"origin_ocr_name": -1,
"selfpay": -1,
"selfpay_ratio": -1,
"spec": -1,
"unit": -1,
"unit_price": -1
}
],
"end_hospital_date": null,
"hospital_days": -1,
"hospital_departments": -1,
"hospital_name": 0.9517,
"hospital_no": -1,
"medical_card_no": -1,
"medical_insurance_no": -1,
"medical_insurance_type": 0.9989,
"medical_organization_type": 0.9997,
"medical_record_no": -1,
"note_code": -1,
"note_no": 0.5473,
"note_title": -1,
"patient_gender": 0.9994,
"patient_name": 0.9992,
"payee": 0.9988,
"payment_channel": -1,
"payments_info": [
[
0.9982,
0.9995
],
[
0.9906,
0.9994
],
[
0.9968,
0.9994
],
[
0.9988,
0.9996
],
[
0.9997,
0.9997
],
[
0.9987,
0.9996
],
[
0.9955,
0.9996
],
[
0.9942,
0.9996
],
[
0.9539,
0.9845
]
],
"reviewer": -1,
"service_serial_no": 0.995,
"social_security_card_no": 0.9813,
"start_hospital_date": null,
"total_cost": 0.9959,
"trade_serial_no": 0.9517,
"treatment_date": -1,
"type": -1,
"unified_social_credit_code": -1,
"work_unit": -1
},
"cost_categories": [
{
"cost": 228.5,
"name": "治疗费"
},
{
"cost": 3.5,
"name": "卫生材料费"
}
],
"cost_detail_list": [
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 3,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "牙科综合治疗台(国产)",
"ocr_name": "牙科综合治疗台(国产)",
"origin_ocr_name": "牙科综合治疗台(国产)/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 2,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "盖髓剂",
"ocr_name": "盖髓剂",
"origin_ocr_name": "盖髓剂/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 10,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "光固化垫底材料",
"ocr_name": "光固化垫底材料",
"origin_ocr_name": "光固化垫底材料/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 3.5,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "牙面光洁术",
"ocr_name": "牙面光洁术",
"origin_ocr_name": "牙面光洁术/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 2,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "调合",
"ocr_name": "调合",
"origin_ocr_name": "调合/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 10,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "脱敏",
"ocr_name": "脱敏",
"origin_ocr_name": "脱敏/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 10,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "去旧充填物",
"ocr_name": "去旧充填物",
"origin_ocr_name": "去旧充填物/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 16,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "进口高强度粘结费",
"ocr_name": "进口高强度粘结费",
"origin_ocr_name": "进口高强度粘结费/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 3,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "咬合检查",
"ocr_name": "咬合检查",
"origin_ocr_name": "咬合检查/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 9,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "直接盖髓",
"ocr_name": "直接盖髓",
"origin_ocr_name": "直接盖髓/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 70,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "光固复合树脂:后牙大面",
"ocr_name": "光固复合树脂:后牙大面",
"origin_ocr_name": "光固复合树脂:后牙大面/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 20,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "玻璃离子水门汀充填",
"ocr_name": "玻璃离子水门汀充填",
"origin_ocr_name": "玻璃离子水门汀充填:大/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 2,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "磨光",
"ocr_name": "磨光",
"origin_ocr_name": "磨光/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 2,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "口腔冲洗",
"ocr_name": "口腔冲洗",
"origin_ocr_name": "口腔冲洗/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 3,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "牙髓活力测量",
"ocr_name": "牙髓活力测量",
"origin_ocr_name": "牙髓活力测量/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 10,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "玻璃离子水门汀或国产特",
"ocr_name": "玻璃离子水门汀或国产特",
"origin_ocr_name": "玻璃离子水门汀或国产特/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 53,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "硬质树脂嵌体",
"ocr_name": "硬质树脂嵌体",
"origin_ocr_name": "硬质树脂嵌体/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
},
{
"amount": null,
"check_amount_unitprice_cost": -1,
"class": null,
"cost": 3.5,
"item_coding": null,
"medical_level": null,
"medical_type": null,
"name": "一次性口腔器械盒",
"ocr_name": "一次性口腔器械盒",
"origin_ocr_name": "一次性口腔器械盒/",
"selfpay": null,
"selfpay_ratio": null,
"spec": null,
"unit": null,
"unit_price": null
}
],
"end_hospital_date": null,
"hospital_days": null,
"hospital_departments": null,
"hospital_name": "北京市朝阳区妇幼保健院",
"hospital_no": null,
"medical_card_no": null,
"medical_insurance_no": null,
"medical_insurance_type": "城乡居民",
"medical_organization_type": "妇幼保健院",
"medical_record_no": null,
"note_code": null,
"note_no": "0072833428",
"note_title": null,
"patient_gender": 1,
"patient_name": "XXX",
"payee": "XXX",
"payment_channel": null,
"payments_info": [
{
"check_info": 1,
"cost": 150,
"name": "本次医保范围内金额"
},
{
"check_info": -1,
"cost": 2168.69,
"name": "累计医保内范围金额"
},
{
"check_info": -1,
"cost": 809.36,
"name": "年度门诊大额累计支付"
},
{
"check_info": 1,
"cost": 75,
"name": "自付一"
},
{
"check_info": -1,
"cost": 0,
"name": "起付标准"
},
{
"check_info": -1,
"cost": 0,
"name": "超封顶金额"
},
{
"check_info": 1,
"cost": 0,
"name": "自付二"
},
{
"check_info": 1,
"cost": 82,
"name": "个人自费"
},
{
"check_info": 1,
"cost": 157,
"name": "个人现金支付"
}
],
"reviewer": null,
"service_serial_no": "180510815498",
"social_security_card_no": "117226106000",
"start_hospital_date": null,
"text_regions": {
"billing_date": [
1686.74,
1386.186,
1947.7541,
1423.2863
],
"charging_units": [],
"check_code": [],
"cost_categories": [
[
[
259.0899,
468.6377,
365.1064,
511.6784
],
[
948.0899,
473.9023,
1059.1045,
511.9449
]
],
[
[
1225.0891,
470.0087,
1402.106,
514.0766
],
[
1917.0906,
473.2744,
1995.1048,
510.3044
]
]
],
"cost_detail_list": [
{
"amount": [],
"class": [],
"cost": [
948.0707,
524.9023,
1062.0849,
561.9461
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
257.0704,
517.6369,
617.0876,
562.7751
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
949.0511,
574.9027,
1061.0657,
612.9457
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
259.0512,
568.6376,
382.068,
612.6849
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
951.0319,
625.9034,
1077.0461,
662.9518
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
260.0312,
618.638,
515.0488,
664.736
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
949.0127,
675.9026,
1060.0269,
712.9453
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
259.0127,
669.6376,
450.0292,
712.711
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
948.9939,
725.9026,
1061.0077,
761.9457
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
257.9939,
719.6373,
346.01,
761.671
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
949.9747,
773.903,
1077.9893,
811.9522
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
257.9747,
768.6373,
345.9912,
811.671
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
949.9555,
823.903,
1078.9701,
861.9526
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
259.9551,
818.638,
445.972,
862.7094
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
950.9366,
872.9034,
1075.9512,
910.9514
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
254.9359,
868.6361,
546.9528,
912.7482
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
950.9174,
923.9034,
1059.9316,
960.9453
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
254.9171,
918.6361,
414.9336,
961.6975
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1920.071,
523.2756,
2030.0856,
561.3178
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1229.0695,
520.0102,
1389.0868,
565.0716
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1920.0518,
573.2756,
2046.0664,
611.324
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1228.0503,
569.0098,
1604.0679,
615.1542
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1918.0326,
624.2748,
2045.0468,
661.3236
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1228.0307,
622.0098,
1608.0476,
666.1557
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1919.013,
675.2752,
2030.0272,
712.3178
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1226.0119,
673.009,
1317.028,
715.044
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1917.9942,
724.2748,
2032.0084,
761.3186
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1223.9931,
722.0083,
1388.0092,
764.0712
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1917.9746,
773.2748,
2030.9896,
812.3182
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1228.9743,
769.0102,
1454.9911,
813.097
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1923.9562,
823.2771,
2047.9704,
860.3247
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1228.9551,
820.0102,
1617.9715,
863.1596
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1918.9373,
872.2752,
2046.9515,
909.3243
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1224.9359,
869.0086,
1451.9527,
913.0958
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
},
{
"amount": [],
"class": [],
"cost": [
1921.9181,
922.2763,
2030.9323,
959.3182
],
"item_coding": [],
"medical_level": [],
"medical_type": [],
"name": [
1225.9163,
921.009,
1512.9328,
964.1192
],
"ocr_name": [],
"origin_ocr_name": [],
"selfpay": [],
"selfpay_ratio": [],
"spec": [],
"unit": [],
"unit_price": []
}
],
"end_hospital_date": null,
"hospital_days": [],
"hospital_departments": [],
"hospital_name": [
445.1763,
247.7091,
776.1913,
286.8362
],
"hospital_no": [],
"medical_card_no": [],
"medical_insurance_no": [],
"medical_insurance_type": [
1054.1367,
342.943,
1193.1548,
389.9964
],
"medical_organization_type": [
1114.1605,
281.966,
1289.1782,
328.0333
],
"medical_record_no": [],
"note_code": [],
"note_no": [
1762.1616,
263.2149,
2153.1854,
325.3651
],
"note_title": [],
"patient_gender": [
838.1391,
344.86,
878.154,
383.8754
],
"patient_name": [
346.1379,
341.6711,
451.1552,
386.7114
],
"payee": [
1064.7388,
1382.9471,
1174.7554,
1425.9894
],
"payment_channel": [],
"payments_info": [
[
[
258.8368,
1125.6376,
574.8541,
1170.759
],
[
966.8379,
1129.9095,
1074.8525,
1167.951
]
],
[
[
259.8176,
1175.638,
639.8349,
1220.7839
],
[
947.8191,
1179.9022,
1071.8333,
1216.9498
]
],
[
[
259.7992,
1223.638,
865.8164,
1268.8707
],
[
964.7999,
1230.9087,
1074.8137,
1266.951
]
],
[
[
1745.8751,
1029.2087,
1857.8913,
1071.2517
],
[
2069.8767,
1030.3332,
2157.8909,
1067.3669
]
],
[
[
1742.8567,
1076.2076,
1894.8732,
1119.2659
],
[
2086.8582,
1080.3397,
2163.8717,
1115.3692
]
],
[
[
1742.8379,
1125.2076,
1927.8544,
1168.2786
],
[
2086.839,
1129.3397,
2161.8528,
1165.3685
]
],
[
[
1747.8183,
1176.2095,
1858.8348,
1219.2521
],
[
2082.8202,
1178.3381,
2159.834,
1214.3677
]
],
[
[
1749.8002,
1225.2102,
1827.816,
1266.2402
],
[
2071.801,
1227.3339,
2162.8152,
1264.3689
]
],
[
[
1494.7891,
1255.1123,
1687.8045,
1295.1864
],
[
2056.7814,
1276.3281,
2161.7964,
1315.3685
]
]
],
"reviewer": [],
"service_serial_no": [
458.1629,
283.7141,
648.1775,
321.7871
],
"social_security_card_no": [
1711.1382,
345.1953,
1921.154,
386.276
],
"start_hospital_date": null,
"total_cost": [
521.7608,
1321.7386,
763.7788,
1368.8315
],
"trade_serial_no": [
445.1763,
247.7091,
776.1913,
286.8362
],
"treatment_date": [],
"type": [],
"unified_social_credit_code": [],
"work_unit": []
},
"total_cost": 232,
"trade_serial_no": "051520010Z180510000471",
"treatment_date": null,
"type": 1,
"unified_social_credit_code": null,
"work_unit": null
},
"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",
}