Bridge SDK

The Bridge SDK provides an API to communicate with the Bridge platform

Getting Started

NPM

Install the npm package

npm i @arrowhealth/bridge-sdk

You can import the entire module...

import * as bridge from '@arrowhealth/bridge-sdk'

Or you can import the methods you want to use...

import { onPatientChanged } from '@arrowhealth/bridge-sdk'

Usage

import {
getPatient,
onPatientChanged
} from '@arrowhealth/bridge-sdk'

getPatient().then(
patient => console.log('patient', patient)
)

const offPatientChanged = onPatientChanged(patient => {
console.log('patient:changed', patient.id)
})

// offPatientChanged() call when page or application unloads

CDN

Add the following to the header tag:

<script src="https://unpkg.com/@arrowhealth/bridge-sdk/dist/bridge.min.js"></script>

Usage

The Bridge SDK can be globally accessed.

bridge.getPatient().then( 
patient => console.log('patient', patient)
)

const offPatientChanged = bridge.onPatientChanged(patient => {
console.log('patient:changed', patient.id)
})

// offPatientChanged() call when page or application unloads

Repository

https://github.com/arrowhealth/bridge-sdk

Changelog

https://github.com/arrowhealth/bridge-sdk/releases

Reporting Issues

https://github.com/arrowhealth/bridge-sdk/issues


Arrow Health (c) 2021-present. All rights reserved.