US Healthcare Card

US Healthcare Card

The Java 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

import com.mindee.MindeeClient;
import com.mindee.input.LocalInputSource;
import com.mindee.parsing.common.AsyncPredictResponse;
import com.mindee.product.us.healthcarecard.HealthcareCardV1;
import java.io.File;
import java.io.IOException;

public class SimpleMindeeClient {

  public static void main(String[] args) throws IOException, InterruptedException {
    String apiKey = "my-api-key";
    String filePath = "/path/to/the/file.ext";

    // Init a new client
    MindeeClient mindeeClient = new MindeeClient(apiKey);

    // Load a file from disk
    LocalInputSource inputSource = new LocalInputSource(new File(filePath));

    // Parse the file asynchronously
    AsyncPredictResponse<HealthcareCardV1> response = mindeeClient.enqueueAndParse(
        HealthcareCardV1.class,
        inputSource
    );

    // Print a summary of the response
    System.out.println(response.toString());

    // Print a summary of the predictions
//  System.out.println(response.getDocumentObj().toString());

    // Print the document-level predictions
//    System.out.println(response.getDocumentObj().getInference().getPrediction().toString());

    // Print the page-level predictions
//    response.getDocumentObj().getInference().getPages().forEach(
//        page -> System.out.println(page.toString())
//    );
  }

}

Sample Output (rST)

########
Document
########
:Mindee ID: 5e917fc8-5c13-42b2-967f-954f4eed9959
:Filename: default_sample.jpg

Inference
#########
:Product: mindee/us_healthcare_cards v1.3
:Rotation applied: Yes

Prediction
==========
:Company Name: UnitedHealthcare
:Plan Name: Choice Plus
:Member Name: SUBSCRIBER SMITH
:Member ID: 123456789
:Issuer 80840:
:Dependents: SPOUSE SMITH
             CHILD1 SMITH
             CHILD2 SMITH
             CHILD3 SMITH
:Group Number: 98765
:Payer ID: 87726
:RX BIN: 610279
:RX ID:
:RX GRP: UHEALTH
:RX PCN: 9999
:Copays:
  +--------------+----------------------+
  | Service Fees | Service Name         |
  +==============+======================+
  | 20.00        | office_visit         |
  +--------------+----------------------+
  | 300.00       | emergency_room       |
  +--------------+----------------------+
  | 75.00        | urgent_care          |
  +--------------+----------------------+
  | 30.00        | specialist           |
  +--------------+----------------------+
:Enrollment Date:

Field Types

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:

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

  • boundingBox (Polygon): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.

  • polygon (Polygon): contains the relative vertices coordinates (polygon extends List<Point>) of a polygon containing the field in the image.

  • pageId (Integer): the ID of the page, always null when at document-level.

A Point simply refers to a List of Double.

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

StringField

The text field StringField extends BaseField, but also implements:

  • value (String): corresponds to the field value.

  • rawValue (String): corresponds to the raw value as it appears on the document.

DateField

The date field DateField extends BaseField, but also implements:

  • value (LocalDate): an accessible representation of the value as a Java object. Can be null.

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:

  • serviceFees (Double): The price of the service.

  • serviceName (String): 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

companyName: The name of the company that provides the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getCompanyName().value
);

Copays

copays(List<HealthcareCardV1Copay>): Copayments for covered services.

for (copaysElem : result.getDocument().getInference().getPrediction().getCopays())
{
    System.out.println(copaysElem.value);
}

Dependents

dependents: The list of dependents covered by the healthcare plan.

for (dependentsElem : result.getDocument().getInference().getPrediction().getDependents())
{
    System.out.println(dependentsElem.value);
}

Enrollment Date

enrollmentDate: The date when the member enrolled in the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getEnrollmentDate().value
);

Group Number

groupNumber: The group number associated with the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getGroupNumber().value
);

Issuer 80840

issuer80840: The organization that issued the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getIssuer80840().value
);

Member ID

memberId: The unique identifier for the member in the healthcare system.

System.out.println(
  result.getDocument().getInference().getPrediction().getMemberId().value
);

Member Name

memberName: The name of the member covered by the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getMemberName().value
);

Payer ID

payerId: The unique identifier for the payer in the healthcare system.

System.out.println(
  result.getDocument().getInference().getPrediction().getPayerId().value
);

Plan Name

planName: The name of the healthcare plan.

System.out.println(
  result.getDocument().getInference().getPrediction().getPlanName().value
);

RX BIN

rxBin: The BIN number for prescription drug coverage.

System.out.println(
  result.getDocument().getInference().getPrediction().getRxBin().value
);

RX GRP

rxGrp: The group number for prescription drug coverage.

System.out.println(
  result.getDocument().getInference().getPrediction().getRxGrp().value
);

RX ID

rxId: The ID number for prescription drug coverage.

System.out.println(
  result.getDocument().getInference().getPrediction().getRxId().value
);

RX PCN

rxPcn: The PCN number for prescription drug coverage.

System.out.println(
  result.getDocument().getInference().getPrediction().getRxPcn().value
);

Last updated

Was this helpful?