Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@cardscan.ai/cardscan-client

CardScan-ai5.3kSEE LICENSE IN LICENSE.md0.11.0TypeScript support: included

Typescript client for the CardScan API

card, cards, scan, scanning, scanner, health, health insurance, health insurance card, medical, medical insurance, medical insurance card, medical card, insurance, insurance card, insurance card scanner, eligibility, eligibility check, eligibility verification, eligibility verification system, prior authorization, prior auth, payer, billing, clinic, doctor, medicare, medicaid, insurance plan, medtech

readme

cardscan-ai/cardscan-client

Typescript API client for the CardScan API

Environment

  • Node.js
  • Webpack
  • Browserify

Module system

  • CommonJS
  • ES6 module system

Installation

npm install @cardscan.ai/cardscan-client
yarn add @cardscan.ai/cardscan-client

Usage

import { CardScanApi } from "@cardscan.ai/cardscan-client";

const cardScanApi = new CardScanApi({
  /*
   * By default the API will the production url if NODE_ENV is "production" and the sandbox url otherwise.
   * You can also specify a url manually.
   * */
  // baseUrl: "https://api.cardscan.ai/v1",

  apiKey: "<your-api-key>",
});

const main = async () => {
  try {
    const response = await cardScanApi.checkEligibility("<card-id>", {
      subscriber: {
        firstName: "John",
        lastName: "Doe",
        dateOfBirth: "18020101",
      },
      provider: {
        firstName: "John",
        lastName: "Doe",
        npi: "0123456789",
      },
    });
  } catch (e) {
    console.error(e);
  }
};

main();