# 19Labs Custom Wellness Portal SDK

## Overview
Welcome to the [19Labs](https://19labs.com) Custom Wellness Portal SDK .

This document is intended to give you all the information you need to build a custom HTML page that loads on the [19Gale platform](https://www.19labs.com/platform).

## Installing


### Manually
To add the captive portal library to an existing project:
```
yarn add @19labs/gale-wellness
or
npm install @19labs/gale-wellness
```

## Functionality of the API
The API allows the following functionality, either with JavaScript or with the DOM elements:
1. Login, Signup, Logout
2. Navigate to a native Gale screen
3. Get list of sensors & clinics from the active configuration
4. Start a sensor measurement
5. Retrieve or update the intake data
6. Get the sensor measurements for the current session
7. Save or restore a session
8. Create or update patient profiles
9. Respond to system events

## Examples
There are two public git repositories with examples using the api

the first is a simple sample that demonstrates all of the bridge api calls


https://bitbucket.org/19labs_external/wellness-test-pwa.git

the second is a more sophisticated example that shows a more complex nodejs/express application that uses
both the api and the Dom custom elements to connect to a demonstration FHIR based sytem 

https://bitbucket.org/19labs_external/fhir.git


 
## Documentation

Documentation for the package is available [here](https://unpkg.com/browse/@19labs/gale-wellness/docs/index.html).

## Support

support@19labs.com  

