@icanbwell/bwell-sdk-ts
v1.67.0
Published
b.well TypeScript SDK
Readme
BWell SDK Typescript
Description
The b.well TypeScript SDK provides a simple, type-safe interface to the FHIR data stored and maintained by b.well, as well as manage users, configure device notifications and mark them read, set up data connections, and search for providers or connections. Please see the documentation for details.
SDKv2 / SDKv1 Update
The main has been updated to be for TS SDKv2 only. Any v1 updates should be
made to typescript-sdk-v1 branch.
Installation
npm i @icanbwell/bwell-sdk-ts
Or to test locally, you can use yalc to publish and install
Example
import { BWellSDK }
const sdk = new BWellSDK({
clientKey: "YOUR_CLIENT_KEY",
clientSecret: "YOUR_CLIENT_SECRET",
});
await sdk.initialize();
await sdk.authenticate({
token: "YOUR_TOKEN",
});
const healthSummaryResponse = sdk.health.getHealthSummary();
const healthSummaryData = healthSummaryResponse.data;