US Healthcare Card

The Python SDK supports the Mindee V1 Healthcare Card API.

Product Specifications

Specification
Details

Endpoint Name

us_healthcare_cards

Recommended Version

v1.3

Supports Polling/Webhooks

✔️ Yes

Support Synchronous HTTP Calls

❌ No

Geography

🇺🇸 United States

Quick-Start

Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Healthcare Card Sample

Sample Code

Sample Output (rST)

Standard Fields

These fields are generic and used in several products.

BaseField

Each prediction object contains a set of fields that inherit from the generic BaseField class. A typical BaseField object will have the following attributes:

  • value (Union[float, str]): corresponds to the field value. Can be None if no value was extracted.

  • confidence (float): the confidence score of the field prediction.

  • bounding_box ([Point, Point, Point, Point]): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.

  • polygon (List[Point]): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.

  • page_id (int): the ID of the page, always None when at document-level.

  • reconstructed (bool): indicates whether an object was reconstructed (not extracted as the API gave it).

A Point simply refers to a list of two numbers ([float, float]).

Aside from the previous attributes, all basic fields have access to a custom __str__ method that can be used to print their value as a string.

DateField

Aside from the basic BaseField attributes, the date field DateField also implements the following:

  • date_object (Date): an accessible representation of the value as a python object. Can be None.

StringField

The text field StringField only has one constraint: its value is an Optional[str].

Specific Fields

Fields which are specific to this product; they are not used in any other product.

Copays Field

Copayments for covered services.

A HealthcareCardV1Copay implements the following attributes:

  • service_fees (float): The price of the service.

  • service_name (str): The name of the service. Possible values include:

    • primary_care

    • emergency_room

    • urgent_care

    • specialist

    • office_visit

    • prescription

Attributes

The following fields are extracted for Healthcare Card V1:

Company Name

company_name (StringField): The name of the company that provides the healthcare plan.

Copays

copays (List[HealthcareCardV1Copay]): Copayments for covered services.

Dependents

dependents (List[StringField]): The list of dependents covered by the healthcare plan.

Enrollment Date

enrollment_date (DateField): The date when the member enrolled in the healthcare plan.

Group Number

group_number (StringField): The group number associated with the healthcare plan.

Issuer 80840

issuer_80840 (StringField): The organization that issued the healthcare plan.

Member ID

member_id (StringField): The unique identifier for the member in the healthcare system.

Member Name

member_name (StringField): The name of the member covered by the healthcare plan.

Payer ID

payer_id (StringField): The unique identifier for the payer in the healthcare system.

Plan Name

plan_name (StringField): The name of the healthcare plan.

RX BIN

rx_bin (StringField): The BIN number for prescription drug coverage.

RX GRP

rx_grp (StringField): The group number for prescription drug coverage.

RX ID

rx_id (StringField): The ID number for prescription drug coverage.

RX PCN

rx_pcn (StringField): The PCN number for prescription drug coverage.

Last updated

Was this helpful?