Skip to content

Latest commit

 

History

History
 
 

api-sdk

Metriport API SDK Package

A package to get started using Metriport - universal and open-source API for healthcare data.

Usage

Check out the documentation at https://docs.metriport.com

Installation

npm install --save @metriport/api-sdk

Setup

Medical API

To use the Medical API, create a new instance of the MetriportMedicalApi class:

import { MetriportMedicalApi } from "@metriport/api-sdk";

const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");

To connect to the sandbox:

new MetriportMedicalApi("YOUR_API_KEY", { sandbox: true });

Devices API

To use the Devices API, create a new instance of the MetriportDevicesApi class:

import { MetriportDevicesApi } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

To connect to the sandbox:

new MetriportDevicesApi("YOUR_API_KEY", { sandbox: true });
            ,▄,
          ▄▓███▌
      ▄▀╙   ▀▓▀    ²▄
    ▄└               ╙▌
  ,▀                   ╨▄
  ▌                     ║
                         ▌
                         ▌
,▓██▄                 ╔███▄
╙███▌                 ▀███▀
    ▀▄
      ▀╗▄         ,▄
         '╙▀▀▀▀▀╙''


      by Metriport Inc.