@19labs/gale-wellness 中文文档教程
19Labs Custom Wellness Portal SDK
Overview
欢迎使用 19Labs 自定义健康门户 SDK。
本文档旨在为您提供构建可在 19Gale 平台 上加载的自定义 HTML 页面所需的所有信息。
Installing
Manually
将强制门户库添加到现有项目:
yarn add @19labs/gale-wellness
or
npm install @19labs/gale-wellness
Functionality of the API
API 允许使用 JavaScript 或 DOM 元素实现以下功能:
- Login, Signup, Logout
- Navigate to a native Gale screen
- Get list of sensors & clinics from the active configuration
- Start a sensor measurement
- Retrieve or update the intake data
- Get the sensor measurements for the current session
- Save or restore a session
- Create or update patient profiles
- Respond to system events
Examples
有两个公共 git 存储库,其中包含使用 api
的示例,第一个是演示所有桥接器的简单示例api 调用
https://bitbucket.org/19labs_external/wellness-test-pwa.git
第二个是一个更复杂的示例,它显示了一个更复杂的 nodejs/express 应用程序,它使用 api 和 Dom 自定义元素连接到基于 FHIR 的演示系统
https://bitbucket.org/19labs_external/fhir.git
Documentation
包的文档可用 此处。
Support
support@19labs.com
19Labs Custom Wellness Portal SDK
Overview
Welcome to the 19Labs 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.
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:
- Login, Signup, Logout
- Navigate to a native Gale screen
- Get list of sensors & clinics from the active configuration
- Start a sensor measurement
- Retrieve or update the intake data
- Get the sensor measurements for the current session
- Save or restore a session
- Create or update patient profiles
- 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.
Support
support@19labs.com