Skip to main content
GET
/
doc-agent
/
api
/
v1
/
claims
/
{claimId}
/
materials
/
extractions
cURL
curl --request GET \
  --url https://agents.textin.com/doc-agent/api/v1/claims/{claimId}/materials/extractions \
  --header 'x-api-key: <x-api-key>'
{
  "materials": [
    {
      "confidence_status": 2,
      "extract_result": {
        "document": {
          "pages": [
            {
              "angle": 0,
              "height": 2252,
              "lines": [
                {
                  "position": [
                    957,
                    227,
                    2243,
                    227,
                    2243,
                    322,
                    957,
                    322
                  ],
                  "text": "河南省医疗门诊收费票据(电子)"
                }
              ],
              "width": 3235
            }
          ]
        },
        "fields": [
          {
            "key": "个人现金支付",
            "position": [
              {
                "page": 0,
                "vertices": [
                  2223,
                  1643,
                  2268,
                  1643,
                  2268,
                  1673,
                  2223,
                  1673
                ]
              }
            ],
            "value": "87"
          }
        ],
        "pages": [
          {
            "angle": 0,
            "dpi": 0,
            "height": 2252,
            "width": 3235
          }
        ],
        "tables": [
          {
            "items": [
              {
                "values": [
                  {
                    "confidence": 0.8333333333333334,
                    "dimensions": {
                      "contextual_consistency": {
                        "explanation": "",
                        "score": 1
                      },
                      "cross_field_consistency": {
                        "explanation": "",
                        "score": 1
                      },
                      "field_cue_proximity": {
                        "explanation": "",
                        "score": 0.5
                      },
                      "numerical_plausibility": {
                        "explanation": "",
                        "score": 1
                      },
                      "traceability": {
                        "explanation": "原文未出现该字段且抽取为空,正确",
                        "score": 1
                      },
                      "uniqueness_ambiguity": {
                        "explanation": "",
                        "score": 1
                      }
                    },
                    "key": "医保目录类别",
                    "not_consistence_reason": [],
                    "position": [],
                    "value": ""
                  }
                ]
              }
            ],
            "table_name": "Table1",
            "table_type": "0"
          }
        ]
      },
      "file_name": "5C955E443NE1MgRL8844Pgb6_2.jpg",
      "file_size": "1133773",
      "file_type": ".jpg",
      "material_id": "09234629-565f-4eba-8c6f-59faf72c39eb",
      "material_type": "纸质住院发票",
      "status": 2
    }
  ],
  "status": "2"
}

Headers

x-api-key
string
required

Path Parameters

claim_id
string
required

案件ID

Query Parameters

material_ids
string[]

材料ID 不传材料ID时,获取案件下所有材料的抽取结果

Response

200 - application/json

OK

materials
object[]

材料抽取结果

Example:
[
{
"confidence_status": 2,
"extract_result": {
"document": {
"pages": [
{
"angle": 0,
"height": 2252,
"lines": [
{
"position": [957, 227, 2243, 227, 2243, 322, 957, 322],
"text": "河南省医疗门诊收费票据(电子)"
}
],
"width": 3235
}
]
},
"fields": [
{
"key": "个人现金支付",
"position": [
{
"page": 0,
"vertices": [
2223,
1643,
2268,
1643,
2268,
1673,
2223,
1673
]
}
],
"value": "87"
}
],
"pages": [
{
"angle": 0,
"dpi": 0,
"height": 2252,
"width": 3235
}
],
"tables": [
{
"items": [
{
"values": [
{
"confidence": 0.8333333333333334,
"dimensions": {
"contextual_consistency": { "explanation": "", "score": 1 },
"cross_field_consistency": { "explanation": "", "score": 1 },
"field_cue_proximity": { "explanation": "", "score": 0.5 },
"numerical_plausibility": { "explanation": "", "score": 1 },
"traceability": {
"explanation": "原文未出现该字段且抽取为空,正确",
"score": 1
},
"uniqueness_ambiguity": { "explanation": "", "score": 1 }
},
"key": "医保目录类别",
"not_consistence_reason": [],
"position": [],
"value": ""
}
]
}
],
"table_name": "Table1",
"table_type": "0"
}
]
},
"file_name": "5C955E443NE1MgRL8844Pgb6_2.jpg",
"file_size": "1133773",
"file_type": ".jpg",
"material_id": "09234629-565f-4eba-8c6f-59faf72c39eb",
"material_type": "纸质住院发票",
"status": 2
}
]
status
integer<enum>

status 0 未开始 1 进行中 2 成功 3 失败

Example:

"2"