Widgets

Biomarker Widget

Intro

The Biomarker Widget displays an objective indicator of health captured during a , such as heart rate or respiratory rate. This widget is essential for users who need immediate, real-time feedback on specific health parameters. It’s designed for quick, actionable insights, making it easy for users to assess their current state and understand individual biomarker values. Integrate it within your platform to give users a clear, snapshot view of a particular aspect of their health.

Layout

Small

"default"
"default"
ο»Ώ
"arc"
"arc"
ο»Ώ

Usage

Creating the widget

The code snippet below creates a Biomarker widget and mountsο»Ώ it to the DOM:

Create and mount widget
ο»Ώ

Config

The Biomarker widget requires additional configuration parameters that describe which kind of biomarker should be displayed and which is referenced to display the value.

Config
ο»Ώ

Property

Description

face_scan_id optional string

Unique (internal) reference to a performed Face Scan. Set to null to display a placeholder widget.

parameter string

Biomarker of choice

List of available biomarkersο»Ώ:

  • "heart_rate"
  • "respiratory_rate"
  • "resonant_breathing_score"
  • "heart_rate_variability"

Variation

Two variations of the Biomarker widget are available:

  • "default"
  • "arc"

Theme Overrides

The Biomarker widget allows individual fine-tuning of the appearanceο»Ώ.

The used accent colors are:

  • Functional Primary 500
  • Functional Secondary 500
  • Functional Tertiary 500

JSON Data

Retrieve the biomarker widget data in JSON format using the Rest APIο»Ώ. The data field of the response body describes the widget properties.

The biomarker widget consists of the following fields (similar to the metric widget):

  • The value is the actual numerical value. It can be an integer or a floating point number.
  • The unit holds a textual value for the unit of the parameter.
  • The range represents the entire span of possible values for that the parameter, indicated by minimum and a maximum.
  • The zone indicates where the actual value falls, among three categories related to the health condition:
    • "good" (zone: 1)
    • "neutral" (zone: 2)
    • "bad" (zone: 3)
  • The optimum defines how the range should be interpreted and visualized. There are three possible values for optimum: "low," "high," and "middle."
    • For "low": Lower values are categorized as "good" (green color), while higher values are categorized as "bad" (red color)
    • For "high": Higher values are categorized as "good" (green color), while lower values are categorized as "bad" (red color).
    • For "middle": The "good" zone (green color) is centered around the middle of the range. Values lower or higher than this midpoint are categorized as "bad" (red color).
Document image
ο»Ώ

ο»Ώ