Skip to content

Enabled Vital Signs

Enabled Vital Signs is a map of vital signs that are set to be measured in the course of a specific session.

Receiving Enabled Vital Signs

The application can receive information regarding the enabled vital signs by using onEnabledVitalSigns callback (under the LicenseInfo interface):

TypeScript
import { 
    EnabledVitalSigns
} from '@biosensesignal/web-sdk';

const onEnabledVitalSigns = useCallback((vitalSigns: EnabledVitalSigns) => {
    // Receive the enabled vital signs for the session
}, []);

Checking if a Vital Sign is Enabled

The following code can be used to determine the supported vital signs:

TypeScript
import { 
    EnabledVitalSigns
} from '@biosensesignal/web-sdk';

const onEnabledVitalSigns = useCallback((enabledVitalSigns: EnabledVitalSigns) => {
    // Checking if pulse rate is enabled
    console.log(`Is pulse rate enabled: ${enabledVitalSigns.isEnabledPulseRate}`)
}, []);