Bridge SDK
    Preparing search index...

    Bridge SDK

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

    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'
    
    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

    Add the following to the header tag:

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

    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

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

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

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


    Arrowhealth (c) 2021-present. All rights reserved.